FileDocCategorySizeDatePackage
PointBasePlatform.javaAPI DocGlassfish v2 API5160Tue May 22 16:54:48 BST 2007oracle.toplink.essentials.platform.database

PointBasePlatform

public class PointBasePlatform extends DatabasePlatform
Support the Pointbase database.

Fields Summary
Constructors Summary
Methods Summary
protected voidappendBoolean(java.lang.Boolean bool, java.io.Writer writer)
INTERNAL: Appends a Boolean value as true/false instead of 0/1

        writer.write(bool.toString());
    
protected voidappendDate(java.sql.Date date, java.io.Writer writer)
INTERNAL: Write a Date in PointBase specific format.

        writer.write("DATE '" + date + "'");
    
protected voidappendTime(java.sql.Time time, java.io.Writer writer)
INTERNAL: Write a Time in PointBase specific format.

        writer.write("TIME '" + time + "'");
    
protected voidappendTimestamp(java.sql.Timestamp timestamp, java.io.Writer writer)
INTERNAL: Write a TimeStamp in PointBase specific format.

        writer.write("TIMESTAMP '" + timestamp + "'");
    
protected java.util.HashtablebuildClassTypes()

        Hashtable classTypeMapping = super.buildClassTypes();

        classTypeMapping.put("FLOAT", Double.class);
        classTypeMapping.put("DOUBLE PRECISION", Double.class);
        classTypeMapping.put("CHARACTER", String.class);
        classTypeMapping.put("CLOB", Character[].class);
        classTypeMapping.put("BLOB", Byte[].class);
        classTypeMapping.put("BOOLEAN", Boolean.class);

        return classTypeMapping;
    
protected java.util.HashtablebuildFieldTypes()

        Hashtable fieldTypeMapping;

        fieldTypeMapping = super.buildFieldTypes();
        fieldTypeMapping.put(Boolean.class, new FieldTypeDefinition("BOOLEAN"));

        fieldTypeMapping.put(Long.class, new FieldTypeDefinition("NUMERIC", 19));
        fieldTypeMapping.put(Short.class, new FieldTypeDefinition("NUMERIC", 5));
        fieldTypeMapping.put(Byte.class, new FieldTypeDefinition("NUMERIC", 3));
        fieldTypeMapping.put(java.math.BigInteger.class, new FieldTypeDefinition("NUMERIC", 19));

        fieldTypeMapping.put(Integer.class, new FieldTypeDefinition("INTEGER", false));
        fieldTypeMapping.put(Float.class, new FieldTypeDefinition("REAL", false));
        fieldTypeMapping.put(Double.class, new FieldTypeDefinition("DOUBLE", false));
        fieldTypeMapping.put(Short.class, new FieldTypeDefinition("SMALLINT", false));
        fieldTypeMapping.put(java.math.BigDecimal.class, new FieldTypeDefinition("DECIMAL"));
        fieldTypeMapping.put(Number.class, new FieldTypeDefinition("DECIMAL"));

        fieldTypeMapping.put(Character.class, new FieldTypeDefinition("CHARACTER"));

        return fieldTypeMapping;
    
protected voidinitializePlatformOperators()

        super.initializePlatformOperators();
        addOperator(ExpressionOperator.simpleMath(ExpressionOperator.Concat, "||"));
    
public booleanisPointBase()

        return true;