|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.space4j.Command
public abstract class Command
A command representing an update to the Space4J database of objects in RAM. All clients must alter the Space through a Command, so they can be logged and reapplied later.
| Constructor Summary | |
|---|---|
Command()
|
|
| Method Summary | |
|---|---|
abstract int |
execute(Space space)
This method accesses the Space and its objects to do any modifications it wants. |
void |
executeSQL(java.sql.Connection conn)
This method will let you replicate your data in a relational database, so you can continue creating your reports and using data data warehousing tools with SQL. |
long |
getLogNumber()
This method is important when Space4J is replicated. |
long |
getReplicaId()
This method is important when Space4J is replicated. |
void |
setLogNumber(long lognumber)
Sets the log number where this command is stored. |
void |
setReplicaId(long replica_id)
Sets the number of the replica this commands belongs to. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Command()
| Method Detail |
|---|
public abstract int execute(Space space)
throws CommandException
space - The Space where the objects are stored.
CommandException - If there was an error executing this command.
public void executeSQL(java.sql.Connection conn)
throws java.sql.SQLException
conn - A connection to the database where this command will be executed through SQL.
java.sql.SQLException - If there was an error executing the SQL.public long getLogNumber()
public void setLogNumber(long lognumber)
lognumber - The log number where this command is stored.public long getReplicaId()
public void setReplicaId(long replica_id)
replica_id - The unique id of the replica.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||