|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.base.DSENotifier | +--com.ibm.dse.base.Service | +--com.ibm.dse.services.jdbc.JDBCService | +--com.ibm.dse.services.jdbc.Store | +--com.ibm.dse.services.jdbc.JDBCStore
The JDBCStore class is a concrete class that provides an implementation of the Store abstraction (a financial store for forwarding service). It uses DB2 as the underlying data store. JDBCStore uses the JDBC protocol.
Field Summary | |
protected java.lang.String |
catalog
The name of database catalog where the store table is created. |
protected java.lang.String |
JDBCDriver
Keeps the name of the JDBC driver to be used to access the database. |
protected java.lang.String |
schema
The name of database schema where the store table is created. |
Fields inherited from class com.ibm.dse.services.jdbc.Store |
COMPID,
state,
tableName |
Fields inherited from class com.ibm.dse.services.jdbc.JDBCService |
autoCommit,
connectionProperties,
databaseConnection,
databaseURL,
dataSourceName,
metaData,
password,
poolName,
sharedConnection,
user,
waitRetry |
Fields inherited from class com.ibm.dse.base.Service |
externalizer |
Fields inherited from class com.ibm.dse.base.DSENotifier |
handlersList,
name |
Constructor Summary | |
|
JDBCStore()
This constructor creates a JDBCStore object. |
|
JDBCStore(java.lang.String aTableName)
This constructor creates a JDBCStore object. |
|
JDBCStore(java.lang.String aSchemaName,
java.lang.String aTableName)
This constructor creates a JDBCStore object. |
protected |
JDBCStore(java.lang.String aCatalogName,
java.lang.String aSchemaName,
java.lang.String aTableName)
This constructor creates a JDBCStore object. |
Method Summary | |
int |
addRecord(Context aContext,
HashtableFormat aHashtableFormat)
Builds a data hashtable by calling the format method of the aHashtableFormat store formatter, with the context aContext as argument. |
int |
addRecord(Context aContext,
java.lang.String aFormatName)
Instantiates the store formatter with the name aFormatName and calls its format method by passing aContext as argument. |
int |
addRecord(Hashtable aDataHashtable)
Inserts the data from aDataHashtable hashtable as a new row into the current Store table. |
protected void |
buildConnectionProperties()
Build the hashtable containing all details needed to request the database connection. |
void |
commit()
Commits all changes to the database. |
int |
deleteAllRetrievedForForwarding()
Deletes all records marked as retrievedForForwarding from the store table. |
int |
deleteRecord(int aRecordId)
Deletes the record identified with aRecordId from the store table. |
int |
deleteRecords(java.lang.String aSelectionCriteria)
Deletes all the records within the store table that match the selection criteria. |
java.lang.String |
getCatalogName()
Returns the catalog attribute value. |
Hashtable |
getColumnsTable()
Returns the columnsTable attribute value. |
java.lang.String |
getFullTableName()
Gets the full table name (schemaName + tableName). |
java.lang.String |
getJDBCDriver()
Returns the JDBCDriver attribute value. |
int |
getLastRecordNumber()
Gets the lastRecordNumber attribute value of this Db2Store instance. |
java.lang.String |
getSchemaName()
Returns the schema attribute value. |
java.lang.Object |
initializeColumnFrom(Tag aTag)
Called from the initializeFrom(Tag aTag) method to set the columnsTable attribute of the JDBCStore instance being created. |
java.lang.Object |
initializeFrom(Tag aTag)
Called by the externalizer to set JDBCStore instance attributes to the values set in the services XML file. |
boolean |
isConnected()
Returns true if there is a connection to the database or false if there is not. |
void |
loadDriver()
Loads the JDBC Driver as set in the external definition of the service or the default database JDBC Driver, as set in the StoreConstants specific attribute. |
void |
loadDriver(java.lang.String aDriverName)
Loads the specified database JDBC Driver. |
void |
markRecordRetrievedForForwarding(int aRecordId)
Marks the store table record that has an identifier that equals aRecordId, as retrievedForForwarding. |
static JDBCStore |
newFor(java.lang.String aTableName)
Returns a new JDBCStore instance with its tableName attribute set to aTableName. |
static JDBCStore |
newFor(java.lang.String aSchemaName,
java.lang.String aTableName)
Returns a new JDBCStore instance with its tableName attribute set to aTableName. |
protected static JDBCStore |
newFor(java.lang.String aCatalogName,
java.lang.String aSchemaName,
java.lang.String aTableName)
Returns a new JDBCStore instance with its tableName attribute set to aTableName. |
Hashtable |
retrieveFirstRecord()
Returns the first record in the store table or null if the table is empty. |
int |
retrieveFirstRecord(Context aContext,
HashtableFormat aHashtableFormat)
Retrieves the first record in the store table and returns its recordId. |
int |
retrieveFirstRecord(Context aContext,
java.lang.String aFormatName)
Retrieves the first record in the store table and returns its recordId. |
Hashtable |
retrieveFirstRecordForForwarding()
Returns the first record in the store table or null if the table is empty. |
void |
retrieveFirstRecordForForwarding(Context aContext,
HashtableFormat aHashtableFormat)
Retrieves the first record in the store table or null if the table is empty using the retrieveFirstRecord(Context,HashtableFormat) method. |
void |
retrieveFirstRecordForForwarding(Context aContext,
java.lang.String aFormatName)
Retrieves the first record in the store table or null if the table is empty using the retrieveFirstRecord(Context,FormatName) method. |
int |
retrieveLastRecordNumber()
Returns the last record number. |
Hashtable |
retrieveNextRecord()
Retrieves the next record from the current cursor in the store table. |
int |
retrieveNextRecord(Context aContext,
HashtableFormat aHashtableFormat)
Retrieves the next record from the current cursor in the store table and returns its recordId. |
int |
retrieveNextRecord(Context aContext,
java.lang.String aFormatName)
Retrieves the next record from the current cursor in the store table and returns its recordId. |
Hashtable |
retrieveNextRecordForForwarding()
Retrieves the next record from the current cursor in the store table and marks it as retrievedForForwarding. |
void |
retrieveNextRecordForForwarding(Context aContext,
HashtableFormat aHashtableFormat)
Retrieves the next record from the current cursor in the store table by using the retrieveNextRecord(Context,HashtableFormat) method. |
void |
retrieveNextRecordForForwarding(Context aContext,
java.lang.String aFormatName)
Retrieves the next record from the current cursor in the store table, using the retrieveFirstRecord(Context,FormatName) method, and marks it as retrievedForForwarding. |
Hashtable |
retrieveRecord(int aRecordId)
Retrieves a record of the store table with an specific recordId. |
void |
retrieveRecord(int aRecordId,
Context aContext,
HashtableFormat aHashtableFormat)
Retrieves a record of the store table with an specific recordId. |
void |
retrieveRecord(int aRecordId,
Context aContext,
java.lang.String aFormatName)
Retrieves a record of the store table with an specific recordId. |
Hashtable |
retrieveRecord(java.lang.String aSelectionCriteria)
Retrieves the first record of the store table that matches the selection criteria. |
int |
retrieveRecord(java.lang.String aSelectionCriteria,
Context aContext,
HashtableFormat aHashtableFormat)
Retrieves the first record of the store table that matches the selection criteria and returns its recordId. |
int |
retrieveRecord(java.lang.String aSelectionCriteria,
Context aContext,
HashtableFormat aHashtableFormat,
Vector aColumnsVector)
Retrieves the columns in aColumnsVector of the first record of the store table that matches the selection criteria and returns its recordId. |
int |
retrieveRecord(java.lang.String aSelectionCriteria,
Context aContext,
java.lang.String aFormatName)
Retrieves the first record of the store table that matches the selection criteria and returns its recordId. |
int |
retrieveRecord(java.lang.String aSelectionCriteria,
Context aContext,
java.lang.String aFormatName,
Vector aColumnsVector)
Retrieves the columns in aColumnsVector of the first record of the store table that matches the selection criteria and returns its recordId. |
Hashtable |
retrieveRecord(java.lang.String aSelectionCriteria,
Vector aColumnsVector)
Retrieves the columns in aColumnsVector of the first record of the store table that matches the selection criteria. |
Hashtable |
retrieveRecordForForwarding(int aRecordId)
Retrieves a record of the store table with an specific recordId and marks it as retrievedForForwarding. |
void |
retrieveRecordForForwarding(int aRecordId,
Context aContext,
HashtableFormat aHashtableFormat)
Retrieves a record of the store table with an specific recordId and marks it as retrievedForForwarding. |
void |
retrieveRecordForForwarding(int aRecordId,
Context aContext,
java.lang.String aFormatName)
Retrieves a record of the store table with an specific recordId and marks it as retrievedForForwarding. |
Hashtable |
retrieveRecordForForwarding(java.lang.String aSelectionCriteria)
Retrieves the first record of the store table that matches the selection criteria and marks it as retrievedForForwarding. |
int |
retrieveRecordForForwarding(java.lang.String aSelectionCriteria,
Context aContext,
HashtableFormat aHashtableFormat)
Retrieves the first record of the store table that matches the selection criteria and marks it as retrievedForForwarding. |
int |
retrieveRecordForForwarding(java.lang.String aSelectionCriteria,
Context aContext,
java.lang.String aFormatName)
Retrieves the first record of the store table that matches the selection criteria and marks it as retrievedForForwarding. |
Vector |
retrieveRecordsForForwarding(java.lang.String aSearchCondition)
Retrieves all the records from the store table that match aSearchCondition. |
void |
retrieveRecordsForForwarding(java.lang.String aSearchCondition,
Context aContext,
HashtableIndexedCollectionFormat anOutputFormat)
Retrieves all the records from the store table that match aSearchCondition. |
void |
retrieveRecordsForForwarding(java.lang.String aSearchCondition,
Context aContext,
java.lang.String anOutputFormatName)
Retrieves all the records from the store table that match aSearchCondition. |
void |
rollback()
Rolls back all Database changes. |
void |
setCatalogName(java.lang.String newCatalogName)
Sets the catalog attribute to the string provided as an argument. |
protected void |
setColumnsTable(Hashtable aColumnsHashtable)
Sets the columnsHashtable attribute value of this Db2Store instance to aColumnsHashtable. |
void |
setJDBCDriver(java.lang.String newJDBCDriver)
Sets the JDBCDriver attribute value to newJDBCDriver. |
protected void |
setLastRecordNumber(int aRecordNumber)
Sets the lastRecordNumber attribute value of this Db2Store instance to aRecordNumber. |
void |
setSchemaName(java.lang.String s)
Sets the schema attribute to the string provided as an argument. |
Vector |
toStrings()
Used by the externalizer when a new store service instance is requested by the application |
int |
updateRecord(int aRecordId,
Context aContext,
HashtableFormat aHashtableFormat)
Updates the store table record that has an identifier that equals aRecordId with the data obtained by formatting the context aContext with the formatter aHashtableFormat. |
int |
updateRecord(int aRecordId,
Context aContext,
HashtableFormat aHashtableFormat,
Vector aColumnsVector)
Updates the columns in aColumnsVector for the store table record that has an identifier that equals aRecordId with the data obtained by formatting the context aContext, with the formatter aHashtableFormat. |
int |
updateRecord(int aRecordId,
Context aContext,
java.lang.String aFormatName)
Updates the store table record that has an identifier that equals aRecordId with the data obtained by formatting the context aContext with the formatter identified by aFormatName. |
int |
updateRecord(int aRecordId,
Context aContext,
java.lang.String aFormatName,
Vector aColumnsVector)
Updates the columns in aColumnsVector for the store table record that has an identifier that equals aRecordId, with the data obtained by formatting the context aContext with the formatter identified by aFormatName. |
int |
updateRecord(int aRecordId,
Hashtable aDataHashtable)
Updates the store table record that has an identifier that equals aRecordId with the data in aDataHashtable. |
int |
updateRecord(int aRecordId,
Hashtable aDataHashtable,
Vector aColumnsVector)
Updates the columns in aColumnVector for the store table record that has an identifier that equals aRecordId, with the data in aDataHashtable. |
Methods inherited from class com.ibm.dse.services.jdbc.Store |
close,
getTableName,
isActive,
open,
setTableName |
Methods inherited from class com.ibm.dse.base.Service |
externalizer,
getExternalizer,
getTagName,
readExternal,
readExternal,
readObject,
removeExternal,
setExternalizer,
terminate,
toString,
toTags,
writeExternal,
writeExternal |
Methods inherited from class com.ibm.dse.base.DSENotifier |
addHandler,
getHandlersList,
getName,
removeHandler,
setName,
signalEvent,
signalEvent,
signalEvent |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected java.lang.String schema
protected java.lang.String catalog
protected java.lang.String JDBCDriver
Constructor Detail |
public JDBCStore()
public JDBCStore(java.lang.String aTableName)
aTableName
- java.lang.Stringpublic JDBCStore(java.lang.String aSchemaName, java.lang.String aTableName)
aSchemaName
- java.lang.StringaTableName
- java.lang.Stringprotected JDBCStore(java.lang.String aCatalogName, java.lang.String aSchemaName, java.lang.String aTableName)
aCatalogName
- java.lang.StringaSchemaName
- java.lang.StringaTableName
- java.lang.StringMethod Detail |
public int addRecord(Context aContext, HashtableFormat aHashtableFormat) throws DSEInvalidArgumentException, DSEInvalidRequestException, DSEInternalErrorException, DSESQLException, DSEInvalidClassException
aContext
- com.ibm.dse.base.ContextaHashtableFormat
- com.ibm.dse.base.HashtableFormatpublic int addRecord(Context aContext, java.lang.String aFormatName) throws DSEInvalidArgumentException, DSEInvalidRequestException, DSEInternalErrorException, DSESQLException, DSEInvalidClassException, java.io.IOException
aContext
- com.ibm.dse.base.Context, the context that keeps the dataaFormatName
- java.lang.String, the store formatter namepublic int addRecord(Hashtable aDataHashtable) throws DSEInvalidRequestException, DSEInvalidArgumentException, DSEInternalErrorException, DSESQLException
aDataHashtable
- Hashtable, the Hashtable with the dataprotected void buildConnectionProperties()
public void commit() throws DSESQLException
public int deleteAllRetrievedForForwarding() throws DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
public int deleteRecord(int aRecordId) throws DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
aRecordId
- intpublic int deleteRecords(java.lang.String aSelectionCriteria) throws DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
aSelectionCriteria
- java.lang.String, the selection criteria in SQL formatpublic java.lang.String getCatalogName()
public Hashtable getColumnsTable()
public java.lang.String getFullTableName()
public java.lang.String getJDBCDriver()
public int getLastRecordNumber()
aRecordNumber
- int, the store table last record numberpublic java.lang.String getSchemaName()
public java.lang.Object initializeColumnFrom(Tag aTag)
aTag
- com.ibm.dse.base.Tagpublic java.lang.Object initializeFrom(Tag aTag) throws java.io.IOException
aTag
- com.ibm.dse.base.Tagpublic boolean isConnected() throws DSEInvalidRequestException, DSEInternalErrorException, DSESQLException, DSEException
public void loadDriver() throws DSEInternalErrorException
public void loadDriver(java.lang.String aDriverName) throws DSEInternalErrorException
aDriverName
- java.lang.String, the driver name (full path)public void markRecordRetrievedForForwarding(int aRecordId) throws DSEInternalErrorException, DSESQLException
aRecordId
- int, the record identifierpublic static JDBCStore newFor(java.lang.String aTableName) throws java.io.IOException
aTableName
- java.lang.String, the name of the store tablepublic static JDBCStore newFor(java.lang.String aSchemaName, java.lang.String aTableName) throws java.io.IOException
aSchemaName
- java.lang.String, the name of the schema where the store table is created (if it applies to the DBMS being used)aTableName
- java.lang.String, the name of the store tableprotected static JDBCStore newFor(java.lang.String aCatalogName, java.lang.String aSchemaName, java.lang.String aTableName) throws java.io.IOException
aCatalogName
- java.lang.String, the name of the catalog where the store table is created (if it applies to the DBMS being used)aSchemaName
- java.lang.String, the name of the schema where the store table is created (if it applies to the DBMS being used)aTableName
- java.lang.String, the name of the store tablepublic Hashtable retrieveFirstRecord() throws DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
public int retrieveFirstRecord(Context aContext, HashtableFormat aHashtableFormat) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
aContext
- com.ibm.dse.base.Context, the context where to put the retrieved record dataaHashtableFormat
- com.ibm.dse.base.HashtableFormat, the formatter to be used to update the contextpublic int retrieveFirstRecord(Context aContext, java.lang.String aFormatName) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException, java.io.IOException
aContext
- com.ibm.dse.base.Context, the context where to put the retrieved record dataaFormatName
- java.lang.String, the name of the formatter to be used to update the contextpublic Hashtable retrieveFirstRecordForForwarding() throws DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
public void retrieveFirstRecordForForwarding(Context aContext, HashtableFormat aHashtableFormat) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
aContext
- com.ibm.dse.base.ContextaHashtableFormat
- com.ibm.dse.base.HashtableFormatpublic void retrieveFirstRecordForForwarding(Context aContext, java.lang.String aFormatName) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException, java.io.IOException
aContext
- com.ibm.dse.base.ContextaFormatName
- java.lang.Stringpublic int retrieveLastRecordNumber() throws DSESQLException, DSEInternalErrorException
public Hashtable retrieveNextRecord() throws DSEInternalErrorException, DSEInvalidRequestException, DSEInvalidArgumentException, DSESQLException
public int retrieveNextRecord(Context aContext, HashtableFormat aHashtableFormat) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
aContext
- com.ibm.dse.base.ContextaHashtableFormat
- com.ibm.dse.base.HashtableFormatpublic int retrieveNextRecord(Context aContext, java.lang.String aFormatName) throws DSEInternalErrorException, DSEInvalidArgumentException, DSEInvalidRequestException, DSESQLException, java.io.IOException
aContext
- com.ibm.dse.base.ContextaFormatName
- java.lang.Stringpublic Hashtable retrieveNextRecordForForwarding() throws DSEInternalErrorException, DSEInvalidRequestException, DSEInvalidArgumentException, DSESQLException
public void retrieveNextRecordForForwarding(Context aContext, HashtableFormat aHashtableFormat) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
aContext
- com.ibm.dse.base.ContextaHashtableFormat
- com.ibm.dse.base.HashtableFormatpublic void retrieveNextRecordForForwarding(Context aContext, java.lang.String aFormatName) throws DSEInternalErrorException, DSEInvalidArgumentException, DSEInvalidRequestException, DSESQLException, java.io.IOException
aContext
- com.ibm.dse.base.ContextaFormatName
- java.lang.Stringpublic Hashtable retrieveRecord(int aRecordId) throws DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
aRecordId
- int, the record Identifierpublic void retrieveRecord(int aRecordId, Context aContext, HashtableFormat aHashtableFormat) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
aContext
- com.ibm.dse.base.ContextaSelectionCriteria
- java.lang.StringaContext
- com.ibm.dse.base.ContextaHashtableFormat
- com.ibm.dse.base.HashtableFormatpublic void retrieveRecord(int aRecordId, Context aContext, java.lang.String aFormatName) throws DSEInternalErrorException, DSEInvalidArgumentException, DSEInvalidRequestException, DSESQLException, java.io.IOException
aRecordId
- intaContext
- com.ibm.dse.base.ContextaFormatName
- java.lang.Stringpublic Hashtable retrieveRecord(java.lang.String aSelectionCriteria) throws DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
aSelectionCriteria
- java.lang.String, the selection criteria in SQL formatpublic int retrieveRecord(java.lang.String aSelectionCriteria, Context aContext, HashtableFormat aHashtableFormat) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
aContext
- com.ibm.dse.base.ContextaSelectionCriteria
- java.lang.StringaContext
- com.ibm.dse.base.ContextaHashtableFormat
- com.ibm.dse.base.HashtableFormatpublic int retrieveRecord(java.lang.String aSelectionCriteria, Context aContext, HashtableFormat aHashtableFormat, Vector aColumnsVector) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
aContext
- com.ibm.dse.base.ContextaSelectionCriteria
- java.lang.StringaContext
- com.ibm.dse.base.ContextaHashtableFormat
- com.ibm.dse.base.HashtableFormataColumnsVector
- com.ibm.dse.base.Vector, the vector that contains the columns to be retrievedpublic int retrieveRecord(java.lang.String aSelectionCriteria, Context aContext, java.lang.String aFormatName) throws DSEInternalErrorException, DSEInvalidArgumentException, DSEInvalidRequestException, DSESQLException, java.io.IOException
aSelectionCriteria
- java.lang.StringaContext
- com.ibm.dse.base.ContextaFormatName
- java.lang.Stringpublic int retrieveRecord(java.lang.String aSelectionCriteria, Context aContext, java.lang.String aFormatName, Vector aColumnsVector) throws DSEInternalErrorException, DSEInvalidArgumentException, DSEInvalidRequestException, DSESQLException, java.io.IOException
aSelectionCriteria
- java.lang.StringaContext
- com.ibm.dse.base.ContextaFormatName
- java.lang.StringaColumnsVector
- com.ibm.dse.base.Vector, the vector that contains the columns to be retrievedpublic Hashtable retrieveRecord(java.lang.String aSelectionCriteria, Vector aColumnsVector) throws DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
aSelectionCriteria
- java.lang.String, the selection criteria in SQL formataColumnsVector
- com.ibm.dse.base.Vector, the vector that contains the columns to be retrievedpublic Hashtable retrieveRecordForForwarding(int aRecordId) throws DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
aRecordId
- int, the record Identifierpublic void retrieveRecordForForwarding(int aRecordId, Context aContext, HashtableFormat aHashtableFormat) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
aContext
- com.ibm.dse.base.ContextaSelectionCriteria
- java.lang.StringaContext
- com.ibm.dse.base.ContextaHashtableFormat
- com.ibm.dse.base.HashtableFormatpublic void retrieveRecordForForwarding(int aRecordId, Context aContext, java.lang.String aFormatName) throws DSEInternalErrorException, DSEInvalidArgumentException, DSEInvalidRequestException, DSESQLException, java.io.IOException
aRecordId
- intaContext
- com.ibm.dse.base.ContextaFormatName
- java.lang.Stringpublic Hashtable retrieveRecordForForwarding(java.lang.String aSelectionCriteria) throws DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
aSelectionCriteria
- java.lang.String, the selection criteria in SQL formatpublic int retrieveRecordForForwarding(java.lang.String aSelectionCriteria, Context aContext, HashtableFormat aHashtableFormat) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
aContext
- com.ibm.dse.base.ContextaSelectionCriteria
- java.lang.StringaContext
- com.ibm.dse.base.ContextaHashtableFormat
- com.ibm.dse.base.HashtableFormatpublic int retrieveRecordForForwarding(java.lang.String aSelectionCriteria, Context aContext, java.lang.String aFormatName) throws DSEInternalErrorException, DSEInvalidArgumentException, DSEInvalidRequestException, DSESQLException, java.io.IOException
aSelectionCriteria
- java.lang.StringaContext
- com.ibm.dse.base.ContextaFormatName
- java.lang.Stringpublic Vector retrieveRecordsForForwarding(java.lang.String aSearchCondition) throws DSEInternalErrorException, DSEInvalidRequestException, DSEInvalidArgumentException, DSESQLException
aSearchCondition
- java.lang.String, the search condition in SQL formatpublic void retrieveRecordsForForwarding(java.lang.String aSearchCondition, Context aContext, HashtableIndexedCollectionFormat anOutputFormat) throws DSEInternalErrorException, DSEInvalidRequestException, DSEInvalidArgumentException, DSESQLException, DSEObjectNotFoundException, java.io.IOException
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.dse.base.HashtableIndexedCollectionFormat, the formatter to unformat the retrieved recordspublic void retrieveRecordsForForwarding(java.lang.String aSearchCondition, Context aContext, java.lang.String anOutputFormatName) throws DSEInternalErrorException, DSEInvalidRequestException, DSEInvalidArgumentException, DSESQLException, DSEObjectNotFoundException, java.io.IOException
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 recordspublic void rollback() throws DSESQLException
public void setCatalogName(java.lang.String newCatalogName)
s
- java.lang.Stringprotected void setColumnsTable(Hashtable aColumnsHashtable)
aColumnsHashtable
- Hashtablepublic void setJDBCDriver(java.lang.String newJDBCDriver)
newJDBCDriver
- java.lang.Stringprotected void setLastRecordNumber(int aRecordNumber)
aRecordNumber
- int, the number of the last record inserted in the store tablepublic void setSchemaName(java.lang.String s)
s
- java.lang.Stringpublic Vector toStrings()
public int updateRecord(int aRecordId, Context aContext, HashtableFormat aHashtableFormat) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException, DSEInvalidClassException
aRecordId
- intaContext
- com.ibm.dse.base.ContextaHashtableFormat
- com.ibm.dse.base.HashtableFormatpublic int updateRecord(int aRecordId, Context aContext, HashtableFormat aHashtableFormat, Vector aColumnsVector) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException, DSEInvalidClassException
aRecordId
- intaContext
- com.ibm.dse.base.ContextaHashtableFormat
- com.ibm.dse.base.HashtableFormataColumnsVector
- com.ibm.dse.base.Vector, the columns to be changedpublic int updateRecord(int aRecordId, Context aContext, java.lang.String aFormatName) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException, DSEInvalidClassException, java.io.IOException
aRecordId
- intaContext
- com.ibm.dse.base.ContextaFormatName
- String, the name of the formatter to be usedpublic int updateRecord(int aRecordId, Context aContext, java.lang.String aFormatName, Vector aColumnsVector) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException, DSEInvalidClassException, java.io.IOException
aRecordId
- intaContext
- com.ibm.dse.base.ContextaFormatName
- String, the name of the formatter to be usedaColumnsVector
- com.ibm.dse.base.Vector, the columns to be updatedpublic int updateRecord(int aRecordId, Hashtable aDataHashtable) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
aRecordId
- intaDataHashtable
- com.ibm.dse.base.Hashtable, the hashtable that contains the new datapublic int updateRecord(int aRecordId, Hashtable aDataHashtable, Vector aColumnsVector) throws DSEInvalidRequestException, DSEInternalErrorException, DSEInvalidArgumentException, DSESQLException
aRecordId
- intaDataHashtable
- com.ibm.dse.base.Hashtable, the hashtable that contains the new dataaColumnsVector
- com.ibm.dse.base.Vector, the columns to be updated
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |