public class WOConstraintDataManager extends AbstractConstraintDataManager
Constructor and Description |
---|
WOConstraintDataManager() |
Modifier and Type | Method and Description |
---|---|
void |
applyConstraintChange(MboRemote constraint,
MXTransaction txn)
Apply changes to constraint.
|
void |
applyConstraintChange(MboRemote constraint,
java.lang.String ids,
MXTransaction txn)
Apply changes to constraint.
|
int |
constraintRecordCount(java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> refObjQueries)
Get the constraint count .
|
java.lang.String[] |
getConstraintKeys(java.lang.String activityId)
Get the keys for a constraint.
|
void |
initializeConstraint(MXConstraint constraint,
java.lang.String objectName,
MboRemote mboObject)
Initialize constraint .
|
void |
loadConstraint(MXConstraint constraint,
java.lang.String objectName,
MboRemote mboObject)
Load constraint related information
|
void |
populateConstraintPropertyDetails()
Populate the constraint with property details.
|
void |
populateConstraints(java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> refObjQueries)
Populate the constraint.
|
saveConstraints
getDataManagerContext, getLogger, getObjectName, getProjectMbo, getSqlLogger, getUserInfo, setDataManagerContext
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setDataManagerContext
public void initializeConstraint(MXConstraint constraint, java.lang.String objectName, MboRemote mboObject) throws SchedulerException
initializeConstraint
in interface ConstraintDataManager
initializeConstraint
in class AbstractConstraintDataManager
reservation
- objectName
- mboObject
- SchedulerException
public int constraintRecordCount(java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> refObjQueries) throws SchedulerException
constraintRecordCount
in interface ConstraintDataManager
constraintRecordCount
in class AbstractConstraintDataManager
HashMap - ArrayList> refObjActQueryList - Hashmap of activity object name and queries
- Returns:
- number - number of reservation records meets the query
- Throws:
SchedulerException
-
populateConstraints
public void populateConstraints(java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> refObjQueries)
throws SchedulerException
Populate the constraint.
- Specified by:
populateConstraints
in interface ConstraintDataManager
- Overrides:
populateConstraints
in class AbstractConstraintDataManager
- Parameters:
HashMap - ArrayList> refObjQueryList - Hashmap of activity object name and queries
- Throws:
SchedulerException
-
populateConstraintPropertyDetails
public void populateConstraintPropertyDetails()
throws SchedulerException
Populate the constraint with property details.
- Specified by:
populateConstraintPropertyDetails
in interface ConstraintDataManager
- Overrides:
populateConstraintPropertyDetails
in class AbstractConstraintDataManager
- Throws:
SchedulerException
-
applyConstraintChange
public void applyConstraintChange(MboRemote constraint,
MXTransaction txn)
throws SchedulerException
Apply changes to constraint.
- Specified by:
applyConstraintChange
in interface ConstraintDataManager
- Overrides:
applyConstraintChange
in class AbstractConstraintDataManager
- Parameters:
constraint
- mbotransaction
-
- Throws:
SchedulerException
-
applyConstraintChange
public void applyConstraintChange(MboRemote constraint,
java.lang.String ids,
MXTransaction txn)
throws SchedulerException
Apply changes to constraint.
- Specified by:
applyConstraintChange
in interface ConstraintDataManager
- Overrides:
applyConstraintChange
in class AbstractConstraintDataManager
- Parameters:
constraint
- mbotransaction
-
- Throws:
SchedulerException
-
getConstraintKeys
public java.lang.String[] getConstraintKeys(java.lang.String activityId)
Get the keys for a constraint.
- Parameters:
activityId
-
- Returns:
- Array of parts of key
-
loadConstraint
public void loadConstraint(MXConstraint constraint,
java.lang.String objectName,
MboRemote mboObject)
throws SchedulerException
Load constraint related information
- Specified by:
loadConstraint
in interface ConstraintDataManager
- Overrides:
loadConstraint
in class AbstractConstraintDataManager
- Parameters:
constraint
- object
- namembo
- object
- Throws:
SchedulerException