Klasse HsqldbAdapter

java.lang.Object
org.apache.torque.adapter.AbstractAdapter
org.apache.torque.adapter.HsqldbAdapter
Alle implementierten Schnittstellen:
Serializable, Adapter

public class HsqldbAdapter extends AbstractAdapter
This is used to connect to Hsqldb databases. http://hsqldb.org/
Version:
$Id: HsqldbAdapter.java 1848527 2018-12-09 16:27:22Z tv $
Autor:
Christopher Elkins
Siehe auch:
  • Konstruktordetails

    • HsqldbAdapter

      protected HsqldbAdapter()
      Constructor.
  • Methodendetails

    • toUpperCase

      public String toUpperCase(String in)
      This method is used to ignore case.
      Angegeben von:
      toUpperCase in Schnittstelle Adapter
      Angegeben von:
      toUpperCase in Klasse AbstractAdapter
      Parameter:
      in - The string to transform to upper case.
      Gibt zurück:
      The upper case string.
    • ignoreCase

      public String ignoreCase(String in)
      This method is used to ignore case.
      Angegeben von:
      ignoreCase in Schnittstelle Adapter
      Angegeben von:
      ignoreCase in Klasse AbstractAdapter
      Parameter:
      in - The string whose case to ignore.
      Gibt zurück:
      The string in a case that can be ignored.
    • getIDMethodType

      public IDMethod getIDMethodType()
      Beschreibung aus Klasse kopiert: AbstractAdapter
      Returns the constant from the IDMethod interface denoting which type of primary key generation method this type of RDBMS uses.
      Angegeben von:
      getIDMethodType in Schnittstelle Adapter
      Angegeben von:
      getIDMethodType in Klasse AbstractAdapter
      Gibt zurück:
      IDMethod constant
      Siehe auch:
    • getIDMethodSQL

      public String getIDMethodSQL(Object obj)
      Beschreibung aus Klasse kopiert: AbstractAdapter
      Returns SQL used to get the most recently inserted primary key. Databases which have no support for this return null.
      Angegeben von:
      getIDMethodSQL in Schnittstelle Adapter
      Angegeben von:
      getIDMethodSQL in Klasse AbstractAdapter
      Parameter:
      obj - Information used for key generation.
      Gibt zurück:
      The most recently inserted database key.
      Siehe auch:
    • lockTable

      public void lockTable(Connection con, String table) throws SQLException
      Locks the specified table.
      Angegeben von:
      lockTable in Schnittstelle Adapter
      Angegeben von:
      lockTable in Klasse AbstractAdapter
      Parameter:
      con - The JDBC connection to use.
      table - The name of the table to lock.
      Löst aus:
      SQLException - No Statement could be created or executed.
    • unlockTable

      public void unlockTable(Connection con, String table) throws SQLException
      Unlocks the specified table.
      Angegeben von:
      unlockTable in Schnittstelle Adapter
      Angegeben von:
      unlockTable in Klasse AbstractAdapter
      Parameter:
      con - The JDBC connection to use.
      table - The name of the table to unlock.
      Löst aus:
      SQLException - No Statement could be created or executed.
    • escapeText

      public boolean escapeText()
      This method is for the SqlExpression.quoteAndEscape rules. The rule is, any string in a SqlExpression with a BACKSLASH will either be changed to "\\" or left as "\".
      Angegeben von:
      escapeText in Schnittstelle Adapter
      Setzt außer Kraft:
      escapeText in Klasse AbstractAdapter
      Gibt zurück:
      false.
    • useEscapeClauseForLike

      public boolean useEscapeClauseForLike()
      Whether an escape clause in like should be used. Example : select * from AUTHOR where AUTHOR.NAME like '\_%' ESCAPE '\'; HSQLDB needs this, so this implementation always returns true.
      Angegeben von:
      useEscapeClauseForLike in Schnittstelle Adapter
      Setzt außer Kraft:
      useEscapeClauseForLike in Klasse AbstractAdapter
      Gibt zurück:
      whether the escape clause should be appended or not.
    • generateLimits

      public void generateLimits(Query query, long offset, int limit)
      Generate a LIMIT limit OFFSET offset clause if offset > 0 or an LIMIT limit clause if limit is > 0 and offset is 0.
      Angegeben von:
      generateLimits in Schnittstelle Adapter
      Setzt außer Kraft:
      generateLimits in Klasse AbstractAdapter
      Parameter:
      query - The query to modify
      offset - the offset Value
      limit - the limit Value