org.axiondb.engine.commands
Class ShutdownCommand
java.lang.Object
org.axiondb.engine.commands.BaseAxionCommand
org.axiondb.engine.commands.ShutdownCommand
- All Implemented Interfaces:
- AxionCommand
- public class ShutdownCommand
- extends BaseAxionCommand
A SHUTDOWN command, which closes the database.
- Version:
- $Revision: 1.12 $ $Date: 2003/09/26 10:17:34 $
Methods inherited from class org.axiondb.engine.commands.BaseAxionCommand |
appendBindVariables, assertNotReadOnly, attemptToConvertValue, bind, clearBindings, getBindVariableIterator, getEffectedRowCount, getResultSet, getRowIterator, getRowIterator, getTableForIdentifier, resolveSelectableList, resolveSelectableList, setEffectedRowCount, setResultSet |
ShutdownCommand
public ShutdownCommand()
execute
public boolean execute(Database db)
throws AxionException
- Description copied from interface:
AxionCommand
- Executes an SQL statement that may return multiple results.
- Returns:
- true if one or more
ResultSet
s
were generated, false otherwise
- Throws:
AxionException
- See Also:
Statement.execute(java.lang.String)
,
PreparedStatement.execute()
executeQuery
public AxionResultSet executeQuery(Database database)
throws AxionException
- Unsupported
- Returns:
- the generated
ResultSet
- Throws:
AxionException
- See Also:
Statement.executeQuery(java.lang.String)
,
PreparedStatement.executeQuery()
executeUpdate
public int executeUpdate(Database database)
throws AxionException
- Description copied from interface:
AxionCommand
- Executes an SQL that may add, delete or modify zero or more
rows within the database, such as an INSERT, UPDATE or DELETE statement.
In addition, SQL statements that return nothing, such as SQL
DDL statements, can be executed via this method.
- Returns:
- the number of rows modified
- Throws:
AxionException
- See Also:
Statement.executeUpdate(java.lang.String)
,
PreparedStatement.executeUpdate()
toString
public String toString()