|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.pom.PersistentObjectManager
PersistentObjectManager provides datastore independent persistence interfaces.
This class brokers persist requests and forwards them to
a PersistentDataService to handle the actual persistence operation.
Supported API: false
Extendable: false
WTConnection
,
TransactionManager
,
DataServicesRegistry
Nested Class Summary | |
(package private) static interface |
PersistentObjectManager.FirePOMOperationListener
|
(package private) static class |
PersistentObjectManager.NotifyCreateListener
|
(package private) static class |
PersistentObjectManager.NotifyDeleteListener
|
(package private) static class |
PersistentObjectManager.NotifyLockListener
|
(package private) static class |
PersistentObjectManager.NotifyRefreshListener
|
(package private) static class |
PersistentObjectManager.NotifyUpdateListener
|
Constructor Summary | |
PersistentObjectManager()
PersistentObjectManager constructor |
Method Summary | |
static void |
addLocalOperationListener(POMOperationListener listener)
Add a listener for POM operations. |
void |
addOperationListener(POMOperationListener a_listener)
Add a listener for local POM operations. |
void |
addTransactionListener(TransactionListener listener)
Add a listener to the current transaction |
void |
commitTransaction(int aHandle)
Commit a transaction flushing changes to the datastore. |
private int[] |
computeGroupCount(int a_groupIndex,
Vector a_resultVector,
int a_range,
int a_offset)
|
WTConnection |
connect()
Connection to a datastore. |
void |
disconnect(WTConnection aConnection)
Disconnect from a datastore. |
int |
execute(AbstractBatchSpec a_batchSpec,
WTSet a_objects,
boolean a_fullObjects)
Executes the specified statements in from the datastore. |
Object |
executeCall(String a_procedureName,
Object[] a_argumentValues,
int[] a_argumentTypes,
Integer a_outputType)
This method executes a call to a database stored procedure. |
Object |
executeCall(String a_procedureName,
StatementParameter[] a_argumentValues,
StatementParameter a_outputType)
This method executes a call to a database stored procedure. |
QueryResult |
expand(Persistable a_source,
String a_otherSideRole,
Class a_linkClass,
boolean a_onlyOtherSide,
AccessControllerProcessor a_accessControllerProcessor)
Expand the given persistent object by retrieving the links from the datastore given the role that the object plays in the association and and the target association class. |
QueryResult |
expand(Persistable a_source,
String a_otherSideRole,
Class a_linkClass,
boolean a_onlyOtherSide,
AccessControllerProcessor a_accessControllerProcessor,
boolean a_sorted)
Expand the given persistent object by retrieving the links from the datastore given the role that the object plays in the association and and the target association class with added argument for sorting. |
QueryResult |
expand(Persistable a_source,
String a_otherSideRole,
QuerySpec a_querySpec,
boolean a_onlyOtherSide,
AccessControllerProcessor a_accessControllerProcessor)
Expand the given persistent object by retrieving the links from the datastore given the role that the object plays in the association, the target association class and the selection criteria provided. |
private QueryResult |
expandAllRoles(Persistable a_source,
Class a_linkClass,
QuerySpec a_querySpec,
boolean a_onlyOtherSide,
AccessControllerProcessor a_accessControllerProcessor,
boolean a_sorted)
|
(package private) static void |
firePOMOperationListener(List a_listeners,
Object a_obj,
boolean a_attributeUpdate,
PersistentObjectManager.FirePOMOperationListener a_fireListener)
|
(package private) static void |
firePOMOperationListener(List a_listeners,
Object a_obj,
PersistentObjectManager.FirePOMOperationListener a_fireListener)
|
(package private) static void |
freeUserConnection()
|
private static void |
freeUserConnection(WTConnection conn)
|
protected static String |
getDatastore(Class aClass)
|
InputStream |
getLob(LobLocator aLobLocator)
Get a LOB from the datastore as an input stream. |
String |
getNextSequence(String sequenceName)
Get the next Sequence number - sequence must already exist |
private static OIDPool |
getOidPool()
|
protected static PDSIfc |
getPds(Class aClass)
|
static PersistentObjectManager |
getPom()
|
private QuerySpec |
getRoleSpec(Persistable a_source,
QuerySpec a_querySpec,
RoleDescriptor a_role,
boolean a_onlyOtherSide)
|
static TransactionManager |
getTransactionManager()
Returns TransactionManager instance associated with this MethodContext. |
protected static TransactionManager |
getTransactionManager(WTConnection conn)
|
(package private) static WTConnection |
getUserConnection()
|
void |
insert(Persistable aPersistentObj)
Insert a persistent object in a datastore. |
private void |
insert(PersistableList a_list)
Insert a persistent objects in a datastore. |
void |
insert(Persistable aPersistentObj,
Timestamp createDate,
Timestamp modifyDate)
Insert a persistent object in a datastore. |
void |
insert(WTCollection objs,
Timestamp createDate,
Timestamp modifyDate)
Insert an array of persistent objects in a datastore. |
boolean |
isTransactionActive()
isTransactionActive |
boolean |
isTransactionActive(WTConnection conn)
isTransactionActive |
void |
lock(Object className)
Lock a persistent class table in the datastore. |
void |
lock(Object className,
boolean wait)
Lock a persistent object in the datastore. |
void |
lock(Persistable persistentObj)
Lock a persistent object in the datastore. |
void |
lock(Persistable persistentObj,
boolean wait)
Lock a persistent object in the datastore. |
protected static void |
makeNonPersistent(Persistable obj)
|
protected static void |
makePersistent(Persistable obj)
|
static long |
newId()
|
private static PersistableList |
newPersistableList(WTCollection objs,
Timestamp createDate,
Timestamp modifyDate)
|
Persistable |
query(ObjectIdentifier anOid)
Queries the datastore for a persistent object matching the given object id. |
Persistable |
query(ObjectIdentifier anOid,
boolean lock)
Queries the datastore for a persistent object matching the given object id. |
QueryResult |
query(PageableQuerySpec a_statementSpec,
AccessControllerProcessor a_accessControllerProcessor,
PagingSessionCache pagingSessionCache,
ResultProcessor a_resultProcessor)
Execute a query |
QueryResult |
query(PageableQuerySpec aStatementSpec,
PagingSessionCache pagingSessionCache,
AccessControllerProcessor anAccessControllerProcessor)
Execute a query |
QueryResult |
query(StatementSpec aStatementSpec,
AccessController anAccessController)
Execute a query |
QueryResult |
query(StatementSpec aStatementSpec,
AccessControllerProcessor anAccessControllerProcessor)
Execute a query |
QueryResult |
query(StatementSpec a_statementSpec,
AccessControllerProcessor a_accessControllerProcessor,
ResultProcessor a_resultProcessor)
Execute a query |
private void |
queryWithEnable(StatementSpec a_snapshotSpec,
boolean a_advancedQueryEnabled,
WTConnection a_connection,
AccessControllerProcessor a_accessControllerProcessor,
ResultProcessor a_resultProcessor)
|
Persistable |
refresh(Persistable aPersistentObj,
boolean aInPlace)
Queries the datastore to refresh a given persistent object. |
Persistable |
refresh(Persistable aPersistentObj,
boolean aInPlace,
boolean aLock)
Queries the datastore to refresh a given persistent object. |
private Persistable |
refresh(Persistable a_obj,
ObjectIdentifier a_oid,
boolean aInPlace,
boolean aLock)
Queries the datastore to refresh a given persistent object. |
void |
remove(Persistable aPersistentObj)
Remove a persistent object from the datastore. |
static void |
removeLocalOperationListener(POMOperationListener listener)
Remove a listener for POM operations. |
void |
removeOperationListener(POMOperationListener listener)
Remove a listener for POM operations. |
void |
removeTransactionListener(TransactionListener listener)
Remove a listener to the current transaction |
void |
rollbackTransaction()
Rollback the current transaction |
void |
rollbackTransaction(int aHandle)
Rollback a transaction cancelling pending changes to the datastore. |
void |
setTransactionIsolation(int mode)
Set transaction isolation |
private void |
sortFullPersistable(ObjectVectorIfc a_resultProcessor,
ObjectVectorIfc a_oidClassNameVec,
int a_offset,
int a_range,
int a_groupFromIndex)
|
void |
update(Persistable aPersistentObj,
boolean changeModifyDate)
Update a persistent object in the datastore. |
private void |
update(PersistableList a_list,
boolean a_changeModifyDate)
Update a persistent object in the datastore. |
void |
update(Persistable aPersistentObj,
String attrName,
ObjectMappable objAttr)
Update one of the attributes in a persistent object in the datastore. |
void |
update(WTCollection objs,
boolean changeModifyDate)
Update persistent objects in the datastore. |
long |
updateLob(Persistable anObj,
LobLocator aLobLocator,
InputStream aStream)
|
long |
updateLob(Persistable anObj,
LobLocator aLobLocator,
InputStream aStream,
boolean updateChangeStamp)
Update a LOB in the datastore from an input stream of unknown length. |
void |
updateLob(Persistable anObj,
LobLocator aLobLocator,
InputStream aStream,
long length)
|
void |
updateLob(Persistable anObj,
LobLocator aLobLocator,
InputStream aStream,
long length,
boolean updateChangeStamp)
Update a LOB in the datastore from an input stream. |
private void |
validateInsert(WTConnection aConnection)
|
private void |
validateLock(WTConnection aConnection)
|
private void |
validateRemove(WTConnection aConnection)
|
private RoleDescriptor[] |
validateRoles(ClassInfo a_sourceClassInfo,
LinkInfo a_linkInfo)
|
private void |
validateUpdate(WTConnection aConnection)
|
private boolean |
validLink(RoleDescriptor rds,
LinkInfo linkInfo)
|
private void |
verifyTransaction(WTConnection aConnection)
|
private int |
waitForBackground(int a_fetchAttemp,
WTConnection a_connection)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String CLASSNAME
public static final boolean DEBUG
private static final DebugWriter LOG
private static OIDPool oidPool
private static final String RESOURCE
private static final int[] TARGET_FROM_INDEX
private static final int[] LINK_FROM_INDEX
static final String ROLE_A
static final String ROLE_B
private static final ConstantExpression ROLE_A_CONSTANT
private static final ConstantExpression ROLE_B_CONSTANT
private static final ClassAttribute TARGET_CLASSNAME
private static final ClassAttribute TARGET_ID
private static final ClassAttribute LINK_ID
private static final AccessController NOOP_ACCESS_CONTROLLER
private static final AccessController STANDARD_ACCESS_CONTROLLER
private static final String sortName
private static final int INVALID_PAGINGSESSION
private static final HashMap VALID_LINK_ROLE_MAP
public static final Object OID_REUSE
static final PersistentObjectManager.NotifyCreateListener CREATE
static final PersistentObjectManager.NotifyUpdateListener UPDATE
static final PersistentObjectManager.NotifyDeleteListener DELETE
static final PersistentObjectManager.NotifyLockListener LOCK
static final PersistentObjectManager.NotifyRefreshListener REFRESH
private ArrayList operationListeners
Constructor Detail |
public PersistentObjectManager() throws POMInitException
POMInitException
- Occurs if JDBC driver or native method library
or properties file cannot be loadedMethod Detail |
public static PersistentObjectManager getPom() throws POMInitException
POMInitException
public WTConnection connect() throws PersistenceException
PersistenceException
- Occurs if the persistent object manager cannot
connect to a datastore.public void disconnect(WTConnection aConnection) throws DatastoreException
DatastoreException
- Occurs if the persistent object manager cannont
disconnect from the datastore.static WTConnection getUserConnection() throws DatastoreException
DatastoreException
static void freeUserConnection() throws DatastoreException
DatastoreException
private static void freeUserConnection(WTConnection conn) throws DatastoreException
DatastoreException
public static TransactionManager getTransactionManager() throws PersistenceException
PersistenceException
protected static TransactionManager getTransactionManager(WTConnection conn) throws PersistenceException
PersistenceException
public void commitTransaction(int aHandle) throws PersistenceException
commitTransaction
in interface POMIfc
aHandle
- The transaction identifier provided by
the startTransaction method.
PersistenceException
- Occurs if the persistent object manager cannot
end the transaction.public void rollbackTransaction(int aHandle) throws PersistenceException
rollbackTransaction
in interface POMIfc
aHandle
- The transaction identifier provided by
the startTransaction method.
PersistenceException
- Occurs if the persistent object manager cannot
drop the transaction.public void rollbackTransaction() throws PersistenceException
POMIfc
rollbackTransaction
in interface POMIfc
PersistenceException
- Occurs if the persistent object manager cannot
drop the transaction.public void addTransactionListener(TransactionListener listener) throws PersistenceException
addTransactionListener
in interface POMIfc
PersistenceException
- Occurs if the persistent object manager cannot
find an active transaction.public void removeTransactionListener(TransactionListener listener) throws PersistenceException
removeTransactionListener
in interface POMIfc
PersistenceException
- Occurs if the persistent object manager cannot
find an active transaction.public void setTransactionIsolation(int mode) throws PersistenceException
mode
- TRANSACTION_READ_UNCOMMITTED
TRANSACTION_READ_COMMITTED
TRANSACTION_REPEATABLE_READ
TRANSACTION_SERIALIZABLE
PersistenceException
- if a database-access error occurspublic boolean isTransactionActive() throws PersistenceException
PersistenceException
- if a database-access error occurspublic boolean isTransactionActive(WTConnection conn) throws PersistenceException
PersistenceException
- if a database-access error occurspublic void insert(Persistable aPersistentObj) throws PersistenceException
insert
in interface POMIfc
aPersistentObj
- The object to be made persistent.
UnsupportedPDSException
- if no PDS defined
ObjectIsPersistentException
- if object already persisent
DatastoreException
- if database error
WTIntrospectionException
- if introspection error
PersistenceException
- Occurs if the persistent object manager cannot
insert the persistent object.public void insert(Persistable aPersistentObj, Timestamp createDate, Timestamp modifyDate) throws PersistenceException
insert
in interface POMIfc
createDate
- explicit create Timestamp to set
(if null, current time is used)modifyDate
- explicit modify Timestamp to set
(if null, current time is used)aPersistentObj
- The object to be made persistent.
PersistenceException
- Occurs if the persistent object manager
cannot insert the persistent object.public void insert(WTCollection objs, Timestamp createDate, Timestamp modifyDate) throws WTException
objs
- The objects to be made persistent. The type of each
object in the array must be the same.createDate
- explicit create Timestamp to set (if null, current time is used)modifyDate
- explicit modify Timestamp to set (if null, current time is used)
PersistenceException
- Occurs if the persistent object manager
cannot insert any of the persistent objects.
WTException
public void remove(Persistable aPersistentObj) throws PersistenceException
remove
in interface POMIfc
aPersistentObj
- The persistent object to be removed.
UnsupportedPDSException
- if no PDS defined
ObjectNotPersistentException
- if object is not persisent
ObjectIsStaleException
- if object was concurrently changed
DatastoreException
- if database error
WTIntrospectionException
- if introspection error
PersistenceException
- Occurs if the persistent object manager cannot
remove the persistent object.public int execute(AbstractBatchSpec a_batchSpec, WTSet a_objects, boolean a_fullObjects) throws WTException
a_batchSpec
- Specifies the objects to removea_objects
- set of object OIDs that are being affected. This may be
null.a_fullObjects
- indicates if a_objects contains full Persistables
WTException
public void update(Persistable aPersistentObj, boolean changeModifyDate) throws PersistenceException
update
in interface POMIfc
aPersistentObj
- The persistent object to be modified.changeModifyDate
- boolean
UnsupportedPDSException
- if no PDS defined
ObjectNotPersistentException
- if object is not persisent
ObjectIsStaleException
- if object was concurrently changed
DatastoreException
- if database error
WTIntrospectionException
- if introspection error
PersistenceException
- Occurs if the persistent object manager cannot
update the persistent object.public void update(WTCollection objs, boolean changeModifyDate) throws WTException
changeModifyDate
- boolean says whether to change
business modify stamp or not
WTException
- occurs if the persistent object manager cannot
update the persistent object.public void update(Persistable aPersistentObj, String attrName, ObjectMappable objAttr) throws PersistenceException
update
in interface POMIfc
aPersistentObj
- The persistent object to be modified.attrName
- Name of the attributeobjAttr
- The attribute
UnsupportedPDSException
- if no PDS defined
ObjectNotPersistentException
- if object is not persisent
ObjectIsStaleException
- if object was concurrently changed
DatastoreException
- if database error
WTIntrospectionException
- if introspection error
PersistenceException
- Occurs if the persistent object manager cannot
update the persistent object.public void lock(Persistable persistentObj) throws PersistenceException
lock
in interface POMIfc
persistentObj
- The persistent objects to be locked.
PersistenceException
- Occurs if the persistent object manager cannot
lock the persistent object.public void lock(Persistable persistentObj, boolean wait) throws PersistenceException
lock
in interface POMIfc
persistentObj
- The persistent objects to be locked.wait
- boolean whether to wait for lock or not
PersistenceException
- Occurs if the persistent object manager cannot
lock the persistent object.public void lock(Object className) throws PersistenceException
className
- The persistent class name/Class to be locked.
PersistenceException
- Occurs if the persistent object manager cannot
lock the persistent object.public void lock(Object className, boolean wait) throws PersistenceException
className
- The persistent class name/Class to be locked.wait
- boolean whether to wait for lock or not
PersistenceException
- Occurs if the persistent object manager cannot
lock the persistent object.public QueryResult query(StatementSpec aStatementSpec, AccessController anAccessController) throws PersistenceException
PersistenceException
- Occurs if the persistent object manager cannot
execute the query.public QueryResult query(StatementSpec aStatementSpec, AccessControllerProcessor anAccessControllerProcessor) throws PersistenceException
query
in interface POMIfc
aStatementSpec
- - selection criteria
PersistenceException
- Occurs if the persistent object manager cannot
execute the query.public QueryResult query(PageableQuerySpec aStatementSpec, PagingSessionCache pagingSessionCache, AccessControllerProcessor anAccessControllerProcessor) throws PersistenceException
PersistenceException
- Occurs if the persistent object manager cannot
execute the query.public QueryResult query(StatementSpec a_statementSpec, AccessControllerProcessor a_accessControllerProcessor, ResultProcessor a_resultProcessor) throws PersistenceException
PersistenceException
- Occurs if the persistent object manager cannot
execute the query.public QueryResult query(PageableQuerySpec a_statementSpec, AccessControllerProcessor a_accessControllerProcessor, PagingSessionCache pagingSessionCache, ResultProcessor a_resultProcessor) throws PersistenceException
PersistenceException
- Occurs if the persistent object manager cannot
execute the query.public InputStream getLob(LobLocator aLobLocator) throws PersistenceException
getLob
in interface POMIfc
aLobLocator
- the lob locator
PersistenceException
- Occurs if the persistent object manager cannot
retrieve the persistent object.public void updateLob(Persistable anObj, LobLocator aLobLocator, InputStream aStream, long length, boolean updateChangeStamp) throws PersistenceException
updateLob
in interface POMIfc
aLobLocator
- the stream to connectaStream
- the input stream to storelength
- the length of the input streamupdateChangeStamp
- t/fanObj
- the object holding the LOB
PersistenceException
- Occurs if the persistent object manager cannot
store the persistent object.public void updateLob(Persistable anObj, LobLocator aLobLocator, InputStream aStream, long length) throws PersistenceException
PersistenceException
public long updateLob(Persistable anObj, LobLocator aLobLocator, InputStream aStream, boolean updateChangeStamp) throws PersistenceException
updateLob
in interface POMIfc
aLobLocator
- the stream to connectaStream
- the input stream to storeupdateChangeStamp
- t/fanObj
- the object holding the LOB
PersistenceException
- Occurs if the persistent object manager cannot
store the persistent object.public long updateLob(Persistable anObj, LobLocator aLobLocator, InputStream aStream) throws PersistenceException
PersistenceException
public Persistable query(ObjectIdentifier anOid) throws PersistenceException
PersistenceException
public Persistable query(ObjectIdentifier anOid, boolean lock) throws PersistenceException
PersistenceException
public Persistable refresh(Persistable aPersistentObj, boolean aInPlace) throws PersistenceException
aPersistentObj
- persistent objectaInPlace
- indicates if the object is refreshed in place
PersistenceException
- if an introspection errorpublic Persistable refresh(Persistable aPersistentObj, boolean aInPlace, boolean aLock) throws PersistenceException
aPersistentObj
- persistent objectaInPlace
- indicates if the object is refreshed in placeaLock
- indicates if the object should be locked as part of the refresh
PersistenceException
- if an introspection errorpublic QueryResult expand(Persistable a_source, String a_otherSideRole, Class a_linkClass, boolean a_onlyOtherSide, AccessControllerProcessor a_accessControllerProcessor) throws WTException
PersistenceException
- Occurs if the persistent object manager cannot
expand object in the datastore.
WTException
public QueryResult expand(Persistable a_source, String a_otherSideRole, Class a_linkClass, boolean a_onlyOtherSide, AccessControllerProcessor a_accessControllerProcessor, boolean a_sorted) throws WTException
a_sorted
- - whether to sort in the order of Object_identifier.id
PersistenceException
- Occurs if the persistent object manager cannot
expand object in the datastore.
WTException
public QueryResult expand(Persistable a_source, String a_otherSideRole, QuerySpec a_querySpec, boolean a_onlyOtherSide, AccessControllerProcessor a_accessControllerProcessor) throws WTException
PersistenceException
- Occurs if the persistent object manager cannot
expand object in the datastore.
WTException
private Persistable refresh(Persistable a_obj, ObjectIdentifier a_oid, boolean aInPlace, boolean aLock) throws PersistenceException
aInPlace
- indicates if the object is refreshed in placeaLock
- indicates if the object should be locked as part of the refresh
PersistenceException
- if an introspection errorprivate QueryResult expandAllRoles(Persistable a_source, Class a_linkClass, QuerySpec a_querySpec, boolean a_onlyOtherSide, AccessControllerProcessor a_accessControllerProcessor, boolean a_sorted) throws WTException
WTException
private QuerySpec getRoleSpec(Persistable a_source, QuerySpec a_querySpec, RoleDescriptor a_role, boolean a_onlyOtherSide) throws WTException
WTException
public Object executeCall(String a_procedureName, Object[] a_argumentValues, int[] a_argumentTypes, Integer a_outputType) throws PersistenceException
a_procedureName
- Specifies the database stored procedure to execute.a_argumentValues
- Array of input argument valuesa_argumentTypes
- Array of input argument types (java.sql.Types)a_outputType
- Type of the stored procedures return value (java.sql.Types).
If null, then the stored procedure is assumed to be a procedure and a null value is returned.
PersistenceException
Types
public Object executeCall(String a_procedureName, StatementParameter[] a_argumentValues, StatementParameter a_outputType) throws PersistenceException
a_procedureName
- Specifies the database stored procedure to execute.a_argumentValues
- Array of input argument valuesa_outputType
- Type of the stored procedures return value (java.sql.Types).
If null, then the stored procedure is assumed to be a procedure and a null value is returned.
PersistenceException
private boolean validLink(RoleDescriptor rds, LinkInfo linkInfo) throws WTIntrospectionException
WTIntrospectionException
private RoleDescriptor[] validateRoles(ClassInfo a_sourceClassInfo, LinkInfo a_linkInfo) throws WTIntrospectionException
WTIntrospectionException
public void addOperationListener(POMOperationListener a_listener) throws PersistenceException
PersistenceException
public void removeOperationListener(POMOperationListener listener) throws PersistenceException
PersistenceException
public static void addLocalOperationListener(POMOperationListener listener) throws PersistenceException
PersistenceException
public static void removeLocalOperationListener(POMOperationListener listener) throws PersistenceException
PersistenceException
private void validateRemove(WTConnection aConnection) throws PersistenceException
PersistenceException
private void validateInsert(WTConnection aConnection) throws PersistenceException
PersistenceException
private void validateUpdate(WTConnection aConnection) throws PersistenceException
PersistenceException
private void validateLock(WTConnection aConnection) throws PersistenceException
PersistenceException
private void verifyTransaction(WTConnection aConnection) throws PersistenceException
PersistenceException
public String getNextSequence(String sequenceName) throws PersistenceException
getNextSequence
in interface POMIfc
PersistenceException
public static long newId() throws PersistenceException
PersistenceException
private static OIDPool getOidPool()
protected static PDSIfc getPds(Class aClass) throws UnsupportedPDSException
UnsupportedPDSException
protected static String getDatastore(Class aClass)
protected static void makeNonPersistent(Persistable obj)
protected static void makePersistent(Persistable obj)
private void insert(PersistableList a_list) throws WTException
a_list
- List of Persistables to update.
WTException
- occurs if the persistent object manager
cannot insert any of the the persistent objects.private void update(PersistableList a_list, boolean a_changeModifyDate) throws WTException
a_list
- List of Persistables to update.a_changeModifyDate
- indicates if the modifyStamp should be updated.
WTException
- occurs if the persistent object manager
cannot insert any of the the persistent objects.private void queryWithEnable(StatementSpec a_snapshotSpec, boolean a_advancedQueryEnabled, WTConnection a_connection, AccessControllerProcessor a_accessControllerProcessor, ResultProcessor a_resultProcessor) throws WTException
WTException
private int[] computeGroupCount(int a_groupIndex, Vector a_resultVector, int a_range, int a_offset)
private void sortFullPersistable(ObjectVectorIfc a_resultProcessor, ObjectVectorIfc a_oidClassNameVec, int a_offset, int a_range, int a_groupFromIndex)
private static PersistableList newPersistableList(WTCollection objs, Timestamp createDate, Timestamp modifyDate) throws WTException
WTException
private int waitForBackground(int a_fetchAttemp, WTConnection a_connection) throws WTException
WTException
static void firePOMOperationListener(List a_listeners, Object a_obj, boolean a_attributeUpdate, PersistentObjectManager.FirePOMOperationListener a_fireListener) throws PersistenceException
PersistenceException
static void firePOMOperationListener(List a_listeners, Object a_obj, PersistentObjectManager.FirePOMOperationListener a_fireListener) throws PersistenceException
PersistenceException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |