|
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.SQLServerPlatform
public class SQLServerPlatform
Purpose: Provides SQL Server specific behaviour.
Responsibilities:
Constructor Summary | |
---|---|
SQLServerPlatform()
|
Method Summary | |
---|---|
protected void |
appendByteArray(byte[] bytes,
java.io.Writer writer)
If using native SQL then print a byte[] as '0xFF...' |
protected void |
appendCalendar(java.util.Calendar calendar,
java.io.Writer writer)
Answer a platform correct string representation of a Calendar, suitable for SQL generation. |
protected void |
appendDate(java.sql.Date date,
java.io.Writer writer)
Answer a platform correct string representation of a Date, suitable for SQL generation. |
protected void |
appendSybaseCalendar(java.util.Calendar calendar,
java.io.Writer writer)
Write a timestamp in Sybase specific format ( yyyy-mm-dd-hh.mm.ss.fff) |
protected void |
appendSybaseTimestamp(java.sql.Timestamp timestamp,
java.io.Writer writer)
Write a timestamp in Sybase specific format ( yyyy-mm-dd-hh.mm.ss.fff) |
protected void |
appendTime(java.sql.Time time,
java.io.Writer writer)
Answer a platform correct string representation of a Time, suitable for SQL generation. |
protected void |
appendTimestamp(java.sql.Timestamp timestamp,
java.io.Writer writer)
Answer a platform correct string representation of a Timestamp, suitable for SQL generation. |
protected java.util.Hashtable |
buildFieldTypes()
|
ValueReadQuery |
buildSelectQueryForIdentity()
INTERNAL: Build the identity query for native sequencing. |
java.lang.String |
getBatchDelimiterString()
Used for batch writing and sp defs. |
protected java.lang.String |
getCreateTempTableSqlPrefix()
INTERNAL: |
java.lang.String |
getCreationInOutputProcedureToken()
This method is used to print the required output parameter token for the specific platform. |
java.lang.String |
getCreationOutputProcedureToken()
This method is used to print the required output parameter token for the specific platform. |
java.lang.String |
getInOutputProcedureToken()
This method is used to print the output parameter token when stored procedures are called |
int |
getMaxFieldNameSize()
INTERNAL: returns the maximum number of characters that can be used in a field 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 |
getOutputProcedureToken()
This method is used to print the output parameter token when stored procedures are called |
java.lang.String |
getProcedureArgumentString()
Used for sp defs. |
java.lang.String |
getProcedureCallHeader()
Used for sp calls. |
java.lang.String |
getSelectForUpdateNoWaitString()
INTERNAL: This syntax does no wait on the lock. |
java.lang.String |
getSelectForUpdateString()
INTERNAL: Lock. |
java.lang.String |
getStoredProcedureParameterPrefix()
|
java.lang.String |
getStoredProcedureTerminationToken()
INTERNAL: This method returns the delimiter between stored procedures in multiple stored procedure calls. |
DatabaseTable |
getTempTableForTable(DatabaseTable table)
INTERNAL: |
ValueReadQuery |
getTimestampQuery()
PUBLIC: This method returns the query to select the timestamp from the server for SQLServer. |
protected void |
initializePlatformOperators()
Initialize any platform-specific operators |
boolean |
isSQLServer()
|
static ExpressionOperator |
locate2Operator()
INTERNAL: create the Locate2 Operator for this platform |
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. |
ExpressionOperator |
modOperator()
Override the default MOD operator. |
protected ExpressionOperator |
operatorOuterJoin()
|
void |
printFieldIdentityClause(java.io.Writer writer)
INTERNAL: Append the receiver's field 'identity' constraint clause to a writer. |
void |
printFieldNullClause(java.io.Writer writer)
INTERNAL: Append the receiver's field 'NULL' constraint clause to a writer. |
boolean |
requiresProcedureCallBrackets()
USed for sp calls. |
boolean |
requiresProcedureCallOuputToken()
Used for sp calls. |
boolean |
shouldPrintInOutputTokenBeforeType()
This is required in the construction of the stored procedures with output parameters |
boolean |
shouldPrintLockingClauseAfterWhereClause()
INTERNAL: Indicates whether locking clause should be printed after where clause by SQLSelectStatement. |
boolean |
shouldPrintOuterJoinInWhereClause()
Some database require outer joins to be given in the where clause, others require it in the from clause. |
boolean |
shouldPrintOutputTokenBeforeType()
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 |
supportsIdentity()
INTERNAL: Indicates whether the platform supports identity. |
boolean |
supportsLocalTempTables()
INTERNAL: |
void |
writeUpdateOriginalFromTempTableSql(java.io.Writer writer,
DatabaseTable table,
java.util.Collection pkFields,
java.util.Collection assignedFields)
INTERNAL: |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SQLServerPlatform()
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 appendSybaseTimestamp(java.sql.Timestamp timestamp, java.io.Writer writer) throws java.io.IOException
java.io.IOException
protected void appendSybaseCalendar(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 ValueReadQuery buildSelectQueryForIdentity()
public java.lang.String getBatchDelimiterString()
public java.lang.String getCreationInOutputProcedureToken()
public java.lang.String getCreationOutputProcedureToken()
public java.lang.String getInOutputProcedureToken()
public int getMaxFieldNameSize()
public java.util.Vector getNativeTableInfo(java.lang.String table, java.lang.String creator, AbstractSession session)
public java.lang.String getOutputProcedureToken()
public java.lang.String getProcedureArgumentString()
public java.lang.String getProcedureCallHeader()
public java.lang.String getStoredProcedureParameterPrefix()
public java.lang.String getStoredProcedureTerminationToken()
public ValueReadQuery getTimestampQuery()
public java.lang.String getSelectForUpdateString()
public java.lang.String getSelectForUpdateNoWaitString()
public boolean shouldPrintLockingClauseAfterWhereClause()
protected void initializePlatformOperators()
public boolean isSQLServer()
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 ExpressionOperator modOperator()
protected ExpressionOperator operatorOuterJoin()
public static ExpressionOperator locate2Operator()
public void printFieldIdentityClause(java.io.Writer writer) throws ValidationException
ValidationException
public void printFieldNullClause(java.io.Writer writer) throws ValidationException
ValidationException
public boolean requiresProcedureCallBrackets()
public boolean requiresProcedureCallOuputToken()
public boolean shouldPrintInOutputTokenBeforeType()
public boolean shouldPrintOuterJoinInWhereClause()
public boolean shouldPrintOutputTokenBeforeType()
public boolean shouldUseJDBCOuterJoinSyntax()
public boolean supportsIdentity()
public boolean supportsLocalTempTables()
protected java.lang.String getCreateTempTableSqlPrefix()
public DatabaseTable getTempTableForTable(DatabaseTable table)
public void writeUpdateOriginalFromTempTableSql(java.io.Writer writer, DatabaseTable table, java.util.Collection pkFields, java.util.Collection assignedFields) 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 |