org.axiondb.engine.commands
Class CreateCommand
java.lang.Object
org.axiondb.engine.commands.BaseAxionCommand
org.axiondb.engine.commands.CreateCommand
- All Implemented Interfaces:
- AxionCommand
- Direct Known Subclasses:
- CreateDatabaseLinkCommand, CreateIndexCommand, CreateSequenceCommand, CreateTableCommand, CreateViewCommand
- public abstract class CreateCommand
- extends BaseAxionCommand
Abstract base for commands like CREATE TABLE
and
CREATE SEQUENCE
.
- Version:
- $Revision: 1.1 $ $Date: 2003/08/19 22:51:52 $
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, toString, wait, wait, wait |
CreateCommand
public CreateCommand()
setIfNotExists
public void setIfNotExists(boolean flag)
isIfNotExists
public boolean isIfNotExists()
getObjectName
public String getObjectName()
setObjectName
public void setObjectName(String name)
execute
public abstract 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()