DatasourcePlatform, DatabasePlatform, org.eclipse.persistence.eis.EISPlatform
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public Object | |
| public default Map | Returns: properties to be added to connection propertiesINTERNAL: Get platform specific connection properties. |
| public <T> T | Returns: the newly converted objectthe object that must be converted sourceObject, Class<T> the class that the object must be converted to javaClass)Redeclares org. |
| public void | |
| public ConversionManager | getConversionManager()
Redeclares org. |
| public Object | getCustomModifyValueForCall(Call call, Object value, DatabaseField field, boolean shouldBind)
Allow for the platform to handle the representation of parameters specially. |
| public Sequence | |
| public Sequence | |
| public String | |
| public String | |
| public Sequence | |
| public Map | |
| public Map | |
| public String | |
| public String | |
| public Timestamp | getTimestampFromServer(AbstractSession session, String sessionName)
Answer the timestamp from the server. |
| public ValueReadQuery | getTimestampQuery()
This method can be overridden by subclasses to return a query that will return the timestamp from the server. |
| public ValueReadQuery | getUUIDQuery()
This method can be overridden by subclasses to return a query that will return the UUID from the server. |
| public void | |
| public void | initIdentitySequences(final Session
Active database session (in connected state). session, final String Default identity generator sequence name. defaultIdentityGenerator)INTERNAL: Initialize platform specific identity sequences. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | |
| public void | removeIdentitySequences(final Session
Active database session (in connected state). session, final String Default identity generator sequence name. defaultIdentityGenerator, final Set<String> Set of table names to check for identity sequence removal. tableNames)INTERNAL: Remove platform specific identity sequences for specified tables. |
| public Sequence | removeSequence(String seqName)
Remove sequence corresponding to the name (the sequence was added through addSequence method) Don't use if the session is connected. |
| public void | setConversionManager(ConversionManager conversionManager)
The platform hold its own instance of conversion manager to allow customization. |
| public void | |
| public void | |
| public void | |
| public void | setTimestampQuery(ValueReadQuery tsQuery)
Can override the default query for returning a timestamp from the server. |
| public void | setUUIDQuery(ValueReadQuery uuidQuery)
Can override the default query for returning a UUID from the server. |
| public boolean | shouldUseCustomModifyForCall(DatabaseField field)
Allow for the platform to handle the representation of parameters specially. |
| public boolean | usesPlatformDefaultSequence()
INTERNAL: Indicates whether defaultSequence is the same as platform default sequence. |
| addSequence | back to summary |
|---|---|
| public void addSequence(Sequence sequence) Add sequence. The sequence should have a unique name that shouldn't be altered after the sequence has been added - don't do: getSequence(name).setName(newName)) Don't use if the session is connected. | |
| addSequence | back to summary |
|---|---|
| public void addSequence(Sequence sequence, boolean isConnected) Add sequence. The sequence should have a unique name that shouldn't be altered after the sequence has been added - don't do: getSequence(name).setName(newName)) Use this method with isConnected parameter set to true to add a sequence to connected session. If sequencing is connected then the sequence is added only if there is no sequence with the same name already in use. | |
| appendParameter | back to summary |
|---|---|
| public void appendParameter(Call call, Writer writer, Object parameter) Add the parameter. Convert the parameter to a string and write it. | |
| clone | back to summary |
|---|---|
| public Object clone() | |
| connectionProperties | back to summary |
|---|---|
| public default Map INTERNAL: Get platform specific connection properties. | |
| convertObject | back to summary |
|---|---|
| public <T> T convertObject(Object sourceObject, Class<T> javaClass) throws ConversionException Redeclares org. Convert the object to the appropriate type by invoking the appropriate ConversionManager method
| |
| copyInto | back to summary |
|---|---|
| public void copyInto(Platform platform) Copy the state into the new platform. | |
| getConversionManager | back to summary |
|---|---|
| public ConversionManager getConversionManager() Redeclares org. The platform hold its own instance of conversion manager to allow customization.
| |
| getCustomModifyValueForCall | back to summary |
|---|---|
| public Object getCustomModifyValueForCall(Call call, Object value, DatabaseField field, boolean shouldBind) Allow for the platform to handle the representation of parameters specially. | |
| getDefaultSequence | back to summary |
|---|---|
| public Sequence getDefaultSequence() Get default sequence. Sequence name shouldn't be altered - don't do: getDefaultSequence().setName(newName). | |
| getDefaultSequenceToWrite | back to summary |
|---|---|
| public Sequence getDefaultSequenceToWrite() INTERNAL: Used only for writing into XML or Java. | |
| getDriverVersion | back to summary |
|---|---|
| public String getDriverVersion() Return the driver version. | |
| getEndDelimiter | back to summary |
|---|---|
| public String getEndDelimiter() Delimiter to use for fields and tables using spaces or other special values. Some databases use different delimiters for the beginning and end of the value. This delimiter indicates the end of the value. | |
| getSequence | back to summary |
|---|---|
| public Sequence getSequence(String seqName) Get sequence corresponding to the name. The name shouldn't be altered - don't do: getSequence(name).setName(newName) | |
| getSequences | back to summary |
|---|---|
| public Map INTERNAL: Returns a map of sequence names to Sequences (may be null). | |
| getSequencesToWrite | back to summary |
|---|---|
| public Map INTERNAL: Used only for writing into XML or Java. | |
| getStartDelimiter | back to summary |
|---|---|
| public String getStartDelimiter() Delimiter to use for fields and tables using spaces or other special values. Some databases use different delimiters for the beginning and end of the value. This delimiter indicates the start of the value. | |
| getTableQualifier | back to summary |
|---|---|
| public String getTableQualifier() Return the qualifier for the table. Required by some databases such as Oracle and DB2 | |
| getTimestampFromServer | back to summary |
|---|---|
| public Timestamp getTimestampFromServer(AbstractSession session, String sessionName) Answer the timestamp from the server. | |
| getTimestampQuery | back to summary |
|---|---|
| public ValueReadQuery getTimestampQuery() This method can be overridden by subclasses to return a query that will return the timestamp from the server. return null if the time should be the local time. | |
| getUUIDQuery | back to summary |
|---|---|
| public ValueReadQuery getUUIDQuery() This method can be overridden by subclasses to return a query that will return the UUID from the server. return null if UUID generation is not available at the server. | |
| initialize | back to summary |
|---|---|
| public void initialize() Allow the platform to initialize itself after login/init. | |
| initIdentitySequences | back to summary |
|---|---|
| public void initIdentitySequences(final Session session, final String defaultIdentityGenerator) INTERNAL:
Initialize platform specific identity sequences.
This method is called from | |
| isAccess | back to summary |
|---|---|
| public boolean isAccess() | |
| isAttunity | back to summary |
|---|---|
| public boolean isAttunity() | |
| isCloudscape | back to summary |
|---|---|
| public boolean isCloudscape() | |
| isDB2 | back to summary |
|---|---|
| public boolean isDB2() | |
| isDB2Z | back to summary |
|---|---|
| public boolean isDB2Z() | |
| isDBase | back to summary |
|---|---|
| public boolean isDBase() | |
| isDerby | back to summary |
|---|---|
| public boolean isDerby() | |
| isH2 | back to summary |
|---|---|
| public boolean isH2() | |
| isHANA | back to summary |
|---|---|
| public boolean isHANA() | |
| isHSQL | back to summary |
|---|---|
| public boolean isHSQL() | |
| isInformix | back to summary |
|---|---|
| public boolean isInformix() | |
| isMariaDB | back to summary |
|---|---|
| public boolean isMariaDB() | |
| isMaxDB | back to summary |
|---|---|
| public boolean isMaxDB() | |
| isMySQL | back to summary |
|---|---|
| public boolean isMySQL() | |
| isODBC | back to summary |
|---|---|
| public boolean isODBC() | |
| isOracle | back to summary |
|---|---|
| public boolean isOracle() | |
| isOracle12 | back to summary |
|---|---|
| public boolean isOracle12() | |
| isOracle23 | back to summary |
|---|---|
| public boolean isOracle23() | |
| isOracle9 | back to summary |
|---|---|
| public boolean isOracle9() | |
| isPointBase | back to summary |
|---|---|
| public boolean isPointBase() | |
| isPostgreSQL | back to summary |
|---|---|
| public boolean isPostgreSQL() | |
| isSQLAnywhere | back to summary |
|---|---|
| public boolean isSQLAnywhere() | |
| isSQLServer | back to summary |
|---|---|
| public boolean isSQLServer() | |
| isSybase | back to summary |
|---|---|
| public boolean isSybase() | |
| isSymfoware | back to summary |
|---|---|
| public boolean isSymfoware() | |
| isTimesTen | back to summary |
|---|---|
| public boolean isTimesTen() | |
| isTimesTen7 | back to summary |
|---|---|
| public boolean isTimesTen7() | |
| removeAllSequences | back to summary |
|---|---|
| public void removeAllSequences() Remove all sequences that were added through addSequence method. | |
| removeIdentitySequences | back to summary |
|---|---|
| public void removeIdentitySequences(final Session session, final String defaultIdentityGenerator, final Set<String> tableNames) INTERNAL:
Remove platform specific identity sequences for specified tables. Default identity sequences are restored.
Method is also called from | |
| removeSequence | back to summary |
|---|---|
| public Sequence removeSequence(String seqName) Remove sequence corresponding to the name (the sequence was added through addSequence method) Don't use if the session is connected. | |
| setConversionManager | back to summary |
|---|---|
| public void setConversionManager(ConversionManager conversionManager) The platform hold its own instance of conversion manager to allow customization. | |
| setDefaultSequence | back to summary |
|---|---|
| public void setDefaultSequence(Sequence sequence) Set default sequence. The sequence should have a unique name that shouldn't be altered after the sequence has been set: don't do: getDefaultSequence().setName(newName)). Default constructors for Sequence subclasses set name to "SEQ". | |
| setSequences | back to summary |
|---|---|
| public void setSequences(Map<String, Sequence> sequences) INTERNAL: Used only for reading from XML. | |
| setTableQualifier | back to summary |
|---|---|
| public void setTableQualifier(String qualifier) Set the qualifier for the table. Required by some databases such as Oracle and DB2 | |
| setTimestampQuery | back to summary |
|---|---|
| public void setTimestampQuery(ValueReadQuery tsQuery) Can override the default query for returning a timestamp from the server. See: getTimestampFromServer | |
| setUUIDQuery | back to summary |
|---|---|
| public void setUUIDQuery(ValueReadQuery uuidQuery) Can override the default query for returning a UUID from the server. | |
| shouldUseCustomModifyForCall | back to summary |
|---|---|
| public boolean shouldUseCustomModifyForCall(DatabaseField field) Allow for the platform to handle the representation of parameters specially. | |
| usesPlatformDefaultSequence | back to summary |
|---|---|
| public boolean usesPlatformDefaultSequence() INTERNAL: Indicates whether defaultSequence is the same as platform default sequence. | |