public class LayoutTransactionImpl extends LayoutImpl implements LayoutTransaction
IOAtom.ObjectType
LOGGER, sRefreshObjectBeforeLock
ID_INVALID, OBJECTTYPE_AGREEMENTINFO, OBJECTTYPE_ARTICLE, OBJECTTYPE_CATALOG, OBJECTTYPE_CATEGORY, OBJECTTYPE_ENTITY, OBJECTTYPE_FORUM, OBJECTTYPE_LAYOUT, OBJECTTYPE_MAX, OBJECTTYPE_MIN, OBJECTTYPE_PERSON, OBJECTTYPE_POOL, OBJECTTYPE_POSTING, OBJECTTYPE_PRESENTATION_FORUM, OBJECTTYPE_PRESENTATION_POSTING, OBJECTTYPE_PRESENTATION_THREAD, OBJECTTYPE_PROFILE, OBJECTTYPE_PUBLICATION, OBJECTTYPE_SECTION, OBJECTTYPE_THREAD, OBJECTTYPE_TOPIC, OBJECTTYPE_UNKNOWN, OBJECTTYPE_USERGROUP
Modifier and Type | Method and Description |
---|---|
boolean |
create()
Deprecated.
Creates a new object in the persistence layer.
|
boolean |
delete()
Deprecated.
Removes an existing
IOObject from the persistence layer. |
IOObject |
getObject()
Deprecated.
Retrieves the object this transaction was initialized with.
|
boolean |
release()
Deprecated.
Releases the lock on this
IOObject . |
void |
setFileName(String name)
Deprecated.
Sets the name of the file that defines this layout.
|
void |
setId(int pId)
Deprecated.
Set the id of this object.
|
void |
setName(String name)
Deprecated.
Sets the name of this layout.
|
void |
setObject(IOObject l)
Deprecated.
|
void |
setOwnerPublicationId(int pPublicationId)
Deprecated.
This method sets the id of the owner publication
|
void |
setSymbol(String symbol)
Deprecated.
Sets the symbol that will be associated with this layout.
|
void |
setType(Type type)
Deprecated.
Sets the type of layout.
|
boolean |
update()
Deprecated.
Updates the database with the changes made on this
IOObject . |
checkLoaded, getFileName, getIOLayout, getName, getSymbol, getTransactionObjectImpl, getType, getUUID, refresh, setIOLayout
breakAndLock, compareTo, createTransaction, equals, getChecksum, getDefaultProtectionDomain, getHashKey, getId, getLockKeeper, getObjectType, getOwnerPublicationId, getProtectionDomain, getProtectionDomains, getValid, hashCode, isLocked, isPreview, isStillValid, isValid, lock, lock, lock, lock, objectTypeAsString, setValid, stringToObjectType, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getFileName, getName, getSymbol, getType
breakAndLock, createTransaction, getChecksum, getHashKey, getId, getLockKeeper, getObjectType, getOwnerPublicationId, getProtectionDomain, getProtectionDomains, isLocked, isPreview, isValid, lock, lock, lock, lock, refresh
public IOObject getObject()
IOTransaction
getObject
in interface IOTransaction
public void setObject(IOObject l)
public boolean update() throws PersistentStoreException, IllegalOperationException, NoSuchObjectException
IOTransaction
IOObject
.update
in interface IOTransaction
PersistentStoreException
- if an error occurs in the persistence layerIllegalOperationException
- if the state of the object did not pass validation checksNoSuchObjectException
- if trying to retrieve an object that does not existpublic boolean create() throws PersistentStoreException, IllegalOperationException
IOTransaction
create
in interface IOTransaction
PersistentStoreException
- if an error occurs in the persistence layerIllegalOperationException
- if the state of the object did not pass validation checkspublic boolean delete() throws PersistentStoreException, IllegalOperationException, NoSuchObjectException
IOTransaction
IOObject
from the persistence layer.delete
in interface IOTransaction
PersistentStoreException
- if an error occurs in the persistence layerIllegalOperationException
- if the state of the object did not pass validation checksNoSuchObjectException
- if trying to retrieve an object that does not existpublic boolean release()
IOTransaction
IOObject
. A new lock must be retrieved when new modifications should be made
on this object.release
in interface IOTransaction
public void setType(Type type)
LayoutTransaction
TypeManager.getTypes(Type.Category)
.setType
in interface LayoutTransaction
setType
in class LayoutImpl
type
- the type of layoutpublic void setFileName(String name)
LayoutTransaction
setFileName
in interface LayoutTransaction
setFileName
in class LayoutImpl
name
- the name of the file that defines this layout. This is typically a jsp template file.public void setName(String name)
LayoutTransaction
setName
in interface LayoutTransaction
setName
in class LayoutImpl
name
- the name of this layout.public void setSymbol(String symbol)
LayoutTransaction
setSymbol
in interface LayoutTransaction
setSymbol
in class LayoutImpl
symbol
- the symbol that is associated with this layout.public void setId(int pId)
IOTransaction
setId
in interface IOTransaction
setId
in class IOObjectImpl
pId
- the idpublic void setOwnerPublicationId(int pPublicationId)
IOTransaction
setOwnerPublicationId
in interface IOTransaction
setOwnerPublicationId
in class IOObjectImpl
pPublicationId
- the id© 1998- 2018 Stibo DX