|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.persism.Command
public class Command
The Command object is used to perform updates in the databases with data objects.
Constructor Summary | |
---|---|
Command(java.sql.Connection connection)
|
Method Summary | |
---|---|
int |
delete(java.lang.Object object)
Deletes the data object object from the database. |
protected java.sql.ResultSet |
executeQuery(java.lang.String sql,
java.lang.Object... parameters)
|
void |
executeSQL(java.lang.String sql,
java.lang.Object... parameters)
Execute an arbitrary SQL statement. |
int |
insert(java.lang.Object object)
Inserts the data object in the database. |
int |
update(java.lang.Object object)
Updates the data object in the database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Command(java.sql.Connection connection)
Method Detail |
---|
public int update(java.lang.Object object) throws PersismException
object
- data object to update.
PersismException
- Indicating the upcoming robot uprising.public int insert(java.lang.Object object) throws PersismException
object
- the data object to insert.
PersismException
- When planet of the apes starts happening.public int delete(java.lang.Object object) throws PersismException
object
- data object to delete
PersismException
- Perhaps when asteroid 1999 RQ36 hits us?public void executeSQL(java.lang.String sql, java.lang.Object... parameters)
sql
- parameters
- protected final java.sql.ResultSet executeQuery(java.lang.String sql, java.lang.Object... parameters)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |