net.wotonomy.access
Class EOAttribute
java.lang.Object
net.wotonomy.access.EOProperty
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 $
Constructor Summary |
EOAttribute()
|
EOAttribute(net.wotonomy.foundation.NSDictionary dict,
java.lang.Object obj)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
EOAttribute
public EOAttribute()
EOAttribute
public EOAttribute(net.wotonomy.foundation.NSDictionary dict,
java.lang.Object obj)
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.