|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class specifies the persistent data services APIs.
Supported API: false
Extendable: false
Method Summary | |
void |
closeConnection(WTConnection a_connection)
This method is used to clean up the specfied WTConnection prior to freeing the underlying JDBC connection. |
boolean |
containSequenceColumn(ClassInfo a_classInfo)
Supported API: false |
int |
execute(WTConnection a_connection,
AbstractBatchSpec a_batchSpec)
Executes the multi-row statement specification in the datastore. |
Object |
executeCall(WTConnection a_connection,
String a_procedureName,
StatementParameter[] a_argumentValues,
StatementParameter a_outputType)
This method executes a call to a database stored procedure. |
QueryResult |
expand(WTConnection a_connection,
Persistable a_obj,
String a_otherSideRole,
Class a_linkClass,
boolean a_onlyOtherSide,
AccessControllerProcessor a_accessControllerProcessor)
Expand the association from the object using the specified role and link class. |
QueryResult |
expand(WTConnection a_connection,
Persistable a_obj,
String a_otherSideRole,
QuerySpec a_querySpec,
boolean a_onlyOtherSide,
AccessControllerProcessor a_accessControllerProcessor)
Expand the association from the object using the specified role and QuerySpec. |
DataSource |
getDataSource()
Supported API: false |
int |
getDefaultTransactionIsolation()
Returns the default Transaction Isolation. |
DMLGenerator |
getDMLGenerator()
Supported API: false |
InputStream |
getLob(WTConnection a_connection,
LobLocator a_lobLocator)
Gets the data from the specified LOB as an InputStream. |
byte[] |
getLobAsByteArray(WTConnection a_connection,
Object a_blob)
Gets the Lob as a byte array. |
Object |
getLobAsObject(WTConnection a_connection,
Object a_blob)
Gets the Lob as an object. |
String |
getNextSequence(WTConnection a_connection,
String a_sequenceName)
Return the next value from the datastore sequence. |
PersistenceException |
handleException(Exception a_exception)
Handles an exception specific to the PDS instance. |
void |
initializeConnection(WTConnection a_connection)
This method is used to initialize the specfied WTConnection prior to making it available to use. |
void |
insert(WTConnection a_connection,
Object a_obj,
boolean a_reInsert)
Insert an object into the datastore Supported API: false |
int |
insertPageResults(WTConnection a_connection,
int a_offset,
int a_toIndex,
long a_sessionId,
List a_oidList,
int a_groupFromIndex)
Inserts results into the paging table of the datastore. |
boolean |
isLob(ColumnDescriptor a_columnDescriptor)
Indicates if this is a LOB column. |
boolean |
isLobLocator(ColumnDescriptor a_columnDescriptor)
Indicates if this is a LobLocator column. |
void |
lock(WTConnection a_connection,
Object a_class,
boolean a_wait)
Perform a datastore lock on an Class table. |
Persistable |
lock(WTConnection a_connection,
Persistable a_obj,
boolean a_wait)
Perform a datastore lock on an Object. |
void |
query(WTConnection a_connection,
StatementSpec a_statementSpec,
AccessControllerProcessor a_accessControllerProcessor,
ResultProcessor a_resultProcessor)
Query for objects in the datastore. |
Persistable |
refresh(WTConnection a_connection,
Persistable a_obj,
boolean a_inPlace,
AccessControllerProcessor a_accessControllerProcessor)
Refresh the object from the datastore. |
Persistable |
refresh(WTConnection a_connection,
Persistable a_obj,
boolean a_inPlace,
AccessControllerProcessor a_accessControllerProcessor,
boolean a_lock)
Refresh the object from the datastore. |
void |
remove(WTConnection a_connection,
Persistable a_obj)
Remove an object from the datastore. |
long |
setLob(WTConnection a_connection,
LobLocator a_lobLocator,
InputStream a_inputStream,
boolean a_updateChangeStamp)
Set the data in the InputStream to the specified LOB. |
void |
setLob(WTConnection a_connection,
LobLocator a_lobLocator,
InputStream a_inputStream,
long a_length,
boolean a_updateChangeStamp)
Set the data in the InputStream to the specified LOB. |
void |
setObjectAsLob(WTConnection a_connection,
LobLocator a_lobLocator,
Object a_object)
Set the object as LOB. |
void |
update(WTConnection a_connection,
Object a_obj,
boolean a_changeModifyDate)
Update an object in the datastore. |
Persistable |
update(WTConnection a_connection,
Persistable a_obj,
String a_attributeName,
ObjectMappable a_attribute)
Update an attribute of an object in the datastore (partial update). |
Method Detail |
public void insert(WTConnection a_connection, Object a_obj, boolean a_reInsert) throws PersistenceException
a_connection
- a_obj
- The object(s) to insert. The value can be either a Persisteable or Persistable[].a_reInsert
-
PersistenceException
public void remove(WTConnection a_connection, Persistable a_obj) throws PersistenceException
a_connection
- a_obj
-
PersistenceException
public void update(WTConnection a_connection, Object a_obj, boolean a_changeModifyDate) throws PersistenceException
a_connection
- a_obj
- The object(s) to update. The value can be either a Persisteable or Persistable[].a_changeModifyDate
-
PersistenceException
public Persistable update(WTConnection a_connection, Persistable a_obj, String a_attributeName, ObjectMappable a_attribute) throws PersistenceException
a_connection
- a_obj
- a_attributeName
- a_attribute
-
PersistenceException
public QueryResult expand(WTConnection a_connection, Persistable a_obj, String a_otherSideRole, Class a_linkClass, boolean a_onlyOtherSide, AccessControllerProcessor a_accessControllerProcessor) throws PersistenceException
a_connection
- a_obj
- a_otherSideRole
- a_linkClass
- a_onlyOtherSide
- a_accessControllerProcessor
-
PersistenceException
public QueryResult expand(WTConnection a_connection, Persistable a_obj, String a_otherSideRole, QuerySpec a_querySpec, boolean a_onlyOtherSide, AccessControllerProcessor a_accessControllerProcessor) throws PersistenceException
a_connection
- a_obj
- a_otherSideRole
- a_querySpec
- a_onlyOtherSide
- a_accessControllerProcessor
-
PersistenceException
public void query(WTConnection a_connection, StatementSpec a_statementSpec, AccessControllerProcessor a_accessControllerProcessor, ResultProcessor a_resultProcessor) throws PersistenceException
a_connection
- a_statementSpec
- a_accessControllerProcessor
- a_resultProcessor
- ResultProcessor to return objects in.
PersistenceException
public Persistable refresh(WTConnection a_connection, Persistable a_obj, boolean a_inPlace, AccessControllerProcessor a_accessControllerProcessor) throws PersistenceException
a_connection
- a_obj
- a_inPlace
- a_accessControllerProcessor
-
PersistenceException
public Persistable lock(WTConnection a_connection, Persistable a_obj, boolean a_wait) throws PersistenceException
a_connection
- a_obj
- a_wait
-
PersistenceException
public String getNextSequence(WTConnection a_connection, String a_sequenceName) throws PersistenceException
a_connection
- a_sequenceName
-
PersistenceException
public void setLob(WTConnection a_connection, LobLocator a_lobLocator, InputStream a_inputStream, long a_length, boolean a_updateChangeStamp) throws PersistenceException
a_connection
- a_lobLocator
- a_inputStream
- a_length
- a_updateChangeStamp
-
PersistenceException
public long setLob(WTConnection a_connection, LobLocator a_lobLocator, InputStream a_inputStream, boolean a_updateChangeStamp) throws PersistenceException
a_connection
- a_lobLocator
- a_inputStream
- a_updateChangeStamp
-
PersistenceException
public void setObjectAsLob(WTConnection a_connection, LobLocator a_lobLocator, Object a_object) throws PersistenceException
a_connection
- a_lobLocator
- a_object
-
PersistenceException
public InputStream getLob(WTConnection a_connection, LobLocator a_lobLocator) throws PersistenceException
a_connection
- a_lobLocator
-
PersistenceException
public PersistenceException handleException(Exception a_exception)
a_exception
-
public int getDefaultTransactionIsolation()
public byte[] getLobAsByteArray(WTConnection a_connection, Object a_blob) throws PersistenceException
a_connection
- a_blob
-
PersistenceException
public Object getLobAsObject(WTConnection a_connection, Object a_blob) throws PersistenceException
a_connection
- a_blob
-
PersistenceException
public DataSource getDataSource()
public DMLGenerator getDMLGenerator()
public int insertPageResults(WTConnection a_connection, int a_offset, int a_toIndex, long a_sessionId, List a_oidList, int a_groupFromIndex) throws PersistenceException
a_connection
- Connection to use to perform the operationa_offset
- a_toIndex
- a_sessionId
- Identification value to use to associate the results with a paging sessiona_oidList
- List of OID values. The elements are assumed to be an Object[]. For every OID, two array entries are assumed. The first is the object ID and the second is the classname.a_groupFromIndex
- Specifies an index into the OID list for grouping. The index is not absolute since each OID uses two array entries. For example, index 3 would specify the OIDarray entries 5 and 6.
PersistenceException
public Object executeCall(WTConnection a_connection, String a_procedureName, StatementParameter[] a_argumentValues, StatementParameter a_outputType) throws PersistenceException
a_connection
- Connection to use to perform the operationa_procedureName
- Specifies the database stored procedure to execute.a_argumentValues
- Array of input argument valuesa_outputType
- StatementParmeter object used to specify the return value. If null, then the stored procedure is assumed to be a procedure and a null value is returned.
PersistenceException
StatementParameter
public void initializeConnection(WTConnection a_connection) throws WTException
a_connection
- Connection to initialize.
WTException
public boolean isLob(ColumnDescriptor a_columnDescriptor)
a_columnDescriptor
-
public boolean isLobLocator(ColumnDescriptor a_columnDescriptor)
a_columnDescriptor
-
public void lock(WTConnection a_connection, Object a_class, boolean a_wait) throws PersistenceException
a_connection
- a_class
- a_wait
-
PersistenceException
public boolean containSequenceColumn(ClassInfo a_classInfo) throws PersistenceException
a_classInfo
-
PersistenceException
public Persistable refresh(WTConnection a_connection, Persistable a_obj, boolean a_inPlace, AccessControllerProcessor a_accessControllerProcessor, boolean a_lock) throws PersistenceException
a_connection
- a_obj
- a_inPlace
- a_accessControllerProcessor
- a_lock
-
PersistenceException
public int execute(WTConnection a_connection, AbstractBatchSpec a_batchSpec) throws WTException
a_connection
- The connection to use for the operation.a_batchSpec
- Specifies the statements to execute.
WTException
public void closeConnection(WTConnection a_connection) throws WTException
a_connection
- Connection to initialize.
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |