|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.services.jdbc.JDBCServicesAdministrator
com.ibm.btt.services.jdbc.JDBCStoreSchemaGenerator
public class JDBCStoreSchemaGenerator
Field Summary | |
---|---|
static java.lang.String |
catalogName
Keeps the store catalog name. |
boolean |
createIndex
Keeps the createIndex attribute value. |
static boolean |
createSchema
Keeps the createSchema attribute value. |
java.lang.String |
databaseName
Keeps the databaseName attribute value. |
java.lang.String |
indexName
Keeps the indexName attribute value. |
static java.lang.String |
schemaName
Keeps the store schema name. |
Fields inherited from class com.ibm.btt.services.jdbc.JDBCServicesAdministrator |
---|
COMPID, databaseConnection, getSchemaSem |
Constructor Summary | |
---|---|
JDBCStoreSchemaGenerator()
This constructor creates a JDBCStoreSchemaGenerator object. |
Method Summary | |
---|---|
void |
connect(java.lang.String aDatabaseURL)
Connects to the database with aDatabaseURL. |
void |
connect(java.lang.String aDatabaseURL,
java.lang.String aUser,
java.lang.String aPassword)
Connects to the database using the aDatabaseURL, aUser, and aPassword. |
void |
generateTable(java.lang.String aTableName,
java.lang.String aTableDefinition)
Generates the Store table in the selected database with aTableName name. |
void |
generateTable(java.lang.String aSchemaName,
java.lang.String aTableName,
java.lang.String aTableDefinition)
Generates the store table in the selected database with aTableName name. |
java.lang.String |
getCatalogName()
Returns the catalogName attribute value. |
java.lang.String |
getDatabaseName()
Returns the databaseName attribute. |
java.lang.String |
getIndexName()
Returns the indexName attribute. |
protected static DatabaseResultSetMetaData |
getMetaData(java.lang.String aTableName)
Returns the DatabaseResultSetMetaData associated with a Store Table. |
java.lang.String |
getSchemaName()
Returns the schemaName attribute value. |
boolean |
isCreateIndex()
Returns true if the application has requested to create an index on the store table. |
boolean |
isCreateSchema()
Returns the createSchema attribute value. |
void |
loadDriver()
Loads the JDBC Driver as set in the JournalConstants ST_DEFAULT_JDBCDRIVER attribute. |
void |
loadDriver(java.lang.String aDriverName)
Loads the JDBC Driver explicitly provided as an argument. |
void |
setCatalogName(java.lang.String s)
Sets the catalogName attribute to the string provided as argument. |
void |
setCreateIndex(boolean newCreateIndex)
Sets the createIndex attribute value to newCreateIndex. |
void |
setCreateSchema(boolean newCreateSchema)
Sets the createSchema attribute value to newCreateSchema. |
void |
setDatabaseName(java.lang.String newDatabaseName)
Sets the databaseName attribute value to newDatabaseName. |
void |
setIndexName(java.lang.String newIndexName)
Sets the indexName attribute value to newIndexName. |
void |
setSchemaName(java.lang.String s)
Sets the schemaName attribute to the string provided as an argument. |
Methods inherited from class com.ibm.btt.services.jdbc.JDBCServicesAdministrator |
---|
disconnect, dropProcedure, getConnectionManager, getProcedureMetaData, isRegistered, isRegistered, registerProcedure |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String schemaName
public static java.lang.String catalogName
public java.lang.String databaseName
public static boolean createSchema
public java.lang.String indexName
public boolean createIndex
Constructor Detail |
---|
public JDBCStoreSchemaGenerator()
Method Detail |
---|
public void connect(java.lang.String aDatabaseURL) throws DSEInternalErrorException, DSEInvalidRequestException, DSESQLException
connect
in class JDBCServicesAdministrator
aDatabaseURL
- java.lang.String - the database URL
DSEInvalidRequestException
- if the request is not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic void connect(java.lang.String aDatabaseURL, java.lang.String aUser, java.lang.String aPassword) throws DSESQLException, DSEInvalidRequestException, DSEInternalErrorException
connect
in class JDBCServicesAdministrator
aDatabaseURL
- java.lang.String - the database URLaUser
- java.lang.String - the user identificationaPassword
- java.lang.String - the user password
DSEInvalidRequestException
- if the request is not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caughtpublic void generateTable(java.lang.String aTableName, java.lang.String aTableDefinition) throws DSEInvalidArgumentException, DSESQLException, DSEInternalErrorException, DSEInvalidRequestException
aTableName
- java.lang.StringaTableDefinition
- java.lang.String
DSEInvalidArgumentException
- if the argument(s) is(are) not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caught
DSEInvalidRequestException
public void generateTable(java.lang.String aSchemaName, java.lang.String aTableName, java.lang.String aTableDefinition) throws DSEInvalidArgumentException, DSESQLException, DSEInternalErrorException, DSEInvalidRequestException
aSchemaName
- java.lang.StringaTableName
- java.lang.StringaTableDefinition
- java.lang.String
DSEInvalidArgumentException
- if the argument(s) is(are) not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQLException is caught
DSEInvalidRequestException
public java.lang.String getCatalogName()
public java.lang.String getDatabaseName()
public java.lang.String getIndexName()
protected static DatabaseResultSetMetaData getMetaData(java.lang.String aTableName) throws DSEInvalidArgumentException, DSEInternalErrorException, DSESQLException
aTableName
- java.lang.String - the store table name
DSEInvalidArgumentException
- if the argument(s) is(are) not valid
DSEInternalErrorException
- if an internal program error occurs
DSESQLException
- if an SQL Exception is caughtpublic java.lang.String getSchemaName()
public boolean isCreateIndex()
public boolean isCreateSchema()
public void loadDriver() throws DSEInternalErrorException
DSEInternalErrorException
- if an internal program error occurspublic void loadDriver(java.lang.String aDriverName) throws DSEInternalErrorException
aDriverName
- java.lang.String - the driver name (full path)
DSEInternalErrorException
- if an internal program error occurspublic void setCatalogName(java.lang.String s)
s
- java.lang.Stringpublic void setCreateIndex(boolean newCreateIndex)
newCreateIndex
- booleanpublic void setCreateSchema(boolean newCreateSchema)
newCreateSchema
- booleanpublic void setDatabaseName(java.lang.String newDatabaseName)
newDatabaseName
- java.lang.Stringpublic void setIndexName(java.lang.String newIndexName)
newIndex
- java.lang.Stringpublic void setSchemaName(java.lang.String s)
s
- java.lang.String
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |