|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mguennewig.pobjects.Command
public class Command
Common base class for command classes.
Each subclass provides exactly one SQL statement which does not return any results over the PObjects interface.
| Constructor Summary | |
|---|---|
Command(JdbcContainer container,
CommandDecl statement)
Creates a new Command. |
|
| Method Summary | |
|---|---|
void |
addArguments(java.lang.Object[] args)
|
int |
execute()
Executes the command. |
int |
execute(java.lang.Object[] args)
Executes the command with the given set of arguments. |
java.lang.Object |
getArgument(int idx)
|
CommandDecl |
getCommandDecl()
|
JdbcContainer |
getContainer()
|
int |
getNumArguments()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Command(JdbcContainer container,
CommandDecl statement)
| Method Detail |
|---|
public final JdbcContainer getContainer()
public final CommandDecl getCommandDecl()
public final void addArguments(java.lang.Object[] args)
java.lang.IllegalArgumentException - if null has been passed or
the list is not of same size as number of input parameters exist.FormDecl.getNumEntries()public final int getNumArguments()
public final java.lang.Object getArgument(int idx)
public final int execute()
throws PObjSQLException
java.lang.IllegalStateException - if arguments are needed but have not been
initialized yet.
PObjSQLException - if any database error occurs.addArguments(Object[])
public final int execute(java.lang.Object[] args)
throws PObjSQLException
java.lang.IllegalArgumentException - if null has been passed or
the list is not of same size as number of input parameters exist.
PObjSQLException - if any database error occurs.addArguments(Object[]),
execute()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||