|
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.TimesTenPlatform
public class TimesTenPlatform
Constructor Summary | |
---|---|
TimesTenPlatform()
|
Method Summary | |
---|---|
protected void |
appendByteArray(byte[] bytes,
java.io.Writer writer)
If using native SQL then print a byte[] literally as a hex string otherwise use ODBC format as provided in DatabasePlatform. |
protected void |
appendCalendar(java.util.Calendar calendar,
java.io.Writer writer)
Appends an MySQL specific Timestamp, if usesNativeSQL is true otherwise use the ODBC format. |
protected void |
appendDate(java.sql.Date date,
java.io.Writer writer)
Appends an MySQL specific date if usesNativeSQL is true otherwise use the ODBC format. |
protected void |
appendTime(java.sql.Time time,
java.io.Writer writer)
Appends an MySQL specific time if usesNativeSQL is true otherwise use the ODBC format. |
protected void |
appendTimestamp(java.sql.Timestamp timestamp,
java.io.Writer writer)
Appends an MySQL specific Timestamp, if usesNativeSQL is true otherwise use the ODBC format. |
protected java.util.Hashtable |
buildFieldTypes()
Return the mapping of class types to database types for the schema framework. |
ValueReadQuery |
buildSelectQueryForSequenceObject(java.lang.String seqName,
java.lang.Integer size)
INTERNAL: Produce a DataReadQuery which updates(!) |
java.io.Writer |
buildSequenceObjectCreationWriter(java.io.Writer writer,
java.lang.String fullSeqName,
int increment,
int start)
INTERNAL: Override this method if the platform supports sequence objects. |
java.io.Writer |
buildSequenceObjectDeletionWriter(java.io.Writer writer,
java.lang.String fullSeqName)
INTERNAL: Override this method if the platform supports sequence objects. |
java.lang.String |
getCreateViewString()
INTERNAL: Used for view creation. |
protected java.lang.String |
getQualifiedSequenceName(java.lang.String seqName)
Prepend sequence name with table qualifier (if any) |
java.lang.String |
getSelectForUpdateString()
INTERNAL: Used for pessimistic locking. |
ValueReadQuery |
getTimestampQuery()
PUBLIC: This method returns the query to select the timestamp from the server for TimesTen. |
protected void |
initializePlatformOperators()
Initialize any platform-specific operators |
boolean |
isTimesTen()
Answers whether platform is TimesTen |
protected ExpressionOperator |
operatorOuterJoin()
Create the outer join operator for this platform |
void |
setSupportsForeignKeyConstraints(boolean supportsForeignKeyConstraints)
|
boolean |
shouldPrintOuterJoinInWhereClause()
Some database require outer joins to be given in the where clause, others require it in the from clause. |
boolean |
supportsForeignKeyConstraints()
|
boolean |
supportsSequenceObjects()
INTERNAL: Indicates whether the platform supports sequence objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimesTenPlatform()
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 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 ValueReadQuery buildSelectQueryForSequenceObject(java.lang.String seqName, java.lang.Integer size)
sequenceName
- Name known by TimesTen to be a defined sequencepublic java.lang.String getCreateViewString()
protected java.lang.String getQualifiedSequenceName(java.lang.String seqName)
public java.lang.String getSelectForUpdateString()
public ValueReadQuery getTimestampQuery()
protected void initializePlatformOperators()
public boolean isTimesTen()
protected ExpressionOperator operatorOuterJoin()
public boolean shouldPrintOuterJoinInWhereClause()
public boolean supportsSequenceObjects()
public boolean supportsForeignKeyConstraints()
public void setSupportsForeignKeyConstraints(boolean supportsForeignKeyConstraints)
public java.io.Writer buildSequenceObjectCreationWriter(java.io.Writer writer, java.lang.String fullSeqName, int increment, int start) throws java.io.IOException
java.io.IOException
public java.io.Writer buildSequenceObjectDeletionWriter(java.io.Writer writer, java.lang.String fullSeqName) throws java.io.IOException
java.io.IOException
|
EclipseLink 1.0_1.0M2 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |