anvil.core.sql
Class SQLUtil

java.lang.Object
  |
  +--anvil.core.sql.SQLUtil

public class SQLUtil
extends java.lang.Object

class SQLUtil


Field Summary
static int MAGIC_LIMIT
           
 
Constructor Summary
SQLUtil()
           
 
Method Summary
static java.lang.String buildQueryString(java.lang.String query, Any[] parameters, int offset)
           
static Any getField(java.sql.CallableStatement stmt, java.sql.ResultSetMetaData meta, int field)
           
static Any getField(java.sql.ResultSet set, java.sql.ResultSetMetaData meta, int field)
           
static Any query(java.sql.Connection connection, java.lang.String query, Any[] parameters)
           
static void setField(java.sql.PreparedStatement set, int field, Any data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAGIC_LIMIT

public static final int MAGIC_LIMIT
See Also:
Constant Field Values
Constructor Detail

SQLUtil

public SQLUtil()
Method Detail

buildQueryString

public static final java.lang.String buildQueryString(java.lang.String query,
                                                      Any[] parameters,
                                                      int offset)

query

public static final Any query(java.sql.Connection connection,
                              java.lang.String query,
                              Any[] parameters)

getField

public static Any getField(java.sql.ResultSet set,
                           java.sql.ResultSetMetaData meta,
                           int field)
                    throws java.sql.SQLException
java.sql.SQLException

setField

public static void setField(java.sql.PreparedStatement set,
                            int field,
                            Any data)
                     throws java.sql.SQLException
java.sql.SQLException

getField

public static Any getField(java.sql.CallableStatement stmt,
                           java.sql.ResultSetMetaData meta,
                           int field)
                    throws java.sql.SQLException
java.sql.SQLException