DatabasePlatform, org.eclipse.persistence.eis.EISPlatform
| Modifier and Type | Field and Description |
|---|---|
| protected transient ConversionManager | conversionManager
Allow for conversion to be customized in the platform. |
| protected Hashtable | dataTypesConvertedFromAClass
Store the list of Classes that can be converted to from the key. |
| protected Hashtable | dataTypesConvertedToAClass
Store the list of Classes that can be converted from to the key. |
| protected boolean | defaultNativeSequenceToTable
If the native sequence type is not supported, if table sequencing should be used. |
| protected boolean | defaultSeqenceAtNextValue
If sequences should start at Next Value |
| protected Sequence | defaultSequence
Store default sequence |
| protected String | |
| protected transient Map | platformOperators
Operators specific to this platform |
| protected Map | sequences
Store map of sequence names to sequences |
| protected Object | sequencesLock
Ensures that only one thread at a time can add/remove sequences |
| protected String | startDelimiter
Delimiter to use for fields and tables using spaces or other special values |
| protected boolean | supportsReturnGeneratedKeys
This property configures if the database platform will use |
| protected String | tableQualifier
Supporting name scopes in database by prefixing the table names with the table qualifier/creator. |
| protected ValueReadQuery | timestampQuery
Store the query use to query the current server time. |
| protected ValueReadQuery | uuidQuery
Store the query use to query the current server UUID. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public void | addSequence(Sequence sequence)
Implements org. |
| public void | addSequence(Sequence sequence, boolean isSessionConnected)
Implements org. |
| public void | appendParameter(Call call, Writer writer, Object parameter)
Implements org. |
| public DatasourceCall | buildNativeCall(String queryString)
INTERNAL: Return the correct call type for the native query string. |
| public ValueReadQuery | buildSelectQueryForIdentity()
INTERNAL: Returns query used to read back the value generated by Identity. |
| public ValueReadQuery | buildSelectQueryForIdentity(String seqName, Integer size)
INTERNAL: Returns query used to read back the value generated by Identity. |
| public ValueReadQuery | buildSelectQueryForSequenceObject()
INTERNAL: Returns query used to read value generated by sequence object (like Oracle sequence). |
| public ValueReadQuery | buildSelectQueryForSequenceObject(String qualifiedSeqName, Integer size)
INTERNAL: Returns query used to read value generated by sequence object (like Oracle sequence). |
| public Object | clone()
Overrides java. Implements org. |
| 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)Implements org. |
| public void | copyInto(Platform platform)
Implements org. |
| public ConnectionCustomizer | |
| public Expression | Returns: An expression for the given field set equal to a parameter matching the fieldINTERNAL: Override this method if the platform needs to use a custom function based on the DatabaseField |
| protected Sequence | |
| public ConversionManager | getConversionManager()
Implements org. |
| public Object | getCustomModifyValueForCall(Call call, Object value, DatabaseField field, boolean shouldBind)
Implements org. |
| public List | Returns: - a vector of classes- the class that is converted from javaClass)PUBLIC: Return the list of Classes that can be converted to from the passed in javaClass. |
| public List | Returns: - a vector of classes- the class that is converted to javaClass)PUBLIC: Return the list of Classes that can be converted from to the passed in javaClass. |
| public boolean | getDefaultNativeSequenceToTable()
Return if the native sequence type is not supported, if table sequencing should be used. |
| public boolean | |
| public Sequence | getDefaultSequence()
Implements org. |
| public Sequence | getDefaultSequenceToWrite()
Implements org. |
| public String | getDriverVersion()
Implements org. |
| public String | getEndDelimiter()
Implements org. |
| public int | getINClauseLimit()
INTERNAL: Some database platforms have a limit for the number of parameters in an IN clause. |
| public ExpressionOperator | getOperator(int selector)
Return the operator for the operator constant defined in ExpressionOperator. |
| public Map | |
| public ValueReadQuery | |
| public Sequence | getSequence(String seqName)
Implements org. |
| public int | |
| public Map | getSequences()
Implements org. |
| public Map | getSequencesToWrite()
Implements org. |
| public String | getStartDelimiter()
Implements org. |
| public String | getTableQualifier()
Implements org. |
| public Timestamp | getTimestampFromServer(AbstractSession session, String sessionName)
Implements org. |
| public ValueReadQuery | getTimestampQuery()
Implements org. |
| public DataModifyQuery | |
| public ValueReadQuery | getUUIDQuery()
Implements org. |
| public boolean | |
| public void | initialize()
Implements org. |
| public void | initializeDefaultQueries(DescriptorQueryManager queryManager, AbstractSession session)
INTERNAL: Allow the platform to initialize the CRUD queries to defaults. |
| protected void | |
| public void | initIdentitySequences(final Session
Active database session (in connected state). session, final String Default identity generator sequence name. defaultIdentityGenerator)Implements org. |
| 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 boolean | |
| public boolean | |
| public void | removeAllSequences()
Implements org. |
| 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)Implements org. |
| public Sequence | removeSequence(String seqName)
Implements org. |
| protected void | |
| public void | setConversionManager(ConversionManager conversionManager)
Implements org. |
| public void | setDefaultNativeSequenceToTable(boolean defaultNativeSequenceToTable)
Set if the native sequence type is not supported, if table sequencing should be used. |
| public void | setDefaultSeqenceAtNextValue(boolean defaultSeqenceAtNextValue)
Set if the sequence generation should start at next value. |
| public void | setDefaultSequence(Sequence sequence)
Implements org. |
| public void | setEndDelimiter(String endDelimiter)
Delimiter to use for fields and tables using spaces or other special values. |
| public void | setSelectSequenceNumberQuery(ValueReadQuery seqQuery)
OBSOLETE: Can override the default query for returning the sequence numbers. |
| public void | |
| public void | setSequences(Map<String, Sequence> sequences)
Implements org. |
| public void | setStartDelimiter(String startDelimiter)
Delimiter to use for fields and tables using spaces or other special values. |
| public void | setSupportsReturnGeneratedKeys(boolean supportsReturnGeneratedKeys)
Indicates whether the platform supports the use of |
| public void | setTableQualifier(String qualifier)
Implements org. |
| public void | setTimestampQuery(ValueReadQuery tsQuery)
Implements org. |
| public void | setUpdateSequenceQuery(DataModifyQuery updateSequenceNumberQuery)
This method sets the update sequence number query. |
| public void | setUUIDQuery(ValueReadQuery uuidQuery)
Implements org. |
| public boolean | shouldNativeSequenceUseTransaction()
INTERNAL: Indicates whether a separate transaction is required for NativeSequence. |
| public boolean | |
| public boolean | shouldSelectDistinctIncludeOrderBy()
Return if the database requires the ORDER BY fields to be part of the select clause. |
| public boolean | shouldSelectIncludeOrderBy()
Return if the database requires the ORDER BY fields to be part of the select clause. |
| public boolean | shouldUseCustomModifyForCall(DatabaseField field)
Implements org. |
| public boolean | |
| public boolean | |
| public boolean | supportsReturnGeneratedKeys()
Indicates whether the platform supports the use of |
| public boolean | |
| public String | |
| public boolean | usesPlatformDefaultSequence()
Implements org. |