public abstract class IOObjectImpl extends Object implements IOObject, Comparable
IOAtom.ObjectType
Modifier and Type | Field and Description |
---|---|
protected org.apache.log4j.Category |
LOGGER
Deprecated.
|
protected static ThreadLocal<Boolean> |
sRefreshObjectBeforeLock
Deprecated.
|
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
Constructor and Description |
---|
IOObjectImpl()
Deprecated.
|
IOObjectImpl(int id)
Deprecated.
|
IOObjectImpl(int id,
int ownerPublicationId)
Deprecated.
|
IOObjectImpl(IOObject o)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
IOTransaction |
breakAndLock(IOLockKeeper keeper)
Deprecated.
Brutally aquire lock on this object, even if it is locked by someone else
|
int |
compareTo(Object o)
Deprecated.
|
IOTransaction |
createTransaction()
Deprecated.
This method returns a new IOTransaction object of the correct
type, for use by the LockManager only.
|
boolean |
equals(Object o)
Deprecated.
|
String |
getChecksum()
Deprecated.
Get the version for this object.
|
protected ProtectionDomain |
getDefaultProtectionDomain()
Deprecated.
|
IOHashKey |
getHashKey()
Deprecated.
Get a hash key for this object.
|
int |
getId()
Deprecated.
Get the id of this object
|
IOLockKeeper |
getLockKeeper()
Deprecated.
Get a reference to the IOLockKeeper that is currently locking this
object.
|
int |
getObjectType()
Deprecated.
Get the object type.
|
int |
getOwnerPublicationId()
Deprecated.
This method returns the id of the owner publication
|
ProtectionDomain |
getProtectionDomain()
Deprecated.
Retrieves the
ProtectionDomain of this object. |
Set<ProtectionDomain> |
getProtectionDomains()
Deprecated.
Retrieves all
ProtectionDomain s of this object |
protected abstract IOTransaction |
getTransactionObjectImpl()
Deprecated.
|
abstract String |
getUUID()
Deprecated.
|
boolean |
getValid()
Deprecated.
|
int |
hashCode()
Deprecated.
|
boolean |
isLocked()
Deprecated.
Check if this object is locked
|
boolean |
isPreview()
Deprecated.
Check if this is a preview object.
|
boolean |
isStillValid()
Deprecated.
|
boolean |
isValid()
Deprecated.
An object is valid if its id is not ID_INVALID
|
IOTransaction |
lock()
Deprecated.
Lock this object, and disregard any notifications with regard to the state of the lock.
|
IOTransaction |
lock(boolean pReloadIfNeeded)
Deprecated.
Lock this object.
|
IOTransaction |
lock(boolean pReloadIfNeeded,
IOLockKeeper keeper)
Deprecated.
Lock this object.
|
IOTransaction |
lock(IOLockKeeper keeper)
Deprecated.
Lock this object, specifying the object that is to be designated the "owner".
|
static String |
objectTypeAsString(int pObjectType)
Deprecated.
Returns the name of the object type.
|
protected void |
setId(int pId)
Deprecated.
|
protected void |
setOwnerPublicationId(int pId)
Deprecated.
|
void |
setValid(boolean valid)
Deprecated.
|
static int |
stringToObjectType(String pTypeName)
Deprecated.
Returns the object type for a given type name.
|
String |
toString()
Deprecated.
|
protected static final ThreadLocal<Boolean> sRefreshObjectBeforeLock
protected final org.apache.log4j.Category LOGGER
public IOObjectImpl()
public IOObjectImpl(IOObject o)
public IOObjectImpl(int id)
public IOObjectImpl(int id, int ownerPublicationId)
protected void setId(int pId)
protected void setOwnerPublicationId(int pId)
public String getChecksum()
IOObject
getChecksum
in interface IOObject
public IOLockKeeper getLockKeeper()
IOObject
getLockKeeper
in interface IOObject
public IOTransaction lock(IOLockKeeper keeper) throws IllegalArgumentException, IllegalOperationException
IOObject
lock
in interface IOObject
keeper
- Register this lock keeper with the lock.IllegalArgumentException
- if locking the object failsIllegalOperationException
- if locking the object failspublic IOTransaction lock() throws IllegalArgumentException, IllegalOperationException
IOObject
lock
in interface IOObject
IllegalArgumentException
- if locking the object failsIllegalOperationException
- if locking the object failspublic IOTransaction lock(boolean pReloadIfNeeded) throws IllegalArgumentException, IllegalOperationException
IOObject
lock
in interface IOObject
pReloadIfNeeded
- if true, stale objects will be reloaded from the database. If false, the method will throw an IllegalStateException
if the object is stale. Non-stale objects will remain unchangedIllegalArgumentException
- if locking the object failsIllegalOperationException
- if locking the object failspublic IOTransaction lock(boolean pReloadIfNeeded, IOLockKeeper keeper) throws IllegalArgumentException, IllegalOperationException, IllegalStateException
IOObject
lock
in interface IOObject
pReloadIfNeeded
- if true, stale objects will be reloaded from the database. If false, the method will throw an IllegalStateException
if the object is stale. Non-stale objects will remain unchangedkeeper
- the lock keeperIllegalArgumentException
- if locking the object failsIllegalOperationException
- if locking the object failsIllegalStateException
- if the object is stale and pReloadIfNeeded==falsepublic boolean isLocked()
IOObject
public IOTransaction breakAndLock(IOLockKeeper keeper) throws IllegalArgumentException, IllegalOperationException
IOObject
breakAndLock
in interface IOObject
keeper
- Register this lock keeper with the lock.IllegalArgumentException
IllegalOperationException
public final int getId()
IOObject
public int getObjectType()
IOObject
getObjectType
in interface IOObject
public final IOHashKey getHashKey()
IOObject
getHashKey
in interface IOObject
public void setValid(boolean valid)
public abstract String getUUID()
public boolean isStillValid()
protected abstract IOTransaction getTransactionObjectImpl()
public final IOTransaction createTransaction()
IOObject
IOObject.lock()
or
IOObject.lock(neo.xredsys.api.IOLockKeeper)
.createTransaction
in interface IOObject
public final boolean getValid()
public final boolean isValid()
IOObject
public int getOwnerPublicationId()
IOObject
getOwnerPublicationId
in interface IOObject
public static String objectTypeAsString(int pObjectType)
pObjectType
- the object typeIllegalArgumentException
- if there is no such object type.public static int stringToObjectType(String pTypeName)
pTypeName
- the name of the object typeIllegalArgumentException
- if there is no object type corresponding to the specified name.public int compareTo(Object o) throws ClassCastException
compareTo
in interface Comparable
ClassCastException
public boolean isPreview()
IOObject
public ProtectionDomain getProtectionDomain() throws PersistentStoreException, NoSuchObjectException
IOObject
ProtectionDomain
of this object.getProtectionDomain
in interface IOObject
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic Set<ProtectionDomain> getProtectionDomains()
IOObject
ProtectionDomain
s of this objectgetProtectionDomains
in interface IOObject
protected ProtectionDomain getDefaultProtectionDomain()
© 1998- 2018 Stibo DX