org.melati.poem.dbms
Class Interbase

Package class diagram package Interbase
java.lang.Object
  extended by org.melati.poem.dbms.AnsiStandard
      extended by org.melati.poem.dbms.Interbase
All Implemented Interfaces:
Dbms

public class Interbase
extends AnsiStandard

A Driver for Interbase. Untested.


Field Summary
 
Fields inherited from class org.melati.poem.dbms.AnsiStandard
schema
 
Constructor Summary
Interbase()
          Constructor.
 
Method Summary
 String getBinarySqlDefinition(int size)
          Accomodate different treatment of different sized binary data.
 String getQuotedName(String name)
          Accomodate different quoting strategies.
 String getSqlDefinition(String sqlTypeName)
          Retrieve a SQL type keyword used by the DBMS for the given Melati type name.
 String getStringSqlDefinition(int size)
          Accomodate String / Text distinction.
 
Methods inherited from class org.melati.poem.dbms.AnsiStandard
alterColumnNotNullableSQL, booleanTrueExpression, canBeIndexed, canDropColumns, canRepresent, canStoreBlobs, caseInsensitiveRegExpSQL, createTableOptionsSql, createTableSql, createTableTypeQualifierSql, defaultPoemTypeOfColumnMetaData, exceptionForUpdate, exceptionForUpdate, getConnection, getDriverClassName, getDriverLoaded, getFixedPtSqlDefinition, getForeignKeyDefinition, getIndexLength, getJdbcMetadataName, getLongSqlDefinition, getPrimaryKeyDefinition, getQuotedValue, getSchema, getSqlDefaultValue, givesCapabilitySQL, loadDriver, melatiName, preparedStatementPlaceholder, selectLimit, setDriverClassName, setDriverLoaded, shutdown, sqlBooleanValueOfRaw, tableInitialisationSql, toString, unloadDriver, unreservedName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Interbase

public Interbase()
Constructor.

Method Detail

getQuotedName

public String getQuotedName(String name)
Description copied from class: AnsiStandard
Accomodate different quoting strategies.

Specified by:
getQuotedName in interface Dbms
Overrides:
getQuotedName in class AnsiStandard
Parameters:
name - the field or table name
Returns:
the name with a q in front
See Also:
AnsiStandard.getQuotedName(java.lang.String)

getSqlDefinition

public String getSqlDefinition(String sqlTypeName)
Retrieve a SQL type keyword used by the DBMS for the given Melati type name. Override this in non-Ansi standard dbms to handle variants.

Specified by:
getSqlDefinition in interface Dbms
Overrides:
getSqlDefinition in class AnsiStandard
Parameters:
sqlTypeName - the Melati internal type name
Returns:
this dbms specific type keyword
See Also:
AnsiStandard.getSqlDefinition(java.lang.String)

getStringSqlDefinition

public String getStringSqlDefinition(int size)
                              throws SQLException
Accomodate String / Text distinction.

Specified by:
getStringSqlDefinition in interface Dbms
Overrides:
getStringSqlDefinition in class AnsiStandard
Parameters:
size - the string length (-1 means no limit)
Returns:
the SQL definition for a string of this size
Throws:
SQLException
See Also:
AnsiStandard.getStringSqlDefinition(int)

getBinarySqlDefinition

public String getBinarySqlDefinition(int size)
                              throws SQLException
Accomodate different treatment of different sized binary data.

Specified by:
getBinarySqlDefinition in interface Dbms
Overrides:
getBinarySqlDefinition in class AnsiStandard
Parameters:
size - how big the field is
Returns:
the keyword to use
Throws:
SQLException
See Also:
AnsiStandard.getBinarySqlDefinition(int)


Copyright © 2000-2010 PanEris. All Rights Reserved.