|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jbatchengine.batch.adapter.database.DatabaseAdapter
public class DatabaseAdapter
Implementation of a DatabaseAdapter using iBatis
Field Summary | |
---|---|
private static org.apache.log4j.Logger |
log
|
private Properties |
properties
|
private Long |
sleeptime
|
private SqlMapClientTemplate |
sqlMapClientTemplate
|
Constructor Summary | |
---|---|
DatabaseAdapter()
|
Method Summary | |
---|---|
void |
cancelJob(int id)
Cancels a Job See the state diagram of Job lifecycle for more details |
Job |
getJob(int id)
Returns the Job with the given Id |
Job |
getNextJob()
This method is waiting until a new Job to process shows up |
Job |
insertJob(Job job)
Creates a new Job |
List<Job> |
listJobs()
Lists all Jobs |
void |
setSqlMapClientTemplate(SqlMapClientTemplate sqlMapClientTemplate)
|
void |
updateJob(Job job)
Updates a Job |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static transient org.apache.log4j.Logger log
private SqlMapClientTemplate sqlMapClientTemplate
private Properties properties
private Long sleeptime
Constructor Detail |
---|
public DatabaseAdapter()
Method Detail |
---|
public Job getNextJob()
Adapter
getNextJob
in interface Adapter
public void updateJob(Job job)
Adapter
updateJob
in interface Adapter
public Job insertJob(Job job)
Adapter
insertJob
in interface Adapter
public Job getJob(int id)
Adapter
getJob
in interface Adapter
public List<Job> listJobs()
Adapter
listJobs
in interface Adapter
public void cancelJob(int id)
Adapter
cancelJob
in interface Adapter
public void setSqlMapClientTemplate(SqlMapClientTemplate sqlMapClientTemplate)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |