com.atlassian.jira.scheduler
Class RunDetailsFactory

java.lang.Object
  extended by com.atlassian.jira.entity.AbstractEntityFactory<OfBizRunDetails>
      extended by com.atlassian.jira.scheduler.RunDetailsFactory
All Implemented Interfaces:
EntityBuilder<OfBizRunDetails>, EntityFactory<OfBizRunDetails>, NamedEntityBuilder<OfBizRunDetails>

public class RunDetailsFactory
extends AbstractEntityFactory<OfBizRunDetails>

Since:
v6.2

Field Summary
static String DURATION
           
static String ID
           
static String JOB_ID
           
static String MESSAGE
           
static String OUTCOME
           
static String OUTCOME_ABORTED
           
static String OUTCOME_FAILED
           
static String OUTCOME_SUCCESS
           
static String OUTCOME_UNAVAILABLE
           
static String START_TIME
           
 
Constructor Summary
RunDetailsFactory()
           
 
Method Summary
 OfBizRunDetails build(org.ofbiz.core.entity.GenericValue gv)
          Builds an instance of this Entity from the given GenericValue.
 Map<String,Object> fieldMapFrom(OfBizRunDetails jobStatus)
          Builds a FieldMap from an entity Object.
 String getEntityName()
          The name of the Entity as defined in the entitymodel.xml file.
 
Methods inherited from class com.atlassian.jira.entity.AbstractEntityFactory
buildList, genericValueFrom, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public static final String ID
See Also:
Constant Field Values

JOB_ID

public static final String JOB_ID
See Also:
Constant Field Values

START_TIME

public static final String START_TIME
See Also:
Constant Field Values

DURATION

public static final String DURATION
See Also:
Constant Field Values

OUTCOME

public static final String OUTCOME
See Also:
Constant Field Values

MESSAGE

public static final String MESSAGE
See Also:
Constant Field Values

OUTCOME_SUCCESS

public static final String OUTCOME_SUCCESS
See Also:
Constant Field Values

OUTCOME_UNAVAILABLE

public static final String OUTCOME_UNAVAILABLE
See Also:
Constant Field Values

OUTCOME_ABORTED

public static final String OUTCOME_ABORTED
See Also:
Constant Field Values

OUTCOME_FAILED

public static final String OUTCOME_FAILED
See Also:
Constant Field Values
Constructor Detail

RunDetailsFactory

public RunDetailsFactory()
Method Detail

getEntityName

public String getEntityName()
Description copied from interface: NamedEntityBuilder
The name of the Entity as defined in the entitymodel.xml file.

Returns:
the name of the Entity.

build

public OfBizRunDetails build(org.ofbiz.core.entity.GenericValue gv)
Description copied from interface: EntityBuilder
Builds an instance of this Entity from the given GenericValue.

Parameters:
gv - GenericValue for the entity
Returns:
the entity Object

fieldMapFrom

public Map<String,Object> fieldMapFrom(OfBizRunDetails jobStatus)
Description copied from interface: EntityFactory
Builds a FieldMap from an entity Object. The FieldMap is the data held by a GenericValue, so this basically is the reverse operation of turning an object into a GenericValue.

Parameters:
jobStatus - the Entity value
Returns:
Map of field values


Copyright © 2002-2014 Atlassian. All Rights Reserved.