|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.syrup.sql.SQLWorkSpace
Provides a JDBC implementation of a WorkSpace.
Field Summary | |
static long |
serialVersionUID
|
Constructor Summary | |
SQLWorkSpace()
|
Method Summary | |
protected java.sql.Connection |
connection()
Returns the JDBC Connection that is used internally. |
protected javax.sql.DataSource |
dataSource()
Returns the DataSource to create JDBC connections from. |
PTask |
execute(PTask pt)
Executes a single Task. |
Data |
get_out_1()
Get the first output. |
Data |
get_out_2()
Get the second output. |
Context[] |
get(PTaskTemplate t)
Get the Contexts of PTasks that match the PTaskTemplate. |
javax.naming.Reference |
getReference()
|
LogEntry[] |
match(LogEntryTemplate template)
|
PTask[] |
match(PTaskTemplate template)
Get PTasks matching the PTaskTemplate. |
protected SyrupConnection |
readConnection()
Returns the read-only SyrupConnection that is used internally. |
PTask[] |
remove(PTask[] tasks)
Remove PTasks that are done. |
void |
reset()
Resets the WorkSpace to the initial state. |
void |
set_in_1(Data data)
Set the first input. |
void |
set_in_2(Data data)
Set the second input. |
SQLImpl |
sqlImpl()
Returns an instance of a SQLImpl. |
PTask |
stop(PTask task)
Stop the possible non-progressing execution of a PTask. |
protected SyrupConnection |
syrupConnection()
Return the SyrupConnection that is used to optimize SQL commands. |
protected SyrupConnection |
writeConnection()
Returns the read-write SyrupConnection that is used internally. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final long serialVersionUID
Constructor Detail |
public SQLWorkSpace()
Method Detail |
public javax.naming.Reference getReference() throws javax.naming.NamingException
getReference
in interface javax.naming.Referenceable
javax.naming.NamingException
protected javax.sql.DataSource dataSource() throws java.lang.Exception
java.lang.Exception
protected java.sql.Connection connection() throws java.lang.Exception
java.lang.Exception
protected SyrupConnection syrupConnection() throws java.lang.Exception
java.lang.Exception
public SQLImpl sqlImpl()
protected SyrupConnection readConnection() throws java.lang.Exception
java.lang.Exception
protected SyrupConnection writeConnection() throws java.lang.Exception
java.lang.Exception
public void reset() throws java.lang.Exception
WorkSpace
reset
in interface WorkSpace
java.lang.Exception
public void set_in_1(Data data) throws java.lang.Exception
WorkSpace
set_in_1
in interface WorkSpace
data
- The Data that is set on the first input.
java.lang.Exception
public void set_in_2(Data data) throws java.lang.Exception
WorkSpace
set_in_2
in interface WorkSpace
data
- The Data that is set on the second input.
java.lang.Exception
public Data get_out_1() throws java.lang.Exception
WorkSpace
get_out_1
in interface WorkSpace
java.lang.Exception
public Data get_out_2() throws java.lang.Exception
WorkSpace
get_out_2
in interface WorkSpace
java.lang.Exception
public PTask[] match(PTaskTemplate template) throws java.lang.Exception
WorkSpace
match
in interface WorkSpace
template
- The PTaskTemplate to be matched.
java.lang.Exception
public Context[] get(PTaskTemplate t) throws java.lang.Exception
WorkSpace
get
in interface WorkSpace
t
- The PTaskTemplate to be matched.
java.lang.Exception
public PTask stop(PTask task) throws java.lang.Exception
WorkSpace
stop
in interface WorkSpace
task
- The PTask to be stopped.
java.lang.Exception
public PTask[] remove(PTask[] tasks) throws java.lang.Exception
WorkSpace
remove
in interface WorkSpace
tasks
- The array of PTasks to remove.
java.lang.Exception
public PTask execute(PTask pt) throws java.lang.Exception
WorkSpace
execute
in interface WorkSpace
pt
- The PTask to be executed.
java.lang.Exception
public LogEntry[] match(LogEntryTemplate template) throws java.lang.Exception
match
in interface WorkSpace
template
- The LogEntryTemplate to be matched.
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |