com.webobjects.jdbcadaptor
Class OraclePlugIn.OracleSynchronizationFactory
java.lang.Object
|
+--com.webobjects.eoaccess.EOSynchronizationFactory
|
+--com.webobjects.jdbcadaptor.OraclePlugIn.OracleSynchronizationFactory
- All Implemented Interfaces:
- EOSchemaGeneration, EOSchemaSynchronization
- Enclosing class:
- OraclePlugIn
- public static class OraclePlugIn.OracleSynchronizationFactory
- extends EOSynchronizationFactory
Fields inherited from interface com.webobjects.eoaccess.EOSchemaSynchronization |
AllowsNullKey, ColumnNameKey, ExternalNameKey, ExternalTypeKey, NameKey, PrecisionKey, RelationshipsKey, ScaleKey, SchemaSynchronizationForeignKeyConstraintsKey, SchemaSynchronizationPrimaryKeyConstraintsKey, SchemaSynchronizationPrimaryKeySupportKey, WidthKey |
Methods inherited from class com.webobjects.eoaccess.EOSynchronizationFactory |
adaptor, createTableStatementsForEntityGroup, createTableStatementsForEntityGroups, dropPrimaryKeySupportStatementsForEntityGroups, dropTableStatementsForEntityGroups, foreignKeyConstraintStatementsForRelationship, isCaseSensitive, isColumnTypeEquivalentToColumnType, logicalErrorsInChangeDictionaryForModelOptions, objectStoreChangesFromAttributeToAttribute, phraseCastingColumnNamed, primaryKeyConstraintStatementsForEntityGroup, primaryKeyConstraintStatementsForEntityGroups, primaryKeyEntityGroupsForEntities, primaryKeySupportStatementsForEntityGroups, schemaCreationScriptForEntities, schemaCreationStatementsForEntities, schemaSynchronizationDelegate, setSchemaSynchronizationDelegate, statementsToConvertColumnType, statementsToCopyTableNamed, statementsToDeleteColumnNamed, statementsToDropForeignKeyConstraintsOnEntityGroups, statementsToDropPrimaryKeyConstraintsOnEntityGroups, statementsToDropPrimaryKeySupportForEntityGroups, statementsToImplementForeignKeyConstraintsOnEntityGroups, statementsToImplementPrimaryKeyConstraintsOnEntityGroups, statementsToImplementPrimaryKeySupportForEntityGroups, statementsToInsertColumnForAttribute, statementsToModifyColumnNullRule, statementsToRenameColumnNamed, statementsToRenameTableNamed, statementsToUpdateObjectStoreForEntityGroups, statementsToUpdateObjectStoreForModel, supportsDirectColumnCoercion, supportsDirectColumnDeletion, supportsDirectColumnInsertion, supportsDirectColumnNullRuleModification, supportsDirectColumnRenaming, tableEntityGroupsForEntities |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OraclePlugIn.OracleSynchronizationFactory
public OraclePlugIn.OracleSynchronizationFactory(EOAdaptor adaptor)
appendExpressionToScript
public void appendExpressionToScript(EOSQLExpression expression,
StringBuffer script)
- Description copied from class:
EOSynchronizationFactory
- Appends
expression
's statement to script
along with any necessary delimiter. script
is the
StringBuffer in which the SQL script is built. Used in conjunction
with schemaCreationStatementsForEntities
and
schemaCreationScriptForEntities
to build up the
SQL script to generate the specified schema for a set of EOEntities.
This method appends the SQL statement for expression
to script
followed by a semicolon and a newline. A
subclass of EOSQLExpression only need to override this method if
the delimiter for its database server is different.
- Overrides:
appendExpressionToScript
in class EOSynchronizationFactory
- Following copied from class:
com.webobjects.eoaccess.EOSynchronizationFactory
- Parameters:
expression
- An EOSQLExpression.script
- A StringBuffer used to build the SQL script.- See Also:
EOSynchronizationFactory.createTableStatementsForEntityGroup(
NSArray entityGroup)
createDatabaseStatementsForConnectionDictionary
public NSArray createDatabaseStatementsForConnectionDictionary(NSDictionary connectionDictionary,
NSDictionary administrativeConnectionDictionary)
- Description copied from class:
EOSynchronizationFactory
- The default implementation returns
null
. Can be
overridden by subclasses to generate and return an array of
EOSQLExpressions defining the SQL statements to create a database
or user that can be accessed by the provided
connectionDictionary
and
administrativeConnectionDictionary
.
- Overrides:
createDatabaseStatementsForConnectionDictionary
in class EOSynchronizationFactory
- Following copied from class:
com.webobjects.eoaccess.EOSynchronizationFactory
- Parameters:
connectionDictionary
- A dictionary of
information needed by the
adaptor to connect to the
database server.administrativeConnectionDictionary
- A dictionary of
administrative login
information for the
database server.- Returns:
null
by
default.- See Also:
EOSynchronizationFactory.dropDatabaseStatementsForConnectionDictionary(
NSDictionary connectionDictionary,
NSDictionary administrativeConnectionDictionary)
dropDatabaseStatementsForConnectionDictionary
public NSArray dropDatabaseStatementsForConnectionDictionary(NSDictionary connectionDictionary,
NSDictionary administrativeConnectionDictionary)
- Description copied from class:
EOSynchronizationFactory
- The default implementation returns
null
. Can be
overridden by subclasses to generate and return an array of
EOSQLExpressions defining the SQL statements to drop a database
or user that is accessed by the provided
connectionDictionary
and
administrativeConnectionDictionary
.
- Overrides:
dropDatabaseStatementsForConnectionDictionary
in class EOSynchronizationFactory
- Following copied from class:
com.webobjects.eoaccess.EOSynchronizationFactory
- Parameters:
connectionDictionary
- A dictionary of
information needed by the
adaptor to connect to the
database server.administrativeConnectionDictionary
- A dictionary of
administrative login
information for the
database server.- Returns:
null
by
default.- See Also:
EOSynchronizationFactory.createDatabaseStatementsForConnectionDictionary(
NSDictionary connectionDictionary,
NSDictionary administrativeConnectionDictionary)
dropPrimaryKeySupportStatementsForEntityGroup
public NSArray dropPrimaryKeySupportStatementsForEntityGroup(NSArray entityGroup)
- Description copied from class:
EOSynchronizationFactory
- The default implementation returns
null
. Can be
overridden by subclasses to return an array of EOSQLExpression
objects that define the SQL necessary to drop the primary key
generation support for entityGroup
.
- Overrides:
dropPrimaryKeySupportStatementsForEntityGroup
in class EOSynchronizationFactory
- Following copied from class:
com.webobjects.eoaccess.EOSynchronizationFactory
- Parameters:
entityGroup
- An array of EOEntity objects that have the same
external name.- Returns:
null
by default.- See Also:
EOSynchronizationFactory.primaryKeySupportStatementsForEntityGroup(
NSArray entityGroup)
,
EOEntity.externalName()
dropTableStatementsForEntityGroup
public NSArray dropTableStatementsForEntityGroup(NSArray entityGroup)
- Description copied from class:
EOSynchronizationFactory
- Returns an array of EOSQLExpression objects that define the SQL
necessary to drop the table identified by
entityGroup
.
Returns an empty array if entityGroup
is
null
. The drop statement generated by this method
should be sufficient to remove the table created by
createTableStatementsForEntityGroup
's statements.
This method creates a statement of the form:
DROP TABLE TABLE_NAME
where TABLE_NAME
is the external name of the first
entity in entityGroup
.
If the database server's drop semantics are different,
a subclass should override this method.
- Overrides:
dropTableStatementsForEntityGroup
in class EOSynchronizationFactory
- Following copied from class:
com.webobjects.eoaccess.EOSynchronizationFactory
- Parameters:
entityGroup
- An array of EOEntity objects that have the
same external name.- Returns:
- An array of EOSQLExpressions that define
the SQL necessary to drop tables for the
entities in
entityGroup
, or
an empty array. - See Also:
EOSynchronizationFactory.createTableStatementsForEntityGroup(
NSArray entityGroup)
,
EOEntity.externalName()
primaryKeySupportStatementsForEntityGroup
public NSArray primaryKeySupportStatementsForEntityGroup(NSArray entityGroup)
- Description copied from class:
EOSynchronizationFactory
- The default implementation returns
null
. Can be
overridden by subclasses to return an array of EOSQLExpression
objects that define the SQL necessary to create the primary key
generation support for entityGroup
.
- Overrides:
primaryKeySupportStatementsForEntityGroup
in class EOSynchronizationFactory
- Following copied from class:
com.webobjects.eoaccess.EOSynchronizationFactory
- Parameters:
entityGroup
- An array of EOEntity objects that have the same
external name.- Returns:
null
by default.- See Also:
EOSynchronizationFactory.dropPrimaryKeySupportStatementsForEntityGroup(
NSArray entityGroup)
,
EOAdaptorChannel.primaryKeyForNewRowWithEntity(
EOEntity entity)
,
EOEntity.externalName()
supportsSchemaSynchronization
public boolean supportsSchemaSynchronization()
- Description copied from class:
EOSynchronizationFactory
- The default implementation returns
false
. Can be
overridden by subclasses to return true
if the adaptor
can update the database schema to reflect changes in an EOModel.
- Overrides:
supportsSchemaSynchronization
in class EOSynchronizationFactory
- Following copied from class:
com.webobjects.eoaccess.EOSynchronizationFactory
- Returns:
true
if the adaptor can update the
database schema.
Copyright © 2002 Apple Computer, Inc.