org.axiondb.engine.commands
Class CheckFileStateCommand

java.lang.Object
  extended by org.axiondb.engine.commands.BaseAxionCommand
      extended by org.axiondb.engine.commands.CheckFileStateCommand
All Implemented Interfaces:
AxionCommand

public class CheckFileStateCommand
extends BaseAxionCommand

A CHECKFILESTATE query. Generates a non-empty ResultSet if the database's files are accessible, an empty one otherwise.

Version:
$Revision: 1.16 $ $Date: 2004/09/09 23:47:43 $

Constructor Summary
CheckFileStateCommand()
           
 
Method Summary
 AxionResultSet createFailureResultSet()
           
 AxionResultSet createSuccessResultSet()
           
 boolean execute(Database db)
          Executes an SQL statement that may return multiple results.
 AxionResultSet executeQuery(Database db)
          Executes an SQL statement that returns a single ResultSet object such as a SELECT statement.
 int executeUpdate(Database database)
          Executes an SQL that may add, delete or modify zero or more rows within the database, such as an INSERT, UPDATE or DELETE statement.
 String toString()
           
 
Methods inherited from class org.axiondb.engine.commands.BaseAxionCommand
appendBindVariables, assertNotReadOnly, attemptToConvertValue, bind, clearBindings, getBindVariableIterator, getEffectedRowCount, getResultSet, getRowIterator, getRowIterator, getTableForIdentifier, resolveSelectableList, resolveSelectableList, setEffectedRowCount, setResultSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CheckFileStateCommand

public CheckFileStateCommand()
Method Detail

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 ResultSets were generated, false otherwise
Throws:
AxionException
See Also:
Statement.execute(java.lang.String), PreparedStatement.execute()

executeQuery

public AxionResultSet executeQuery(Database db)
                            throws AxionException
Description copied from interface: AxionCommand
Executes an SQL statement that returns a single ResultSet object such as a SELECT statement.

Returns:
the generated ResultSet
Throws:
AxionException
See Also:
Statement.executeQuery(java.lang.String), PreparedStatement.executeQuery()

createSuccessResultSet

public AxionResultSet createSuccessResultSet()

createFailureResultSet

public AxionResultSet createFailureResultSet()

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()
Overrides:
toString in class Object