oracle.toplink.internal.databaseaccess
Class AccessPlatform
java.lang.Object
oracle.toplink.internal.databaseaccess.DatabasePlatform
oracle.toplink.internal.databaseaccess.AccessPlatform
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- public class AccessPlatform
- extends DatabasePlatform
Purpose: Provides Microsoft Access specific behaviour.
- Since:
- TOPLink/Java 1.0
- See Also:
- Serialized Form
Method Summary |
java.sql.Timestamp |
getTimestampFromServer(oracle.toplink.publicinterface.Session session, java.lang.String sessionName)
Access do not support millisecond well, truncate the millisecond from the timestamp |
boolean |
isAccess()
|
java.util.Hashtable |
maximumNumericValues()
Builds a table of maximum numeric values keyed on java class. |
java.util.Hashtable |
minimumNumericValues()
Builds a table of minimum numeric values keyed on java class. |
void |
printFieldNotNullClause(java.io.Writer writer)
Append the receiver's field 'NOT NULL' constraint clause to a writer. |
boolean |
requiresNamedPrimaryKeyConstraints()
This is used as some databases create the primary key constraint differently, i.e. |
boolean |
shouldUseJDBCOuterJoinSyntax()
JDBC defines and outer join syntax, many drivers do not support this. |
Methods inherited from class oracle.toplink.internal.databaseaccess.DatabasePlatform |
allowsSizeInProcedureArguments, appendParameter, autoCommit, beginTransaction, buildProcedureCallString, clone, commitTransaction, convertObject, copyInto, executeStoredProcedureCall, getBatchBeginString, getBatchDelimiterString, getBatchEndString, getClassTypes, getConversionManager, getCreationInOutputProcedureToken, getCreationOutputProcedureToken, getCursorCode, getFieldTypeDefinition, getFieldTypes, getInOutputProcedureToken, getJDBCType, getJDBCType, getMaxBatchWritingSize, getOperator, getOutputProcedureToken, getPlatformOperators, getProcedureArgumentSetter, getProcedureArgumentString, getProcedureCallHeader, getProcedureCallTail, getQualifiedSequenceTableName, getSelectForUpdateNoWaitString, getSelectForUpdateString, getSelectSequenceQuery, getSequenceCounterFieldName, getSequenceNameFieldName, getSequencePreallocationSize, getSequenceTableName, getStatementCacheSize, getStoredProcedureParameterPrefix, getStoredProcedureTerminationToken, getStringBindingSize, getTableQualifier, getTimestampQuery, getTransactionIsolation, getUpdateSequenceQuery, initializePreallocatedSequences, isAttunity, isCloudscape, isDB2, isDBase, isHSQL, isInformix, isInformixOuterJoin, isODBC, isOracle, isPointBase, isSQLAnywhere, isSQLServer, isSybase, printFieldIdentityClause, printFieldNullClause, printValuelist, printValuelist, registerOutputParameter, requiresProcedureCallBrackets, requiresProcedureCallOuputToken, rollbackTransaction, setConversionManager, setCursorCode, setMaxBatchWritingSize, setSelectSequenceNumberQuery, setSequenceCounterFieldName, setSequenceNameFieldName, setSequencePreallocationSize, setSequenceTableName, setShouldBindAllParameters, setShouldCacheAllStatements, setShouldForceFieldNamesToUpperCase, setShouldIgnoreCaseOnFieldComparisons, setShouldOptimizeDataConversion, setShouldTrimStrings, setStatementCacheSize, setStringBindingSize, setSupportsAutoCommit, setTableQualifier, setTimestampQuery, setTransactionIsolation, setUpdateSequenceQuery, setUsesBatchWriting, setUsesByteArrayBinding, setUsesJDBCBatchWriting, setUsesNativeSQL, setUsesStreamsForBinding, setUsesStringBinding, shouldBindAllParameters, shouldCacheAllStatements, shouldForceFieldNamesToUpperCase, shouldIgnoreCaseOnFieldComparisons, shouldIgnoreException, shouldOptimizeDataConversion, shouldPrintConstraintNameAfter, shouldPrintInOutputTokenBeforeType, shouldPrintOuterJoinInWhereClause, shouldPrintOutputTokenBeforeType, shouldTrimStrings, supportsAutoCommit, supportsForeignKeyConstraints, supportsNativeSequenceNumbers, supportsPrimaryKeyConstraint, toString, usesBatchWriting, usesByteArrayBinding, usesJDBCBatchWriting, usesNativeSequencing, usesNativeSQL, usesSequenceTable, usesStreamsForBinding, usesStringBinding |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AccessPlatform
public AccessPlatform()
getTimestampFromServer
public java.sql.Timestamp getTimestampFromServer(oracle.toplink.publicinterface.Session session,
java.lang.String sessionName)
- Access do not support millisecond well, truncate the millisecond from the timestamp
-
- Overrides:
getTimestampFromServer
in class DatabasePlatform
isAccess
public boolean isAccess()
-
- Overrides:
isAccess
in class DatabasePlatform
maximumNumericValues
public java.util.Hashtable maximumNumericValues()
- Builds a table of maximum numeric values keyed on java class. This is used for type testing but might also be useful to end users attempting to sanitize values.
NOTE: BigInteger & BigDecimal maximums are dependent upon their precision & Scale
-
- Overrides:
maximumNumericValues
in class DatabasePlatform
minimumNumericValues
public java.util.Hashtable minimumNumericValues()
- Builds a table of minimum numeric values keyed on java class. This is used for type testing but might also be useful to end users attempting to sanitize values.
NOTE: BigInteger & BigDecimal minimums are dependent upon their precision & Scale
-
- Overrides:
minimumNumericValues
in class DatabasePlatform
printFieldNotNullClause
public void printFieldNotNullClause(java.io.Writer writer)
- Append the receiver's field 'NOT NULL' constraint clause to a writer.
-
- Overrides:
printFieldNotNullClause
in class DatabasePlatform
requiresNamedPrimaryKeyConstraints
public boolean requiresNamedPrimaryKeyConstraints()
- This is used as some databases create the primary key constraint differently, i.e. Access.
-
- Overrides:
requiresNamedPrimaryKeyConstraints
in class DatabasePlatform
shouldUseJDBCOuterJoinSyntax
public boolean shouldUseJDBCOuterJoinSyntax()
- JDBC defines and outer join syntax, many drivers do not support this. So we normally avoid it.
-
- Overrides:
shouldUseJDBCOuterJoinSyntax
in class DatabasePlatform