|
EclipseLink 1.0_1.0M2 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.internal.databaseaccess.DatabasePlatform
org.eclipse.persistence.platform.database.DatabasePlatform
org.eclipse.persistence.platform.database.DB2Platform
public class DB2Platform
Purpose: Provides DB2 specific behaviour.
Responsibilities:
Constructor Summary | |
---|---|
DB2Platform()
|
Method Summary | |
---|---|
protected void |
appendByteArray(byte[] bytes,
java.io.Writer writer)
Append a byte[] in native DB@ format BLOB(hexString) if usesNativeSQL(), otherwise use ODBC format from DatabasePLatform. |
protected void |
appendCalendar(java.util.Calendar calendar,
java.io.Writer writer)
Append the Timestamp in native format if usesNativeSQL() is true otherwise use ODBC format from DatabasePlatform. |
protected void |
appendDate(java.sql.Date date,
java.io.Writer writer)
Appends the Date in native format if usesNativeSQL() otherwise use ODBC format from DatabasePlatform. |
protected void |
appendDB2Calendar(java.util.Calendar calendar,
java.io.Writer writer)
Write a timestamp in DB2 specific format (yyyy-mm-dd-hh.mm.ss.ffffff). |
protected void |
appendDB2Date(java.sql.Date date,
java.io.Writer writer)
Write a timestamp in DB2 specific format (mm/dd/yyyy). |
protected void |
appendDB2Timestamp(java.sql.Timestamp timestamp,
java.io.Writer writer)
Write a timestamp in DB2 specific format (yyyy-mm-dd-hh.mm.ss.ffffff). |
protected void |
appendTime(java.sql.Time time,
java.io.Writer writer)
Append the Time in Native format if usesNativeSQL() otherwise use ODBC format from DAtabasePlatform. |
protected void |
appendTimestamp(java.sql.Timestamp timestamp,
java.io.Writer writer)
Append the Timestamp in native format if usesNativeSQL() is true otherwise use ODBC format from DatabasePlatform. |
protected java.util.Hashtable |
buildFieldTypes()
|
ValueReadQuery |
buildSelectQueryForIdentity()
INTERNAL: Build the identity query for native sequencing. |
boolean |
dontBindUpdateAllQueryUsingTempTables()
INTERNAL: |
protected java.lang.String |
getCreateTempTableSqlBodyForTable(DatabaseTable table)
INTERNAL: |
protected java.lang.String |
getCreateTempTableSqlPrefix()
INTERNAL: |
protected java.lang.String |
getCreateTempTableSqlSuffix()
INTERNAL: |
int |
getMaxFieldNameSize()
INTERNAL: returns the maximum number of characters that can be used in a field name on this platform. |
int |
getMaxForeignKeyNameSize()
INTERNAL: returns the maximum number of characters that can be used in a foreign key name on this platform. |
java.util.Vector |
getNativeTableInfo(java.lang.String table,
java.lang.String creator,
AbstractSession session)
Return the catalog information through using the native SQL catalog selects. |
java.lang.String |
getProcedureAsString()
Used for stored procedure defs. |
java.lang.String |
getProcedureBeginString()
Used for stored procedure defs. |
java.lang.String |
getProcedureCallHeader()
Used for sp calls. |
java.lang.String |
getProcedureEndString()
Used for stored procedure defs. |
java.lang.String |
getSelectForUpdateString()
|
DatabaseTable |
getTempTableForTable(DatabaseTable table)
INTERNAL: |
ValueReadQuery |
getTimestampQuery()
This method returns the query to select the timestamp from the server for DB2. |
protected void |
initializePlatformOperators()
Initialize any platform-specific operators |
boolean |
isDB2()
|
boolean |
isNullAllowedInSelectClause()
INTERNAL: Override this if the platform cannot handle NULL in select clause. |
java.util.Hashtable |
maximumNumericValues()
Builds a table of maximum numeric values keyed on java class. |
java.util.Hashtable |
minimumNumericValues()
Builds a table of minimum numeric values keyed on java class. |
void |
printFieldIdentityClause(java.io.Writer writer)
INTERNAL: Append the receiver's field 'identity' constraint clause to a writer |
boolean |
shouldBindLiterals()
INTERNAL Allows platform to choose whether to bind literals in DatabaseCalls or not. |
boolean |
shouldIgnoreException(java.sql.SQLException exception)
Allow for the platform to ignore exceptions. |
boolean |
shouldPrintOutputTokenAtStart()
This is required in the construction of the stored procedures with output parameters |
boolean |
shouldUseJDBCOuterJoinSyntax()
JDBC defines and outer join syntax, many drivers do not support this. |
boolean |
supportsGlobalTempTables()
INTERNAL: |
boolean |
supportsIdentity()
INTERNAL: Indicates whether the platform supports identity. |
void |
writeParameterMarker(java.io.Writer writer,
ParameterExpression parameter)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DB2Platform()
Method Detail |
---|
protected void appendByteArray(byte[] bytes, java.io.Writer writer) throws java.io.IOException
java.io.IOException
protected void appendDate(java.sql.Date date, java.io.Writer writer) throws java.io.IOException
java.io.IOException
protected void appendDB2Date(java.sql.Date date, java.io.Writer writer) throws java.io.IOException
java.io.IOException
protected void appendDB2Timestamp(java.sql.Timestamp timestamp, java.io.Writer writer) throws java.io.IOException
java.io.IOException
protected void appendDB2Calendar(java.util.Calendar calendar, java.io.Writer writer) throws java.io.IOException
java.io.IOException
protected void appendTime(java.sql.Time time, java.io.Writer writer) throws java.io.IOException
java.io.IOException
protected void appendTimestamp(java.sql.Timestamp timestamp, java.io.Writer writer) throws java.io.IOException
java.io.IOException
protected void appendCalendar(java.util.Calendar calendar, java.io.Writer writer) throws java.io.IOException
java.io.IOException
protected java.util.Hashtable buildFieldTypes()
public int getMaxFieldNameSize()
public int getMaxForeignKeyNameSize()
public java.util.Vector getNativeTableInfo(java.lang.String table, java.lang.String creator, AbstractSession session)
public java.lang.String getProcedureCallHeader()
public java.lang.String getSelectForUpdateString()
public java.lang.String getProcedureEndString()
public java.lang.String getProcedureBeginString()
public java.lang.String getProcedureAsString()
public boolean shouldPrintOutputTokenAtStart()
public ValueReadQuery getTimestampQuery()
protected void initializePlatformOperators()
public boolean isDB2()
public java.util.Hashtable maximumNumericValues()
NOTE: BigInteger & BigDecimal maximums are dependent upon their precision & Scale
public java.util.Hashtable minimumNumericValues()
NOTE: BigInteger & BigDecimal minimums are dependent upon their precision & Scale
public boolean shouldIgnoreException(java.sql.SQLException exception)
public boolean shouldUseJDBCOuterJoinSyntax()
public ValueReadQuery buildSelectQueryForIdentity()
public void printFieldIdentityClause(java.io.Writer writer) throws ValidationException
ValidationException
public boolean supportsIdentity()
public boolean supportsGlobalTempTables()
protected java.lang.String getCreateTempTableSqlPrefix()
public DatabaseTable getTempTableForTable(DatabaseTable table)
protected java.lang.String getCreateTempTableSqlSuffix()
protected java.lang.String getCreateTempTableSqlBodyForTable(DatabaseTable table)
public boolean dontBindUpdateAllQueryUsingTempTables()
public boolean isNullAllowedInSelectClause()
public void writeParameterMarker(java.io.Writer writer, ParameterExpression parameter) throws java.io.IOException
java.io.IOException
public boolean shouldBindLiterals()
|
EclipseLink 1.0_1.0M2 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |