Package org.h2.command.dml
Class Explain
- java.lang.Object
-
- org.h2.command.Prepared
-
- org.h2.command.dml.Explain
-
public class Explain extends Prepared
This class represents the statement EXPLAIN
-
-
Field Summary
-
Fields inherited from class org.h2.command.Prepared
create, parameters, prepareAlways, session, sqlStatement, sqlTokens
-
-
Constructor Summary
Constructors Constructor Description Explain(SessionLocal session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckParameters()Check if all parameters have been set.voidcollectDependencies(java.util.HashSet<DbObject> dependencies)Find and collect all DbObjects, this Prepared depends on.PreparedgetCommand()intgetType()Get the command type as defined in CommandInterfacebooleanisQuery()Check if this object is a query.booleanisReadOnly()Check if this command is read only.booleanisTransactional()Check if this command is transactional.voidprepare()Prepare this statement.ResultInterfacequery(long maxrows)Execute the query.ResultInterfacequeryMeta()Get an empty result set containing the metadata.voidsetCommand(Prepared command)voidsetExecuteCommand(boolean executeCommand)-
Methods inherited from class org.h2.command.Prepared
checkCanceled, getCurrentRowNumber, getDatabase, getObjectId, getParameters, getPersistedObjectId, getPlanSQL, getPlanSQL, getSession, getSimpleSQL, getSQL, getSQLTokens, invalidateCachedResult, isCacheable, isRetryable, isWithParamValues, needRecompile, setCommand, setCurrentRowNumber, setParameterList, setPersistedObjectId, setPrepareAlways, setRow, setSession, setSQL, setWithParamValues, toString, update
-
-
-
-
Constructor Detail
-
Explain
public Explain(SessionLocal session)
-
-
Method Detail
-
setCommand
public void setCommand(Prepared command)
-
getCommand
public Prepared getCommand()
-
prepare
public void prepare()
Description copied from class:PreparedPrepare this statement.
-
setExecuteCommand
public void setExecuteCommand(boolean executeCommand)
-
queryMeta
public ResultInterface queryMeta()
Description copied from class:PreparedGet an empty result set containing the metadata.
-
checkParameters
protected void checkParameters()
Description copied from class:PreparedCheck if all parameters have been set.- Overrides:
checkParametersin classPrepared
-
query
public ResultInterface query(long maxrows)
Description copied from class:PreparedExecute the query.
-
isQuery
public boolean isQuery()
Description copied from class:PreparedCheck if this object is a query.
-
isTransactional
public boolean isTransactional()
Description copied from class:PreparedCheck if this command is transactional. If it is not, then it forces the current transaction to commit.- Specified by:
isTransactionalin classPrepared- Returns:
- true if it is
-
isReadOnly
public boolean isReadOnly()
Description copied from class:PreparedCheck if this command is read only.- Overrides:
isReadOnlyin classPrepared- Returns:
- true if it is
-
getType
public int getType()
Description copied from class:PreparedGet the command type as defined in CommandInterface
-
collectDependencies
public void collectDependencies(java.util.HashSet<DbObject> dependencies)
Description copied from class:PreparedFind and collect all DbObjects, this Prepared depends on.- Overrides:
collectDependenciesin classPrepared- Parameters:
dependencies- collection of dependencies to populate
-
-