Purpose: Provides Informix specific behavior.
Responsibilities:
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | appendCalendar(Calendar calendar, Writer writer)
Overrides org. |
| protected void | appendDate(Date date, Writer writer)
Overrides org. |
| protected void | appendInformixCalendar(Calendar calendar, Writer writer)
Write a timestamp in Informix specific format ( yyyy-mm-dd hh:mm:ss.fff) |
| protected void | appendInformixTimestamp(Timestamp timestamp, Writer writer)
Write a timestamp in Informix specific format (yyyy-mm-dd hh:mm:ss.fff). |
| protected void | appendTime(Time time, Writer writer)
Overrides org. |
| protected void | appendTimestamp(Timestamp timestamp, Writer writer)
Overrides org. |
| protected Hashtable | buildFieldTypes()
Overrides org. |
| public ValueReadQuery | buildSelectQueryForIdentity()
Overrides org. |
| public ValueReadQuery | buildSelectQueryForSequenceObject(String qualifiedSeqName, Integer size)
Overrides org. |
| public int | getMaxFieldNameSize()
Overrides org. |
| public String | getSelectForUpdateString()
Overrides org. |
| public void | initializeConnectionData(Connection connection)
Overrides org. |
| protected void | initializePlatformOperators()
Overrides org. |
| public boolean | isAlterSequenceObjectSupported()
Overrides org. |
| public boolean | |
| public boolean | isInformixOuterJoin()
Overrides org. |
| public Hashtable | maximumNumericValues()
Overrides org. |
| public Hashtable | minimumNumericValues()
Overrides org. |
| public void | printFieldIdentityClause(Writer writer)
Overrides org. |
| public void | printFieldTypeSize(Writer writer, FieldDefinition field, FieldTypeDefinition fieldType, boolean shouldPrintFieldIdentityClause)
Overrides org. |
| public boolean | requiresProcedureCallBrackets()
Overrides org. |
| public boolean | shouldPrintConstraintNameAfter()
Overrides org. |
| public boolean | shouldSelectIncludeOrderBy()
Overrides org. |
| public boolean | supportsIdentity()
Overrides org. |
| public boolean | supportsSequenceObjects()
Overrides org. |
| InformixPlatform | back to summary |
|---|---|
| public InformixPlatform() Default constructor. | |
| appendCalendar | back to summary |
|---|---|
| protected void appendCalendar(Calendar calendar, Writer writer) throws IOException Overrides org. Answer a platform correct string representation of a Calendar, suitable for SQL generation. The date is printed in the ODBC platform independent format {d'YYYY-MM-DD'}.
| |
| appendDate | back to summary |
|---|---|
| protected void appendDate(Date date, Writer writer) throws IOException Overrides org. Answer a platform correct string representation of a Date, suitable for SQL generation. Native format: 'yyyy-mm-dd
| |
| appendInformixCalendar | back to summary |
|---|---|
| protected void appendInformixCalendar(Calendar calendar, Writer writer) throws IOException Write a timestamp in Informix specific format ( yyyy-mm-dd hh:mm:ss.fff) | |
| appendInformixTimestamp | back to summary |
|---|---|
| protected void appendInformixTimestamp(Timestamp timestamp, Writer writer) throws IOException Write a timestamp in Informix specific format (yyyy-mm-dd hh:mm:ss.fff). | |
| appendTime | back to summary |
|---|---|
| protected void appendTime(Time time, Writer writer) throws IOException Overrides org. Answer a platform correct string representation of a Time, suitable for SQL generation. The time is printed in the ODBC platform independent format {t'hh:mm:ss'}.
| |
| appendTimestamp | back to summary |
|---|---|
| protected void appendTimestamp(Timestamp timestamp, Writer writer) throws IOException Overrides org. Answer a platform correct string representation of a Timestamp, suitable for SQL generation. The date is printed in the ODBC platform independent format {d'YYYY-MM-DD'}.
| |
| buildFieldTypes | back to summary |
|---|---|
| protected Hashtable Overrides org. Doc from org. Return the mapping of class types to database types for the schema framework.
| |
| buildSelectQueryForIdentity | back to summary |
|---|---|
| public ValueReadQuery buildSelectQueryForIdentity() Overrides org. INTERNAL: Build the identity query for native sequencing.
| |
| buildSelectQueryForSequenceObject | back to summary |
|---|---|
| public ValueReadQuery buildSelectQueryForSequenceObject(String qualifiedSeqName, Integer size) Overrides org. INTERNAL: Returns query used to read value generated by sequence object (like Oracle sequence). This method is called when sequence object NativeSequence is connected, the returned query used until the sequence is disconnected. If the platform supportsSequenceObjects then (at least) one of buildSelectQueryForSequenceObject methods should return non-null query.
| |
| getMaxFieldNameSize | back to summary |
|---|---|
| public int getMaxFieldNameSize() Overrides org. INTERNAL: returns the maximum number of characters that can be used in a field name on this platform.
| |
| getSelectForUpdateString | back to summary |
|---|---|
| public String getSelectForUpdateString() Overrides org. Informix seems to like this syntax instead of the OF * syntax.
| |
| initializeConnectionData | back to summary |
|---|---|
| public void initializeConnectionData(Connection connection) throws SQLException Overrides org. Doc from org. INTERNAL: Allow initialization from the connection.
| |
| initializePlatformOperators | back to summary |
|---|---|
| protected void initializePlatformOperators() Overrides org. INTERNAL: Initialize any platform-specific operators
| |
| isAlterSequenceObjectSupported | back to summary |
|---|---|
| public boolean isAlterSequenceObjectSupported() Overrides org. INTERNAL: Override this method if the platform supports sequence objects and it's possible to alter sequence object's increment in the database.
| |
| isInformix | back to summary |
|---|---|
| public boolean isInformix() Overrides org. Implements org.
| |
| isInformixOuterJoin | back to summary |
|---|---|
| public boolean isInformixOuterJoin() Overrides org. Some database require outer joins to be given in the where clause, others require it in the from clause. Informix requires it in the from clause with no ON expression.
| |
| maximumNumericValues | back to summary |
|---|---|
| public Hashtable Overrides org. Builds a table of maximum numeric values keyed on java class. This is used for type testing but might also be useful to end users attempting to sanitize values. Note BigInteger & BigDecimal maximums are dependent upon their precision & Scale
| |
| minimumNumericValues | back to summary |
|---|---|
| public Hashtable Overrides org. Builds a table of minimum numeric values keyed on java class. This is used for type testing but might also be useful to end users attempting to sanitize values. Note BigInteger & BigDecimal minimums are dependent upon their precision & Scale
| |
| printFieldIdentityClause | back to summary |
|---|---|
| public void printFieldIdentityClause(Writer writer) throws ValidationException Overrides org. Append the receiver's field serial constraint clause to a writer.
| |
| printFieldTypeSize | back to summary |
|---|---|
| public void printFieldTypeSize(Writer writer, FieldDefinition field, FieldTypeDefinition fieldType, boolean shouldPrintFieldIdentityClause) throws IOException Overrides org. Append the field type to a writer unless the field uses an Identity strategy to generate its value. In this case, the field type 'SERIAL' will be appended later.
| |
| requiresProcedureCallBrackets | back to summary |
|---|---|
| public boolean requiresProcedureCallBrackets() Overrides org. Used for sp calls.
| |
| shouldPrintConstraintNameAfter | back to summary |
|---|---|
| public boolean shouldPrintConstraintNameAfter() Overrides org. Some Platforms want the constraint name after the constraint definition.
| |
| shouldSelectIncludeOrderBy | back to summary |
|---|---|
| public boolean shouldSelectIncludeOrderBy() Overrides org. Informix seemed to require this at some point. Not sure if it still does.
| |
| supportsIdentity | back to summary |
|---|---|
| public boolean supportsIdentity() Overrides org. INTERNAL: Indicates whether the platform supports identity. Informix does this through SERIAL field types. This method is to be used *ONLY* by sequencing classes
| |
| supportsSequenceObjects | back to summary |
|---|---|
| public boolean supportsSequenceObjects() Overrides org. INTERNAL: Indicates whether the platform supports sequence objects. This method is to be used *ONLY* by sequencing classes
| |