com.sibvisions.rad.persist.jdbc
Class SQLSupport

java.lang.Object
  extended by com.sibvisions.rad.persist.jdbc.SQLSupport

public final class SQLSupport
extends Object

The SQLSupport provide helper functions to use IConditions in ANSI SQL Queries.

See Also:
ICondition

Method Summary
static Object[] getParameter(ICondition cCondition)
          Returns the parameters used for this ICondition.
static String getSQL(ICondition cCondition, MetaData pMetaData, boolean pUsePrefix)
          Returns the ANSI SQL String for this ICondition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSQL

public static String getSQL(ICondition cCondition,
                            MetaData pMetaData,
                            boolean pUsePrefix)
Returns the ANSI SQL String for this ICondition.

Parameters:
cCondition - the Condition to use.
pMetaData - the MetaDataColumn array to use.
pUsePrefix - true to use the prefixed column (real column name) and false to ignore prefixes (the simple name of the column)
Returns:
the ANSI SQL String for this ICondition.

getParameter

public static Object[] getParameter(ICondition cCondition)
Returns the parameters used for this ICondition.

Parameters:
cCondition - the Condition to use.
Returns:
the parameters used for this ICondition.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.