| java.lang.Object org.netbeans.lib.ddl.impl.AbstractCommand
All known Subclasses: org.netbeans.lib.ddl.impl.DropIndex, org.netbeans.lib.ddl.impl.CreateView, org.netbeans.lib.ddl.impl.RenameTable, org.netbeans.lib.ddl.impl.ColumnCommand, org.netbeans.lib.ddl.impl.CommentView, org.netbeans.lib.ddl.impl.RenameView, org.netbeans.lib.ddl.impl.ColumnListCommand, org.netbeans.lib.ddl.impl.CreateTrigger, org.netbeans.lib.ddl.impl.CreateProcedure, org.netbeans.lib.ddl.impl.CommentTable,
AbstractCommand | public class AbstractCommand implements Serializable,DDLCommand(Code) | | Basic implementation of DDLCommand. This class can be used for really simple
commands with format and without arguments. Heavilly subclassed.
|
executionWithException | boolean executionWithException(Code) | | Execution command with some exception
|
serialVersionUID | final static long serialVersionUID(Code) | | |
execute | public void execute() throws DDLException(Code) | | Executes command.
First it calls getCommand() to obtain command text. Then tries to open JDBC
connection and execute it. If connection is already open, uses it and leave
open; otherwise creates new one and closes after use. Throws DDLException if
something wrong occurs.
|
getCommand | public String getCommand() throws DDLException(Code) | | Returns full string representation of command. This string needs no
formatting and could be used directly as argument of executeUpdate()
command. Throws DDLException if format is not specified or CommandFormatter
can't format it (it uses MapFormat to process entire lines and can solve []
enclosed expressions as optional.
|
getCommandProperties | public Map getCommandProperties() throws DDLException(Code) | | Returns properties and it's values supported by this object.
object.name Name of the object; use setObjectName()
object.owner Name of the object; use setObjectOwner()
Throws DDLException if object name is not specified.
|
getObjectName | public String getObjectName()(Code) | | Returns name of modified object
|
getObjectOwner | public String getObjectOwner()(Code) | | Returns name of modified object
|
isNewObject | public boolean isNewObject()(Code) | | |
setFormat | public void setFormat(String fmt)(Code) | | Sets format for this command. This method is usually called in relevant createXXX
method.
Parameters: fmt - New format. |
setNewObject | public void setNewObject(boolean newObject)(Code) | | |
setObjectName | public void setObjectName(String nam)(Code) | | Sets name to be used in command
Parameters: nam - New name. |
setObjectOwner | public void setObjectOwner(String objectowner)(Code) | | Sets name to be used in command
Parameters: objectowner - New owner. |
setSpecification | public void setSpecification(DatabaseSpecification specification)(Code) | | Sets specification (DatabaseSpecification) for this command. This method is usually called
in relevant createXXX method.
Parameters: specification - New specification object. |
wasException | public boolean wasException()(Code) | | information about appearance some exception in the last execute a bunch of commands
|
|
|