public interface IOTransaction extends IOObject
IOObjects
in the Escenic system. All IOObjects
have
a read-only version and a corresponding transaction object that contains all methods that can modify this object.
This distinction is made so that only one person can modify an IOObject
at a time. A transaction object can be retrieved
by calling the IOObject.lock(neo.xredsys.api.IOLockKeeper)
method of the IOObject
you want to modify.IOAtom.ObjectType
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()
Creates a new object in the persistence layer.
|
boolean |
delete()
Removes an existing
IOObject from the persistence layer. |
IOObject |
getObject()
Deprecated.
no replacement
|
boolean |
release()
Releases the lock on this
IOObject . |
void |
setId(int id)
Deprecated.
no replacement
|
void |
setOwnerPublicationId(int v)
This method sets the id of the owner publication
|
boolean |
update()
Updates the database with the changes made on this
IOObject . |
breakAndLock, createTransaction, getChecksum, getHashKey, getId, getLockKeeper, getObjectType, getOwnerPublicationId, getProtectionDomain, getProtectionDomains, isLocked, isPreview, isValid, lock, lock, lock, lock, refresh
IOObject getObject()
boolean update() throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
IOObject
.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 checksFilterException
- if update was stopped by a TransactionFilter
boolean create() throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
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 checksFilterException
- if create was stopped by a TransactionFilter
boolean release() throws IllegalOperationException
IOObject
. A new lock must be retrieved when new modifications should be made
on this object.PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existIllegalOperationException
- if this user is not authorized to perform this actionboolean delete() throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
IOObject
from the persistence layer.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 checksFilterException
- if delete was stopped by a TransactionFilter
void setOwnerPublicationId(int v)
v
- the idvoid setId(int id)
id
- the id© 1998- 2018 Stibo DX