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, update
getLastAccessedTs, getLastAccessorId, setLastAccessorId
checkOnClient, checkOnServer, getClientContext, getLogChannel, getServerContext, isLogDebug, isLogVerbose, isOnClient, isOnServer, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setClientContext, setLogChannel, setServerContext
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
createEditDialog, instantiateOnServer
isOnClient, isOnServer, setClientContext, setServerContext
getClientContext
getServerContext
toDumpString, toString
getLastAccessedTs, getLastAccessorId, setLastAccessorId
public AbstractPersistentABO(C clientCtx)
public AbstractPersistentABO(S serverCtx)
public DBRecord getRecord()
public void setRecord(DBRecord record)
public javax.swing.Icon getRenderIcon()
getRenderIcon
in interface Renderable
getRenderIcon
in class AbstractABO<C extends ClientContext,S extends ServerContext,I extends AliveBusinessObject>
protected final PrimaryKey createPrimaryKey()
AbstractABO
createPrimaryKey
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.Exception
public I[] find(boolean withLock, SqlCondition cond) throws java.lang.Exception
java.lang.Exception
protected I createOnServer() throws java.lang.Exception
createOnServer
in class AbstractABO<C extends ClientContext,S extends ServerContext,I extends AliveBusinessObject>
java.lang.Exception
protected void updateOnServer() throws java.lang.Exception
AbstractABO
updateOnServer
in class AbstractABO<C extends ClientContext,S extends ServerContext,I extends AliveBusinessObject>
java.lang.Exception
protected boolean deleteOnServer() throws java.lang.Exception
AbstractABO
deleteOnServer
in class AbstractABO<C extends ClientContext,S extends ServerContext,I extends AliveBusinessObject>
java.lang.Exception
protected void overtakeABOValues(I inst)
AbstractABO
overtakeABOValues
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)
Dumpable
toDumpString
in interface Dumpable
toDumpString
in class AbstractABO<C extends ClientContext,S extends ServerContext,I extends AliveBusinessObject>
Copyright © 2014 EsprIT-Systems. All Rights Reserved.