public abstract class AbstractPersistentABO<C extends ClientContext,S extends ServerContext,I extends AliveBusinessObject> extends AbstractABO<C,S,I>
| Constructor and Description |
|---|
AbstractPersistentABO(C clientCtx) |
AbstractPersistentABO(C clientCtx,
DBRecord record) |
AbstractPersistentABO(S serverCtx) |
AbstractPersistentABO(S serverCtx,
DBRecord record) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract DBRecord |
createNewRecord() |
protected I |
createOnServer() |
protected PrimaryKey |
createPrimaryKey()
The ABO class must create the PrimaryKey it will need by its own.
|
protected abstract DBRecord |
createRecord(java.lang.Object... pkValues) |
protected boolean |
deleteOnServer()
Is called on server side before the ABO is deleted and removed from the cache
|
boolean |
equals(java.lang.Object obj) |
I[] |
find(boolean withLock,
SqlCondition cond) |
DBRecord |
getRecord() |
javax.swing.Icon |
getRenderIcon() |
protected void |
overtakeABOValues(I inst)
Must be implemented by subclasses to copy their instance values
|
void |
setRecord(DBRecord record) |
DumpString |
toDumpString(DumpString s)
This method allows subclasses to add values to the existing DumpString of the superclass.
|
protected void |
updateOnServer()
Needs only be overridden to ensure persistence before ABO is replaced in the cache.
|
addChangeListener, clone, compareTo, copyABOValues, create, createChangeGate, createPermissionDefinition, deepClone, delete, drop, dropOnServer, fetch, findCachedABOs, fireABOInitialized, getPermissionDefinition, getPrimaryKey, getRenderColor, getRenderText, getResourceName, getResourceType, getUpdateCount, hashCode, isbeingAccessed, isCacheResident, isLockedByMe, isNumb, isOnline, isVisibleInClientMonitor, receivedUpdateEvent, refetch, removeChangeListener, setLocked, setNumb, toString, update, updategetLastAccessedTs, getLastAccessorId, setLastAccessorIdcheckOnClient, checkOnServer, getClientContext, getLogChannel, getServerContext, isLogDebug, isLogVerbose, isOnClient, isOnServer, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setClientContext, setLogChannel, setServerContextconfigureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcreateEditDialog, instantiateOnServerisOnClient, isOnServer, setClientContext, setServerContextgetClientContextgetServerContexttoDumpString, toStringgetLastAccessedTs, getLastAccessorId, setLastAccessorIdpublic AbstractPersistentABO(C clientCtx)
public AbstractPersistentABO(S serverCtx)
public DBRecord getRecord()
public void setRecord(DBRecord record)
public javax.swing.Icon getRenderIcon()
getRenderIcon in interface RenderablegetRenderIcon in class AbstractABO<C extends ClientContext,S extends ServerContext,I extends AliveBusinessObject>protected final PrimaryKey createPrimaryKey()
AbstractABOcreatePrimaryKey in class AbstractABO<C extends ClientContext,S extends ServerContext,I extends AliveBusinessObject>protected abstract DBRecord createNewRecord()
protected abstract DBRecord createRecord(java.lang.Object... pkValues) throws java.lang.Exception
java.lang.Exceptionpublic I[] find(boolean withLock, SqlCondition cond) throws java.lang.Exception
java.lang.Exceptionprotected I createOnServer() throws java.lang.Exception
createOnServer in class AbstractABO<C extends ClientContext,S extends ServerContext,I extends AliveBusinessObject>java.lang.Exceptionprotected void updateOnServer()
throws java.lang.Exception
AbstractABOupdateOnServer in class AbstractABO<C extends ClientContext,S extends ServerContext,I extends AliveBusinessObject>java.lang.Exceptionprotected boolean deleteOnServer()
throws java.lang.Exception
AbstractABOdeleteOnServer in class AbstractABO<C extends ClientContext,S extends ServerContext,I extends AliveBusinessObject>java.lang.Exceptionprotected void overtakeABOValues(I inst)
AbstractABOovertakeABOValues in class AbstractABO<C extends ClientContext,S extends ServerContext,I extends AliveBusinessObject>public boolean equals(java.lang.Object obj)
equals in class AbstractABO<C extends ClientContext,S extends ServerContext,I extends AliveBusinessObject>public DumpString toDumpString(DumpString s)
DumpabletoDumpString in interface DumpabletoDumpString in class AbstractABO<C extends ClientContext,S extends ServerContext,I extends AliveBusinessObject>Copyright © 2014 EsprIT-Systems. All Rights Reserved.