org.axiondb.engine.commands
Class RemountCommand

java.lang.Object
  extended byorg.axiondb.engine.commands.BaseAxionCommand
      extended byorg.axiondb.engine.commands.RemountCommand
All Implemented Interfaces:
AxionCommand

public class RemountCommand
extends BaseAxionCommand

A REMOUNT command, which points the database at a new location or refresh the external table.

Version:
$Revision: 1.12 $ $Date: 2004/09/02 01:52:09 $

Constructor Summary
RemountCommand()
           
 
Method Summary
 boolean execute(Database db)
          Executes an SQL statement that may return multiple results.
 AxionResultSet executeQuery(Database database)
          Unsupported
 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.
protected  Iterator getBindVariableIterator()
          Returns an Iteratorover all my BindVariables, in the proper order.
 boolean getDataFilesOnly()
           
 Object getDirectory()
           
 TableIdentifier getTable()
           
 void setDataFilesOnly(boolean data)
           
 void setDirectory(Literal dir)
           
 void setDirectory(String dir)
           
 void setTable(TableIdentifier table)
           
 String toString()
           
 
Methods inherited from class org.axiondb.engine.commands.BaseAxionCommand
appendBindVariables, assertNotReadOnly, attemptToConvertValue, bind, clearBindings, 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

RemountCommand

public RemountCommand()
Method Detail

setDirectory

public void setDirectory(String dir)

setDirectory

public void setDirectory(Literal dir)

getDirectory

public Object getDirectory()

setTable

public void setTable(TableIdentifier table)

getTable

public TableIdentifier getTable()

setDataFilesOnly

public void setDataFilesOnly(boolean data)

getDataFilesOnly

public boolean getDataFilesOnly()

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 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()

getBindVariableIterator

protected Iterator getBindVariableIterator()
Description copied from class: BaseAxionCommand
Returns an Iteratorover all my BindVariables, in the proper order. Default impl returns empty iterator.

Overrides:
getBindVariableIterator in class BaseAxionCommand