WebObjects 5.2

com.webobjects.woextensions
Class WOToOneRelationship

java.lang.Object
  |
  +--com.webobjects.appserver.WOElement
        |
        +--com.webobjects.appserver.WOComponent
              |
              +--com.webobjects.woextensions.WOToOneRelationship
All Implemented Interfaces:
Cloneable, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable, WOActionResults

public class WOToOneRelationship
extends WOComponent

See Also:
Serialized Form

Inner classes inherited from class com.webobjects.appserver.WOComponent
WOComponent.Event
 
Inner classes inherited from class com.webobjects.foundation.NSKeyValueCoding
NSKeyValueCoding.DefaultImplementation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.Utility, NSKeyValueCoding.ValueAccessor
 
Inner classes inherited from class com.webobjects.foundation.NSKeyValueCodingAdditions
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
 
Inner classes inherited from class com.webobjects.foundation.NSValidation
NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
NullValue
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
KeyPathSeparator
 
Constructor Summary
WOToOneRelationship(WOContext aContext)
           
 
Method Summary
 EODatabaseDataSource dataSource()
           
 String destinationDisplayKey()
           
 EOEntity entityWithEntityAndKeyPath(EOEntity entity, String keyPath)
           
 boolean isBrowser()
           
 boolean isPopup()
           
 boolean isRadio()
           
 boolean isStateless()
          By default, this method returns false, indicating that state will be maintained for instances of the receiver.
 String relationshipKey()
           
 void reset()
          Allows a stateless component to reset temporary references.
 Object selection()
           
 void set_privateList(NSArray aValue)
           
 void set_privateSelection(Object aValue)
           
 void setDataSource(EODatabaseDataSource aValue)
           
 void setDestinationDisplayKey(String aValue)
           
 void setIsMandatory(Object aValue)
           
 void setRelationshipKey(String aValue)
           
 void setSelection(Object anEO)
           
 void setSourceEntityName(String aValue)
           
 void setSourceObject(Object aValue)
           
 void setTheCurrentItem(Object aValue)
           
 void setTheList(NSArray aValue)
           
 void setUiStyle(String aValue)
           
 String sourceEntityName()
           
 Object sourceObject()
           
 Object theCurrentItem()
           
 Object theCurrentValue()
           
 NSArray theList()
           
 String uiStyle()
           
 void updateSourceObject(Object anEO)
           
 
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, performParentAction, pullValuesFromParent, pushValuesToParent, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, sleep, synchronizesVariablesWithBindings, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, template, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForKey, valueForKeyPath
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WOToOneRelationship

public WOToOneRelationship(WOContext aContext)
Method Detail

dataSource

public EODatabaseDataSource dataSource()

destinationDisplayKey

public String destinationDisplayKey()

entityWithEntityAndKeyPath

public EOEntity entityWithEntityAndKeyPath(EOEntity entity,
                                           String keyPath)

isBrowser

public boolean isBrowser()

isPopup

public boolean isPopup()

isRadio

public boolean isRadio()

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
Following copied from class: com.webobjects.appserver.WOComponent
Returns:
true if this method is overidden, false otherwise
See Also:
WOComponent.reset(), WOComponent.synchronizesVariablesWithBindings()

relationshipKey

public String relationshipKey()

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
Following copied from class: com.webobjects.appserver.WOComponent
See Also:
WOComponent.isStateless()

selection

public Object selection()

setDataSource

public void setDataSource(EODatabaseDataSource aValue)

setDestinationDisplayKey

public void setDestinationDisplayKey(String aValue)

setIsMandatory

public void setIsMandatory(Object aValue)

setRelationshipKey

public void setRelationshipKey(String aValue)

setSelection

public void setSelection(Object anEO)

setSourceEntityName

public void setSourceEntityName(String aValue)

setSourceObject

public void setSourceObject(Object aValue)

setTheCurrentItem

public void setTheCurrentItem(Object aValue)

setTheList

public void setTheList(NSArray aValue)

setUiStyle

public void setUiStyle(String aValue)

set_privateList

public void set_privateList(NSArray aValue)

set_privateSelection

public void set_privateSelection(Object aValue)

sourceEntityName

public String sourceEntityName()

sourceObject

public Object sourceObject()

theCurrentItem

public Object theCurrentItem()

theCurrentValue

public Object theCurrentValue()

theList

public NSArray theList()

uiStyle

public String uiStyle()

updateSourceObject

public void updateSourceObject(Object anEO)

Last updated Fri Feb 21 13:15:00 PST 2003.

Copyright © 2003 Apple Computer, Inc.