net.sf.jbatchengine.batch.adapter
Interface Adapter

All Known Implementing Classes:
DatabaseAdapter

public interface Adapter

Adapter Interface

Version:
$Revision: 1.1 $, $Date: 2006/10/20 11:30:58 $
Author:
$Author: simas_ch $

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 updateJob(Job job)
          Updates a Job
 

Method Detail

getNextJob

Job getNextJob()
This method is waiting until a new Job to process shows up

Returns:
next Job

getJob

Job getJob(int id)
Returns the Job with the given Id

Parameters:
id -
Returns:
Job

listJobs

List<Job> listJobs()
Lists all Jobs

Returns:
list of Jobs

updateJob

void updateJob(Job job)
Updates a Job

Parameters:
job -

insertJob

Job insertJob(Job job)
Creates a new Job

Parameters:
job -
Returns:
Job with Id

cancelJob

void cancelJob(int id)
Cancels a Job See the state diagram of Job lifecycle for more details

Parameters:
id -