com.webobjects.woextensions
Class WOToOneRelationship
java.lang.Object
com.webobjects.appserver.WOElement
com.webobjects.appserver.WOComponent
com.webobjects.woextensions.WOToOneRelationship
- All Implemented Interfaces:
- WOActionResults, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable, Cloneable
public class WOToOneRelationship
- extends WOComponent
- See Also:
- Serialized Form
Methods inherited from class com.webobjects.appserver.WOComponent |
appendToResponse, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, invokeAction, isCachingEnabled, isEventLoggingEnabled, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, setVariableValueForName, sleep, synchronizesVariablesWithBindings, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithName |
WOToOneRelationship
public WOToOneRelationship(WOContext aContext)
isStateless
public boolean isStateless()
- Description copied from class:
WOComponent
- By default, this method returns
false
, indicating that state will be maintained for instances of the receiver. Overriding this method to return true
will make the component stateless. A single instance of each stateless component is shared between multiple
sessions, reducing the application's memory footprint.
By default, stateless components don't synchronize. So, if you override this method to return true
and you want the component to synchronize, you must also override synchronizesVariablesWithBindings
and return true
.
- Overrides:
isStateless
in class WOComponent
- Returns:
true
if this method is overidden, false
otherwise- See Also:
WOComponent.reset()
,
WOComponent.synchronizesVariablesWithBindings()
sourceEntityName
public String sourceEntityName()
setSourceEntityName
public void setSourceEntityName(String aValue)
relationshipKey
public String relationshipKey()
setRelationshipKey
public void setRelationshipKey(String aValue)
sourceObject
public Object sourceObject()
setSourceObject
public void setSourceObject(Object aValue)
destinationDisplayKey
public String destinationDisplayKey()
setDestinationDisplayKey
public void setDestinationDisplayKey(String aValue)
dataSource
public EODatabaseDataSource dataSource()
setDataSource
public void setDataSource(EODatabaseDataSource aValue)
uiStyle
public String uiStyle()
setUiStyle
public void setUiStyle(String aValue)
setIsMandatory
public void setIsMandatory(Object aValue)
theCurrentItem
public Object theCurrentItem()
setTheCurrentItem
public void setTheCurrentItem(Object aValue)
set_privateList
public void set_privateList(NSArray aValue)
set_privateSelection
public void set_privateSelection(Object aValue)
reset
public void reset()
- Description copied from class:
WOComponent
- Allows a stateless component to reset temporary references. This method -- which is only invoked if the component is stateless -- allows a component instance to reset or delete temporary references to objects that are specific to a given context. To ensure that when the shared instance of a
component is reused by another session there are no side effects, implement this method so that it releases and sets to null each of the component's instance variables.
- Overrides:
reset
in class WOComponent
- See Also:
WOComponent.isStateless()
entityWithEntityAndKeyPath
public EOEntity entityWithEntityAndKeyPath(EOEntity entity,
String keyPath)
updateSourceObject
public void updateSourceObject(Object anEO)
setSelection
public void setSelection(Object anEO)
selection
public Object selection()
theList
public NSArray theList()
setTheList
public void setTheList(NSArray aValue)
theCurrentValue
public Object theCurrentValue()
isRadio
public boolean isRadio()
isPopup
public boolean isPopup()
isBrowser
public boolean isBrowser()
Copyright © 2000-2008 Apple Inc.