Up
Authors
- Mirko Viviani (
mirko.viviani@gmail.com
)
-
- Manuel Guesdon (
mguesdon@orange-concept.com
)
-
Version: 26597
Date: 2008-06-06 11:26:14 +0200 (Fre, 06 Jun 2008)
Copyright: (C)
2000-2002,2003,2004,2005 Free Software
Foundation, Inc.
- Declared in:
- EOAccess/EOAttribute.h
- Conforms to:
- EOPropertyListEncoding
Description forthcoming.
Instance Variables
Method summary
+ (id)
attributeWithPropertyList: (NSDictionary*)propertyList
owner: (id)owner;
returns an autoreleased attribute owned by onwer
and built from propertyList
- (BOOL)
allowsNull;
Description forthcoming.
- (NSString*)
columnName;
Description forthcoming.
- (NSString*)
definition;
Description forthcoming.
- (NSString*)
docComment;
Description forthcoming.
- (
EOEntity*)
entity;
Description forthcoming.
- (NSString*)
externalType;
Returns the adaptor specific name of
externalType. This is the name use during
SQL generation.
If the externalType has not been set explicitly and
the reciever
-isFlattened
, the valueClassName of the flattened attribute is
returned.
Otherwise, if the reciever has a prototype
then the externalType of the prototype is returned.
If all that fails, this method returns
nil
.
- (BOOL)
isDerived;
Return NO
when the attribute
corresponds to one SQL column in its entity
associated table return YES
otherwise. An attribute with a definition such
as "anotherAttributeName * 2" is derived. A Flattened
attribute is also a derived attributes.
- (BOOL)
isFlattened;
Returns YES
if the attribute is
flattened, NO
otherwise. A
flattened attribute is an attribute with a
definition using a relationship to another
entity. A Flattened attribute is also a derived
attribute.
- (BOOL)
isKeyDefinedByPrototype: (NSString*)key;
Description forthcoming.
- (BOOL)
isReadOnly;
Description forthcoming.
- (NSString*)
name;
Description forthcoming.
- (EOParameterDirection)
parameterDirection;
Description forthcoming.
- (id)
parent;
Description forthcoming.
- (unsigned int)
precision;
Description forthcoming.
- (NSString*)
prototypeName;
Description forthcoming.
- (NSString*)
readFormat;
Description forthcoming.
- (int)
scale;
Description forthcoming.
- (NSDictionary*)
userInfo;
Description forthcoming.
- (NSString*)
valueClassName;
Returns the name of the class values of this
attribute are represented by. The standard
classes are NSNumber, NSString, NSData and NSDate
for the corresponding
-adaptorValueType
. A model can define more specific classes like
NSDecimalNumber, NSCalendarDate and
NSImage or custom classes which implement a
factory method specified by
[-valueFactoryMethodName]
to create instances with the data supplied by the data
source.
If the valueClassName has not been set explicitly and
the reciever
-isFlattened
, the valueClassName of the flattened attribute is
returned.
Otherwise, if the reciever has a prototype
then the valueClassName of the prototype is
returned.
If all that fails, this method returns
nil
.
See also:[setValueClassName:]
- (NSString*)
valueType;
Returns a one character string identifiying the
underlying C type of an NSNumber
-valueType
. The legal values in GDL2 are:
-
@"c": char
-
@"C": unsigned
char
-
@"s": short
-
@"S": unsigned
short
-
@"i": int
-
@"I": unsigned
int
-
@"l": long
-
@"L": unsigned
long
-
@"u": long long
-
@"U": unsigned
long long
-
@"f": float
-
@"d": double
If the valueType has not been set explicitly and the
reciever
-isFlattened
, the valueClassName of the flattened attribute is
returned.
Otherwise, if the reciever has a prototype
then the valueType of the prototype is returned.
If all that fails, this method returns
nil
.
- (unsigned int)
width;
Description forthcoming.
- (NSString*)
writeFormat;
Description forthcoming.
Instance Variables for EOAttribute Class
@protected SEL _adaptorValueConversionMethod;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSString* _adaptorValueConversionMethodName;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected EOAdaptorValueType _adaptorValueType;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected EOFactoryMethodArgumentType _argumentType;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSString* _columnName;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected EOExpressionArray* _definitionArray;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSString* _docComment;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSString* _externalType;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected struct ... _flags;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSDictionary* _internalInfo;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSString* _name;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected EOParameterDirection _parameterDirection;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected id _parent;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected unsigned short int _precision;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected EOAttribute* _prototype;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSString* _readFormat;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected EOAttribute* _realAttribute;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected short int _scale;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSTimeZone* _serverTimeZone;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSDictionary* _sourceToDestinationKeyMap;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSDictionary* _userInfo;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected Class _valueClass;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSString* _valueClassName;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected SEL _valueFactoryMethod;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSString* _valueFactoryMethodName;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSString* _valueType;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected unichar _valueTypeCharacter;
First char of _valueType or \0
Warning the underscore at the start
of the name of this instance variable indicates that,
even though it is not technically private, it
is intended for internal use within the package, and you
should not use the variable in other code.
@protected unsigned int _width;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected NSString* _writeFormat;
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
@protected unsigned int extraRefCount;
Description forthcoming.
- Declared in:
- EOAccess/EOAttribute.h
Description forthcoming.
Method summary
- (id)
_normalizeDefinition: (EOExpressionArray*)definition
path: (id)path;
Warning the underscore at the start of the
name of this method indicates that it is private, for
internal use only, and you should not use the
method in your code.
- (void)
setAllowsNull: (BOOL)allowsNull;
Description forthcoming.
- (void)
setColumnName: (NSString*)columnName;
Description forthcoming.
- (void)
setDefinition: (NSString*)definition;
Sets the definition of a derived
attribute.
An EOAttribute can either reference column from the
entites external representation or define a
derived attribute such a cacluclated value or a
key path. The values to these attributes are cached
in memory.
Up