|
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.PostgreSQLPlatform
public class PostgreSQLPlatform
Purpose: Provides Postgres specific behaviour.
Responsibilities:
Constructor Summary | |
---|---|
PostgreSQLPlatform()
|
Method Summary | |
---|---|
protected void |
appendBoolean(java.lang.Boolean bool,
java.io.Writer writer)
Appends a Boolean value. |
protected java.util.Hashtable |
buildFieldTypes()
|
ValueReadQuery |
buildSelectQueryForIdentity()
INTERNAL: Returns query used to read back the value generated by Identity. |
ValueReadQuery |
buildSelectQueryForSequenceObject(java.lang.String seqName,
java.lang.Integer size)
INTERNAL: Returns query used to read value generated by sequence object (like Oracle sequence). |
java.io.Writer |
buildSequenceObjectAlterIncrementWriter(java.io.Writer writer,
java.lang.String fullSeqName,
int increment)
INTERNAL: Override this method if the platform supports sequence objects and isAlterSequenceObjectSupported returns true. |
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 |
getAssignmentString()
INTERNAL Used for stored function calls. |
protected java.lang.String |
getCreateTempTableSqlBodyForTable(DatabaseTable table)
INTERNAL: |
protected java.lang.String |
getCreateTempTableSqlPrefix()
INTERNAL: |
protected java.lang.String |
getCreateTempTableSqlSuffix()
INTERNAL: |
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.lang.String |
getProcedureBeginString()
INTERNAL: Used for sp calls. |
java.lang.String |
getProcedureCallHeader()
INTERNAL: Used for sp calls. |
java.lang.String |
getProcedureEndString()
INTERNAL: Used for sp calls. |
protected java.lang.String |
getQualifiedSequenceName(java.lang.String seqName)
INTERNAL: Prepend sequence name with table qualifier (if any) |
ValueReadQuery |
getTimestampQuery()
INTERNAL: This method returns the query to select the timestamp from the server for Derby. |
protected void |
initializePlatformOperators()
INTERNAL: Initialize any platform-specific operators |
boolean |
isAlterSequenceObjectSupported()
INTERNAL: Override this method if the platform supports sequence objects and it's possible to alter sequence object's increment in the database. |
boolean |
isPostgreSQL()
INTERNAL: Answers whether platform is Derby |
protected ExpressionOperator |
operatorLocate()
INTERNAL: Override the default locate operator |
void |
printFieldIdentityClause(java.io.Writer writer)
INTERNAL: Append the receiver's field 'identity' constraint clause to a writer |
void |
printFieldTypeSize(java.io.Writer writer,
FieldDefinition field,
FieldTypeDefinition fieldType,
boolean shouldPrintFieldIdentityClause)
|
void |
printFieldUnique(java.io.Writer writer,
boolean shouldPrintFieldIdentityClause)
|
protected void |
setPrimitiveParameterValue(java.sql.PreparedStatement statement,
int index,
java.lang.Object parameter)
Set a primitive parameter. |
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. |
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 PostgreSQLPlatform()
Method Detail |
---|
protected void appendBoolean(java.lang.Boolean bool, java.io.Writer writer) throws java.io.IOException
java.io.IOException
protected void initializePlatformOperators()
public ValueReadQuery getTimestampQuery()
public java.lang.String getInOutputProcedureToken()
public boolean shouldPrintOutputTokenAtStart()
public boolean isPostgreSQL()
protected java.lang.String getCreateTempTableSqlSuffix()
public boolean supportsIdentity()
public ValueReadQuery buildSelectQueryForIdentity()
public boolean supportsSequenceObjects()
public ValueReadQuery buildSelectQueryForSequenceObject(java.lang.String seqName, java.lang.Integer size)
protected java.lang.String getQualifiedSequenceName(java.lang.String seqName)
protected java.lang.String getCreateTempTableSqlBodyForTable(DatabaseTable table)
public void printFieldIdentityClause(java.io.Writer writer) throws ValidationException
ValidationException
protected java.util.Hashtable buildFieldTypes()
protected ExpressionOperator operatorLocate()
public boolean supportsGlobalTempTables()
protected java.lang.String getCreateTempTableSqlPrefix()
public int getMaxFieldNameSize()
public java.lang.String getProcedureBeginString()
public java.lang.String getProcedureEndString()
public java.lang.String getProcedureCallHeader()
public java.lang.String getAssignmentString()
public void printFieldTypeSize(java.io.Writer writer, FieldDefinition field, FieldTypeDefinition fieldType, boolean shouldPrintFieldIdentityClause) throws java.io.IOException
java.io.IOException
public void printFieldUnique(java.io.Writer writer, boolean shouldPrintFieldIdentityClause) throws java.io.IOException
java.io.IOException
public boolean shouldUseJDBCOuterJoinSyntax()
protected void setPrimitiveParameterValue(java.sql.PreparedStatement statement, int index, java.lang.Object parameter) throws java.sql.SQLException
java.sql.SQLException
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
public java.io.Writer buildSequenceObjectAlterIncrementWriter(java.io.Writer writer, java.lang.String fullSeqName, int increment) throws java.io.IOException
java.io.IOException
public boolean isAlterSequenceObjectSupported()
|
EclipseLink 1.0_1.0M2 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |