salto.batch.lanceur.init
Interface IBatchStart

All Superinterfaces:
java.lang.Cloneable, java.io.Serializable
All Known Subinterfaces:
IDaoBatchStart, IResumableBatchStart, IThreadBoundBatchStart
All Known Implementing Classes:
AbstractBatchStart, AbstractDBBatchStart, DaoSqlBatchStart, JmsBatchStart, NoBatchStart, SqlBatchStart

public interface IBatchStart
extends java.io.Serializable, java.lang.Cloneable

Represents a Data Source for a Batch.

Author:
Etienne Loiez, Philippe Mouawad

Method Summary
 java.lang.Object clone()
           
 void close()
          Close all opened resources.
 BatchExecutionContext getBatchExecutionContext()
           
 int getNbLinesRead()
           
 void init(BatchExecutionContext context)
          Called after Traitement#initialize(BatchExecutionContext context)
 java.lang.Object next()
          Extract next set of data
 void preInit(BatchExecutionContext context)
          Called before Traitement#initialize(BatchExecutionContext context)
 void setIdComputer(IdComputer idComputer)
           
 void validate()
          Validate the configuration
 

Method Detail

preInit

void preInit(BatchExecutionContext context)
             throws BatchException
Called before Traitement#initialize(BatchExecutionContext context)

Parameters:
context - BatchExecutionContext
Throws:
BatchException

init

void init(BatchExecutionContext context)
          throws BatchException
Called after Traitement#initialize(BatchExecutionContext context)

Parameters:
context - BatchExecutionContext
Throws:
BatchException - exception if the object did not start correctly

next

java.lang.Object next()
                      throws BatchException
Extract next set of data

Returns:
Object data for next treatment (null if no data)
Throws:
BatchException

setIdComputer

void setIdComputer(IdComputer idComputer)
Parameters:
idComputer - IdComputer Computes unique ID per line

close

void close()
Close all opened resources.


clone

java.lang.Object clone()
Returns:
Object the clone
Throws:
java.lang.CloneNotSupportedException

getNbLinesRead

int getNbLinesRead()
Returns:
Number of lines read

getBatchExecutionContext

BatchExecutionContext getBatchExecutionContext()
Returns:
BatchExecutionContext BatchExecutionContext

validate

void validate()
Validate the configuration



Copyright © 2005-2008 Ubik-Ingenierie. All Rights Reserved.