org.apache.beehive.netui.databinding.datagrid.runtime.sql
Class SQLSupportConfig

Object
  extended by SQLSupportConfig

public abstract class SQLSupportConfig
extends Object

Configuration JavaBean used in conjunction with the SQLSupport class to configure the way in which SQL statements are created. This abstract class can be implemented by subclasses to provide varying ways of configuring these properties.


Constructor Summary
SQLSupportConfig()
           
 
Method Summary
abstract  String getQuoteChar()
          Get the quote character used to wrap string types inside of SQL statements.
abstract  boolean getSupportsLikeEscapeClause()
          Get a boolean that enables or disables an ESCAPE clause when generating a LIKE clause in a SQL statement.
abstract  void setQuoteChar(String quoteChar)
          Set the quote character used to quote strings types when embedded inside of SQL statements.
abstract  void setSupportsLikeEscapeClause(boolean supportsLikeEscapeClause)
          Set a boolean that enables or disables generating an ESCAPE clause when generating a LIKE clause into a SQL WHERE filter.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLSupportConfig

public SQLSupportConfig()
Method Detail

setQuoteChar

public abstract void setQuoteChar(String quoteChar)
Set the quote character used to quote strings types when embedded inside of SQL statements.

Parameters:
quoteChar - the quote character

getQuoteChar

public abstract String getQuoteChar()
Get the quote character used to wrap string types inside of SQL statements.

Returns:
the quote character

setSupportsLikeEscapeClause

public abstract void setSupportsLikeEscapeClause(boolean supportsLikeEscapeClause)
Set a boolean that enables or disables generating an ESCAPE clause when generating a LIKE clause into a SQL WHERE filter.

Parameters:
supportsLikeEscapeClause - boolean to support escaping a LIKE clause

getSupportsLikeEscapeClause

public abstract boolean getSupportsLikeEscapeClause()
Get a boolean that enables or disables an ESCAPE clause when generating a LIKE clause in a SQL statement.

Returns:
true if escaping is enabled; false otherwise.