EclipseLink 1.0_1.0M2 API Reference - Incubation

org.eclipse.persistence.platform.database
Class DBasePlatform

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.DBasePlatform

public class DBasePlatform
extends DatabasePlatform

Purpose: Provides DBase specific behaviour.

Responsibilities:

Since:
TOPLink/Java 1.0

Constructor Summary
DBasePlatform()
           
 
Method Summary
protected  java.util.Hashtable buildFieldTypes()
           
 java.lang.Object convertToDatabaseType(java.lang.Object value)
          INTERNAL: DBase does not support Time/Timestamp so we must map to strings. 2.0p22: protected->public INTERNAL
 int getMaxFieldNameSize()
          INTERNAL: returns the maximum number of characters that can be used in a field name on this platform.
 java.lang.String getSelectForUpdateString()
           
 boolean isDBase()
           
 java.util.Hashtable maximumNumericValues()
          Builds a table of minimum 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 shouldUseJDBCOuterJoinSyntax()
          JDBC defines and outer join syntax, many drivers do not support this.
 boolean supportsForeignKeyConstraints()
           
 boolean supportsPrimaryKeyConstraint()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBasePlatform

public DBasePlatform()
Method Detail

buildFieldTypes

protected java.util.Hashtable buildFieldTypes()

convertToDatabaseType

public java.lang.Object convertToDatabaseType(java.lang.Object value)
INTERNAL: DBase does not support Time/Timestamp so we must map to strings. 2.0p22: protected->public INTERNAL


getMaxFieldNameSize

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


getSelectForUpdateString

public java.lang.String getSelectForUpdateString()

isDBase

public boolean isDBase()

maximumNumericValues

public java.util.Hashtable maximumNumericValues()
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


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.


shouldUseJDBCOuterJoinSyntax

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


supportsForeignKeyConstraints

public boolean supportsForeignKeyConstraints()

supportsPrimaryKeyConstraint

public boolean supportsPrimaryKeyConstraint()

EclipseLink 1.0_1.0M2 API Reference - Incubation