|
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.appserver.WOElement com.webobjects.appserver.WOComponent com.webobjects.directtoweb.D2WComponent com.webobjects.directtoweb.D2WStatelessComponent com.webobjects.directtoweb.QueryComponent com.webobjects.directtoweb.D2WQueryToOneField
The D2WQueryToOneField class is a property-level component that builds a query based on the value for a particular key of a destination object of a to-one relationship. It does not traverse the relationship.
Property-level components are not accessed programmatically. Instead, you use the Web Assistant or Rule Editor to choose the property-level component that Direct to Web uses to display a property on a particular entity and task page.
If you want to create a property-level component to query based on a property, use D2WCustomQueryComponent.
D2WQueryToOneRelationship
,
D2WCustomQueryComponent
,
Serialized FormNested Class Summary |
Nested classes inherited from class com.webobjects.appserver.WOComponent |
WOComponent.Event |
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCoding |
NSKeyValueCoding.DefaultImplementation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.Utility, NSKeyValueCoding.ValueAccessor |
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCodingAdditions |
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility |
Nested classes inherited from class com.webobjects.foundation.NSValidation |
NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException |
Field Summary |
Fields inherited from class com.webobjects.directtoweb.D2WComponent |
currentObjectKey |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding |
NullValue |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
KeyPathSeparator |
Constructor Summary | |
D2WQueryToOneField(WOContext aContext)
Creates an instance of D2WQueryToOneField with the specified context. |
Method Summary | |
WOAssociation |
replacementAssociationForAssociation(WOAssociation oldAssociation,
String oldBinding,
com.webobjects.directtoweb.generation.DTWTemplate aTemplate,
WOContext aContext)
Replaces the binding value . |
void |
reset()
Clears the local value. |
void |
setValue(Object newValue)
Sets the value to the specified new value. |
Object |
value()
Gets the value. |
Methods inherited from class com.webobjects.directtoweb.QueryComponent |
displayGroup |
Methods inherited from class com.webobjects.directtoweb.D2WStatelessComponent |
d2wContext, isStateless, localContext, object |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public D2WQueryToOneField(WOContext aContext)
aContext
- instance of WOContextQueryComponent.QueryComponent(WOContext)
Method Detail |
public WOAssociation replacementAssociationForAssociation(WOAssociation oldAssociation, String oldBinding, com.webobjects.directtoweb.generation.DTWTemplate aTemplate, WOContext aContext)
value
.
The implementation is subject to change in future releases.
replacementAssociationForAssociation
in interface com.webobjects.directtoweb.generation.DTWGeneration
replacementAssociationForAssociation
in class QueryComponent
oldAssociation
- instance of WOAssociationoldBinding
- instance of StringaTemplate
- instance of DTWTemplateaContext
- instance of WOContext
value()
,
QueryComponent.replacementAssociationForAssociation(WOAssociation, String, DTWTemplate, WOContext)
public void reset()
Is needed because the current implementation uses lazy initialization
to get the value in the value
method.
The implementation is subject to change in future releases.
reset
in class QueryComponent
value()
,
QueryComponent.reset()
public void setValue(Object newValue)
setValue
in class QueryComponent
newValue
- the new valuevalue()
public Object value()
Provides the value for a WOTextField.
The current implementation invokes the valueForKey
method
on the query match of the display group.
The implementation is subject to change in future releases.
value
in class QueryComponent
setValue(Object)
|
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 |