net.wotonomy.access
Class EOAttribute

java.lang.Object
  extended by net.wotonomy.access.EOProperty
      extended by net.wotonomy.access.EOAttribute
All Implemented Interfaces:
EOPropertyListEncoding

public class EOAttribute
extends EOProperty
implements EOPropertyListEncoding

Represents an attribute inside an entity. Contains mapping data for the attribute's external name, external and internal datatypes, etc. It can also represent a flattened or derived attribute, or a prototype; and they are also used to represent parameters in a stored procedure.

Version:
$Revision: 894 $
Author:
ezamudio@nasoft.com, $Author: cgruber $

Field Summary
protected  boolean _allowsNull
           
protected  java.lang.String _className
           
protected  java.lang.String _columnName
           
protected  java.lang.String _definition
           
protected  EOEntity _entity
           
protected  java.lang.String _externalType
           
protected  boolean _has_allowsNull
           
protected  net.wotonomy.foundation.NSDictionary _internalInfo
           
protected  boolean _isFlattened
           
protected  boolean _knowsIfFlattened
           
protected  java.lang.String _name
           
protected  int _parameterDirection
           
protected  int _precision
           
protected  EOAttribute _prototype
           
protected  java.lang.String _prototypeName
           
protected  java.lang.String _readFormat
           
protected  boolean _readOnly
           
protected  int _scale
           
protected  net.wotonomy.foundation.NSDictionary _userInfo
           
protected  java.lang.Class _valueClass
           
protected  java.lang.String _valueClassName
           
protected  net.wotonomy.foundation.NSSelector _valueFactoryMethod
           
protected  java.lang.String _valueFactoryMethodName
           
protected  java.lang.String _valueType
           
protected  int _width
           
protected  java.lang.String _writeFormat
           
static int InOutParameter
           
static int InParameter
           
static int OutParameter
           
static int Void
           
 
Constructor Summary
EOAttribute()
           
EOAttribute(net.wotonomy.foundation.NSDictionary dict, java.lang.Object obj)
           
 
Method Summary
 boolean allowsNull()
           
 void awakeWithPropertyList(net.wotonomy.foundation.NSDictionary plist)
           
 java.lang.String className()
           
 java.lang.String columnName()
           
 java.lang.String definition()
           
 void encodeIntoPropertyList(net.wotonomy.foundation.NSMutableDictionary dict)
           
 EOEntity entity()
           
 java.lang.String externalType()
           
 boolean isDerived()
           
 boolean isFlattened()
          Determines whether the receiver is a flattened attribute.
 java.lang.String name()
           
 int parameterDirection()
           
 int precision()
           
 EOAttribute prototype()
           
 java.lang.String readFormat()
           
 boolean readOnly()
           
 java.lang.String relationshipPath()
           
 int scale()
           
 void setAllowsNull(boolean flag)
           
 void setClassName(java.lang.String name)
           
 void setColumnName(java.lang.String name)
           
 void setDefinition(java.lang.String def)
           
 void setExternalType(java.lang.String type)
           
 void setName(java.lang.String name)
           
 void setParameterDirection(int dir)
           
 void setPrecision(int value)
           
 void setPrototype(EOAttribute proto)
           
 void setReadFormat(java.lang.String value)
           
 void setReadOnly(boolean flag)
           
 void setScale(int value)
           
 void setUserInfo(net.wotonomy.foundation.NSDictionary value)
           
 void setValueClassName(java.lang.String name)
          Deprecated. Use setClassName instead.
 void setValueType(java.lang.String type)
           
 void setWidth(int value)
           
 void setWriteFormat(java.lang.String value)
           
 net.wotonomy.foundation.NSDictionary userInfo()
           
 java.lang.String valueClassName()
          Deprecated. Use className() instead.
 java.lang.String valueType()
           
 int width()
           
 java.lang.String writeFormat()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

_entity

protected EOEntity _entity

_name

protected java.lang.String _name

_columnName

protected java.lang.String _columnName

_definition

protected java.lang.String _definition

_className

protected java.lang.String _className

_externalType

protected java.lang.String _externalType

_valueClass

protected java.lang.Class _valueClass

_valueClassName

protected java.lang.String _valueClassName

_valueType

protected java.lang.String _valueType

_valueFactoryMethodName

protected java.lang.String _valueFactoryMethodName

_readFormat

protected java.lang.String _readFormat

_writeFormat

protected java.lang.String _writeFormat

_prototypeName

protected java.lang.String _prototypeName

_prototype

protected EOAttribute _prototype

_valueFactoryMethod

protected net.wotonomy.foundation.NSSelector _valueFactoryMethod

_allowsNull

protected boolean _allowsNull

_readOnly

protected boolean _readOnly

_isFlattened

protected boolean _isFlattened

_knowsIfFlattened

protected boolean _knowsIfFlattened

_precision

protected int _precision

_scale

protected int _scale

_width

protected int _width

_parameterDirection

protected int _parameterDirection

_internalInfo

protected net.wotonomy.foundation.NSDictionary _internalInfo

_userInfo

protected net.wotonomy.foundation.NSDictionary _userInfo

_has_allowsNull

protected boolean _has_allowsNull
Constructor Detail

EOAttribute

public EOAttribute()

EOAttribute

public EOAttribute(net.wotonomy.foundation.NSDictionary dict,
                   java.lang.Object obj)
Method Detail

setName

public void setName(java.lang.String name)

name

public java.lang.String name()
Specified by:
name in class EOProperty

setColumnName

public void setColumnName(java.lang.String name)

columnName

public java.lang.String columnName()

setClassName

public void setClassName(java.lang.String name)

className

public java.lang.String className()

setDefinition

public void setDefinition(java.lang.String def)

definition

public java.lang.String definition()

setExternalType

public void setExternalType(java.lang.String type)

externalType

public java.lang.String externalType()

setAllowsNull

public void setAllowsNull(boolean flag)

allowsNull

public boolean allowsNull()

setReadOnly

public void setReadOnly(boolean flag)

readOnly

public boolean readOnly()

setPrototype

public void setPrototype(EOAttribute proto)

prototype

public EOAttribute prototype()

setPrecision

public void setPrecision(int value)

precision

public int precision()

setScale

public void setScale(int value)

scale

public int scale()

setWidth

public void setWidth(int value)

width

public int width()

setValueClassName

public void setValueClassName(java.lang.String name)
Deprecated. Use setClassName instead.


valueClassName

public java.lang.String valueClassName()
Deprecated. Use className() instead.


setValueType

public void setValueType(java.lang.String type)

valueType

public java.lang.String valueType()

setReadFormat

public void setReadFormat(java.lang.String value)

readFormat

public java.lang.String readFormat()

setWriteFormat

public void setWriteFormat(java.lang.String value)

writeFormat

public java.lang.String writeFormat()

isDerived

public boolean isDerived()

isFlattened

public boolean isFlattened()
Determines whether the receiver is a flattened attribute. A flattened attribute has as its definition a relationship path that can be resolved to an attribute.

Returns:
true if the receiver is flattened.

entity

public EOEntity entity()

setParameterDirection

public void setParameterDirection(int dir)

parameterDirection

public int parameterDirection()

relationshipPath

public java.lang.String relationshipPath()
Specified by:
relationshipPath in class EOProperty

setUserInfo

public void setUserInfo(net.wotonomy.foundation.NSDictionary value)

userInfo

public net.wotonomy.foundation.NSDictionary userInfo()

awakeWithPropertyList

public void awakeWithPropertyList(net.wotonomy.foundation.NSDictionary plist)
Specified by:
awakeWithPropertyList in interface EOPropertyListEncoding

encodeIntoPropertyList

public void encodeIntoPropertyList(net.wotonomy.foundation.NSMutableDictionary dict)
Specified by:
encodeIntoPropertyList in interface EOPropertyListEncoding


Copyright © 2006 null. All Rights Reserved.