|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.ales.management.ConstantManager
This class manages constants. You can use this class to create, delete, and find constants.
Method Summary | |
Constant |
createConstant(java.lang.String name,
java.util.Collection value,
AttributeValueType type)
Creates a new constant with list value. |
Constant |
createConstant(java.lang.String name,
java.lang.String value,
AttributeValueType type)
Create a new constant with a single value. |
Constant |
getConstant(java.lang.String constantName)
Get a constant with the specified name. |
ConstantQueryResult |
getConstantsByName(java.lang.String filterPattern)
Find constants whose names matches the specified filter. |
ConstantQueryResult |
getConstantsByType(AttributeValueType type)
Find all constants which has the specified type. |
ConstantQueryResult |
getConstantsByValue(java.lang.String filterPattern)
Find constants whose values matches the specified filter. |
void |
removeConstant(java.lang.String name)
Delete a constant with the specified name. |
void |
renameConstant(java.lang.String oldName,
java.lang.String newName)
Rename a constant. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public Constant createConstant(java.lang.String name, java.lang.String value, AttributeValueType type) throws java.lang.IllegalArgumentException, ManagementException
name
- name of the constantvalue
- value of the constant.type
- type of the constant.public Constant createConstant(java.lang.String name, java.util.Collection value, AttributeValueType type) throws java.lang.IllegalArgumentException, ManagementException
name
- name of the constantvalue
- value of the constant. All elements in the collection will
be treated as string.type
- type of the constant.public Constant getConstant(java.lang.String constantName) throws java.lang.IllegalArgumentException, ManagementException
constantName
- name of the constant.public ConstantQueryResult getConstantsByName(java.lang.String filterPattern) throws java.lang.IllegalArgumentException, ManagementException
filterPattern
- name pattern to match.public ConstantQueryResult getConstantsByValue(java.lang.String filterPattern) throws java.lang.IllegalArgumentException, ManagementException
filterPattern
- value pattern to matchpublic ConstantQueryResult getConstantsByType(AttributeValueType type) throws ManagementException
type
- type of the constant to match. When it is null indicate all types.public void removeConstant(java.lang.String name) throws java.lang.IllegalArgumentException, ManagementException
name
- name of the constant to be deleted.public void renameConstant(java.lang.String oldName, java.lang.String newName) throws ManagementException
oldName
- The old name of the constant.newName
- The new name for the constant.oldName
or
newName
is null or empty.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |