
Public Member Functions | |
| String | externalTypeForJDBCType (JDBCAdaptor adaptor, int jdbcType) |
| String | limitExpressionForSQL (EOSQLExpression expression, EOFetchSpecification fetchSpecification, String sql, long start, long end) |
| String | sqlForCreateIndex (String indexName, String tableName, ColumnIndex...columnIndexes) |
| String | sqlForCreateUniqueIndex (String indexName, String tableName, ColumnIndex...columnIndexes) |
| String | sqlForRegularExpressionQuery (String key, String value) |
| int | varcharLargeColumnWidth () |
| int | varcharLargeJDBCType () |
Protected Member Functions | |
| String | formatValueForAttribute (EOSQLExpression expression, Object value, EOAttribute attribute, String key) |
| String | sqlForGetNextValFromSequencedNamed (String sequenceName) |
| String externalTypeForJDBCType | ( | JDBCAdaptor | adaptor, | |
| int | jdbcType | |||
| ) |
For most types, finding the type in jdbc2Info's typeInfo will provide us with a correct type mapping. For Postgresql, it has the honor of not actually having a type named "integer," so EOF goes on a hunt for a type that MIGHT match (which is just bad, btw) and comes up with "serial".
cug: There seems to be also nothing useful for "BLOB", so we return bytea for Type.BLOB; int8 for BIGINT; numeric for DECIMAL; bool for BOOLEAN
We know better than EOF.
For any other case, we pass it up to the default impl.
| adaptor | the adaptor to retrieve an external type for | |
| jdbcType | the JDBC type number |
Reimplemented from ERXSQLHelper.
| String formatValueForAttribute | ( | EOSQLExpression | expression, | |
| Object | value, | |||
| EOAttribute | attribute, | |||
| String | key | |||
| ) | [protected] |
Reimplemented from ERXSQLHelper.
| String limitExpressionForSQL | ( | EOSQLExpression | expression, | |
| EOFetchSpecification | fetchSpecification, | |||
| String | sql, | |||
| long | start, | |||
| long | end | |||
| ) |
Reimplemented from ERXSQLHelper.
Returns the SQL expression for creating an index on the given set of columns
| indexName | the name of the index to create | |
| tableName | the name of the containing table | |
| columnIndexes | the list of columns to index on |
Reimplemented from ERXSQLHelper.
Creates unique index; stolen from the derby helper
Reimplemented from ERXSQLHelper.
Returns the SQL required to select the next value from the given sequence. This should return a single row with a single column.
| sequenceName | the name of the sequence |
Reimplemented from ERXSQLHelper.
Returns the SQL expression for a regular expression query.
| key | ||
| value |
Reimplemented from ERXSQLHelper.
| int varcharLargeColumnWidth | ( | ) |
Returns the width that should be used for a varcharLarge column in migrations.
Reimplemented from ERXSQLHelper.
| int varcharLargeJDBCType | ( | ) |
Returns the JDBCType that should be used for a varcharLarge column in migrations.
Reimplemented from ERXSQLHelper.
1.5.8