public static enum ERXKey.Type extends Enum<ERXKey.Type>
Enum Constant and Description |
---|
Attribute
Indicates that this key represents an
EOAttribute defined in
the EOModel . |
NonModelAttribute
Indicates that this key represents a visible method or ivar that
returns an object of type T, but does not have a corresponding
relationship entry in the
EOModel and therefore cannot be
used to instantiate objects that will impact SQL generation. |
NonModelToManyRelationship
Indicates that this key represents a visible instance member that
returns an array of
EOEnterpriseObject instances of type T,
but does not have a corresponding relationship entry in the
EOModel and therefore cannot be used to instantiate objects
that will impact SQL generation. |
NonModelToOneRelationship
Indicates that this key represents a visible instance member that
returns an instance of
EOEnterpriseObject of type T, but does
not have a corresponding relationship entry in the EOModel
and therefore cannot be used to instantiate objects that will impact
SQL generation. |
Operator
Indicates that this key represents an
NSArray.Operator , e.g.,
@sum ,
@flatten ,
@fetchSpec ,
@min |
ToManyRelationship
Indicates that this key represents an
EORelationship defined
in the EOModel that will return true for
EORelationship.isToMany() . |
ToOneRelationship
Indicates that this key represents an
EORelationship defined
in the EOModel that will return false for
EORelationship.isToMany() . |
Modifier and Type | Method and Description |
---|---|
static ERXKey.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ERXKey.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ERXKey.Type Attribute
EOAttribute
defined in
the EOModel
. Since it is defined in the model it can be used
when instantiating Objects that impact SQL generation, e.g.,
EOQualifier
and EOSortOrdering
.public static final ERXKey.Type ToOneRelationship
EORelationship
defined
in the EOModel
that will return false
for
EORelationship.isToMany()
. Since it is defined in the model
it can be used when instantiating Objects that impact SQL generation,
e.g., EOQualifier
and EOSortOrdering
.public static final ERXKey.Type ToManyRelationship
EORelationship
defined
in the EOModel
that will return true
for
EORelationship.isToMany()
. Since it is defined in the model
it can be used when instantiating Objects that impact SQL generation,
e.g., EOQualifier
and EOSortOrdering
.public static final ERXKey.Type Operator
NSArray.Operator
, e.g.,
@sum
,
@flatten
,
@fetchSpec
,
@min
Note: this Type is not recognized by the
ERXKeyFilter#matches(ERXKey, Type)
and will not be included
in ERXKeyFilter.includeAll()
,
ERXKeyFilter.includeAttributes()
nor
ERXKeyFilter.includeAttributesAndToOneRelationships()
because
ERXKeyFilter
can only be used with ERXKey
s that
represent a single key NSArray.Operator
s represent a keypath.
public static final ERXKey.Type NonModelAttribute
EOModel
and therefore cannot be
used to instantiate objects that will impact SQL generation. e.g.,
EOQualifier
and EOSortOrdering
.
Note: this ERXKey.Type is not recognized by the
ERXKeyFilter#matches(ERXKey, Type)
and will not be included
in ERXKeyFilter.includeAll()
,
ERXKeyFilter.includeAttributes()
nor
ERXKeyFilter.includeAttributesAndToOneRelationships()
.
TODO: Additional work needs to be done to validate that ERRest's use of ERXKeyFilter is compatible with this ERXKey.Type.
public static final ERXKey.Type NonModelToOneRelationship
EOEnterpriseObject
of type T, but does
not have a corresponding relationship entry in the EOModel
and therefore cannot be used to instantiate objects that will impact
SQL generation. e.g., EOQualifier
and EOSortOrdering
.
Note: this ERXKey.Type is not recognized by the
ERXKeyFilter#matches(ERXKey, Type)
and will not be included
in ERXKeyFilter.includeAll()
,
ERXKeyFilter.includeAttributes()
nor
ERXKeyFilter.includeAttributesAndToOneRelationships()
.
TODO: Additional work needs to be done to validate that ERRest's use of ERXKeyFilter is compatible with this ERXKey.Type.
public static final ERXKey.Type NonModelToManyRelationship
EOEnterpriseObject
instances of type T,
but does not have a corresponding relationship entry in the
EOModel
and therefore cannot be used to instantiate objects
that will impact SQL generation. e.g., EOQualifier
and
EOSortOrdering
.
Note: this ERXKey.Type is not recognized by the
ERXKeyFilter#matches(ERXKey, Type)
and will not be included
in ERXKeyFilter.includeAll()
,
ERXKeyFilter.includeAttributes()
nor
ERXKeyFilter.includeAttributesAndToOneRelationships()
.
TODO: Additional work needs to be done to validate that ERRest's use of ERXKeyFilter is compatible with this ERXKey.Type.
public static ERXKey.Type[] values()
for (ERXKey.Type c : ERXKey.Type.values()) System.out.println(c);
public static ERXKey.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2002 – 2024 Project Wonder.