|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.admin.Selector
The Selector
class represents the antecedents of indexing
and notification policy rules. Selector objects are also used as locators
of indexing and notification lists. A selector object contains information
about the domain, type, state and event to which the rule or list refers.
Selector objects can also be used to formulate queries for both rules
and lists.
Use the newSelector
static factory method(s), not the Selector
constructor, to construct instances of this class. Instances must be
constructed using the static factory(s), in order to ensure proper initialization
of the instance.
Supported API: false
Extendable: false
Field Summary | |
static String |
ALL_EVENTS
Constant representing all events. |
static String |
ALL_STATES
Constant representing all states. |
private static String |
CLASSNAME
|
static String |
EVENT_KEY
Label for the attribute; Name of the event. |
private static int |
EVENT_KEY_UPPER_LIMIT
|
private String |
eventKey
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
static String |
OWNER_REF
Label for the attribute; Reference to an administrative domain. |
private ObjectReference |
ownerRef
|
protected static long |
PRE_R6_VERSION_UID
|
private static String |
RESOURCE
|
static String |
SELECTOR_NAME
Constant representing the name of the selector attribute when it is used in another class (for example, an index policy rule). |
(package private) static long |
serialVersionUID
|
static String |
STATE_NAME
Label for the attribute; State name (can be Selector.ALL_STATES). |
private static int |
STATE_NAME_UPPER_LIMIT
|
private String |
stateName
|
static String |
TOP_CLASS
Persistence type identifier of the top class in the business class hierarchy. |
static String |
TYPE_ID
Label for the attribute; Persistence type identifier of the type the selector refers to. |
private static int |
TYPE_ID_UPPER_LIMIT
|
private String |
typeId
|
Constructor Summary | |
Selector()
|
Method Summary | |
boolean |
equals(Object obj)
Returns true if the object passed as argument is a equal, false otherwise. |
Enumeration |
getChildren(Vector sels)
Returns all selectors contained in the vector passed as argument that are less general than the current one. |
ClassInfo |
getClassInfo()
Returns the ClassInfo object for this class. |
String |
getConceptualClassname()
Deprecated. |
String |
getEventKey()
Gets the value of the attribute: EVENT_KEY. |
String |
getLocalizedEventKey()
Returns the localized name of the event key. |
ObjectReference |
getOwnerRef()
Gets the value of the attribute: OWNER_REF. |
Enumeration |
getParents(Vector sels)
Returns all selectors contained in the vector passed as argument that are more general than the current one. |
QuerySpec |
getQuerySpec(Class target_class)
Returns the query spec embodied by the selector for the persistence type identifier passed as parameter. |
String |
getStateName()
Gets the value of the attribute: STATE_NAME. |
String |
getTypeId()
Gets the value of the attribute: TYPE_ID. |
int |
hashCode()
Returns the hash code for the selector. |
protected void |
initialize()
Supports initialization, following construction of an instance. |
protected void |
initialize(ObjectReference domain_ref)
Supports initialization, following construction of an instance. |
protected void |
initialize(Selector selector)
Supports initialization, following construction of an instance. |
boolean |
isGoodForList()
Returns whether the selector should be used for policy lists. |
boolean |
isGoodForRule()
Returns whether the selector should be used for policy rules. |
private boolean |
isInstanceOf(String class1,
String class2)
|
boolean |
isMoreGeneral(Selector sel)
Returns whether a selector is "more general" than another. |
static Selector |
newSelector()
No argument constructor. |
static Selector |
newSelector(ObjectReference domain_ref)
Constructor that takes a domain reference argument. |
static Selector |
newSelector(Selector selector)
Copy constructor. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
void |
readExternal(PersistentRetrieveIfc input)
Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(Selector thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setEventKey(String a_EventKey)
Sets the value of the attribute: EVENT_KEY. |
void |
setLocalizedEventKey(String event_name)
Sets the event key of the selector using a localized name as argument. |
void |
setOwnerRef(ObjectReference a_OwnerRef)
Sets the value of the attribute: OWNER_REF. |
void |
setStateName(String a_StateName)
Sets the value of the attribute: STATE_NAME. |
void |
setTypeId(String a_TypeId)
Sets the value of the attribute: TYPE_ID. |
String |
toString()
Returns the conceptual (modeled) name for the class. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
void |
writeExternal(PersistentStoreIfc output)
Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String OWNER_REF
private ObjectReference ownerRef
public static final String TYPE_ID
private static int TYPE_ID_UPPER_LIMIT
private String typeId
public static final String STATE_NAME
private static int STATE_NAME_UPPER_LIMIT
private String stateName
public static final String EVENT_KEY
private static int EVENT_KEY_UPPER_LIMIT
private String eventKey
public static final String ALL_STATES
public static final String ALL_EVENTS
public static final String TOP_CLASS
public static final String SELECTOR_NAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
protected static final long PRE_R6_VERSION_UID
Constructor Detail |
public Selector()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(Selector thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public void writeExternal(PersistentStoreIfc output) throws SQLException, DatastoreException
(Not intended for general use.)
Supported API: false
writeExternal
in interface ObjectMappable
output
-
SQLException
DatastoreException
public void readExternal(PersistentRetrieveIfc input) throws SQLException, DatastoreException
(Not intended for general
use.)
Supported API: false
readExternal
in interface ObjectMappable
input
-
SQLException
DatastoreException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public String toString()
public ClassInfo getClassInfo() throws WTIntrospectionException
getClassInfo
in interface NetFactor
WTIntrospectionException
public ObjectReference getOwnerRef()
public void setOwnerRef(ObjectReference a_OwnerRef)
a_OwnerRef
- public String getTypeId()
public void setTypeId(String a_TypeId)
a_TypeId
- public String getStateName()
public void setStateName(String a_StateName)
a_StateName
- public String getEventKey()
public void setEventKey(String a_EventKey)
a_EventKey
- public static Selector newSelector() throws WTException
WTException
protected void initialize() throws WTException
WTException
public static Selector newSelector(ObjectReference domain_ref) throws WTException
domain_ref
-
WTException
protected void initialize(ObjectReference domain_ref) throws WTException
domain_ref
-
WTException
public static Selector newSelector(Selector selector) throws WTException
selector
-
WTException
protected void initialize(Selector selector) throws WTException
selector
-
WTException
public boolean equals(Object obj)
obj
-
public int hashCode()
public QuerySpec getQuerySpec(Class target_class) throws WTException
... Selector sel = Selector.newSelector (); sel.setDomainRef (defaultDomainRef); sel.setTypeId ("wt.doc.Document"); sel.setStateName ("RELEASED"); sel.setEventKey ("PROMOTE"); QuerySpec qs = sel.getQuerySpec (IndexPolicyRule.class); ...To query over all domains (or all states, events and types) simply set the respective attribute to "null".
target_class
-
WTException
public boolean isMoreGeneral(Selector sel)
A selector Note that this relationship is transitive and reflexive but not
symmetric.
typeId1 is more general than typeId2 if they are the same or typeId2
is derived from typeId1; state1 is more general than state2 if they
are the same or state1 is Selector.ALL_STATES; finally, event1 is
more general than event2 if they are the same or event1 is Selector.ALL_EVENTS.
Supported API: false
sel
-
public boolean isGoodForList()
A Selector with null fields can only be used in queries.
Supported API: false
public boolean isGoodForRule()
A Selector with null fields can only be used in queries.
Supported API: false
public Enumeration getChildren(Vector sels)
sels
-
public Enumeration getParents(Vector sels)
sels
-
public String getLocalizedEventKey()
public void setLocalizedEventKey(String event_name) throws WTException
event_name
-
WTException
private boolean isInstanceOf(String class1, String class2)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |