| com.caucho.amber.AmberQuery
All known Subclasses: com.caucho.amber.query.UserQuery,
AmberQuery | public interface AmberQuery (Code) | | Represents an Amber query
|
Method Summary | |
public ResultSet | executeQuery() Executes the query returning a result set. | public int | executeUpdate() Executes the query as an update, returning the rows changed. | public String | getQueryString() Returns the query string. | public Object | getSingleResult() | public void | init(com.caucho.amber.manager.AmberConnection aConn) Initialize with the connection. | public List<Object> | list() Execute the query, returning a list. | public void | list(List<Object> list) Execute the query, filling a list. | public void | list(Map<Object, Object> map, Method methodGetMapKey) Execute the query, filling a map. | public void | setByte(int index, byte v) | public void | setCacheMaxAge(long ms) Sets the cache max age. | 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 isLoad) Sets the 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 type) Sets the argument with an null. | public void | setObject(int index, Object v) Sets the argument with an object. | public void | setShort(int index, short v) | public void | setString(int index, String v) | public void | setTimestamp(int index, java.sql.Timestamp v) |
executeUpdate | public int executeUpdate() throws SQLException(Code) | | Executes the query as an update, returning the rows changed.
|
getQueryString | public String getQueryString()(Code) | | Returns the query string.
|
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.
|
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 integer
|
setLoadOnQuery | public void setLoadOnQuery(boolean isLoad)(Code) | | Sets the load on query.
|
setLong | public void setLong(int index, long v)(Code) | | Sets the argument with a long
|
setMaxResults | public void setMaxResults(int index)(Code) | | Sets the maximum number of results.
|
setNull | public void setNull(int index, int type)(Code) | | Sets the argument with an null.
|
setObject | public void setObject(int index, Object v)(Code) | | Sets the argument with an object.
|
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
|
|
|