|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.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 Adapterpublic void updateJob(Job job)
Adapter
updateJob in interface Adapterpublic Job insertJob(Job job)
Adapter
insertJob in interface Adapterpublic Job getJob(int id)
Adapter
getJob in interface Adapterpublic List<Job> listJobs()
Adapter
listJobs in interface Adapterpublic void cancelJob(int id)
Adapter
cancelJob in interface Adapterpublic void setSqlMapClientTemplate(SqlMapClientTemplate sqlMapClientTemplate)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||