Class InterbaseDictionary

java.lang.Object
org.apache.openjpa.jdbc.sql.DBDictionary
org.apache.openjpa.jdbc.sql.InterbaseDictionary
All Implemented Interfaces:
JoinSyntaxes, Configurable, IdentifierConfiguration, ConnectionDecorator, LoggingConnectionDecorator.SQLWarningHandler

public class InterbaseDictionary extends DBDictionary
Dictionary for Borland Interbase.
  • Constructor Details

    • InterbaseDictionary

      public InterbaseDictionary()
  • Method Details

    • getTableNameForMetadata

      protected String getTableNameForMetadata(String tableName)
      Description copied from class: DBDictionary
      Returns the table name that will be used for obtaining information from DatabaseMetaData.
      Overrides:
      getTableNameForMetadata in class DBDictionary
    • getTableNameForMetadata

      protected String getTableNameForMetadata(DBIdentifier tableName)
      Description copied from class: DBDictionary
      Returns the table name that will be used for obtaining information from DatabaseMetaData.
      Overrides:
      getTableNameForMetadata in class DBDictionary
    • getColumnNameForMetadata

      protected String getColumnNameForMetadata(String columnName)
      Description copied from class: DBDictionary
      Returns the column name that will be used for obtaining information from DatabaseMetaData.
      Overrides:
      getColumnNameForMetadata in class DBDictionary
    • getColumnNameForMetadata

      protected String getColumnNameForMetadata(DBIdentifier columnName)
      Description copied from class: DBDictionary
      Returns the column name that will be used for obtaining information from DatabaseMetaData.
      Overrides:
      getColumnNameForMetadata in class DBDictionary
    • appendSize

      protected String appendSize(Column col, String typeName)
      Description copied from class: DBDictionary
      Helper method to add size properties to the specified type. If present, the string "{0}" will be replaced with the size definition; otherwise the size definition will be appended to the type name. If your database has column types that don't allow size definitions, override this method to return the unaltered type name for columns of those types (or add the type names to the fixedSizeTypeNameSet).

      Some databases support "type modifiers", for example the unsigned "modifier" in MySQL. In these cases the size should go between the type and the "modifier", instead of after the modifier. For example CREATE table FOO ( myint INT (10) UNSIGNED . . .) instead of CREATE table FOO ( myint INT UNSIGNED (10) . . .). Type modifiers should be added to typeModifierSet in subclasses.

      Overrides:
      appendSize in class DBDictionary
    • indexOf

      public void indexOf(SQLBuffer buf, FilterValue str, FilterValue find, FilterValue start)
      Description copied from class: DBDictionary
      Invoke this database's indexOf function.
      Overrides:
      indexOf in class DBDictionary
      Parameters:
      buf - the SQL buffer to write the indexOf invocation to
      str - a query value representing the target string
      find - a query value representing the search string
      start - a query value representing the start index, or null to start at the beginning
    • substring

      public void substring(SQLBuffer buf, FilterValue str, FilterValue start, FilterValue end)
      Description copied from class: DBDictionary
      Invoke this database's substring function. Numeric parameters are inlined if possible. This is to handle grouping by SUBSTRING - most databases do not allow parameter binding in this case.
      Overrides:
      substring in class DBDictionary
      Parameters:
      buf - the SQL buffer to write the substring invocation to
      str - a query value representing the target string
      start - a query value representing the start index
      end - a query value representing the length of substring, or null for none
    • getDropColumnSQL

      public String[] getDropColumnSQL(Column column)
      Description copied from class: DBDictionary
      Return a series of SQL statements to drop the given column from its table. Return an empty array if operation not supported. Returns ALTER TABLE <table name> DROP COLUMN <col name> by default.
      Overrides:
      getDropColumnSQL in class DBDictionary