|
WebObjects 5.2.3 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webobjects.eocontrol.EOQualifierVariable
EOQualifierVariable defines objects that serve as placeholders in the qualifier. When you create a qualifier programmatically, you typically do something like this:
aQual = EOQualifier.qualifierWithQualifierFormat(aDate);
where aDate
is a variable that contains the actual date you
want to query upon. When you store the qualifier in an EOModel, there
is no way to know the actual value to query upon or the variable that
will contain that value. The EOQualifierVariable object acts as a
placeholder for the actual variable that will represent the right side
of the expression. An EOQualifierVariable is specified by using a dollar sign ($), as
in the following:
dateReleased = $aDate
Variable values must be substituted for using qualifierWithBindings
.
EOQualifier.qualifierWithBindings(NSDictionary bindings,
boolean requiresAll)
,
Serialized FormNested Class Summary |
Nested classes inherited from class com.webobjects.foundation.NSCoding |
NSCoding.Support |
Nested classes inherited from class com.webobjects.eocontrol.EOKeyValueArchiving |
EOKeyValueArchiving.Awaking, EOKeyValueArchiving.FinishInitialization, EOKeyValueArchiving.Support |
Constructor Summary | |
EOQualifierVariable(String key)
Creates and returns a new EOQualifierVariable object with the specified name. |
Method Summary | |
Class |
classForCoder()
Allows the receiver to substitute a class other than its own (for example, a public superclass) for use during archiving (encoding) by an NSCoder. |
static Object |
decodeObject(NSCoder coder)
(Re)creates an object based on type information and data stored in coder . |
static Object |
decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver unarchiver)
Conforms to EOKeyValueArchiving. |
void |
encodeWithCoder(NSCoder coder)
Archives the receiver's type information and data into coder . |
void |
encodeWithKeyValueArchiver(EOKeyValueArchiver archiver)
Conforms to EOKeyValueArchiving. |
boolean |
equals(Object other)
If the receiver and the other object have equals
keys it returns true , false otherwise. |
String |
key()
Returns the specified name for the EOQualifierVariable object |
String |
toString()
String representation of the name for the EOQualifierVariable object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public EOQualifierVariable(String key)
key
- the specified name for the EOQualifierVariable objectMethod Detail |
public Class classForCoder()
getClass
method.
classForCoder
in interface NSCoding
encodeWithCoder(NSCoder coder)
,
decodeObject(NSCoder coder)
,
NSCoder
,
NSCoding
public static Object decodeObject(NSCoder coder)
coder
.
coder
- stores object type information along with an object's data
coder
.encodeWithCoder(NSCoder coder)
,
NSCoder
,
NSCoding
public static Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver unarchiver)
unarchiver
- the EOKeyValueArchiver object with which to decode
the receiver
public void encodeWithCoder(NSCoder coder)
coder
.
The receiver can then be recreated using decodeObject
. Custom
type information can be used by overriding classForCoder
.
encodeWithCoder
in interface NSCoding
coder
- stores object type information along with an object's datadecodeObject(NSCoder coder)
,
classForCoder()
,
NSCoder
,
NSCoding
public void encodeWithKeyValueArchiver(EOKeyValueArchiver archiver)
encodeWithKeyValueArchiver
in interface EOKeyValueArchiving
archiver
- the EOKeyValueArchiver object with which to encode
the receiverEOKeyValueArchiver
public boolean equals(Object other)
other
object have equals
keys it returns true
, false
otherwise.
true
if both the receiver and the other
object key are equalpublic String key()
public String toString()
|
Last updated Thu Oct 21 15:04:16 PDT 2004. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |