|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.db.sql.Query
com.caucho.db.sql.SelectQuery
public class SelectQuery
| Field Summary |
|---|
| Fields inherited from class com.caucho.db.sql.Query |
|---|
_whereExpr |
| Method Summary | |
|---|---|
protected void |
bind()
Binds the query. |
void |
execute(QueryContext context,
DbTransaction xa)
Executes the query. |
SelectCursor |
executeCursor(QueryContext context,
DbTransaction xa)
Executes the query. |
boolean |
isSelect()
Returns true for select queries. |
boolean |
nextCursor(TableIterator[] rows,
QueryContext context,
DbTransaction xa)
Executes the query. |
void |
setGroupResult(int index)
Sets the result item as group. |
void |
setLimit(int limit)
Sets the maximum entires |
java.lang.String |
toString()
|
| Methods inherited from class com.caucho.db.sql.Query |
|---|
bind, freeRows, generateWhere, getDatabase, getDataFields, getFromItems, getParamExprs, getParent, getSubSelect, getWhereExprs, isGroup, isReadOnly, nextTuple, setDataFields, setFromItems, setFromItems, setGroup, setParams, setParent, setSubSelect, setWhereExpr, setWhereExprs, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void setGroupResult(int index)
protected void bind()
throws java.sql.SQLException
Query
bind in class Queryjava.sql.SQLExceptionpublic void setLimit(int limit)
Query
setLimit in class Querypublic boolean isSelect()
isSelect in class Query
public void execute(QueryContext context,
DbTransaction xa)
throws java.sql.SQLException
execute in class Queryjava.sql.SQLException
public SelectCursor executeCursor(QueryContext context,
DbTransaction xa)
throws java.sql.SQLException
executeCursor in class Queryjava.sql.SQLException
public final boolean nextCursor(TableIterator[] rows,
QueryContext context,
DbTransaction xa)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||