|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.fatwire.gst.foundation.facade.sql.SqlHelper
public class SqlHelper
A helper class over ICS.SQL
ICS.SQL(String, String, String, int, boolean, boolean, StringBuffer)
Method Summary | |
---|---|
static void |
execute(COM.FutureTense.Interfaces.ICS ics,
String table,
String sql)
Executes sql statements, other then SELECT statements. |
static String |
quote(String s)
Quote a string for use in a SQL statement. |
static IListIterable |
select(COM.FutureTense.Interfaces.ICS ics,
com.fatwire.cs.core.db.PreparedStmt stmt,
com.fatwire.cs.core.db.StatementParam param)
Executes a PreparedStatement |
static IListIterable |
select(COM.FutureTense.Interfaces.ICS ics,
String table,
String sql)
facade over ICS.SQL limit =-1; bCache=true; clears errno before ics.SQL no IList registered in ics variable space |
static IListIterable |
select(COM.FutureTense.Interfaces.ICS ics,
String table,
String sql,
int limit)
Executes an ICS.SQL operation with a limit. |
static IListIterable |
selectSimplePrepared(COM.FutureTense.Interfaces.ICS ics,
String table,
String sql,
Object... value)
Executes a PreparedStatement in a simple form. |
static Row |
selectSingle(COM.FutureTense.Interfaces.ICS ics,
com.fatwire.cs.core.db.PreparedStmt stmt,
com.fatwire.cs.core.db.StatementParam param)
Executes a PreparedStatement, returning a single row |
static Row |
selectSingle(COM.FutureTense.Interfaces.ICS ics,
String table,
String sql)
Executes an ICS.SQL operation, returning a single Row, or null if no result was returned by ICS.SQL. |
static boolean |
tableExists(COM.FutureTense.Interfaces.ICS ics,
String table)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final IListIterable select(COM.FutureTense.Interfaces.ICS ics, String table, String sql)
ics
- table
- tablenamesql
- the sql statement, needs to start with 'select'
RuntimeException
- if errno is not zero or not -101select(ICS, String, String, int)
public static final IListIterable select(COM.FutureTense.Interfaces.ICS ics, String table, String sql, int limit)
ics
- table
- tablenamesql
- the sql statement, needs to start with 'select'limit
- maximum number of rows to return
ICS.SQL(String, String, String, int, boolean, StringBuffer)
public static final void execute(COM.FutureTense.Interfaces.ICS ics, String table, String sql)
ics
- table
- tablenamesql
- the sql statement, can not start with "select"public static final IListIterable select(COM.FutureTense.Interfaces.ICS ics, com.fatwire.cs.core.db.PreparedStmt stmt, com.fatwire.cs.core.db.StatementParam param)
ics
- stmt
- the PreparedStatementparam
- the statement parameters
public static final IListIterable selectSimplePrepared(COM.FutureTense.Interfaces.ICS ics, String table, String sql, Object... value)
ics
- table
- tablenamesql
- the sql statementvalue
- the values for the prepared statement parameters.
public static final Row selectSingle(COM.FutureTense.Interfaces.ICS ics, com.fatwire.cs.core.db.PreparedStmt stmt, com.fatwire.cs.core.db.StatementParam param)
ics
- the Content Server contextstmt
- the PreparedStatementparam
- the statement parameters
public static final Row selectSingle(COM.FutureTense.Interfaces.ICS ics, String table, String sql)
ics
- table
- tablenamesql
- the sql statement, needs to start with 'select'
public static final String quote(String s)
s
- string to quote
public static boolean tableExists(COM.FutureTense.Interfaces.ICS ics, String table)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |