public interface Platform extends CorePlatform<ConversionManager>, java.io.Serializable, java.lang.Cloneable
DatasourcePlatform
,
DatabasePlatform
,
EISPlatform
Modifier and Type | Method and Description |
---|---|
void |
addSequence(Sequence sequence)
Add sequence.
|
void |
addSequence(Sequence sequence,
boolean isConnected)
Add sequence.
|
void |
appendParameter(Call call,
java.io.Writer writer,
java.lang.Object parameter)
Add the parameter.
|
java.lang.Object |
clone() |
java.lang.Object |
convertObject(java.lang.Object sourceObject,
java.lang.Class javaClass)
Convert the object to the appropriate type by invoking the appropriate
ConversionManager method
|
void |
copyInto(Platform platform)
Copy the state into the new platform.
|
ConversionManager |
getConversionManager()
The platform hold its own instance of conversion manager to allow customization.
|
java.lang.Object |
getCustomModifyValueForCall(Call call,
java.lang.Object value,
DatabaseField field,
boolean shouldBind)
Allow for the platform to handle the representation of parameters specially.
|
Sequence |
getDefaultSequence()
Get default sequence.
|
Sequence |
getDefaultSequenceToWrite()
INTERNAL:
Used only for writing into XML or Java.
|
java.lang.String |
getEndDelimiter()
Delimiter to use for fields and tables using spaces or other special values.
|
Sequence |
getSequence(java.lang.String seqName)
Get sequence corresponding to the name.
|
java.util.Map |
getSequences()
INTERNAL:
Returns a map of sequence names to Sequences (may be null).
|
java.util.Map |
getSequencesToWrite()
INTERNAL:
Used only for writing into XML or Java.
|
java.lang.String |
getStartDelimiter()
Delimiter to use for fields and tables using spaces or other special values.
|
java.lang.String |
getTableQualifier()
Return the qualifier for the table.
|
java.sql.Timestamp |
getTimestampFromServer(AbstractSession session,
java.lang.String sessionName)
Answer the timestamp from the server.
|
ValueReadQuery |
getTimestampQuery()
This method can be overridden by subclasses to return a
query that will return the timestamp from the server.
|
void |
initialize()
Allow the platform to initialize itself after login/init.
|
boolean |
isAccess() |
boolean |
isAttunity() |
boolean |
isCloudscape() |
boolean |
isDB2() |
boolean |
isDBase() |
boolean |
isDerby() |
boolean |
isH2() |
boolean |
isHANA() |
boolean |
isHSQL() |
boolean |
isInformix() |
boolean |
isMaxDB() |
boolean |
isMySQL() |
boolean |
isODBC() |
boolean |
isOracle() |
boolean |
isOracle9() |
boolean |
isPointBase() |
boolean |
isPostgreSQL() |
boolean |
isSQLAnywhere() |
boolean |
isSQLServer() |
boolean |
isSybase() |
boolean |
isSymfoware() |
boolean |
isTimesTen() |
boolean |
isTimesTen7() |
void |
removeAllSequences()
Remove all sequences that were added through addSequence method.
|
Sequence |
removeSequence(java.lang.String seqName)
Remove sequence corresponding to the name
(the sequence was added through addSequence method)
Don't use if the session is connected.
|
void |
setConversionManager(ConversionManager conversionManager)
The platform hold its own instance of conversion manager to allow customization.
|
void |
setDefaultSequence(Sequence sequence)
Set default sequence.
|
void |
setSequences(java.util.Map sequences)
INTERNAL:
Used only for reading from XML.
|
void |
setTableQualifier(java.lang.String qualifier)
Set the qualifier for the table.
|
void |
setTimestampQuery(ValueReadQuery tsQuery)
Can override the default query for returning a timestamp from the server.
|
boolean |
shouldUseCustomModifyForCall(DatabaseField field)
Allow for the platform to handle the representation of parameters specially.
|
boolean |
usesPlatformDefaultSequence()
INTERNAL:
Indicates whether defaultSequence is the same as platform default sequence.
|
java.lang.Object clone()
java.lang.Object convertObject(java.lang.Object sourceObject, java.lang.Class javaClass) throws ConversionException
convertObject
in interface CorePlatform<ConversionManager>
object
- - the object that must be convertedjavaClass
- - the class that the object must be converted to-
- ConversionException, all exceptions will be thrown as this type.ConversionException
void copyInto(Platform platform)
ConversionManager getConversionManager()
getConversionManager
in interface CorePlatform<ConversionManager>
void setConversionManager(ConversionManager conversionManager)
java.lang.String getTableQualifier()
java.sql.Timestamp getTimestampFromServer(AbstractSession session, java.lang.String sessionName)
ValueReadQuery getTimestampQuery()
boolean isH2()
boolean isAccess()
boolean isAttunity()
boolean isCloudscape()
boolean isDerby()
boolean isDB2()
boolean isDBase()
boolean isHANA()
boolean isHSQL()
boolean isInformix()
boolean isMaxDB()
boolean isMySQL()
boolean isODBC()
boolean isOracle()
boolean isOracle9()
boolean isPointBase()
boolean isSQLAnywhere()
boolean isSQLServer()
boolean isSybase()
boolean isSymfoware()
boolean isTimesTen()
boolean isTimesTen7()
boolean isPostgreSQL()
void initialize()
void setTableQualifier(java.lang.String qualifier)
void setTimestampQuery(ValueReadQuery tsQuery)
void appendParameter(Call call, java.io.Writer writer, java.lang.Object parameter)
java.lang.Object getCustomModifyValueForCall(Call call, java.lang.Object value, DatabaseField field, boolean shouldBind)
java.lang.String getEndDelimiter()
java.lang.String getStartDelimiter()
boolean shouldUseCustomModifyForCall(DatabaseField field)
Sequence getDefaultSequence()
void setDefaultSequence(Sequence sequence)
void addSequence(Sequence sequence)
void addSequence(Sequence sequence, boolean isConnected)
Sequence getSequence(java.lang.String seqName)
Sequence removeSequence(java.lang.String seqName)
void removeAllSequences()
java.util.Map getSequences()
java.util.Map getSequencesToWrite()
Sequence getDefaultSequenceToWrite()
void setSequences(java.util.Map sequences)
boolean usesPlatformDefaultSequence()
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference