com.ptc.windchill.upgrade.modeldiff
Class TableDef
java.lang.Object
com.ptc.windchill.upgrade.modeldiff.TableDef
- class TableDef
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name_
private String name_
tablespaceName_
private String tablespaceName_
conceptualSize_
private String conceptualSize_
columns_
private Vector columns_
modCols_
private Vector modCols_
addCols_
private Vector addCols_
TableDef
TableDef(String inName,
String inTsName,
String inSize,
Vector cols)
tableToString
public String tableToString()
getAddCols
Vector getAddCols()
addColumn
void addColumn(AttribsList col)
getAddedColumns
Enumeration getAddedColumns()
getModifiedColumns
Enumeration getModifiedColumns()
isModAlter
boolean isModAlter()
isAddAlter
boolean isAddAlter()
generateAlterTable
String generateAlterTable(boolean includeBlobClause)
throws CompareSchemaException
- Throws:
CompareSchemaException
generateMigrateClause
String generateMigrateClause()
throws WTIntrospectionException
- Produce an update statement to set values for any new
columns for which we know the initial values.
- Returns:
- A Migrate Clause or a null if no initial values are to be set.
- Throws:
WTIntrospectionException
blobStorageClauseIfStatusIsNewColumn
private String blobStorageClauseIfStatusIsNewColumn()
generateBlobInitializationStatement
private String generateBlobInitializationStatement()
- Prepares a statement that looks like the following for each new blob column.
UPDATE table SET blob_column=empty_blob() WHERE blob_column IS NULL;
- Returns:
- Zero or more statements, each on its own line, or null if there are no new blob columns.