|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.axiondb.engine.commands.BaseAxionCommand
org.axiondb.engine.commands.SelectCommand
public class SelectCommand
A SELECT query.
Field Summary | |
---|---|
protected AxionQueryContext |
_context
|
protected Database |
_currentDatabase
|
protected AxionQueryPlanner |
_planner
|
Constructor Summary | |
---|---|
SelectCommand(AxionQueryContext context)
|
Method Summary | |
---|---|
protected void |
buildBindVariables()
|
protected void |
buildTableList(Database db)
|
boolean |
execute(Database database)
Executes an SQL statement that may return multiple results. |
AxionResultSet |
executeQuery(Database db)
Execute this command, returning a ResultSet . |
AxionResultSet |
executeQuery(Database db,
boolean isReadOnly)
Execute an SQL statement that returns a single ResultSet object
with the given read-only state. |
int |
executeUpdate(Database database)
Unsupported |
java.util.Map |
getColumnIdToFieldMap()
|
AxionQueryContext |
getQueryContext()
|
RowIterator |
makeRowIterator(Database db,
boolean isReadOnly)
|
RowIterator |
makeRowIterator(Database db,
boolean isReadOnly,
boolean refresh)
|
protected void |
resolve(Database db)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected AxionQueryContext _context
protected Database _currentDatabase
protected AxionQueryPlanner _planner
Constructor Detail |
---|
public SelectCommand(AxionQueryContext context)
Method Detail |
---|
public boolean execute(Database database) throws AxionException
AxionCommand
ResultSet
s were generated,
false otherwise
AxionException
Statement.execute(java.lang.String)
,
PreparedStatement.execute()
public AxionResultSet executeQuery(Database db) throws AxionException
ResultSet
.
ResultSet
generated by this command.
AxionException
Statement.executeQuery(java.lang.String)
,
PreparedStatement.executeQuery()
public AxionResultSet executeQuery(Database db, boolean isReadOnly) throws AxionException
AxionCommand
ResultSet
object
with the given read-only state.
executeQuery
in interface AxionCommand
executeQuery
in class BaseAxionCommand
db
- Database in which query will be executedisReadOnly
- true if statement is read-only, false otherwise
ResultSet
AxionException
public int executeUpdate(Database database) throws AxionException
AxionException
Statement.executeUpdate(java.lang.String)
,
PreparedStatement.executeUpdate()
public java.util.Map getColumnIdToFieldMap()
public AxionQueryContext getQueryContext()
public java.lang.String toString()
toString
in class java.lang.Object
protected void buildTableList(Database db) throws AxionException
AxionException
protected void buildBindVariables()
buildBindVariables
in class BaseAxionCommand
public RowIterator makeRowIterator(Database db, boolean isReadOnly) throws AxionException
AxionException
public RowIterator makeRowIterator(Database db, boolean isReadOnly, boolean refresh) throws AxionException
AxionException
protected void resolve(Database db) throws AxionException
AxionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |