Project Wonder 5.0

er.extensions.components
Class ERXFakeRelationship

java.lang.Object
  extended by com.webobjects.appserver.WOElement
      extended by com.webobjects.appserver.WOComponent
          extended by er.extensions.components.ERXFakeRelationship
All Implemented Interfaces:
com.webobjects.appserver.WOActionResults, com.webobjects.foundation.NSKeyValueCoding, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCodingAdditions, com.webobjects.foundation.NSValidation, java.io.Serializable, java.lang.Cloneable

public class ERXFakeRelationship
extends com.webobjects.appserver.WOComponent

UI and support methods to edit "relations" to objects flattened into a text field (e.g. languages = "-de-en-"). Useful when you don't need referential integrity but only a quick place to store flags and the like.

See Also:
Serialized Form
Bindings
dataSourcedataSource
           
destinationDisplayKeydestinationDisplayKey
           
isMandatoryisMandatory
           
relationshipKeyrelationshipKey
           
sourceEntityNamesourceEntityName
           
sourceObjectsourceObject
           
uiStyleuiStyle
           
isToManyisToMany
           
destinationEntityNamedestinationEntityName
           
sizesize
           
maxColumnsmaxColumns
           

Nested Class Summary
 
Nested classes/interfaces inherited from class com.webobjects.appserver.WOComponent
com.webobjects.appserver.WOComponent._EventLoggingEnabler, com.webobjects.appserver.WOComponent.Event
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCoding
com.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.Null, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation
com.webobjects.foundation.NSValidation._MethodBinding, com.webobjects.foundation.NSValidation._ValidationBinding, com.webobjects.foundation.NSValidation.DefaultImplementation, com.webobjects.foundation.NSValidation.Utility, com.webobjects.foundation.NSValidation.ValidationException
 
Field Summary
 
Fields inherited from class com.webobjects.appserver.WOComponent
_Extension, _IsEventLoggingEnabled, _keyAssociations
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling
_CLASS
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
NullValue
 
Fields inherited from interface com.webobjects.foundation.NSValidation
_CLASS
 
Constructor Summary
ERXFakeRelationship(com.webobjects.appserver.WOContext context)
           
 
Method Summary
 void _invalidateCaches()
           
 com.webobjects.eoaccess.EODatabaseDataSource dataSource()
           
 java.lang.String delimiter()
           
 java.lang.String destinationDisplayKey()
           
 java.lang.String destinationEntityName()
           
static com.webobjects.foundation.NSArray fakeRelationshipForKey(com.webobjects.eocontrol.EOEnterpriseObject sourceObject, java.lang.String relationshipKey, java.lang.String destinationEntityName, java.lang.String delimiter)
           
 boolean isBrowser()
           
 boolean isStateless()
           
 java.lang.String relationshipKey()
           
 void reset()
           
 com.webobjects.eocontrol.EOEnterpriseObject selection()
           
 com.webobjects.foundation.NSArray selections()
           
static void setFakeRelationshipForKey(com.webobjects.eocontrol.EOEnterpriseObject sourceObject, com.webobjects.foundation.NSArray objects, java.lang.String relationshipKey, java.lang.String destinationEntityName, java.lang.String delimiter)
           
 void setSelection(com.webobjects.eocontrol.EOEnterpriseObject aValue)
           
 void setSelections(com.webobjects.foundation.NSArray aValue)
           
 void setTheCurrentItem(com.webobjects.eocontrol.EOEnterpriseObject aValue)
           
 void setTheCurrentValue(java.lang.String aValue)
           
 void setTheList(com.webobjects.foundation.NSArray aValue)
           
 java.lang.String sourceEntityName()
           
 com.webobjects.eocontrol.EOEnterpriseObject sourceObject()
           
 boolean synchronizesVariablesWithBindings()
           
 com.webobjects.eocontrol.EOEnterpriseObject theCurrentItem()
           
 java.lang.String theCurrentValue()
           
 com.webobjects.foundation.NSArray theList()
           
 java.lang.String uiStyle()
           
 
Methods inherited from class com.webobjects.appserver.WOComponent
_associationWithName, _awakeInContext, _childTemplate, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, 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, sleep, 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

ERXFakeRelationship

public ERXFakeRelationship(com.webobjects.appserver.WOContext context)
Method Detail

isStateless

public boolean isStateless()
Overrides:
isStateless in class com.webobjects.appserver.WOComponent

synchronizesVariablesWithBindings

public boolean synchronizesVariablesWithBindings()
Overrides:
synchronizesVariablesWithBindings in class com.webobjects.appserver.WOComponent

delimiter

public java.lang.String delimiter()

theList

public com.webobjects.foundation.NSArray theList()

setTheList

public void setTheList(com.webobjects.foundation.NSArray aValue)

theCurrentValue

public java.lang.String theCurrentValue()

setTheCurrentValue

public void setTheCurrentValue(java.lang.String aValue)

theCurrentItem

public com.webobjects.eocontrol.EOEnterpriseObject theCurrentItem()

setTheCurrentItem

public void setTheCurrentItem(com.webobjects.eocontrol.EOEnterpriseObject aValue)

setFakeRelationshipForKey

public static void setFakeRelationshipForKey(com.webobjects.eocontrol.EOEnterpriseObject sourceObject,
                                             com.webobjects.foundation.NSArray objects,
                                             java.lang.String relationshipKey,
                                             java.lang.String destinationEntityName,
                                             java.lang.String delimiter)

fakeRelationshipForKey

public static com.webobjects.foundation.NSArray fakeRelationshipForKey(com.webobjects.eocontrol.EOEnterpriseObject sourceObject,
                                                                       java.lang.String relationshipKey,
                                                                       java.lang.String destinationEntityName,
                                                                       java.lang.String delimiter)

selections

public com.webobjects.foundation.NSArray selections()

setSelections

public void setSelections(com.webobjects.foundation.NSArray aValue)

selection

public com.webobjects.eocontrol.EOEnterpriseObject selection()

setSelection

public void setSelection(com.webobjects.eocontrol.EOEnterpriseObject aValue)

sourceEntityName

public java.lang.String sourceEntityName()

sourceObject

public com.webobjects.eocontrol.EOEnterpriseObject sourceObject()

relationshipKey

public java.lang.String relationshipKey()

destinationDisplayKey

public java.lang.String destinationDisplayKey()

destinationEntityName

public java.lang.String destinationEntityName()

dataSource

public com.webobjects.eoaccess.EODatabaseDataSource dataSource()

uiStyle

public java.lang.String uiStyle()

_invalidateCaches

public void _invalidateCaches()

reset

public void reset()
Overrides:
reset in class com.webobjects.appserver.WOComponent

isBrowser

public boolean isBrowser()

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.