SMILA (incubation) API documentation

org.eclipse.smila.connectivity.framework.impl
Class JobIdHelper

java.lang.Object
  extended by org.eclipse.smila.connectivity.framework.impl.JobIdHelper

public final class JobIdHelper
extends java.lang.Object

Utility class that creates and sets the annotation ConnectivityManager.ANNOTATION_JOB_ID.


Method Summary
static void setJobIdAttribute(Record record, State state)
          Set the jobId annotation on the given record, using the jobId provided in state.
static void setJobIdAttribute(Record record, java.lang.String jobId)
          Set the given jobId annotation on the given record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setJobIdAttribute

public static void setJobIdAttribute(Record record,
                                     State state)
Set the jobId annotation on the given record, using the jobId provided in state. If any of the parameters is null or state does not contain a job id the method does quietly nothing.

Parameters:
record - the record
state - a State object containing a job id

setJobIdAttribute

public static void setJobIdAttribute(Record record,
                                     java.lang.String jobId)
Set the given jobId annotation on the given record. If any of the parameters is null or jobId is an empty String the method does quietly nothing.

Parameters:
record - the record
jobId - the id of the job

SMILA (incubation) API documentation