public interface Platform extends Serializable, Cloneable
DatasourcePlatform
,
DatabasePlatform
,
oracle.toplink.essentials.eis.EISPlatform
,
oracle.toplink.essentials.xml.XMLPlatform
,
oracle.toplink.essentials.sdk.SDKPlatform
Modifier and Type | Method and Description |
---|---|
void |
addSequence(Sequence sequence)
Add sequence.
|
void |
appendParameter(Call call,
Writer writer,
Object parameter)
Add the parameter.
|
Object |
clone() |
Object |
convertObject(Object sourceObject,
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.
|
Object |
getCustomModifyValueForCall(Call call,
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.
|
Sequence |
getSequence(String seqName)
Get sequence corresponding to the name.
|
Map |
getSequences()
INTERNAL:
Returns a map of sequence names to Sequences (may be null).
|
Map |
getSequencesToWrite()
INTERNAL:
Used only for writing into XML or Java.
|
String |
getTableQualifier()
Return the qualifier for the table.
|
Timestamp |
getTimestampFromServer(AbstractSession session,
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.
|
boolean |
isAccess() |
boolean |
isAttunity() |
boolean |
isCloudscape() |
boolean |
isDB2() |
boolean |
isDBase() |
boolean |
isDerby() |
boolean |
isHSQL() |
boolean |
isInformix() |
boolean |
isMySQL() |
boolean |
isODBC() |
boolean |
isOracle() |
boolean |
isPointBase() |
boolean |
isPostgreSQL() |
boolean |
isSQLAnywhere() |
boolean |
isSQLServer() |
boolean |
isSybase() |
boolean |
isTimesTen() |
void |
platformSpecificSequencingInitialization(DatabaseSession session)
INTERNAL:
Platform specific sequencing initialization.
|
void |
removeAllSequences()
Remove all sequences that were added throud addSequence method.
|
Sequence |
removeSequence(String seqName)
Remove sequence corresponding to the name
(the sequence was added through addSequence method)
|
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(Map sequences)
INTERNAL:
Used only for reading from XML.
|
void |
setTableQualifier(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.
|
Object clone()
Object convertObject(Object sourceObject, Class javaClass) throws ConversionException
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()
void setConversionManager(ConversionManager conversionManager)
String getTableQualifier()
Timestamp getTimestampFromServer(AbstractSession session, String sessionName)
ValueReadQuery getTimestampQuery()
boolean isAccess()
boolean isAttunity()
boolean isCloudscape()
boolean isDerby()
boolean isDB2()
boolean isDBase()
boolean isHSQL()
boolean isInformix()
boolean isMySQL()
boolean isODBC()
boolean isOracle()
boolean isPointBase()
boolean isSQLAnywhere()
boolean isSQLServer()
boolean isSybase()
boolean isTimesTen()
boolean isPostgreSQL()
void setTableQualifier(String qualifier)
void setTimestampQuery(ValueReadQuery tsQuery)
void appendParameter(Call call, Writer writer, Object parameter)
Object getCustomModifyValueForCall(Call call, Object value, DatabaseField field, boolean shouldBind)
boolean shouldUseCustomModifyForCall(DatabaseField field)
Sequence getDefaultSequence()
void setDefaultSequence(Sequence sequence)
void addSequence(Sequence sequence)
Sequence getSequence(String seqName)
Sequence removeSequence(String seqName)
void removeAllSequences()
Map getSequences()
Map getSequencesToWrite()
Sequence getDefaultSequenceToWrite()
void setSequences(Map sequences)
boolean usesPlatformDefaultSequence()
void platformSpecificSequencingInitialization(DatabaseSession session)
Copyright © 2023. All rights reserved.