public class Oracle extends DatabaseType
_connection, _createIndexes, VERSION_TABLE_NAME
Modifier | Constructor and Description |
---|---|
protected |
Oracle()
Only this package (DatabaseFactory) can instantiate.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
_areForeignKeysIndexed()
Returns true if foreign keys are automatically indexed.
|
protected boolean |
_arePrimaryKeysIndexed()
Returns true if primary keys are automatically indexed.
|
protected java.lang.String |
_getDriverName()
Get the driver class name.
|
protected java.lang.String |
_getJDBCUrl(java.lang.String hostName,
java.lang.String port,
java.lang.String databaseName)
Get a JDBC URL.
|
protected java.lang.String |
_getTypeString(Column column)
Get the SQL string of a column type.
|
protected boolean |
_hasGeneratedKeys()
Returns true if database supports auto-generated keys in its prepared
statements.
|
protected boolean |
_isIdentifierTooLong(java.lang.String identifier)
Returns true if identifier is too long.
|
protected boolean |
_needCapitalColumnNames()
Returns true if column names should be capitalized.
|
protected boolean |
_needCapitalTableNames()
Returns true if table names should be capitalized.
|
protected boolean |
_needSequencesForAutoInc()
Returns true if need to use sequences for autoincrement columns.
|
java.lang.String |
getColumnName(java.lang.String columnName)
Adjust the name of a column.
|
java.lang.String |
getDefaultTimeStr()
Get a string representing the default time.
|
java.lang.String |
getName()
Get the name of the type.
|
void |
renameColumn(java.lang.String oldName,
Column newColumn,
java.lang.String tableName)
Rename a column.
|
void |
setColumnNotNull(Column column,
java.lang.String tableName)
Set not null constraint to a column.
|
void |
setColumnNull(Column column,
java.lang.String tableName)
Change a column to allow null values.
|
_combineHostAndPort, _connectInitialize, _executeSQL, _getConnection, _getConnection, _getCreateTableSuffix, _getPort, _hasCatalog, _isAutoIncResultReferencedByName, _isTableCached, _needIdentityForAutoInc, addMinorVersion, changeColumnType, commit, connect, copyColumn, createColumn, createColumn, createColumn, createIndex, createIndex, createTables, createTables, createVersionTable, deleteColumn, disconnect, getColumnAlterStr, getColumnDefinition, getColumnDefinition, getColumnNames, getColumnSize, getConnection, getFalseValue, getMajorVersion, getMinorVersion, getPrepStatement, getPrimaryFileExtension, getSQLDelete, getSQLInsert, getSQLInsert, getSQLSelect, getSQLSelect, getSQLUpdate, getStatement, getTableName, getTrueValue, getVersionString, hasNewerSchema, hasOlderSchema, insert, needAbsolutePathForName, needHostForConnect, needPasswordForConnect, needUserForConnect, procedureExists, rollback, setAutoCommit, tableExists, tableExists, updateMinorVersion
protected Oracle()
public java.lang.String getColumnName(java.lang.String columnName)
getColumnName
in class DatabaseType
public java.lang.String getDefaultTimeStr()
getDefaultTimeStr
in class DatabaseType
public java.lang.String getName()
getName
in class DatabaseType
public void renameColumn(java.lang.String oldName, Column newColumn, java.lang.String tableName) throws java.sql.SQLException
renameColumn
in class DatabaseType
java.sql.SQLException
public void setColumnNull(Column column, java.lang.String tableName) throws java.sql.SQLException
setColumnNull
in class DatabaseType
java.sql.SQLException
public void setColumnNotNull(Column column, java.lang.String tableName) throws java.sql.SQLException
setColumnNotNull
in class DatabaseType
java.sql.SQLException
protected boolean _areForeignKeysIndexed()
_areForeignKeysIndexed
in class DatabaseType
protected boolean _arePrimaryKeysIndexed()
_arePrimaryKeysIndexed
in class DatabaseType
protected java.lang.String _getDriverName()
_getDriverName
in class DatabaseType
protected java.lang.String _getJDBCUrl(java.lang.String hostName, java.lang.String port, java.lang.String databaseName) throws java.sql.SQLException
_getJDBCUrl
in class DatabaseType
java.sql.SQLException
protected java.lang.String _getTypeString(Column column)
_getTypeString
in class DatabaseType
protected boolean _hasGeneratedKeys()
_hasGeneratedKeys
in class DatabaseType
protected boolean _isIdentifierTooLong(java.lang.String identifier)
_isIdentifierTooLong
in class DatabaseType
protected boolean _needCapitalColumnNames()
_needCapitalColumnNames
in class DatabaseType
protected boolean _needCapitalTableNames()
_needCapitalTableNames
in class DatabaseType
protected boolean _needSequencesForAutoInc()
_needSequencesForAutoInc
in class DatabaseType