|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.base.Service
com.ibm.btt.services.BTTServiceRequester
com.ibm.btt.services.PooledServiceRequester
com.ibm.btt.services.jdbcservicesinfra.JDBCService
com.ibm.btt.services.jdbcjournalservice.Journal
com.ibm.btt.services.jdbcjournalservice.JDBCJournal
The JDBCJournal class is a concrete class that represents a Financial Electronic Journal to provide an implementation of the Journal abstraction. The JDBCJournal uses the JDBC interface to access the database and can be used with any DBMS providing an implementation of this interface.
Field Summary |
---|
Fields inherited from class com.ibm.btt.services.jdbcjournalservice.Journal |
---|
COMPID |
Fields inherited from class com.ibm.btt.services.jdbcservicesinfra.JDBCService |
---|
addPstmt, addString, autoCommit, connectionProperties, databaseConnection, databaseURL, dataSourceName, metaData, password, poolName, sharedConnection, STMT_POOL_SIZE_DEFAULT, stmtPool, stmtPoolSize, updateString, user, waitRetry |
Fields inherited from class com.ibm.btt.services.PooledServiceRequester |
---|
poolable, poolId |
Fields inherited from class com.ibm.btt.base.Service |
---|
externalizer, name |
Constructor Summary | |
---|---|
JDBCJournal()
|
Method Summary | |
---|---|
int |
addRecord(Context aContext,
FormatElement aHashtableFormat)
Calls the formatter format method by passing aContext as an argument. |
int |
addRecord(Context aContext,
java.lang.String aFormatName)
Instantiates the journal format with the name aFormatName and calls its format method by passing aContext as an argument. |
int |
addRecord(Hashtable aDataHashtable)
Inserts the data in aDataHashtable as a new row in the current journal table. |
void |
close()
Closes the journal (sets its status to inactive). |
void |
commit()
Commits all changes to the database. |
void |
connect(java.lang.String anUser,
java.lang.String aPwd)
Disconnect database. |
void |
disconnect()
Disconnect database. |
int |
getLastRecordNumberFromTable()
Returns the lastRecordNumber from control table. |
void |
open(java.lang.String anEntity,
int aGeneration)
Opens the journal service with an entity and a generation number |
void |
open(java.lang.String aSchemaName,
java.lang.String anEntity,
int aGeneration)
Opens the journal service with a specific shema, an entity, and a generation number. |
void |
openForEntity(java.lang.String anEntity)
Opens the current journal table for anEntity. |
void |
openForEntity(java.lang.String anEntity,
java.lang.String aSchemaName)
Decides which is going to be the current journal table for anEntity. |
void |
openForSchema(java.lang.String aSchemaName)
Decides which is going to be the current journal table. |
void |
openOnCurrentTable()
Selects the already selected table generation for the current schema as the current journal table. |
void |
openOnNextTable()
Selects the next available table generation for the current schema as the current journal table. |
int |
queryLastRecordNumber()
Returns the last record number in the current journal table. |
Hashtable |
retrieveLastRecord()
Retrieves the last record of the current journal table. |
void |
retrieveLastRecord(Context aContext,
FormatElement aHashtableFormat)
Retrieves the last record of the current journal table by calling the retrieveRecord(int, Context, FormatElement) method with the last record number as the first parameter. |
void |
retrieveLastRecord(Context aContext,
java.lang.String aFormatName)
Retrieves the last record of the current journal table by calling the retrieveRecord(int, Context, String) method with the last record number as first parameter. |
Vector |
retrieveLastRecords(int aRecordCount)
Returns a vector with aNumber or any number between 0 and aNumber of record Hashtables. |
void |
retrieveLastRecords(int aRecordCount,
Context aContext,
FormatElement anOutputFormat)
Retrieves the last aNumber records from the journal table and unformats them into the aContext using the anOutputFormat formatter. |
void |
retrieveLastRecords(int aRecordCount,
Context aContext,
java.lang.String anOutputFormatName)
Retrieves the last aNumber records from the journal table and unformats them into the aContext using the named anOutputFormatName formatter. |
Hashtable |
retrieveRecord(int aRecordNumber)
Retrieves the record with the record identification in the database equal to aRecordNumber. |
void |
retrieveRecord(int aRecordNumber,
Context aContext,
FormatElement aHashtableFormat)
Retrieves the record with record identification in the database equal to aRecordNumber. |
void |
retrieveRecord(int aRecordNumber,
Context aContext,
java.lang.String aFormatName)
Retrieves the record with record identification in the database equal to aRecordNumber. |
Vector |
retrieveRecords(java.lang.String aSearchCondition)
Retrieves all the records within the current journal that match aSearchCondition. |
void |
retrieveRecords(java.lang.String aSearchCondition,
Context aContext,
FormatElement anOutputFormat)
Retrieves all the records within the current journal that match aSearchCondition. |
void |
retrieveRecords(java.lang.String aSearchCondition,
Context aContext,
java.lang.String anOutputFormatName)
Retrieves all the records within the current journal that match aSearchCondition. |
Vector |
retrieveRecords(java.lang.String aSearchCondition,
Vector aColumnsVector)
Retrieves the columns in aColumnsVector of all the records within the current journal that match aSearchCondition. |
void |
retrieveRecords(java.lang.String aSearchCondition,
Vector aColumnsVector,
Context aContext,
FormatElement anOutputFormat)
Retrieves the columns in aColumnsVector of all the records within the current journal that match aSearchCondition. |
void |
retrieveRecords(java.lang.String aSearchCondition,
Vector aColumnsVector,
Context aContext,
java.lang.String anOutputFormatName)
Retrieves the columns in aColumnsVector of all the records within the current journal that match aSearchCondition. |
void |
rollback()
Rolls back all database changes. |
void |
setEntity(java.lang.String anEntityName)
Sets the entity property value to anEntityName. |
int |
updateLastRecord(Context aContext,
FormatElement aHashtableFormat)
Updates the last record of the current journal table by calling the updateRecords(String, Context, FormatElement) method. |
int |
updateLastRecord(Context aContext,
FormatElement aHashtableFormat,
Vector aColumnsVector)
Updates the columns specified in aColumnsVector for the last record of the current journal table by calling the updateRecords(String, Context, FormatElement, Vector) method. |
int |
updateLastRecord(Context aContext,
java.lang.String aFormatName)
Updates the last record of the current journal table by calling the updateRecords(String, Context, String) method. |
int |
updateLastRecord(Context aContext,
java.lang.String aFormatName,
Vector aColumnsVector)
Updates the columns in aColumnsVector for the last record of the current journal table by calling the updateRecords(String, Context, String, Vector) method. |
int |
updateLastRecord(Hashtable aDataHashtable)
Updates the last record of the current journal table with the data in aDataHashtable. |
int |
updateLastRecord(Hashtable aDataHashtable,
Vector aColumnsVector)
Updates the columns in aColumnsVector for the last record of the current journal table with the data in aDataHashtable. |
int |
updateRecord(int aRecordNumber,
Context aContext,
FormatElement aHashtableFormat)
Updates the record identified by aRecordNumber within the journal table by calling the updateRecords(String, Context, FormatElement) method. |
int |
updateRecord(int aRecordNumber,
Context aContext,
FormatElement aHashtableFormat,
Vector aColumnsVector)
Updates the columns in aColumnsVector for the record identified by aRecordNumber within the journal table by calling the updateRecords(String, Context, FormatElement, Vector) method. |
int |
updateRecord(int aRecordNumber,
Context aContext,
java.lang.String aFormatName)
Updates the record identified by aRecordNumber within the journal table by calling the updateRecords(String, Context, String) method. |
int |
updateRecord(int aRecordNumber,
Context aContext,
java.lang.String aFormatName,
Vector aColumnsVector)
Updates the columns in aColumnsVector for the record identified by aRecordNumber within the journal table by calling the updateRecords(String, Context, String, Vector) method. |
int |
updateRecord(int aRecordNumber,
Hashtable aDataHashtable)
Updates the record identified by aRecordNumber within the journal table with the data provided in aDataHashtable by calling the updateRecords(String, Hashtable) method. |
int |
updateRecord(int aRecordNumber,
Hashtable aDataHashtable,
Vector aColumnsVector)
Updates the columns specified in aColumnsVector, for the record identified by aRecordNumber within the journal table, with the data provided in aDataHashtable. |
int |
updateRecords(java.lang.String aSearchCondition,
Context aContext,
FormatElement aHashtableFormat)
Updates all the current journal table records that match the search condition passed as an argument, with the data obtained by formatting aContext with the journal aHashtableFormat formatter. |
int |
updateRecords(java.lang.String aSearchCondition,
Context aContext,
FormatElement aHashtableFormat,
Vector aColumnsVector)
Updates the columns specified in aColumnsVector for all the current journal table records that match the search condition passed as an argument, with the data obtained by formatting aContext with the journal formatter aHashtableFormat. |
int |
updateRecords(java.lang.String aSearchCondition,
Context aContext,
java.lang.String aFormatName)
Updates all the current journal table records that match the search condition passed as an argument, with the data obtained by formatting aContext with the formatter defined by aFormatName. |
int |
updateRecords(java.lang.String aSearchCondition,
Context aContext,
java.lang.String aFormatName,
Vector aColumnsVector)
Updates the columns specified in aColumnsVector for all the current journal table records that match the search condition passed as an argument, with the data obtained by formatting aContext with the formatter defined by aFormatName. |
int |
updateRecords(java.lang.String aSearchCondition,
Hashtable aDataHashtable)
Updates all the current journal table records that match the search condition with the aDataHashtable data. |
int |
updateRecords(java.lang.String aSearchCondition,
Hashtable aDataHashtable,
Vector aColumnsVector)
Updates the columns specified in aColumnsVector with the data provided in aDataHashtable for the records matching the search condition within the journal table. |
Methods inherited from class com.ibm.btt.services.jdbcjournalservice.Journal |
---|
initialize, open, reset, terminate |
Methods inherited from class com.ibm.btt.services.jdbcservicesinfra.JDBCService |
---|
connect, getAutoCommit, getDataSourceName, getPassword, getUser, isConnected, isWaitRetry, setAutoCommit, setDataSourceName, setPassword, setUser, setWaitRetry, verifyConnection |
Methods inherited from class com.ibm.btt.services.PooledServiceRequester |
---|
getGrantTime, getPoolable, getPoolable, getPoolId, getServiceID, grantServiceID, initializeFrom, initializeFrom, processRequest, releaseOrphan, releaseOrphan, releasePoolable, releaseServiceRequester, setGrantTime, setPoolId |
Methods inherited from class com.ibm.btt.services.BTTServiceRequester |
---|
getCachingEnabled, getInactiveTimeout, getLastAccess, getServiceInvocation, getServiceType, HashMapToHashtable, newInstance, setCachingEnabled, setInactiveTimeout, setLastAccess, setServiceID, setServiceInvocation, setServiceType |
Methods inherited from class com.ibm.btt.base.Service |
---|
externalizer, getExternalizer, getName, getTagName, readExternal, readExternal, readObject, removeExternal, setExternalizer, setName, toString, toStrings, toTags, writeExternal, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.btt.services.jdbcjournalservice.JournalService |
---|
open |
Methods inherited from interface com.ibm.btt.services.jdbcservicesinfra.DatabaseConnect |
---|
getDataSourceName, isConnected, isWaitRetry, setDataSourceName, setWaitRetry |
Constructor Detail |
public JDBCJournal()
Method Detail |
public int addRecord(Context aContext, FormatElement aHashtableFormat) throws DSEInvalidArgumentException, DSEInvalidRequestException, DSEInternalErrorException, DSESQLException
addRecord
in class Journal
aContext
- com.ibm.dse.base.ContextaHashtableFormat
- com.ibm.btt.formatter.client.FormatElement
DSEInvalidArgumentException
- if the argument(s) is(are) not valid
DSEInvalidRequestException
- if the request is not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic int addRecord(Context aContext, java.lang.String aFormatName) throws DSEInvalidArgumentException, DSEInvalidRequestException, DSEInternalErrorException, DSESQLException
addRecord
in class Journal
aContext
- com.ibm.dse.base.Context, the context where the data isaFormatName
- java.lang.String, the format name of the formatter to be used
DSEInvalidArgumentException
- if the argument(s) is(are) not valid
DSEInvalidRequestException
- if the request is not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic int addRecord(Hashtable aDataHashtable) throws DSEInvalidRequestException, DSEInvalidArgumentException, DSEInternalErrorException, DSESQLException
addRecord
in interface JournalService
addRecord
in class Journal
aDataHashtable
- Hashtable - the Hashtable with the data to be inserted in the database table
DSEInvalidArgumentException
- if the argument(s) is(are) not valid
DSEInvalidRequestException
- if the request is not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic void commit() throws DSESQLException, DSEInternalErrorException
commit
in interface JournalService
commit
in class Journal
DSESQLException
- if commit failed
DSEInternalErrorException
- if communication with journal service object failedpublic void openOnCurrentTable() throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
openOnCurrentTable
in class Journal
DSEInvalidArgumentException
- if the argument(s) is(are) not valid
DSEInvalidRequestException
- if the request is not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic void openOnNextTable() throws DSEInternalErrorException, DSEInvalidRequestException, DSEInvalidArgumentException, DSESQLException
openOnNextTable
in class Journal
DSEInvalidArgumentException
- if the argument(s) is(are) not valid
DSEInvalidRequestException
- if the request is not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic int queryLastRecordNumber() throws DSESQLException, DSEInternalErrorException
queryLastRecordNumber
in interface JournalService
queryLastRecordNumber
in class Journal
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic Hashtable retrieveLastRecord() throws DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
retrieveLastRecord
in interface JournalService
retrieveLastRecord
in class Journal
DSEInvalidArgumentException
- if the argument(s) is(are) not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic void retrieveLastRecord(Context aContext, FormatElement aHashtableFormat) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
retrieveLastRecord
in class Journal
aContext
- com.ibm.dse.base.ContextaHashtableFormat
- com.ibm.btt.formatter.client.FormatElement
DSEInvalidRequestException
- if the input parameters are not valid
DSEInternalErrorException
- if an internal program error occurs
DSEInvalidArgumentException
- if an argument is not valid
DSESQLException
- if an SQLException is caughtpublic void retrieveLastRecord(Context aContext, java.lang.String aFormatName) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
retrieveLastRecord
in class Journal
aContext
- com.ibm.dse.base.ContextaFormatName
- java.lang.String
DSEInvalidRequestException
- if the input parameters are not valid
DSEInternalErrorException
- if an internal program error occurs
DSEInvalidArgumentException
- if an argument is not valid
DSESQLException
- if an SQLException is caughtpublic Vector retrieveLastRecords(int aRecordCount) throws DSEInternalErrorException, DSEInvalidRequestException, DSEInvalidArgumentException, DSESQLException
retrieveLastRecords
in interface JournalService
retrieveLastRecords
in class Journal
aRecordCount
- int, the number of records to retrieve
DSEInvalidRequestException
- if the request is not valid
DSEInvalidArgumentException
- if the argument(s) is(are) not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic void retrieveLastRecords(int aRecordCount, Context aContext, FormatElement anOutputFormat) throws DSEInternalErrorException, DSEInvalidArgumentException, DSEInvalidRequestException, DSESQLException, DSEObjectNotFoundException
aRecordCount
- int the number of records to retrieveaContext
- com.ibm.dse.base.Context - the context to where the retrieved records will be unformattedanOutputFormat
- com.ibm.btt.formatter.client.FormatElement - the formatter to unformat the retrieved records
DSEInvalidRequestException
- if the request is not valid
DSEInvalidArgumentException
- if the argument(s) is(are) not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caught
DSESObjectNotFoundException
- if an object is not found
DSEObjectNotFoundException
public void retrieveLastRecords(int aRecordCount, Context aContext, java.lang.String anOutputFormatName) throws DSEInternalErrorException, DSEInvalidArgumentException, DSEInvalidRequestException, DSESQLException, DSEObjectNotFoundException
aRecordCount
- int the number of records to retrieveaContext
- com.ibm.dse.base.Context - the context to where the retrieved records will be unformattedanOutputFormatName
- java.lang.String - the name of the formatter to unformat the retrieved records
DSEInvalidRequestException
- if the request is not valid
DSEInvalidArgumentException
- if the argument(s) is(are) not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caught
DSESObjectNotFoundException
- if an object is not found
DSEObjectNotFoundException
public Hashtable retrieveRecord(int aRecordNumber) throws DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
retrieveRecord
in interface JournalService
retrieveRecord
in class Journal
aRecordNumber
- int the record number
DSEInvalidArgumentException
- if the argument(s) is(are) not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic void retrieveRecord(int aRecordNumber, Context aContext, FormatElement aHashtableFormat) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
retrieveRecord
in class Journal
aRecordNumber
- intaContext
- com.ibm.dse.base.ContextaHashtableFormat
- com.ibm.btt.formatter.client.FormatElement
DSEInvalidRequestException
- if the input parameters are not valid
DSEInternalErrorException
- if an internal program error occurs
DSEInvalidArgumentException
- if an argument is not valid
DSESQLException
- if an SQLException is caughtpublic void retrieveRecord(int aRecordNumber, Context aContext, java.lang.String aFormatName) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
retrieveRecord
in class Journal
aRecordNumber
- intaContext
- com.ibm.dse.base.ContextaFormatName
- java.lang.String
DSEInvalidRequestException
- if the input parameters are not valid
DSEInternalErrorException
- if an internal program error occurs
DSEInvalidArgumentException
- if an argument is not valid
DSESQLException
- if an SQLException is caughtpublic Vector retrieveRecords(java.lang.String aSearchCondition) throws DSEInternalErrorException, DSEInvalidRequestException, DSEInvalidArgumentException, DSESQLException
retrieveRecords
in interface JournalService
retrieveRecords
in class Journal
aSearchCondition
- java.lang.String the search condition in SQL format
DSEInvalidRequestException
- if the request is not valid
DSEInvalidArgumentException
- if the argument(s) is(are) not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic void retrieveRecords(java.lang.String aSearchCondition, Context aContext, FormatElement anOutputFormat) throws DSEInternalErrorException, DSEInvalidRequestException, DSEInvalidArgumentException, DSESQLException, DSEObjectNotFoundException
aSearchCondition
- java.lang.String the search condition in SQL formataContext
- com.ibm.dse.base.Context the context to where the retrieved records will be unformattedanOutputFormat
- com.ibm.btt.formatter.FormatElement - the formatter to unformat the retrieved records
DSEInvalidRequestException
- if the request is not valid
DSEInvalidArgumentException
- if the argument(s) is(are) not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caught
DSESObjectNotFoundException
- if an object is not found
DSEObjectNotFoundException
public void retrieveRecords(java.lang.String aSearchCondition, Context aContext, java.lang.String anOutputFormatName) throws DSEInternalErrorException, DSEInvalidRequestException, DSEInvalidArgumentException, DSESQLException, DSEObjectNotFoundException
aSearchCondition
- java.lang.String the search condition in SQL formataContext
- com.ibm.dse.base.Context the context to where the retrieved records will be unformattedanOutputFormatName
- java.lang.String - the name of the formatter to unformat the retrieved records
DSEInvalidRequestException
- if the request is not valid
DSEInvalidArgumentException
- if the argument(s) is(are) not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caught
DSESObjectNotFoundException
- if an object is not found
DSEObjectNotFoundException
public Vector retrieveRecords(java.lang.String aSearchCondition, Vector aColumnsVector) throws DSEInternalErrorException, DSEInvalidRequestException, DSEInvalidArgumentException, DSESQLException
retrieveRecords
in interface JournalService
aSearchCondition
- java.lang.String the search condition in SQL formataColumnsVector
- com.ibm.dse.base.Vector the vector that contains the columns to be retrieved
DSEInvalidRequestException
- if the request is not valid
DSEInvalidArgumentException
- if the argument(s) is(are) not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic void retrieveRecords(java.lang.String aSearchCondition, Vector aColumnsVector, Context aContext, FormatElement anOutputFormat) throws DSEInternalErrorException, DSEInvalidRequestException, DSEInvalidArgumentException, DSESQLException, DSEObjectNotFoundException
aSearchCondition
- java.lang.String the search condition in SQL formataColumnsVector
- com.ibm.dse.base.Vector the vector that contains the columns to be retrievedaContext
- com.ibm.dse.base.Context the context to where the retrieved records will be unformattedanOutputFormat
- com.ibm.btt.formatter.client.FormatElement the formatter to unformat the retrieved records
DSEInvalidRequestException
- if the request is not valid
DSEInvalidArgumentException
- if the argument(s) is(are) not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caught
DSEObjectNotFoundException
- if an object is not foundpublic void retrieveRecords(java.lang.String aSearchCondition, Vector aColumnsVector, Context aContext, java.lang.String anOutputFormatName) throws DSEInternalErrorException, DSEInvalidRequestException, DSEInvalidArgumentException, DSESQLException, DSEObjectNotFoundException
aSearchCondition
- java.lang.String the search condition in SQL formataColumnsVector
- com.ibm.dse.base.Vector the vector that contains the columns to be retrievedaContext
- com.ibm.dse.base.Context the context to where the retrieved records will be unformattedanOutputFormatName
- java.lang.String the name of the formatter to unformat the retrieved records
DSEInvalidRequestException
- if the request is not valid
DSEInvalidArgumentException
- if the argument(s) is(are) not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caught
DSEObjectNotFoundException
- if an object is not foundpublic void rollback() throws DSESQLException, DSEInternalErrorException
rollback
in interface JournalService
rollback
in class Journal
DSESQLException
- Thrown when the rollback fails
DSEInternalErrorException
public int updateLastRecord(Context aContext, FormatElement aHashtableFormat) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
updateLastRecord
in class Journal
aContext
- com.ibm.dse.base.ContextaHashtableFormat
- com.ibm.btt.formatter.client.FormatElement
DSEInvalidArgumentException
- if an argument is not valid
DSEInvalidRequestException
- if the input parameters are not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic int updateLastRecord(Context aContext, FormatElement aHashtableFormat, Vector aColumnsVector) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
aContext
- com.ibm.dse.base.ContextaHashtableFormat
- com.ibm.btt.formatter.FormatElementaColumnsVector
- com.ibm.dse.base.Vector, the columns to be changed
DSEInvalidArgumentException
- if an argument is not valid
DSEInvalidRequestException
- if the input parameters are not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic int updateLastRecord(Context aContext, java.lang.String aFormatName) throws DSEInvalidRequestException, DSEInvalidArgumentException, DSEInternalErrorException, DSESQLException
updateLastRecord
in class Journal
aContext
- com.ibm.dse.base.Context the context with the dataaFormatName
- java.lang.String the journal format name to be used
DSEInvalidArgumentException
- if an argument is not valid
DSEInvalidRequestException
- if the input parameters are not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic int updateLastRecord(Context aContext, java.lang.String aFormatName, Vector aColumnsVector) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
aContext
- com.ibm.dse.base.Context the context with the dataaFormatName
- java.lang.String the journal format name to be usedaColumnsVector
- com.ibm.dse.base.Vector the columns to be changed
DSEInvalidArgumentException
- if an argument is not valid
DSEInvalidRequestException
- if the input parameters are not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic int updateLastRecord(Hashtable aDataHashtable) throws DSEInvalidRequestException, DSEInvalidArgumentException, DSEInternalErrorException, DSESQLException
updateLastRecord
in interface JournalService
updateLastRecord
in class Journal
aDataHashtable
- Hashtable the Hashtable that contains the data
DSEInvalidArgumentException
- if an argument is not valid
DSEInvalidRequestException
- if the input parameters are not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic int updateLastRecord(Hashtable aDataHashtable, Vector aColumnsVector) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
updateLastRecord
in interface JournalService
aDataHashtable
- Hashtable the Hashtable that contains the dataaColumnsVector
- com.ibm.dse.base.Vector the columns to be changed
DSEInvalidArgumentException
- if an argument is not valid
DSEInvalidRequestException
- if the input parameters are not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic int updateRecord(int aRecordNumber, Context aContext, FormatElement aHashtableFormat) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
updateRecord
in class Journal
aRecordNumber
- int the number of the record to be updatedaContext
- com.ibm.dse.base.ContextaHashtableFormat
- com.ibm.btt.formatter.client.FormatElement
DSEInvalidArgumentException
- if an argument is not valid
DSEInvalidRequestException
- if the input parameters are not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic int updateRecord(int aRecordNumber, Context aContext, FormatElement aHashtableFormat, Vector aColumnsVector) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
aRecordNumber
- int the number of the record to be updatedaContext
- com.ibm.dse.base.ContextaHashtableFormat
- com.ibm.btt.formatter.client.FormatElementaColumnsVector
- com.ibm.dse.base.Vector the columns to be changed
DSEInvalidArgumentException
- if an argument is not valid
DSEInvalidRequestException
- if the input parameters are not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic int updateRecord(int aRecordNumber, Context aContext, java.lang.String aFormatName) throws DSEInvalidRequestException, DSEInvalidArgumentException, DSEInternalErrorException, DSESQLException
updateRecord
in class Journal
aRecordNumber
- int the number of the record to be updatedaContext
- com.ibm.dse.base.Context the context with the dataaFormatName
- java.lang.String the journal format name to be used
DSEInvalidArgumentException
- if an argument is not valid
DSEInvalidRequestException
- if the input parameters are not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic int updateRecord(int aRecordNumber, Context aContext, java.lang.String aFormatName, Vector aColumnsVector) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
aRecordNumber
- int the number of the record to be updatedaContext
- com.ibm.dse.base.Context the context with the dataaFormatName
- java.lang.String the journal format name to be usedaColumnsVector
- com.ibm.dse.base.Vector the columns to be changed
DSEInvalidArgumentException
- if an argument is not valid
DSEInvalidRequestException
- if the input parameters are not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic int updateRecord(int aRecordNumber, Hashtable aDataHashtable) throws DSEInvalidRequestException, DSEInvalidArgumentException, DSEInternalErrorException, DSESQLException
updateRecord
in interface JournalService
updateRecord
in class Journal
aRecordNumber
- int the number of the record to be updatedaDataHashtable
- Hashtable the Hashtable containing the new data
DSEInvalidArgumentException
- if an argument is not valid
DSEInvalidRequestException
- if the input parameters are not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic int updateRecord(int aRecordNumber, Hashtable aDataHashtable, Vector aColumnsVector) throws DSEInvalidArgumentException, DSEInternalErrorException, DSEInvalidRequestException, DSESQLException
updateRecord
in interface JournalService
aRecordNumber
- int the number of the record to be updatedaDataHashtable
- com.ibm.dse.base.Hashtable the Hashtable that contains the new dataaColumnsVector
- com.ibm.dse.base.Vector the columns to be changed
DSEInvalidArgumentException
- if the argument(s) is(are) not valid.
DSEInternalErrorException
- if an internal program error occurs.
DSEInvalidRequestException
- if the request is not valid.
com.ibm.dse.services.jdbc.DSESQLException
- if an SQLException is caught.
DSEInvalidArgumentException
DSEInternalErrorException
DSEInvalidRequestException
DSESQLException
public int updateRecords(java.lang.String aSearchCondition, Context aContext, FormatElement aHashtableFormat) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
updateRecords
in class Journal
aSearchCondition
- java.lang.StringaContext
- com.ibm.dse.base.ContextaHashtableFormat
- com.ibm.btt.formatter.client.FormatElement
DSEInvalidArgumentException
- if an argument is not valid
DSEInvalidRequestException
- if the input parameters are not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic int updateRecords(java.lang.String aSearchCondition, Context aContext, FormatElement aHashtableFormat, Vector aColumnsVector) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
aSearchCondition
- java.lang.StringaContext
- com.ibm.dse.base.ContextaHashtableFormat
- com.ibm.btt.formatter.client.FormatElementaColumnsVector
- com.ibm.dse.base.Vector - the columns to be changed
DSEInvalidArgumentException
- if an argument is not valid
DSEInvalidRequestException
- if the input parameters are not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic int updateRecords(java.lang.String aSearchCondition, Context aContext, java.lang.String aFormatName) throws DSEInvalidRequestException, DSEInvalidArgumentException, DSEInternalErrorException, DSESQLException
updateRecords
in class Journal
aSearchCondition
- java.lang.String the search conditionaContext
- com.ibm.dse.base.Context the context with the dataaFormatName
- java.lang.String the journal format name that defines the formatter to be used
DSEInvalidArgumentException
- if an argument is not valid
DSEInvalidRequestException
- if the input parameters are not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic int updateRecords(java.lang.String aSearchCondition, Context aContext, java.lang.String aFormatName, Vector aColumnsVector) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
aSearchCondition
- java.lang.String the search conditionaContext
- com.ibm.dse.base.Context the context with the dataaFormatName
- java.lang.String the journal format name that defines the formatter to be usedaColumnsVector
- com.ibm.dse.base.Vector - the columns to be changed
DSEInvalidArgumentException
- if an argument is not valid
DSEInvalidRequestException
- if the input parameters are not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic int updateRecords(java.lang.String aSearchCondition, Hashtable aDataHashtable) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
updateRecords
in interface JournalService
updateRecords
in class Journal
aSearchCondition
- java.lang.String the search conditionaDataHashtable
- Hashtable the Hashtable that contains the new data
DSEInvalidArgumentException
- if an argument is not valid
DSEInvalidRequestException
- if the input parameters are not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic int updateRecords(java.lang.String aSearchCondition, Hashtable aDataHashtable, Vector aColumnsVector) throws DSEInvalidArgumentException, DSEInternalErrorException, DSEInvalidRequestException, DSESQLException
updateRecords
in interface JournalService
aSearchCondition
- java.lang.String the search conditionaDataHashtable
- com.ibm.dse.base.Hashtable the Hashtable that contains the new dataaColumnsVector
- com.ibm.dse.base.Vector the columns to be changed
DSEInvalidArgumentException
- if the argument(s) is(are) not valid.
DSEInternalErrorException
- if an internal program error occurs.
DSEInvalidRequestException
- if the request is not valid.
com.ibm.dse.services.jdbc.DSESQLException
- if an SQLException is caught.
DSEInvalidArgumentException
DSEInternalErrorException
DSEInvalidRequestException
DSESQLException
public void disconnect() throws DSESQLException, DSEException
disconnect
in interface DatabaseConnect
disconnect
in class JDBCService
DSESQLException
- Thrown when the disconnect fails
DSEException
- if an exception is thrown when calling the pool of connections managerpublic void connect(java.lang.String anUser, java.lang.String aPwd) throws DSESQLException, DSEException
connect
in interface DatabaseConnect
connect
in class JDBCService
anUser
- java.lang.String - the user identificationaPwd
- java.lang.String - the user password
DSESQLException
- Thrown when the disconnect fails
DSEException
- if an exception is thrown when calling the pool of connections managerpublic void close() throws DSESQLException, DSEInternalErrorException
close
in interface JournalService
close
in class Journal
DSESQLException
- if the close fails
DSEInternalErrorException
public void setEntity(java.lang.String anEntityName) throws DSEInternalErrorException
setEntity
in interface JournalService
anEntityName
- java.lang.String
DSEInternalErrorException
public void open(java.lang.String anEntity, int aGeneration) throws DSEInvalidRequestException, DSEInternalErrorException, DSESQLException
open
in interface JournalService
anEntity
- java.lang.StringaGeneration
- int
DSEInvalidRequestException
- if journal service state is active
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic void open(java.lang.String aSchemaName, java.lang.String anEntity, int aGeneration) throws DSEInvalidRequestException, DSEInternalErrorException, DSESQLException
open
in interface JournalService
aSchemaName
- java.lang.StringanEntity
- java.lang.StringaGeneration
- int
DSEInvalidRequestException
- if journal service state is active
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic void openForEntity(java.lang.String anEntity, java.lang.String aSchemaName) throws DSEInternalErrorException, DSEInvalidRequestException, DSEInvalidArgumentException, DSESQLException
openForEntity
in interface JournalService
anEntity
- java.lang.String, the name of the entityaSchemaName
- java.lang.String, the name of the schema
DSEInvalidRequestException
- if the entity name is not valid
DSEInternalErrorException
- if an internal program error occurs
DSEInvalidArgumentException
- if an argument is not valid
DSESQLException
- if a SQLException occurspublic void openForEntity(java.lang.String anEntity) throws DSEInternalErrorException, DSEInvalidRequestException, DSEInvalidArgumentException, DSESQLException
openForEntity
in interface JournalService
anEntity
- java.lang.String, the name of the entity
DSEInvalidRequestException
- if the entity name is not valid
DSEInternalErrorException
- if an internal program error occurs
DSEInvalidArgumentException
- if an argument is not valid
DSESQLException
- if a SQLException occurspublic void openForSchema(java.lang.String aSchemaName) throws DSEInternalErrorException, DSEInvalidRequestException, DSEInvalidArgumentException, DSESQLException
openForSchema
in interface JournalService
aSchemaName
- java.lang.String, the name of the schema
DSEInvalidRequestException
- if the entity name is not valid
DSEInternalErrorException
- if an internal program error occurs
DSEInvalidArgumentException
- if an argument is not valid
DSESQLException
- if a SQLException occurspublic int getLastRecordNumberFromTable() throws DSEInvalidRequestException
getLastRecordNumberFromTable
in interface JournalService
DSEInvalidRequestException
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |