|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.jpattern.orm.session.ASqlPerformer
public abstract class ASqlPerformer
| Constructor Summary | |
|---|---|
ASqlPerformer()
|
|
| Method Summary | |
|---|---|
Object[] |
queryForArray(String sql,
Object... values)
Execute a query given static SQL and read the result creating an ordered array with the extracted column values (return null if no rows are returned) |
BigDecimal |
queryForBigDecimal(String sql,
Object... values)
Execute a query given static SQL and read the result as a BigDecimal value (return null if no rows are returned) |
Boolean |
queryForBoolean(String sql,
Object... values)
Execute a query given static SQL and read the result as a boolean value (return null if no rows are returned) |
Double |
queryForDouble(String sql,
Object... values)
Execute a query given static SQL and read the result as a double value (return null if no rows are returned) |
Float |
queryForFloat(String sql,
Object... values)
Execute a query given static SQL and read the result as a float value (return null if no rows are returned) |
Integer |
queryForInt(String sql,
Object... values)
Execute a query given static SQL and read the result as an int value (return null if no rows are returned) |
List<Object[]> |
queryForList(String sql,
Object... values)
Execute a query given static SQL and read the result creating a List of all the ordered arrays with the extracted column values for every row. |
Long |
queryForLong(String sql,
Object... values)
Execute a query given static SQL and read the result as an long value (return null if no rows are returned) |
String |
queryForString(String sql,
Object... values)
Execute a query given static SQL and read the result as a String value (return null if no rows are returned) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.googlecode.jpattern.orm.session.ISqlPerformer |
|---|
batchUpdate, batchUpdate, batchUpdate, execute, getMaxRows, getQueryTimeout, query, setMaxRows, setQueryTimeout, update, update |
| Constructor Detail |
|---|
public ASqlPerformer()
| Method Detail |
|---|
public final Integer queryForInt(String sql,
Object... values)
throws OrmException,
OrmNotUniqueResultException
ISqlPerformer
queryForInt in interface ISqlPerformersql - SQL query to executevalues - arguments to bind to the query
OrmNotUniqueResultException - if more than one row is returned from the query
OrmException
public final Long queryForLong(String sql,
Object... values)
throws OrmException,
OrmNotUniqueResultException
ISqlPerformer
queryForLong in interface ISqlPerformersql - SQL query to executevalues - arguments to bind to the query
OrmNotUniqueResultException - if more than one row is returned from the query
OrmException
public final Double queryForDouble(String sql,
Object... values)
throws OrmException,
OrmNotUniqueResultException
ISqlPerformer
queryForDouble in interface ISqlPerformersql - SQL query to executevalues - arguments to bind to the query
OrmNotUniqueResultException - if more than one row is returned from the query
OrmException
public final Float queryForFloat(String sql,
Object... values)
throws OrmException,
OrmNotUniqueResultException
ISqlPerformer
queryForFloat in interface ISqlPerformersql - SQL query to executevalues - arguments to bind to the query
OrmNotUniqueResultException - if more than one row is returned from the query
OrmException
public final String queryForString(String sql,
Object... values)
throws OrmException,
OrmNotUniqueResultException
ISqlPerformer
queryForString in interface ISqlPerformersql - SQL query to executevalues - arguments to bind to the query
OrmNotUniqueResultException - if more than one row is returned from the query
OrmException
public final Boolean queryForBoolean(String sql,
Object... values)
throws OrmException,
OrmNotUniqueResultException
ISqlPerformer
queryForBoolean in interface ISqlPerformersql - SQL query to executevalues - arguments to bind to the query
OrmNotUniqueResultException - if more than one row is returned from the query
OrmException
public final BigDecimal queryForBigDecimal(String sql,
Object... values)
throws OrmException,
OrmNotUniqueResultException
ISqlPerformer
queryForBigDecimal in interface ISqlPerformersql - SQL query to executevalues - arguments to bind to the query
OrmNotUniqueResultException - if more than one row is returned from the query
OrmException
public final Object[] queryForArray(String sql,
Object... values)
throws OrmException,
OrmNotUniqueResultException
ISqlPerformer
queryForArray in interface ISqlPerformersql - SQL query to executevalues - arguments to bind to the query
OrmNotUniqueResultException - if more than one row is returned from the query
OrmException
public final List<Object[]> queryForList(String sql,
Object... values)
throws OrmException
ISqlPerformer
queryForList in interface ISqlPerformersql - SQL query to executevalues - arguments to bind to the query
OrmException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||