Project Wonder 5.0

com.webobjects.eoaccess
Class EOAttribute

java.lang.Object
  extended by com.webobjects.eoaccess.EOProperty
      extended by com.webobjects.eoaccess.EOAttribute
All Implemented Interfaces:
EOPropertyListEncoding, EOSQLExpression.SQLValue
Direct Known Subclasses:
ERXEOAttribute

public class EOAttribute
extends EOProperty
implements EOPropertyListEncoding, EOSQLExpression.SQLValue


Field Summary
protected  Class _adaptorValueConversionClass
           
protected  String _adaptorValueConversionClassName
           
protected  NSSelector _adaptorValueConversionMethod
           
protected  String _adaptorValueConversionMethodName
           
protected  int _adaptorValueType
           
protected  String _className
           
protected  String _columnName
           
protected  com.webobjects.eoaccess._EOExpressionArray _definitionArray
           
protected  String _externalType
           
protected  boolean _flags_allowsNull
           
protected  boolean _flags_isNonUpdateable
           
protected  boolean _flags_isNonUpdateableInitialized
           
protected  boolean _flags_isReadOnly
           
 NSDictionary _internalInfo
           
protected  String _name
           
protected  int _parameterDirection
           
protected  EOEntity _parent
           
protected  EOStoredProcedure _parentStoredProcedure
           
protected  int _precision
           
protected  EOAttribute _prototype
           
protected  String _prototypeName
           
protected  String _readFormat
           
protected  int _scale
           
protected  TimeZone _serverTimeZone
           
protected  NSDictionary _sourceToDestinationKeyMap
           
protected  NSDictionary _userInfo
           
protected  Class _valueClass
           
protected  String _valueClassName
           
protected  Class _valueFactoryClass
           
protected  String _valueFactoryClassName
           
protected  NSSelector _valueFactoryMethod
           
protected  String _valueFactoryMethodName
           
protected  String _valueType
           
protected  String _valueTypeClassName
           
static char _VTBigDecimal
           
static char _VTBoolean
           
static char _VTByte
           
static char _VTCharStream
           
static char _VTCharTrimString
           
static char _VTCoerceDate
           
static char _VTDate
           
static char _VTDouble
           
static char _VTEncodedBytes
           
static char _VTFloat
           
static char _VTInteger
           
static char _VTLong
           
static char _VTShort
           
static char _VTString
           
static char _VTTime
           
static char _VTTimestamp
           
static char _VTUnknown
           
protected  int _width
           
protected  String _writeFormat
           
static int AdaptorBytesType
           
static int AdaptorCharactersType
           
static int AdaptorDateType
           
static int AdaptorNumberType
           
static int FactoryMethodArgumentIsBytes
           
static String FactoryMethodArgumentIsBytesString
           
static int FactoryMethodArgumentIsData
           
static String FactoryMethodArgumentIsDataString
           
static int FactoryMethodArgumentIsDate
           
static String FactoryMethodArgumentIsDateString
           
static int FactoryMethodArgumentIsString
           
static String FactoryMethodArgumentIsStringString
           
static int InOutParameter
           
static int InParameter
           
static int OutParameter
           
static int Void
           
 
Constructor Summary
  EOAttribute()
           
protected EOAttribute(EOEntity entity, String definition)
           
  EOAttribute(NSDictionary plist, Object owner)
           
 
Method Summary
protected  Class _adaptorValueClass()
          Deprecated. Method _adaptorValueClass is deprecated
protected  com.webobjects.eoaccess._EOExpressionArray _definitionArray()
           
 int _factoryMethodArgumentTypeFromString(String string)
           
 void _flushCache()
           
protected  boolean _hasAnyOverrides()
           
 NSDictionary _internalInfo()
           
 boolean _isNonUpdateable()
           
 boolean _isPrimaryKeyClassProperty()
           
protected  Object _normalizeDefinitionPath(Object definition, NSArray attributePath)
           
protected  Object _objectForPlist(Object plist)
           
protected  void _removeFromEntityArraySelector(NSArray oldArray, NSSelector sel)
           
 void _resetPrototype()
           
protected  void _setDefinitionArray(com.webobjects.eoaccess._EOExpressionArray definitionArray)
           
protected  void _setDefinitionWithoutFlushingCaches(String definition)
           
protected  void _setInternalInfo(NSDictionary dictionary)
           
 String _setNewFormatStringOld(String newString, String old)
           
protected  void _setOverrideForCharacteristic(com.webobjects.eoaccess.EOAttribute.Characteristic key)
           
 void _setSourceToDestinationKeyMap(NSDictionary mapping)
           
protected  void _setValuesFromTargetAttribute()
           
 NSDictionary _sourceToDestinationKeyMap()
           
 String _stringForFactoryMethodArgumentType(int type)
           
 String _toString(int indent)
           
 void _updateFromPrototype()
           
protected  char _valueTypeChar()
           
 Object adaptorValueByConvertingAttributeValue(Object value)
           
 Class adaptorValueClass()
           
 Class adaptorValueConversionClass()
           
 String adaptorValueConversionClassName()
           
 NSSelector adaptorValueConversionMethod()
           
 String adaptorValueConversionMethodName()
           
 int adaptorValueType()
           
 boolean allowsNull()
           
 void awakeWithPropertyList(NSDictionary plist)
           
 void beautifyName()
           
 EOChangeNotificationOptions changeNotificationOptions()
           
 String className()
           
 String columnName()
           
 String definition()
           
 void encodeIntoPropertyList(NSMutableDictionary result)
           
 EOEntity entity()
           
 String externalType()
           
 int factoryMethodArgumentType()
           
 boolean isDerived()
           
 boolean isFlattened()
           
 boolean isReadOnly()
           
 String name()
           
 Object newValueForBytes(byte[] bytes, int length)
           
 Object newValueForBytesString(byte[] bytes, int length)
          Deprecated. Method newValueForBytesString is deprecated
 Object newValueForDate(Object value)
           
 Object newValueForImmutableBytes(byte[] bytes)
           
 Object newValueForString(String str)
           
 boolean overridesPrototypeDefinitionForCharacteristic(com.webobjects.eoaccess.EOAttribute.Characteristic key)
           
 boolean overridesPrototypeDefinitionForKey(String key)
           
 Map overwrittenCharacteristics()
           
 int parameterDirection()
           
 Object parent()
           
 int precision()
           
 EOAttribute prototype()
           
 String prototypeName()
           
 String readFormat()
           
 String relationshipPath()
           
 int scale()
           
 TimeZone serverTimeZone()
           
 void setAdaptorValueConversionClassName(String conversionClassName)
           
 void setAdaptorValueConversionMethodName(String conversionMethodName)
           
 void setAllowsNull(boolean allowsNull)
           
 void setChangeNotificationOptions(EOChangeNotificationOptions changeNotificationOptions)
           
 void setClassName(String name)
           
 void setColumnName(String columnName)
           
 void setDefinition(String definition)
           
 void setExternalType(String string)
           
 void setFactoryMethodArgumentType(int argumentType)
           
 void setName(String name)
           
 void setParameterDirection(int parameterDirection)
           
 void setPrecision(int precision)
           
 void setPrototype(EOAttribute prototype)
           
 void setReadFormat(String string)
           
 void setReadOnly(boolean yn)
           
 void setScale(int scale)
           
 void setServerTimeZone(TimeZone tz)
           
 void setUserInfo(NSDictionary dictionary)
           
 void setValueClassName(String name)
          Deprecated. Method setValueClassName is deprecated
 void setValueFactoryClassName(String factoryClassName)
           
 void setValueFactoryMethodName(String factoryMethodName)
           
 void setValueType(String string)
           
 void setWidth(int length)
           
 void setWriteFormat(String string)
           
 EOStoredProcedure storedProcedure()
           
 String toString()
           
 NSDictionary userInfo()
           
 Object validateValue(Object valueP)
           
 String valueClassName()
          Deprecated. Method valueClassName is deprecated
 Class valueFactoryClass()
           
 String valueFactoryClassName()
           
 NSSelector valueFactoryMethod()
           
 String valueFactoryMethodName()
           
 String valueForSQLExpression(EOSQLExpression context)
           
 String valueType()
           
 String valueTypeClassName()
           
 int width()
           
 String writeFormat()
           
 
Methods inherited from class com.webobjects.eoaccess.EOProperty
equals, initialCapitalName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FactoryMethodArgumentIsData

public static final int FactoryMethodArgumentIsData
See Also:
Constant Field Values

FactoryMethodArgumentIsString

public static final int FactoryMethodArgumentIsString
See Also:
Constant Field Values

FactoryMethodArgumentIsBytes

public static final int FactoryMethodArgumentIsBytes
See Also:
Constant Field Values

FactoryMethodArgumentIsDate

public static final int FactoryMethodArgumentIsDate
See Also:
Constant Field Values

AdaptorNumberType

public static final int AdaptorNumberType
See Also:
Constant Field Values

AdaptorCharactersType

public static final int AdaptorCharactersType
See Also:
Constant Field Values

AdaptorBytesType

public static final int AdaptorBytesType
See Also:
Constant Field Values

AdaptorDateType

public static final int AdaptorDateType
See Also:
Constant Field Values

Void

public static final int Void
See Also:
Constant Field Values

InParameter

public static final int InParameter
See Also:
Constant Field Values

OutParameter

public static final int OutParameter
See Also:
Constant Field Values

InOutParameter

public static final int InOutParameter
See Also:
Constant Field Values

_name

protected String _name

_parent

protected EOEntity _parent

_parentStoredProcedure

protected EOStoredProcedure _parentStoredProcedure

_prototypeName

protected String _prototypeName

_prototype

protected EOAttribute _prototype

_columnName

protected String _columnName

_definitionArray

protected com.webobjects.eoaccess._EOExpressionArray _definitionArray

_externalType

protected String _externalType

_valueType

protected String _valueType

_valueClassName

protected String _valueClassName

_className

protected String _className

_adaptorValueType

protected int _adaptorValueType

_valueTypeClassName

protected String _valueTypeClassName

_readFormat

protected String _readFormat

_writeFormat

protected String _writeFormat

_serverTimeZone

protected TimeZone _serverTimeZone

_width

protected int _width

_precision

protected int _precision

_scale

protected int _scale

_valueClass

protected Class _valueClass

_valueFactoryClassName

protected String _valueFactoryClassName

_valueFactoryMethodName

protected String _valueFactoryMethodName

_valueFactoryClass

protected Class _valueFactoryClass

_adaptorValueConversionMethodName

protected String _adaptorValueConversionMethodName

_adaptorValueConversionClassName

protected String _adaptorValueConversionClassName

_adaptorValueConversionClass

protected Class _adaptorValueConversionClass

_valueFactoryMethod

protected NSSelector _valueFactoryMethod

_adaptorValueConversionMethod

protected NSSelector _adaptorValueConversionMethod

_flags_allowsNull

protected boolean _flags_allowsNull

_flags_isReadOnly

protected boolean _flags_isReadOnly

_flags_isNonUpdateable

protected boolean _flags_isNonUpdateable

_flags_isNonUpdateableInitialized

protected boolean _flags_isNonUpdateableInitialized

_sourceToDestinationKeyMap

protected NSDictionary _sourceToDestinationKeyMap

_parameterDirection

protected int _parameterDirection

_userInfo

protected NSDictionary _userInfo

_internalInfo

public NSDictionary _internalInfo

_VTByte

public static final char _VTByte
See Also:
Constant Field Values

_VTShort

public static final char _VTShort
See Also:
Constant Field Values

_VTInteger

public static final char _VTInteger
See Also:
Constant Field Values

_VTLong

public static final char _VTLong
See Also:
Constant Field Values

_VTFloat

public static final char _VTFloat
See Also:
Constant Field Values

_VTDouble

public static final char _VTDouble
See Also:
Constant Field Values

_VTBigDecimal

public static final char _VTBigDecimal
See Also:
Constant Field Values

_VTBoolean

public static final char _VTBoolean
See Also:
Constant Field Values

_VTDate

public static final char _VTDate
See Also:
Constant Field Values

_VTTime

public static final char _VTTime
See Also:
Constant Field Values

_VTTimestamp

public static final char _VTTimestamp
See Also:
Constant Field Values

_VTString

public static final char _VTString
See Also:
Constant Field Values

_VTCharStream

public static final char _VTCharStream
See Also:
Constant Field Values

_VTEncodedBytes

public static final char _VTEncodedBytes
See Also:
Constant Field Values

_VTCharTrimString

public static final char _VTCharTrimString
See Also:
Constant Field Values

_VTUnknown

public static final char _VTUnknown
See Also:
Constant Field Values

_VTCoerceDate

public static final char _VTCoerceDate
See Also:
Constant Field Values

FactoryMethodArgumentIsBytesString

public static final String FactoryMethodArgumentIsBytesString
See Also:
Constant Field Values

FactoryMethodArgumentIsStringString

public static final String FactoryMethodArgumentIsStringString
See Also:
Constant Field Values

FactoryMethodArgumentIsDataString

public static final String FactoryMethodArgumentIsDataString
See Also:
Constant Field Values

FactoryMethodArgumentIsDateString

public static final String FactoryMethodArgumentIsDateString
See Also:
Constant Field Values
Constructor Detail

EOAttribute

public EOAttribute()

EOAttribute

public EOAttribute(NSDictionary plist,
                   Object owner)

EOAttribute

protected EOAttribute(EOEntity entity,
                      String definition)
Method Detail

overwrittenCharacteristics

public Map overwrittenCharacteristics()

_setOverrideForCharacteristic

protected void _setOverrideForCharacteristic(com.webobjects.eoaccess.EOAttribute.Characteristic key)

overridesPrototypeDefinitionForCharacteristic

public boolean overridesPrototypeDefinitionForCharacteristic(com.webobjects.eoaccess.EOAttribute.Characteristic key)

_updateFromPrototype

public void _updateFromPrototype()

_resetPrototype

public void _resetPrototype()

_hasAnyOverrides

protected boolean _hasAnyOverrides()

name

public String name()
Specified by:
name in class EOProperty

toString

public String toString()
Overrides:
toString in class Object

_toString

public String _toString(int indent)

entity

public EOEntity entity()
Specified by:
entity in class EOProperty

storedProcedure

public EOStoredProcedure storedProcedure()

parent

public Object parent()

prototypeName

public String prototypeName()

prototype

public EOAttribute prototype()

externalType

public String externalType()

columnName

public String columnName()

definition

public String definition()

isFlattened

public boolean isFlattened()

isDerived

public boolean isDerived()

isReadOnly

public boolean isReadOnly()

_isPrimaryKeyClassProperty

public boolean _isPrimaryKeyClassProperty()

_isNonUpdateable

public boolean _isNonUpdateable()

valueClassName

public String valueClassName()
Deprecated. Method valueClassName is deprecated

Returns:
valueClassName

className

public String className()

valueType

public String valueType()

_valueTypeChar

protected char _valueTypeChar()

width

public int width()

precision

public int precision()

scale

public int scale()

allowsNull

public boolean allowsNull()

readFormat

public String readFormat()

writeFormat

public String writeFormat()

parameterDirection

public int parameterDirection()

userInfo

public NSDictionary userInfo()

_internalInfo

public NSDictionary _internalInfo()

encodeIntoPropertyList

public void encodeIntoPropertyList(NSMutableDictionary result)
Specified by:
encodeIntoPropertyList in interface EOPropertyListEncoding

awakeWithPropertyList

public void awakeWithPropertyList(NSDictionary plist)
Specified by:
awakeWithPropertyList in interface EOPropertyListEncoding

overridesPrototypeDefinitionForKey

public boolean overridesPrototypeDefinitionForKey(String key)

setName

public void setName(String name)

setPrototype

public void setPrototype(EOAttribute prototype)

setReadOnly

public void setReadOnly(boolean yn)

setColumnName

public void setColumnName(String columnName)

setDefinition

public void setDefinition(String definition)

setExternalType

public void setExternalType(String string)

setValueType

public void setValueType(String string)

setValueClassName

public void setValueClassName(String name)
Deprecated. Method setValueClassName is deprecated

Parameters:
name - valueClassName

setClassName

public void setClassName(String name)

setWidth

public void setWidth(int length)

setPrecision

public void setPrecision(int precision)

setScale

public void setScale(int scale)

setAllowsNull

public void setAllowsNull(boolean allowsNull)

setWriteFormat

public void setWriteFormat(String string)

setReadFormat

public void setReadFormat(String string)

setParameterDirection

public void setParameterDirection(int parameterDirection)

setUserInfo

public void setUserInfo(NSDictionary dictionary)

_setInternalInfo

protected void _setInternalInfo(NSDictionary dictionary)

beautifyName

public void beautifyName()

serverTimeZone

public TimeZone serverTimeZone()

setServerTimeZone

public void setServerTimeZone(TimeZone tz)

newValueForBytes

public Object newValueForBytes(byte[] bytes,
                               int length)

newValueForImmutableBytes

public Object newValueForImmutableBytes(byte[] bytes)

newValueForBytesString

public Object newValueForBytesString(byte[] bytes,
                                     int length)
Deprecated. Method newValueForBytesString is deprecated

Parameters:
bytes -
length -
Returns:
newValueForBytesString

newValueForDate

public Object newValueForDate(Object value)

newValueForString

public Object newValueForString(String str)

valueFactoryClass

public Class valueFactoryClass()

valueFactoryClassName

public String valueFactoryClassName()

valueFactoryMethodName

public String valueFactoryMethodName()

valueFactoryMethod

public NSSelector valueFactoryMethod()

adaptorValueByConvertingAttributeValue

public Object adaptorValueByConvertingAttributeValue(Object value)

adaptorValueConversionMethodName

public String adaptorValueConversionMethodName()

adaptorValueConversionMethod

public NSSelector adaptorValueConversionMethod()

adaptorValueConversionClassName

public String adaptorValueConversionClassName()

adaptorValueConversionClass

public Class adaptorValueConversionClass()

adaptorValueType

public int adaptorValueType()

_adaptorValueClass

protected Class _adaptorValueClass()
Deprecated. Method _adaptorValueClass is deprecated

Returns:
adaptorValueClass

adaptorValueClass

public Class adaptorValueClass()

valueTypeClassName

public String valueTypeClassName()

factoryMethodArgumentType

public int factoryMethodArgumentType()

setFactoryMethodArgumentType

public void setFactoryMethodArgumentType(int argumentType)

setValueFactoryClassName

public void setValueFactoryClassName(String factoryClassName)

setValueFactoryMethodName

public void setValueFactoryMethodName(String factoryMethodName)

setAdaptorValueConversionClassName

public void setAdaptorValueConversionClassName(String conversionClassName)

setAdaptorValueConversionMethodName

public void setAdaptorValueConversionMethodName(String conversionMethodName)

validateValue

public Object validateValue(Object valueP)
                     throws NSValidation.ValidationException
Throws:
NSValidation.ValidationException

_setSourceToDestinationKeyMap

public void _setSourceToDestinationKeyMap(NSDictionary mapping)

_sourceToDestinationKeyMap

public NSDictionary _sourceToDestinationKeyMap()

relationshipPath

public String relationshipPath()
Specified by:
relationshipPath in class EOProperty

_setNewFormatStringOld

public String _setNewFormatStringOld(String newString,
                                     String old)

_factoryMethodArgumentTypeFromString

public int _factoryMethodArgumentTypeFromString(String string)

_stringForFactoryMethodArgumentType

public String _stringForFactoryMethodArgumentType(int type)

_definitionArray

protected com.webobjects.eoaccess._EOExpressionArray _definitionArray()

_setDefinitionArray

protected void _setDefinitionArray(com.webobjects.eoaccess._EOExpressionArray definitionArray)

_setDefinitionWithoutFlushingCaches

protected void _setDefinitionWithoutFlushingCaches(String definition)

_setValuesFromTargetAttribute

protected void _setValuesFromTargetAttribute()

_objectForPlist

protected Object _objectForPlist(Object plist)

_removeFromEntityArraySelector

protected void _removeFromEntityArraySelector(NSArray oldArray,
                                              NSSelector sel)

_normalizeDefinitionPath

protected Object _normalizeDefinitionPath(Object definition,
                                          NSArray attributePath)

_flushCache

public void _flushCache()

valueForSQLExpression

public String valueForSQLExpression(EOSQLExpression context)
Specified by:
valueForSQLExpression in interface EOSQLExpression.SQLValue

setChangeNotificationOptions

public void setChangeNotificationOptions(EOChangeNotificationOptions changeNotificationOptions)

changeNotificationOptions

public EOChangeNotificationOptions changeNotificationOptions()

Last updated: Wed, Feb 22, 2012 • 07:00 AM EST

Copyright © 2002 – 2011 Project Wonder.