1 10 11 package com.triactive.jdo.store; 12 13 import java.sql.DatabaseMetaData ; 14 15 16 24 25 public class PointBaseAdapter extends DatabaseAdapter 26 { 27 public PointBaseAdapter(DatabaseMetaData metadata) 28 { 29 super(metadata); 30 } 31 32 public String getVendorID() 33 { 34 return "pointbase"; 35 } 36 37 public boolean supportsBooleanComparison() 38 { 39 return false; 40 } 41 42 public TableExpression newTableExpression(QueryStatement qs, Table table, SQLIdentifier rangeVar) 43 { 44 return new TableExprAsJoins(qs, table, rangeVar); 45 } 46 47 public int getUnlimitedLengthPrecisionValue(TypeInfo typeInfo) 48 { 49 if (typeInfo.dataType == java.sql.Types.BLOB || typeInfo.dataType == java.sql.Types.CLOB) 50 return 1 << 31; 51 else 52 return super.getUnlimitedLengthPrecisionValue(typeInfo); 53 } 54 } 55 | Popular Tags |