public interface AliveBusinessObject<C extends ClientContext,S extends ServerContext,A extends AliveBusinessObject> extends CrossPlatformObject<C,S>, LastAccessed, Dumpable, Renderable, DeepCloneable, RemoteLockable, java.lang.Comparable, PermissionControlled
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ABOChangeEvent.Listener l)
Note that each ABO is responsible for receiving and processing
its own change events from the server.
|
void |
copyABOValues(A inst)
Updates the values of this instance from another one.
|
A |
create()
Initializes this instance with values.
|
ABOEditDialog |
createEditDialog(javax.swing.JDialog parent,
ABOList list) |
boolean |
delete()
Deletes this ABO instance on the server.
|
void |
drop()
Deregisters the accessor from the access list.
|
A |
fetch(boolean withLock,
java.lang.Object... pkValues)
Fetches a new ABO instance by primary key values.
|
A[] |
findCachedABOs(ABOFilter filter)
Returns all cached ABOs of this type that match the filter condition.
|
PrimaryKey |
getPrimaryKey()
Returns the primary key of this instance.
|
int |
getUpdateCount()
Tells how many server side updates have yet been performed on this instance.
|
A |
instantiateOnServer(java.lang.Object... pkValues) |
boolean |
isCacheResident()
This flag causes the ABO to remain in the
ABOServerCache even if the
last accessing client drops it. |
boolean |
isOnline()
Tells whether this ABO is receiving events.
|
boolean |
isVisibleInClientMonitor()
Tells whether this ABO shows up in the clients ActivityMonitor
|
void |
refetch()
Re-fetches the values of this ABO instance and makes it online again.
|
void |
removeChangeListener(ABOChangeEvent.Listener l) |
void |
update()
Updates this instance with the current values.
|
void |
update(boolean isResetOnFailure)
Updates the ABO on the server.
|
isOnClient, isOnServer, setClientContext, setServerContext
getClientContext
getServerContext
toDumpString, toDumpString, toString, toString
deepClone
getLastAccessedTs, getLastAccessorId, setLastAccessorId
getRenderColor, getRenderIcon, getRenderText
getResourceName, getResourceType, isLockedByMe, setLocked
getPermissionDefinition
boolean isCacheResident()
ABOServerCache
even if the
last accessing client drops it. Is false by default.boolean isOnline()
A create() throws java.lang.Exception
java.lang.Exception
A fetch(boolean withLock, java.lang.Object... pkValues) throws java.lang.Exception
java.lang.Exception
void refetch() throws java.lang.Exception
java.lang.Exception
void update() throws java.lang.Exception
java.lang.Exception
update(boolean)
void update(boolean isResetOnFailure) throws java.lang.Exception
isResetOnFailure
- tells whether a reset should happen on update failurejava.lang.Exception
boolean delete() throws java.lang.Exception
AbstractPersistentABO
, then it is removed totally from the database.java.lang.Exception
void drop()
ABOChangeEvent
s any more.
If this was the last accessor and the ABO is not cache resistent it will be removed from the server cache.PrimaryKey getPrimaryKey()
void copyABOValues(A inst)
A instantiateOnServer(java.lang.Object... pkValues) throws java.lang.Exception
java.lang.Exception
ABOEditDialog createEditDialog(javax.swing.JDialog parent, ABOList list)
A[] findCachedABOs(ABOFilter filter) throws java.lang.Exception
java.lang.Exception
boolean isVisibleInClientMonitor()
void addChangeListener(ABOChangeEvent.Listener l)
void removeChangeListener(ABOChangeEvent.Listener l)
int getUpdateCount()
Copyright © 2014 EsprIT-Systems. All Rights Reserved.