|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cassinidivision.core.eoaccess.SchemaHelper
SQL Generation utility methods.
| Constructor Summary | |
SchemaHelper()
|
|
| Method Summary | |
NSMutableDictionary |
optionsDictionary(boolean createTables,
boolean dropTables,
boolean createPrimaryKeySupport,
boolean dropPrimaryKeySupport,
boolean primaryKeyConstraints,
boolean foreignKeyConstraints,
boolean indexesForPrimaryKeys,
boolean indexesForForeignKeys)
Convenience method: build an options dictionary from the arguments specified. |
void |
runSQLForModelWithOptions(EOModel model,
boolean createTables,
boolean dropTables,
boolean createPrimaryKeySupport,
boolean dropPrimaryKeySupport,
boolean primaryKeyConstraints,
boolean foreignKeyConstraints,
boolean indexesForPrimaryKeys,
boolean indexesForForeignKeys)
Execute EOF SQL generation for the specified EOModel and given options. |
void |
runSQLForModelWithOptions(EOModel model,
NSDictionary options)
Execute EOF SQL generation for the specified EOModel and given options. |
void |
runSQLWithOptionsForModels(NSDictionary options,
NSArray models)
Convenience method: execute SQL generation for multiple EOModels simultaneously. |
void |
runStatementsWithAdaptorChannel(NSArray statements,
EOAdaptorChannel channel)
Convenience method: execute a sequence of SQL expressions. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SchemaHelper()
| Method Detail |
public NSMutableDictionary optionsDictionary(boolean createTables,
boolean dropTables,
boolean createPrimaryKeySupport,
boolean dropPrimaryKeySupport,
boolean primaryKeyConstraints,
boolean foreignKeyConstraints,
boolean indexesForPrimaryKeys,
boolean indexesForForeignKeys)
createTables - SQL should be generated to build database tables.dropTables - SQL should be generated to drop database tables.createPrimaryKeySupport - SQL should be generated to create primary key support.dropPrimaryKeySupport - SQL should be generated to drop primary key support.primaryKeyConstraints - SQL should be generated to create primary key constraints.foreignKeyConstraints - SQL should be generated to create foreign key support.indexesForPrimaryKeys - This parameter is currently ignored by EOF.indexesForForeignKeys - This parameter is currently ignored by EOF.
public void runSQLForModelWithOptions(EOModel model,
boolean createTables,
boolean dropTables,
boolean createPrimaryKeySupport,
boolean dropPrimaryKeySupport,
boolean primaryKeyConstraints,
boolean foreignKeyConstraints,
boolean indexesForPrimaryKeys,
boolean indexesForForeignKeys)
createTables - SQL should be generated to build database tables.dropTables - SQL should be generated to drop database tables.createPrimaryKeySupport - SQL should be generated to create primary key support.dropPrimaryKeySupport - SQL should be generated to drop primary key support.primaryKeyConstraints - SQL should be generated to create primary key constraints.foreignKeyConstraints - SQL should be generated to create foreign key support.indexesForPrimaryKeys - This parameter is currently ignored by EOF.indexesForForeignKeys - This parameter is currently ignored by EOF.
public void runSQLForModelWithOptions(EOModel model,
NSDictionary options)
model - EOModel for which to generate SQL.options - containing key-value pairs corresponding to SQL generation options. See runSQLForModelWithOptions(EOModel,boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean) for further information.
public void runStatementsWithAdaptorChannel(NSArray statements,
EOAdaptorChannel channel)
statements - Array containing EOSQLExpression instances.channel - An available adaptor channel.
public void runSQLWithOptionsForModels(NSDictionary options,
NSArray models)
options - containing key-value pairs corresponding to SQL generation options. See runSQLForModelWithOptions(EOModel,boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean) for further information.models - Array containing EOModel instances.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||