EclipseLink 1.0_1.0M2 API Reference - Incubation

org.eclipse.persistence.platform.database
Class AccessPlatform

java.lang.Object
  extended by org.eclipse.persistence.internal.databaseaccess.DatabasePlatform
      extended by org.eclipse.persistence.platform.database.DatabasePlatform
          extended by org.eclipse.persistence.platform.database.AccessPlatform

public class AccessPlatform
extends DatabasePlatform

Purpose: Provides Microsoft Access specific behaviour.

Since:
TOPLink/Java 1.0

Constructor Summary
AccessPlatform()
           
 
Method Summary
protected  java.util.Hashtable buildClassTypes()
           
protected  java.util.Hashtable buildFieldTypes()
           
 int getMaxFieldNameSize()
          INTERNAL: returns the maximum number of characters that can be used in a field name on this platform.
 java.sql.Timestamp getTimestampFromServer(AbstractSession session, java.lang.String sessionName)
          Access do not support millisecond well, truncate the millisecond from the timestamp
protected  void initializePlatformOperators()
          Initialize any platform-specific operators
 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessPlatform

public AccessPlatform()
Method Detail

buildClassTypes

protected java.util.Hashtable buildClassTypes()

buildFieldTypes

protected java.util.Hashtable buildFieldTypes()

getMaxFieldNameSize

public int getMaxFieldNameSize()
INTERNAL: returns the maximum number of characters that can be used in a field name on this platform.


getTimestampFromServer

public java.sql.Timestamp getTimestampFromServer(AbstractSession session,
                                                 java.lang.String sessionName)
Access do not support millisecond well, truncate the millisecond from the timestamp


initializePlatformOperators

protected void initializePlatformOperators()
Initialize any platform-specific operators


isAccess

public boolean isAccess()

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


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


printFieldNotNullClause

public void printFieldNotNullClause(java.io.Writer writer)
Append the receiver's field 'NOT NULL' constraint clause to a writer.


requiresNamedPrimaryKeyConstraints

public boolean requiresNamedPrimaryKeyConstraints()
This is used as some databases create the primary key constraint differently, i.e. Access.


shouldUseJDBCOuterJoinSyntax

public boolean shouldUseJDBCOuterJoinSyntax()
JDBC defines and outer join syntax, many drivers do not support this. So we normally avoid it.


EclipseLink 1.0_1.0M2 API Reference - Incubation