vishnu.life
Class SQLCommandImpl

java.lang.Object
  extended by vishnu.life.SQLCommandImpl
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, Command, SQLCommand

public class SQLCommandImpl
extends java.lang.Object
implements SQLCommand, java.io.Serializable

Author:
cesare
See Also:
Serialized Form
 

Nested Class Summary
 
Nested classes/interfaces inherited from interface vishnu.life.Command
Command.Notice
 
Constructor Summary
SQLCommandImpl(Session s)
           
 
Method Summary
 Response get()
           
 java.lang.String getStatement()
           
 boolean hasStarted()
           
 void perform()
           
 Session session()
           
 void setContext(RelationalServiceContext c)
           
 void setInterested(Interested<SQLCommand,Command.Notice> i)
           
 void setRelationContext(Relation.Context c)
           
 void setStarted()
           
 void setStatement(java.lang.String sqlStatement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLCommandImpl

public SQLCommandImpl(Session s)
Parameters:
s -
Method Detail

setInterested

public void setInterested(Interested<SQLCommand,Command.Notice> i)
Specified by:
setInterested in interface SQLCommand

setContext

public void setContext(RelationalServiceContext c)
Specified by:
setContext in interface SQLCommand

setStatement

public void setStatement(java.lang.String sqlStatement)
Specified by:
setStatement in interface SQLCommand

setRelationContext

public void setRelationContext(Relation.Context c)
Specified by:
setRelationContext in interface SQLCommand

get

public Response get()
Specified by:
get in interface SQLCommand

getStatement

public java.lang.String getStatement()
Specified by:
getStatement in interface SQLCommand

setStarted

public void setStarted()
Specified by:
setStarted in interface Command

perform

public void perform()
Specified by:
perform in interface Command

session

public Session session()
Specified by:
session in interface Command

hasStarted

public boolean hasStarted()
Specified by:
hasStarted in interface Command