public abstract class AbstractStorable extends AbstractNamedImpl implements Storable
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
AbstractStorable()
Deprecated.
Use specified Object Manager to create object instead of using constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains() |
Storable |
copy(Storable newParent) |
void |
doAfterCreate()
Actions after object creation.
|
void |
doAfterUpdate()
Actions after object updating.
|
void |
doBeforeRemove()
Actions before objet deletion.
|
boolean |
equals(Object o) |
Storable |
findRootObject(BigInteger projectId) |
Collection<UsageInfo> |
findUsages() |
void |
flush() |
String |
getDescription() |
Storable |
getExtendsParameters() |
Object |
getID() |
protected ObjectManager |
getManager() |
Object |
getNaturalId() |
Storable |
getParent() |
String |
getPrefix() |
Map<String,String> |
getStorableProp() |
StoreInformationDelegate |
getStoreInformationDelegate() |
Object |
getVersion() |
int |
hashCode() |
void |
move(Storable newParent) |
void |
performActionsForImportIntoAnotherProject(Map<BigInteger,BigInteger> replacementMap,
BigInteger projectId,
UUID projectUuid,
boolean needToUpdateProjectId,
boolean needToGenerateNewId)
Update projectId/generate new ID if it needs.
|
void |
performPostCopyActions(boolean statusOff)
While copying some types of objects we should set their statuses
to InActive (or Off) regardless of status of source object.
|
void |
performPostImportActions(BigInteger projectId,
BigInteger sessionId)
Perform post-import actions.
|
void |
performPostImportActionsParent(BigInteger projectId,
BigInteger sessionId) |
protected String |
printStackTrace() |
Collection<UsageInfo> |
remove() |
void |
replicate() |
Storable |
returnSimpleParent() |
void |
setDescription(String description) |
void |
setID(Object id) |
void |
setNaturalId(Object id) |
void |
setParent(Storable parent) |
void |
setPrefix(String prefix) |
void |
setStorableProp(Map<String,String> storableProp) |
void |
setVersion(Object version) |
void |
store() |
String |
toString() |
void |
update() |
void |
upStorableVersion() |
getName, setNameclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetProjectId, setProjectId@Deprecated public AbstractStorable()
public String getDescription()
getDescription in interface Storablepublic void setDescription(String description)
setDescription in interface Storablepublic void store()
throws StorageException
store in interface StorableStorageExceptionpublic void update()
protected String printStackTrace()
public Collection<UsageInfo> remove() throws StorageException
remove in interface StorableStorageExceptionpublic Storable copy(Storable newParent) throws CopyException
copy in interface StorableCopyExceptionpublic Collection<UsageInfo> findUsages()
findUsages in interface Storablepublic Storable returnSimpleParent()
returnSimpleParent in interface Storablepublic Storable getExtendsParameters()
getExtendsParameters in interface Storablepublic Object getID()
getID in interface Identified<Object>public void setID(Object id)
setID in interface Identified<Object>public Object getNaturalId()
getNaturalId in interface Storablepublic void setNaturalId(Object id)
setNaturalId in interface Storablepublic Object getVersion()
getVersion in interface OptimisticLockable<Object>public void setVersion(Object version)
setVersion in interface OptimisticLockable<Object>public StoreInformationDelegate getStoreInformationDelegate()
getStoreInformationDelegate in interface Storablepublic String toString()
toString in class AbstractNamedImplprotected ObjectManager getManager()
public void doAfterCreate()
public void doAfterUpdate()
public void doBeforeRemove()
public void performPostCopyActions(boolean statusOff)
StorableperformPostCopyActions in interface StorablestatusOff - boolean value to set.public void performPostImportActions(BigInteger projectId, BigInteger sessionId)
performPostImportActions in interface Storablepublic void performPostImportActionsParent(BigInteger projectId, BigInteger sessionId)
performPostImportActionsParent in interface Storablepublic Map<String,String> getStorableProp()
getStorableProp in interface Storablepublic void setStorableProp(Map<String,String> storableProp)
setStorableProp in interface Storablepublic Storable findRootObject(BigInteger projectId)
findRootObject in interface Storablepublic void upStorableVersion()
upStorableVersion in interface Storablepublic void performActionsForImportIntoAnotherProject(Map<BigInteger,BigInteger> replacementMap, BigInteger projectId, UUID projectUuid, boolean needToUpdateProjectId, boolean needToGenerateNewId)
performActionsForImportIntoAnotherProject in interface StorableCopyright © 2025. All rights reserved.