|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.services.jdbc.Db2JournalSchemaGenerator
Field Summary | |
static boolean |
createSchema
Deprecated. |
protected static java.sql.Connection |
databaseConnection
Deprecated. Keeps the connection to the database that will be used by the Db2JournalSchemaGenerator |
int |
requestedNumberOfGenerations
Deprecated. Keeps the number of generations for the journal schema |
java.lang.String |
requestedTableDefinition
Deprecated. Keeps the journal tables definition in SQL format |
java.lang.String |
schemaName
Deprecated. Keeps the journal schema name |
Constructor Summary | |
Db2JournalSchemaGenerator()
Deprecated. This constructor creates a Db2JournalSchemaGenerator object. |
|
Db2JournalSchemaGenerator(java.lang.String aSchemaName)
Deprecated. This constructor creates a Db2JournalSchemaGenerator object for the specified schema. |
Method Summary | |
void |
addEntity(java.lang.String anEntityName)
Deprecated. Adds a new entity in the journal schema definition. |
Vector |
allEntities()
Deprecated. Returns a vector with the entities defined for the current journal schema. |
static Vector |
allEntities(java.lang.String aSchemaName)
Deprecated. Returns a Vector with the entities names defined for the journal schema aSchemaName. |
static void |
connect(java.lang.String aDatabaseURL)
Deprecated. Connects to the database with URL aDatabaseURL. |
static void |
connect(java.lang.String aDatabaseURL,
java.lang.String aUser,
java.lang.String aPassword)
Deprecated. Connects to the database with the URL aDatabaseURL, user identification aUser, and password aPassword. |
protected static java.lang.String |
controlTableName(java.lang.String aSchemaName)
Deprecated. Returns the name of the control table for the schema name aSchemaName. |
static DatabaseResultSetMetaData |
currentJournalTableColumnData(java.lang.String aSchemaName)
Deprecated. Returns the DatabaseResultSetMetaData instance that contains the journal table columns information. |
java.lang.String |
currentJournalTableDefinition(java.lang.String aSchemaName)
Deprecated. Calls the currentJournalTableColumnsData method to get the DatabaseResultSetMetaData instance for the schema aSchemaName. |
static void |
disconnect()
Deprecated. Closes the Database connection. |
void |
generateSchema(Vector aListOfEntities,
int nbrOfGenerations,
java.lang.String aTableDefinition)
Deprecated. Generates the journal schema with a default database schema name (set in the JournalConstants class in attribute DEFAULT_SCHEMA_NAME). |
void |
generateSchema(Vector aListOfEntities,
int nbrOfGenerations,
java.lang.String aTableDefinition,
java.lang.String aSchemaName)
Deprecated. Generates the journal schema with name aSchemaName in the currently connected database. |
static Vector |
generateSGML(java.lang.String aSchemaName,
java.lang.String aDatabaseURL,
java.lang.String aUser,
java.lang.String aPassword)
Deprecated. Called by the SGML editor tool if the information to create the journal format definition is to be retrieved from the database. |
static Vector |
generateSGML(java.lang.String aSchemaName,
java.lang.String aDatabaseURL,
java.lang.String aUser,
java.lang.String aPassword,
java.lang.String aJDBCDriverName)
Deprecated. Called by the SGML editor tool if the information to create the journal format definition is to be retrieved from the database. |
protected static DatabaseResultSetMetaData |
getMetaData(java.lang.String aSchemaName)
Deprecated. Returns the DatabaseResultSetMetaData instance associated with the schema aSchemaName. |
java.lang.String |
journalTableDefinition()
Deprecated. Returns a string with the SQL definition of the journal tables columns. |
int |
numberOfGenerations()
Deprecated. Returns the number of journal generations in the journal service definition. |
static int |
numberOfGenerations(java.lang.String aSchemaName)
Deprecated. Returns the number of journal generations for the schema aSchemaName. |
void |
removeAllEntities(java.lang.String aSchemaName)
Deprecated. Removes all entities for the given journal schema. |
void |
removeEntity(java.lang.String anEntityName)
Deprecated. Removes the entity anEntityName from the current journal schema. |
void |
removeEntity(java.lang.String anEntityName,
java.lang.String aSchemaName)
Deprecated. Removes the entity anEntityName from the journal schema aSchemaName. |
void |
removeSchema(java.lang.String aSchemaName)
Deprecated. Removes a journal schema and all its related journal tables. |
protected static java.lang.String |
tableName(java.lang.String aSchemaName,
java.lang.String anEntityName,
java.lang.String aGeneration)
Deprecated. Returns the current journal table name. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public int requestedNumberOfGenerations
public java.lang.String requestedTableDefinition
public java.lang.String schemaName
protected static java.sql.Connection databaseConnection
public static boolean createSchema
Constructor Detail |
public Db2JournalSchemaGenerator()
public Db2JournalSchemaGenerator(java.lang.String aSchemaName) throws DSEInvalidArgumentException, DSEInvalidRequestException, DSEInternalErrorException, DSESQLException
aSchemaName
- java.lang.String the name of the SchemaMethod Detail |
public void addEntity(java.lang.String anEntityName) throws DSESQLException, DSEInvalidArgumentException, DSEInternalErrorException, DSEInvalidRequestException
anEntityName
- java.lang.String the name of the entity to be addedpublic Vector allEntities() throws DSEInvalidRequestException, DSEInternalErrorException, DSESQLException
public static Vector allEntities(java.lang.String aSchemaName) throws DSEInvalidRequestException, DSEInternalErrorException, DSESQLException
aSchemaName
- java.lang.String, the name of the journal schemapublic static void connect(java.lang.String aDatabaseURL) throws DSEInternalErrorException, DSEInvalidRequestException, DSESQLException
aDatabaseURL
- java.lang.String, the database URLpublic static void connect(java.lang.String aDatabaseURL, java.lang.String aUser, java.lang.String aPassword) throws DSESQLException, DSEInvalidRequestException, DSEInternalErrorException
aDatabaseURL
- java.lang.String, the database URLaUser
- java.lang.String, the user identificationaPassword
- java.lang.String, the user passwordprotected static java.lang.String controlTableName(java.lang.String aSchemaName)
aSchemaName
- java.lang.String, the name of the journal schemapublic static DatabaseResultSetMetaData currentJournalTableColumnData(java.lang.String aSchemaName) throws DSEInternalErrorException, DSEInvalidRequestException, DSEInvalidArgumentException, DSESQLException
aSchemaName
- java.lang.String, the journal schema namepublic java.lang.String currentJournalTableDefinition(java.lang.String aSchemaName) throws DSEInvalidArgumentException, DSEInvalidRequestException, DSEInternalErrorException, DSESQLException
aSchemaName
- java.lang.String, the journal schema Namepublic static void disconnect() throws DSESQLException
public void generateSchema(Vector aListOfEntities, int nbrOfGenerations, java.lang.String aTableDefinition) throws DSEInvalidArgumentException, DSEInvalidRequestException, DSESQLException, DSEInternalErrorException
aListOfEntities
- com.ibm.dse.base.Vector, the vector of journal entitiesnbrOfGenerations
- int, the number of journal generationsaTableDefinition
- java.lang.String, the table definition in SQL formatpublic void generateSchema(Vector aListOfEntities, int nbrOfGenerations, java.lang.String aTableDefinition, java.lang.String aSchemaName) throws DSEInvalidArgumentException, DSEInvalidRequestException, DSESQLException, DSEInternalErrorException
aListOfEntities
- com.ibm.dse.base.Vector, the vector of journal entitiesnbrOfGenerations
- int, the number of journal generationsaTableDefinition
- java.lang.String, the table definition in SQL formataSchemaName
- java.lang.String, the journal schema namepublic static Vector generateSGML(java.lang.String aSchemaName, java.lang.String aDatabaseURL, java.lang.String aUser, java.lang.String aPassword) throws DSEInternalErrorException, DSEInvalidRequestException, DSESQLException, java.lang.Exception
aSchemaName
- java.lang.String, the journal schema nameaDatabaseURL
- java.lang.String, the URL of the database that keeps the journal tablesaUser
- java.lang.String, the user identification to logon to the databaseaPassword
- java.lang.String, the user password to logon to the databasepublic static Vector generateSGML(java.lang.String aSchemaName, java.lang.String aDatabaseURL, java.lang.String aUser, java.lang.String aPassword, java.lang.String aJDBCDriverName) throws java.lang.Exception, DSEInternalErrorException, DSEInvalidRequestException, DSESQLException
aSchemaName
- java.lang.String, the journal schema nameaDatabaseURL
- java.lang.String, the URL of the database that keeps the journal tablesaUser
- java.lang.String, the user identification to logon to the databaseaPassword
- java.lang.String, the user password to logon to the databaseaJDBCDriverName
- java.lang.String, the name of the JDBC driver that will be used to access the databaseprotected static DatabaseResultSetMetaData getMetaData(java.lang.String aSchemaName) throws DSEInvalidArgumentException, DSEInvalidRequestException, DSEInternalErrorException, DSESQLException
aSchemaName
- java.lang.String, the journal schema namepublic java.lang.String journalTableDefinition() throws DSEException
public int numberOfGenerations() throws DSEInvalidRequestException, DSESQLException, DSEInternalErrorException
public static int numberOfGenerations(java.lang.String aSchemaName) throws DSEInvalidRequestException, DSESQLException, DSEInternalErrorException
aSchemaName
- java.lang.String, the journal schema namepublic void removeAllEntities(java.lang.String aSchemaName) throws DSEInvalidArgumentException, DSEInvalidRequestException, DSEInternalErrorException, DSESQLException
aSchemaName
- java.lang.String, the name of the journal schemapublic void removeEntity(java.lang.String anEntityName) throws DSEInternalErrorException, DSEInvalidArgumentException, DSEInvalidRequestException, DSESQLException
anEntityName
- java.lang.String, the entity namepublic void removeEntity(java.lang.String anEntityName, java.lang.String aSchemaName) throws DSEInvalidArgumentException, DSEInvalidRequestException, DSEInternalErrorException, DSESQLException
anEntityName
- java.lang.String, the entity nameaSchemaName
- java.lang.String, the journal schema namepublic void removeSchema(java.lang.String aSchemaName) throws DSEInvalidRequestException, DSEInvalidArgumentException, DSEInternalErrorException, DSESQLException
aSchemaName
- java.lang.String, the name of the journal schemaprotected static java.lang.String tableName(java.lang.String aSchemaName, java.lang.String anEntityName, java.lang.String aGeneration)
aSchemaName
- java.lang.String, the journal schema nameanEntityName
- java.lang.String, the entity nameaGeneration
- java.lang.String, the journal generation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |