|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.mdm.index.survivor.AbstractSurvivorHelper
Base helper class that provides the following utility methods on omega: get a set of candidate fields that need survivor calculation; get a set of system information fields for each candidate field; and set the value of a candidate field.
| Field Summary | |
protected java.util.Map |
mFieldCache
cache to store system information field metadata for each candidate field Key: candidate field id Value: collection of EPath objects |
protected java.util.Map |
mStrategyCache
cache to store the strategy object for each candidate field Key: candidate field id Value: survivor strategy objects |
| Constructor Summary | |
AbstractSurvivorHelper()
default constructor |
|
| Method Summary | |
java.lang.Object |
clone()
clone the object |
SystemField |
executeStrategy(java.lang.String candidateField,
SystemFieldListMap fields)
executes the strategy associated with the candidate field |
java.util.Collection |
getCandidateFieldNames()
return a list of candidate field names in the SBR |
protected SurvivorStrategyInterface |
getStrategy(java.lang.String candidateId)
returns the strategy used for a particular candidate field. |
protected java.util.Collection |
getSystemFieldMeta(java.lang.String candidateId)
returns the meta data of system fields for the specified candidiate field |
abstract SystemFieldListMap |
getSystemFields(EnterpriseObject rec,
java.lang.String candidateId)
returns a mapping of system field values for the candidate field |
void |
init(SurvivorHelperConfig config)
initialize the helper using a configuration object |
void |
setCache(java.util.Map m)
set the cache |
abstract ObjectNode |
setCandidateFieldValue(ObjectNode eo,
SystemField candidateField)
sets the candidate field on the omega object using the given value |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Map mFieldCache
protected java.util.Map mStrategyCache
| Constructor Detail |
public AbstractSurvivorHelper()
| Method Detail |
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException - clone not supported
public SystemField executeStrategy(java.lang.String candidateField,
SystemFieldListMap fields)
throws SurvivorCalculationException
candidateField - candidate field namefields - mapping of system id to collection of system field values
SurvivorCalculationException - unexpect valuespublic java.util.Collection getCandidateFieldNames()
protected SurvivorStrategyInterface getStrategy(java.lang.String candidateId)
candidateId - candidate field
protected java.util.Collection getSystemFieldMeta(java.lang.String candidateId)
candidateId - candidate field name
public abstract SystemFieldListMap getSystemFields(EnterpriseObject rec,
java.lang.String candidateId)
throws SurvivorCalculationException,
SystemObjectException
candidateId - candidate field namerec - omega object
SurvivorCalculationException - unexpected value
SystemObjectException - error accessing entity object
public void init(SurvivorHelperConfig config)
throws StrategyCreationException,
HelperCreationException
config - configuration object
StrategyCreationException - exception when creating a survivor calculation strategy
HelperCreationException - error creating the helper classpublic void setCache(java.util.Map m)
m - a map
public abstract ObjectNode setCandidateFieldValue(ObjectNode eo,
SystemField candidateField)
throws SurvivorCalculationException,
SystemObjectException
eo - entity objectcandidateField - field name and value
SurvivorCalculationException - unexpected values
SystemObjectException - error accessing entity object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Sun Microsystems, Inc.