|
WebObjects 5.2.3 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webobjects.eoaccess.EOSynchronizationFactory com.webobjects.jdbcadaptor.MicrosoftPlugIn.MicrosoftSynchronizationFactory
Nested Class Summary |
Nested classes inherited from class com.webobjects.eoaccess.EOSynchronizationFactory |
EOSynchronizationFactory.Delegate |
Nested classes inherited from class com.webobjects.eoaccess.EOSchemaSynchronization |
EOSchemaSynchronization.ColumnTypes |
Field Summary |
Fields inherited from interface com.webobjects.eoaccess.EOSchemaGeneration |
CreateDatabaseKey, CreatePrimaryKeySupportKey, CreateTablesKey, DropDatabaseKey, DropPrimaryKeySupportKey, DropTablesKey, ForeignKeyConstraintsKey, PrimaryKeyConstraintsKey |
Fields inherited from interface com.webobjects.eoaccess.EOSchemaSynchronization |
AllowsNullKey, ColumnNameKey, ExternalNameKey, ExternalTypeKey, NameKey, PrecisionKey, RelationshipsKey, ScaleKey, SchemaSynchronizationForeignKeyConstraintsKey, SchemaSynchronizationPrimaryKeyConstraintsKey, SchemaSynchronizationPrimaryKeySupportKey, WidthKey |
Constructor Summary | |
MicrosoftPlugIn.MicrosoftSynchronizationFactory(EOAdaptor adaptor)
|
Method Summary | |
NSArray |
dropPrimaryKeySupportStatementsForEntityGroups(NSArray entityGroups)
Returns an array of EOSQLExpression objects that define the SQL necessary to drop the primary key generation support for all the entities in each of the the entity groups in entityGroups . |
NSArray |
dropTableStatementsForEntityGroup(NSArray entityGroup)
Returns an array of EOSQLExpression objects that define the SQL necessary to drop the table identified by entityGroup . |
NSArray |
primaryKeySupportStatementsForEntityGroups(NSArray entityGroups)
Returns an array of EOSQLExpression objects that define the SQL necessary to create the primary key generation support for all the entities in each of the the entity groups in entityGroups . |
NSArray |
statementsToRenameTableNamed(String tableName,
String newName,
NSDictionary options)
Returns an array of EOSQLExpressions to rename in place the the table indentifed by tableName to
newName . |
boolean |
supportsSchemaSynchronization()
The default implementation returns false . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MicrosoftPlugIn.MicrosoftSynchronizationFactory(EOAdaptor adaptor)
Method Detail |
public NSArray dropPrimaryKeySupportStatementsForEntityGroups(NSArray entityGroups)
EOSynchronizationFactory
entityGroups
. Returns an empty array if
entityGroups
is null
or empty. If primary
key generation is not supported, returns an array that contains the
string "The 'Drop Primary Key Support' option is
unavailable."
This method invokes
dropPrimaryKeySupportStatementsForEntityGroup
for each
entity group in entityGroups
and returns an array of
all the resulting EOSQLExpressions. Since the default
implementation of
dropPrimaryKeySupportStatementsForEntityGroup
returns
null
, this method returns the "not supported"
value (see above) by default, but a subclass need only override
dropPrimaryKeySupportStatementsForEntityGroup
in order
to enable this method as well.
dropPrimaryKeySupportStatementsForEntityGroups
in interface EOSchemaGeneration
dropPrimaryKeySupportStatementsForEntityGroups
in class EOSynchronizationFactory
entityGroups
- An NSArray of entity groups, which are arrays
of EOEntity objects that have the same
external name.
entityGroups
, or an
empty array, or an array containing a string
message that the option is not supported.EOSynchronizationFactory.dropPrimaryKeySupportStatementsForEntityGroup(
NSArray entityGroup)
,
EOSynchronizationFactory.schemaCreationStatementsForEntities(
NSArray allEntities, NSDictionary options)
,
EOAdaptorChannel.primaryKeyForNewRowWithEntity(
EOEntity entity)
,
EOEntity.externalName()
public NSArray dropTableStatementsForEntityGroup(NSArray entityGroup)
EOSynchronizationFactory
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.
dropTableStatementsForEntityGroup
in interface EOSchemaGeneration
dropTableStatementsForEntityGroup
in class EOSynchronizationFactory
entityGroup
- An array of EOEntity objects that have the
same external name.
entityGroup
, or
an empty array.EOSynchronizationFactory.createTableStatementsForEntityGroup(
NSArray entityGroup)
,
EOEntity.externalName()
public NSArray primaryKeySupportStatementsForEntityGroups(NSArray entityGroups)
EOSynchronizationFactory
entityGroups
. Returns an empty array if
entityGroups
is null
or empty. If primary
key generation is not supported, returns an array that contains the
string "The 'Create Primary Key Support' option is
unavailable."
This method invokes
primaryKeySupportStatementsForEntityGroup
for each
entity group in entityGroups
and returns an array of
all the resulting EOSQLExpressions. Since the default
implementation of
primaryKeySupportStatementsForEntityGroup
returns
null
, this method returns the "not supported"
value (see above) by default, but a subclass need only override
primaryKeySupportStatementsForEntityGroup
in order to
enable this method as well.
primaryKeySupportStatementsForEntityGroups
in interface EOSchemaGeneration
primaryKeySupportStatementsForEntityGroups
in class EOSynchronizationFactory
entityGroups
- An NSArray of entity groups, which are arrays
of EOEntity objects that have the same
external name.
entityGroups
, or an
empty array, or an array containing a string
message that the option is not supported.EOSynchronizationFactory.primaryKeySupportStatementsForEntityGroup(
NSArray entityGroup)
,
EOAdaptorChannel.primaryKeyForNewRowWithEntity(
EOEntity entity)
,
EOEntity.externalName()
public NSArray statementsToRenameTableNamed(String tableName, String newName, NSDictionary options)
EOSchemaSynchronization
tableName
to
newName
. options
is a dictionary
describing the aspects of the schema for which to create SQL
statements.
statementsToRenameTableNamed
in interface EOSchemaSynchronization
statementsToRenameTableNamed
in class EOSynchronizationFactory
public boolean supportsSchemaSynchronization()
EOSynchronizationFactory
false
. Can be
overridden by subclasses to return true
if the adaptor
can update the database schema to reflect changes in an EOModel.
supportsSchemaSynchronization
in interface EOSchemaSynchronization
supportsSchemaSynchronization
in class EOSynchronizationFactory
true
if the adaptor can update the
database schema.
|
Last updated Thu Oct 21 15:04:16 PDT 2004. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |