|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.engine.TWGFilterConstraints
An instance of the TWGFilterConstraints class contains a collection of TWGFilterConstraint instances that define a dynamic group (filter). The level numbers of each constraint define a tree structure that specifies how they are logically combined when querying the Director database.
The first constraint added to a TWGFilterConstraints object must be a top level constraint. Top level constraints have only one qualifier in their level (for example 1, 2, and 23 qualify as top level but 1.2, 1.3.4, and 17.8 do not). It must also be a parent constraint. There can be only one top level constraint.
For each constraint added after the first, the constraint's parent must already have been added (level 1 must be added before 1.2, and level 1.4 must be added before 1.4.1).
TWGFilterConstraints
,
Serialized FormConstructor Summary | |
---|---|
TWGFilterConstraints()
Constructor |
Method Summary | |
---|---|
void |
addConstraint(TWGFilterConstraint con)
Add a constraint for the dynamic group (filter). |
protected TWGFilterConstraints |
createFilterInfo(java.util.Locale loc)
This method is protected as an implementation side effect. |
protected void |
createSQL()
This method should be run only in the Director engine. |
void |
flatten(TWGByteArrayOutputStream data)
Write constraints contents to a byte array. |
TWGFilterConstraint |
getConstraint(java.lang.String level)
Get a specific constraint by specifying the level. |
java.util.Vector |
getConstraints()
Get all the constraints |
int |
getLoadRC()
Get the constraints load completion return code. |
java.util.Enumeration |
keys()
Get the keys for the constraints |
protected IntValueSet |
runSQL()
This method should be run only in the Director Engine. |
protected IntValueSet |
runSQL(IntValueSet obj_ids)
This method should be run only in the Director Engine. |
int |
size()
Get the number of constraints in this object |
java.lang.String |
toString()
Convert object to String for debug |
void |
unflatten(TWGByteArrayInputStream data)
Recreate object from byte array. |
protected boolean |
verify()
This method should be run only in the Director engine during engine initialization |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TWGFilterConstraints()
Method Detail |
protected TWGFilterConstraints createFilterInfo(java.util.Locale loc) throws TWGFilterException
Create a filter info version of this object (has display names filled in for tables, columns, etc.).
TWGFilterException
public java.util.Enumeration keys()
public int getLoadRC()
public TWGFilterConstraint getConstraint(java.lang.String level)
public java.util.Vector getConstraints()
public int size()
public void addConstraint(TWGFilterConstraint con) throws TWGFilterException
con
- - the constraint to be added
TWGFilterException
- if a constraint with the same level number already
exists in this constraints set.protected void createSQL() throws TWGFilterException
Create the SQL for generating sets of managed objects for this filter.
TWGFilterException
protected IntValueSet runSQL() throws TWGFilterException
TWGFilterException
protected IntValueSet runSQL(IntValueSet obj_ids) throws TWGFilterException
TWGFilterException
protected boolean verify()
Verify that the tables and columns used in the constraints for the filter are still valid. If any Director extensions have been removed, tables defined by those extensions may be gone.
public void flatten(TWGByteArrayOutputStream data) throws TWGPersistentObjectSaveException
data
- - the TWGByteArrayOutputStream
TWGPersistentObjectSaveException
public void unflatten(TWGByteArrayInputStream data) throws TWGPersistentObjectRestoreException
data
- - the TWGByteArrayOutputStream
TWGPersistentObjectRestoreException
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |