org.dbmaintain.database.impl
Class InformixDatabase

java.lang.Object
  extended by org.dbmaintain.database.Database
      extended by org.dbmaintain.database.impl.InformixDatabase

public class InformixDatabase
extends Database

Implementation of Database for a hsqldb database

Author:
Filip Neven, Tim Ducheyne

Field Summary
 
Fields inherited from class org.dbmaintain.database.Database
databaseConnection, identifierProcessor, schemaNames
 
Constructor Summary
InformixDatabase(DatabaseConnection databaseConnection, IdentifierProcessor identifierProcessor)
           
 
Method Summary
protected  void disableConstraints(String schemaName, String constraintType)
           
 void disableReferentialConstraints(String schemaName)
          Disables all referential constraints (e.g. foreign keys) on all table in the given schema
 void disableValueConstraints(String schemaName)
          Disables all value constraints (e.g. not null) on all tables in the given schema
 Set<String> getColumnNames(String schemaName, String tableName)
          Gets the names of all columns of the given table.
 String getSupportedDatabaseDialect()
           
 Set<String> getTableNames(String schemaName)
          Returns the names of all tables in the given schema.
 Set<String> getViewNames(String schemaName)
          Retrieves the names of all the views in the database schema.
 
Methods inherited from class org.dbmaintain.database.Database
disableReferentialConstraints, disableValueConstraints, dropMaterializedView, dropMaterializedView, dropRule, dropSequence, dropSequence, dropStoredProcedure, dropStoredProcedure, dropSynonym, dropSynonym, dropTable, dropTable, dropTrigger, dropTrigger, dropType, dropType, dropView, dropView, getColumnNames, getDatabaseInfo, getDatabaseName, getDataSource, getDefaultSchemaName, getIdentifierQuoteString, getIdentityColumnNames, getIdentityColumnNames, getLongDataType, getMaterializedViewNames, getMaterializedViewNames, getRuleNames, getSchemaNames, getSequenceNames, getSequenceNames, getSequenceValue, getSequenceValue, getSQLHandler, getStoredIdentifierCase, getStoredProcedureNames, getStoredProcedureNames, getSynonymNames, getSynonymNames, getTableNames, getTextDataType, getTriggerNames, getTriggerNames, getTypeNames, getTypeNames, getViewNames, incrementIdentityColumnToValue, incrementIdentityColumnToValue, incrementSequenceToValue, incrementSequenceToValue, isQuoted, qualified, qualified, quoted, removeIdentifierQuotes, setDatabaseDefaultSchema, setSettingIdentityColumnValueEnabled, setSettingIdentityColumnValueEnabled, supportsCascade, supportsIdentityColumns, supportsMaterializedViews, supportsRules, supportsSequences, supportsSetDatabaseDefaultSchema, supportsStoredProcedures, supportsSynonyms, supportsTriggers, supportsTypes, toCorrectCaseIdentifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InformixDatabase

public InformixDatabase(DatabaseConnection databaseConnection,
                        IdentifierProcessor identifierProcessor)
Method Detail

getSupportedDatabaseDialect

public String getSupportedDatabaseDialect()
Specified by:
getSupportedDatabaseDialect in class Database
Returns:
the database dialect supported by this db support class, not null

getTableNames

public Set<String> getTableNames(String schemaName)
Description copied from class: Database
Returns the names of all tables in the given schema.

Specified by:
getTableNames in class Database
Parameters:
schemaName - The schema, not null
Returns:
The names of all tables in the database

getColumnNames

public Set<String> getColumnNames(String schemaName,
                                  String tableName)
Description copied from class: Database
Gets the names of all columns of the given table.

Specified by:
getColumnNames in class Database
Parameters:
schemaName - The schema, not null
tableName - The table, not null
Returns:
The names of the columns of the table with the given name

getViewNames

public Set<String> getViewNames(String schemaName)
Description copied from class: Database
Retrieves the names of all the views in the database schema.

Specified by:
getViewNames in class Database
Parameters:
schemaName - The schema, not null
Returns:
The names of all views in the database

disableReferentialConstraints

public void disableReferentialConstraints(String schemaName)
Description copied from class: Database
Disables all referential constraints (e.g. foreign keys) on all table in the given schema

Specified by:
disableReferentialConstraints in class Database
Parameters:
schemaName - The schema, not null

disableValueConstraints

public void disableValueConstraints(String schemaName)
Description copied from class: Database
Disables all value constraints (e.g. not null) on all tables in the given schema

Specified by:
disableValueConstraints in class Database
Parameters:
schemaName - The schema, not null

disableConstraints

protected void disableConstraints(String schemaName,
                                  String constraintType)


Copyright © 2011. All Rights Reserved.