|
Project Wonder 5.0.0.8794 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecter.extensions.jdbc.ERXSQLHelper
er.extensions.jdbc.ERXSQLHelper.OracleSQLHelper
public static class ERXSQLHelper.OracleSQLHelper
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class er.extensions.jdbc.ERXSQLHelper |
|---|
ERXSQLHelper.ColumnIndex, ERXSQLHelper.CustomTypes, ERXSQLHelper.DerbySQLHelper, ERXSQLHelper.EROracleSQLHelper, ERXSQLHelper.FrontBaseSQLHelper, ERXSQLHelper.MicrosoftSQLHelper, ERXSQLHelper.MySQLSQLHelper, ERXSQLHelper.OpenBaseSQLHelper, ERXSQLHelper.OracleSQLHelper, ERXSQLHelper.PostgresqlSQLHelper |
| Field Summary |
|---|
| Fields inherited from class er.extensions.jdbc.ERXSQLHelper |
|---|
log |
| Constructor Summary | |
|---|---|
ERXSQLHelper.OracleSQLHelper()
|
|
| Method Summary | |
|---|---|
protected char |
commandSeparatorChar()
This is totally cheating ... |
protected String |
commandSeparatorString()
|
String |
createIndexSQLForEntities(NSArray<EOEntity> entities,
NSArray<String> externalTypesToIgnore)
|
String |
createSchemaSQLForEntitiesInModelWithNameAndOptions(NSArray<EOEntity> entities,
String modelName,
NSDictionary optionsCreate)
oracle 9 has a maximum length of 30 characters for table names, column names and constraint names Foreign key constraint names are defined like this from the plugin: TABLENAME_FOEREIGNKEYNAME_FK The whole statement looks like this: ALTER TABLE [TABLENAME] ADD CONSTRAINT [CONSTRAINTNAME] FOREIGN KEY ([FK]) REFERENCES [DESTINATION_TABLE] ([PK]) DEFERRABLE INITIALLY DEFERRED THIS means that the tablename and the columnname together cannot be longer than 26 characters. This method checks each foreign key constraint name and if it is longer than 30 characters its replaced with a unique name. |
String |
externalTypeForJDBCType(JDBCAdaptor adaptor,
int jdbcType)
JDBCAdaptor.externalTypeForJDBCType just returns the first type it finds instead of trying to find a best match. |
String |
limitExpressionForSQL(EOSQLExpression expression,
EOFetchSpecification fetchSpecification,
String sql,
long start,
long end)
|
String |
migrationTableName()
Returns the name of the table to use for database migrations. |
boolean |
reassignExternalTypeForValueTypeOverride(EOAttribute attribute)
|
String |
sqlForCreateIndex(String indexName,
String tableName,
ERXSQLHelper.ColumnIndex... columnIndexes)
Returns the SQL expression for creating an index on the given set of columns |
String |
sqlForCreateUniqueIndex(String indexName,
String tableName,
ERXSQLHelper.ColumnIndex... columnIndexes)
Returns the SQL expression for creating a unique index on the given set of columns |
protected String |
sqlForGetNextValFromSequencedNamed(String sequenceName)
Returns the SQL required to select the next value from the given sequence. |
String |
sqlForRegularExpressionQuery(String key,
String value)
Returns the SQL expression for a regular expression query. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ERXSQLHelper.OracleSQLHelper()
| Method Detail |
|---|
protected String sqlForGetNextValFromSequencedNamed(String sequenceName)
ERXSQLHelper
sqlForGetNextValFromSequencedNamed in class ERXSQLHelpersequenceName - the name of the sequence
public String createSchemaSQLForEntitiesInModelWithNameAndOptions(NSArray<EOEntity> entities,
String modelName,
NSDictionary optionsCreate)
createSchemaSQLForEntitiesInModelWithNameAndOptions in class ERXSQLHelperentities - a NSArray containing the entities for which create table
statements should be generated or null if all entitites in the
model should be used.modelName - the name of the EOModel
String containing SQL statements to create
tablescreateSchemaSQLForEntitiesInModelWithNameAndOptions
public String limitExpressionForSQL(EOSQLExpression expression,
EOFetchSpecification fetchSpecification,
String sql,
long start,
long end)
limitExpressionForSQL in class ERXSQLHelperprotected char commandSeparatorChar()
ERXSQLHelper
commandSeparatorChar in class ERXSQLHelperprotected String commandSeparatorString()
commandSeparatorString in class ERXSQLHelper
public String createIndexSQLForEntities(NSArray<EOEntity> entities,
NSArray<String> externalTypesToIgnore)
createIndexSQLForEntities in class ERXSQLHelper
public String sqlForCreateUniqueIndex(String indexName,
String tableName,
ERXSQLHelper.ColumnIndex... columnIndexes)
ERXSQLHelper
sqlForCreateUniqueIndex in class ERXSQLHelperindexName - the name of the index to createtableName - the name of the containing tablecolumnIndexes - the list of columns to index on
public String sqlForCreateIndex(String indexName,
String tableName,
ERXSQLHelper.ColumnIndex... columnIndexes)
ERXSQLHelper
sqlForCreateIndex in class ERXSQLHelperindexName - the name of the index to createtableName - the name of the containing tablecolumnIndexes - the list of columns to index on
public String sqlForRegularExpressionQuery(String key,
String value)
ERXSQLHelper
sqlForRegularExpressionQuery in class ERXSQLHelperpublic String migrationTableName()
ERXSQLHelper
migrationTableName in class ERXSQLHelper
public String externalTypeForJDBCType(JDBCAdaptor adaptor,
int jdbcType)
ERXSQLHelper
externalTypeForJDBCType in class ERXSQLHelperadaptor - the adaptor to retrieve an external type forjdbcType - the JDBC type number
public boolean reassignExternalTypeForValueTypeOverride(EOAttribute attribute)
reassignExternalTypeForValueTypeOverride in class ERXSQLHelper
|
Last updated: Thu, Jan 8, 2009 12:32 PM EST | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||