public class PoolTransactionImpl extends PoolImpl implements PoolTransaction, IndexPageTransaction
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 |
setActivateDate(Timestamp activateDate)
Deprecated.
Sets the time when this pool will be activated on the web.
|
void |
setCreationDate(Timestamp creationDate)
Deprecated.
Sets the time when this pool was created.
|
void |
setElements(Group pGroup)
Deprecated.
Sets the layout-group on this pool.
|
void |
setExpireDate(Timestamp expireDate)
Deprecated.
Sets the time when this pool will expire from the web.
|
void |
setId(int pId)
Deprecated.
Set the id of this object.
|
void |
setName(String pName)
Deprecated.
Sets the name of this pool
|
void |
setObject(IOObject p)
Deprecated.
|
void |
setOwnerPublicationId(int pPublicationId)
Deprecated.
This method sets the id of the owner publication
|
void |
setRuleType(Type ruleType)
Deprecated.
Sets the rule type of this pool.
|
void |
setSectionId(int sectionId)
Deprecated.
Sets the id of the section that this pool belongs to.
|
void |
setType(Type type)
Deprecated.
Sets the type of pool.
|
boolean |
update()
Deprecated.
Updates the database with the changes made on this
IOObject . |
checkLoaded, getActivateDate, getAPIArticle, getAPIArticles, getArticleRelation, getArticleRelations, getArticles, getArticles, getArticles, getChecksum, getContentList, getCreationDate, getElements, getElements, getElements, getExpireDate, getGroupTransformer, getIOPool, getLastModifiedDate, getName, getPoolEntry, getPreviewUrl, getPreviewUrl, getProtectionDomain, getRuleType, getSection, getSectionId, getTransactionObjectImpl, getType, getUUID, getVariantId, hasVariant, isActivePool, isPreview, isPreviewPool, refresh, setIOPool
breakAndLock, compareTo, createTransaction, equals, getDefaultProtectionDomain, getHashKey, getId, getLockKeeper, getObjectType, getOwnerPublicationId, getProtectionDomains, getValid, hashCode, isLocked, isStillValid, isValid, lock, lock, lock, lock, objectTypeAsString, setValid, stringToObjectType, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getElements, getElements
getActivateDate, getAPIArticle, getAPIArticles, getArticleRelation, getArticleRelations, getArticles, getArticles, getArticles, getCreationDate, getExpireDate, getLastModifiedDate, getName, getPoolEntry, getPreviewUrl, getPreviewUrl, getRuleType, getSection, getSectionId, getType, getVariantId, hasVariant, isActivePool, isPreviewPool
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 p)
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, NoSuchObjectException
IOTransaction
create
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 delete() throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
IOTransaction
IOObject
from the persistence layer.delete
in interface IOTransaction
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existIllegalOperationException
- if the state of the object did not pass validation checkspublic boolean release() throws IllegalArgumentException, IllegalOperationException
IOTransaction
IOObject
. A new lock must be retrieved when new modifications should be made
on this object.release
in interface IOTransaction
IllegalOperationException
- if this user is not authorized to perform this actionIllegalArgumentException
public void setType(Type type) throws PersistentStoreException, NoSuchObjectException
PoolTransaction
TypeManager
for details on types.setType
in interface PoolTransaction
setType
in class PoolImpl
type
- the type of pool this will becomePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic void setRuleType(Type ruleType) throws PersistentStoreException, NoSuchObjectException
PoolTransaction
setRuleType
in interface PoolTransaction
setRuleType
in class PoolImpl
ruleType
- the rule type of this poolPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic void setCreationDate(Timestamp creationDate) throws PersistentStoreException, NoSuchObjectException
PoolTransaction
setCreationDate
in interface PoolTransaction
setCreationDate
in class PoolImpl
creationDate
- the time when this pool was createdPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existTimestamp
public void setActivateDate(Timestamp activateDate) throws PersistentStoreException, NoSuchObjectException
PoolTransaction
setActivateDate
in interface PoolTransaction
setActivateDate
in class PoolImpl
activateDate
- the time when this pool will be activated on the webPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existTimestamp
public void setExpireDate(Timestamp expireDate) throws PersistentStoreException, NoSuchObjectException
PoolTransaction
setExpireDate
in interface PoolTransaction
setExpireDate
in class PoolImpl
expireDate
- the time when this pool will expire from the webPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic void setSectionId(int sectionId) throws PersistentStoreException, NoSuchObjectException
PoolTransaction
setSectionId
in interface PoolTransaction
setSectionId
in class PoolImpl
sectionId
- the id of the section that this pool belongs toPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic void setName(String pName)
PoolTransaction
setName
in interface PoolTransaction
setName
in class PoolImpl
pName
- the name of this poolpublic void setElements(Group pGroup)
IndexPageTransaction
setElements
in interface IndexPageTransaction
pGroup
- the layout-group to set.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- 2021 Escenic AS