| java.lang.Object com.caucho.amber.query.UserQuery
UserQuery | public class UserQuery implements AmberQuery(Code) | | Represents the application's view of the query.
|
Method Summary | |
public ResultSet | executeQuery() Executes the query returning a result set. | ResultSet | executeQuery(int row, int maxResults) Executes the query. | public int | executeUpdate() Executes the query returning a result set. | int | getArgLength() | Type[] | getArgTypes() Returns the arg type array. | Object[] | getArgValues() | public AmberConnection | getConnection() | public int | getMaxResults() Returns the max results. | public AbstractQuery | getQuery() Returns the compiled query. | public String | getQueryString() Returns the query string. | public AmberConnection | getSession() | public Object | getSingleResult() Executes the query returning the single result. | public void | init(AmberConnection aConn) | public List<Object> | list() Executes the query, returning a list. | public void | list(List<Object> list) Executes the query, filling the list. | public void | list(Map<Object, Object> map, Method methodGetMapKey) Executes the query, filling the map. | public void | setByte(int index, byte v) | public void | setCacheMaxAge(long ms) Sets the cache max age for the query. | public void | setDate(int index, java.sql.Date v) | public void | setDouble(int index, double v) | public void | setFirstResult(int index) Sets the first result. | public void | setFloat(int index, float v) | public void | setInt(int index, int v) | public void | setLoadOnQuery(boolean loadOnQuery) Sets true for load-on-query. | public void | setLong(int index, long v) | public void | setMaxResults(int index) Sets the maximum number of results. | public void | setNull(int index, int v) | public void | setObject(int index, Object v) Sets the argument with an object. | public void | setObject(int index, Object v, Type type) Sets the argument with an object and its Amber type. | public void | setSession(AmberConnection aConn) | public void | setShort(int index, short v) | public void | setString(int index, String v) | public void | setTimestamp(int index, java.sql.Timestamp v) | public String | toString() |
executeUpdate | public int executeUpdate() throws SQLException(Code) | | Executes the query returning a result set.
|
getArgLength | int getArgLength()(Code) | | Returns the arg length
|
getArgTypes | Type[] getArgTypes()(Code) | | Returns the arg type array.
|
getArgValues | Object[] getArgValues()(Code) | | Returns the arg values
|
getMaxResults | public int getMaxResults()(Code) | | Returns the max results.
|
getQueryString | public String getQueryString()(Code) | | Returns the query string.
|
getSingleResult | public Object getSingleResult() throws SQLException(Code) | | Executes the query returning the single result.
|
setByte | public void setByte(int index, byte v)(Code) | | Sets the argument with a byte
|
setCacheMaxAge | public void setCacheMaxAge(long ms)(Code) | | Sets the cache max age for the query.
|
setDouble | public void setDouble(int index, double v)(Code) | | Sets the argument with a double
|
setFirstResult | public void setFirstResult(int index)(Code) | | Sets the first result.
|
setFloat | public void setFloat(int index, float v)(Code) | | Sets the argument with a double
|
setInt | public void setInt(int index, int v)(Code) | | Sets the argument with an int
|
setLoadOnQuery | public void setLoadOnQuery(boolean loadOnQuery)(Code) | | Sets true for load-on-query.
|
setLong | public void setLong(int index, long v)(Code) | | Sets the argument with a string
|
setMaxResults | public void setMaxResults(int index)(Code) | | Sets the maximum number of results.
|
setNull | public void setNull(int index, int v)(Code) | | Sets the argument with a null
|
setObject | public void setObject(int index, Object v)(Code) | | Sets the argument with an object.
|
setObject | public void setObject(int index, Object v, Type type)(Code) | | Sets the argument with an object and its Amber type.
|
setShort | public void setShort(int index, short v)(Code) | | Sets the argument with a short
|
setString | public void setString(int index, String v)(Code) | | Sets the argument with a string
|
|
|