|
WebObjects 5.4.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webobjects.eoaccess.EOEntityIndex
public class EOEntityIndex
EOEntityIndex represent an index on an entity.
Constructor Summary | |
---|---|
EOEntityIndex()
|
|
EOEntityIndex(NSDictionary plist,
EOEntity owner)
Creates an EOEntityIndex object with the state specified in plist whose parent is owner . |
Method Summary | |
---|---|
void |
addAttribute(EOAttribute attribute)
Adds attribute to the receiver. |
NSArray |
attributes()
Return the list of attribute used by this index |
void |
awakeWithPropertyList(NSDictionary dic)
Finishes initializing the receiver from the property list dic , restoring references to other objects. |
com.webobjects.eoaccess.EOEntityIndex.Constraint |
constraint()
Returns the index constraint. |
void |
encodeIntoPropertyList(NSMutableDictionary result)
Encodes the receiver as a property list. |
EOEntity |
entity()
|
boolean |
isEmpty()
Checks if the receiver has any attribute defined. |
String |
name()
Returns the internal name of the index. |
com.webobjects.eoaccess.EOEntityIndex.Order |
order()
Returns the index order. |
void |
removeAttribute(EOAttribute attribute)
Removes attribute from the receiver. |
void |
setAttributes(NSArray value)
Sets the list of attributes used by this index |
void |
setConstraint(com.webobjects.eoaccess.EOEntityIndex.Constraint value)
Set the value of the index constraint. |
void |
setConstraint(String value)
Set the value of the index constraint. |
void |
setEntity(EOEntity value)
|
void |
setName(String name)
Sets the attribute's name to name , which can not be a name that is already in use by an attribute or relationship belonging to the same entity as the receiver. |
void |
setOrder(com.webobjects.eoaccess.EOEntityIndex.Order value)
Set the value of the index order. |
void |
setOrder(String value)
Set the value of the index order. |
void |
setType(com.webobjects.eoaccess.EOEntityIndex.Type value)
Set the value of the index type. |
void |
setType(String value)
Set the value of the index type. |
void |
setUserInfo(NSDictionary aDictionary)
Sets the dictionary of auxiliary data, which the application can use for whatever it needs. |
String |
toString()
|
com.webobjects.eoaccess.EOEntityIndex.Type |
type()
Returns the index type. |
NSDictionary |
userInfo()
Returns a dictionary of user data. |
String |
valueForSQLExpression(EOSQLExpression context)
Returns a String to be used to represent the receiver in an SQL statement. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EOEntityIndex()
public EOEntityIndex(NSDictionary plist, EOEntity owner)
plist
whose parent is owner
. The possible keys for plist
are: name
attributes
constrain
indexType
order
userInfo
plist
- A dictionary whose keys are attribute names and whose values are the attribute values for the new EOAttribute object.owner
- The parent object for the new EOAttribute.Method Detail |
---|
public void awakeWithPropertyList(NSDictionary dic)
EOPropertyListEncoding
dic
, restoring references to other objects.
Consequently, it should not be invoked until all other objects
from dic
that the receiver might reference have been
created. The receiver must have been created with a constructor of
the form:
public ClassName(NSDictionary propertyList, Object owner)
awakeWithPropertyList
in interface EOPropertyListEncoding
dic
- The property list representation of an object.public void encodeIntoPropertyList(NSMutableDictionary result)
EOPropertyListEncoding
encodeIntoPropertyList
in interface EOPropertyListEncoding
result
- A dictionary into which to encode the receiver.public String valueForSQLExpression(EOSQLExpression context)
EOSQLExpression.SQLValue
valueForSQLExpression
in interface EOSQLExpression.SQLValue
context
- an EOSQLExpression object used a context for the receiver
public String name()
public void setName(String name)
name
, which can not be a name that is already in use by an attribute or relationship belonging to the same entity as the receiver.
name
- The name to set for the attribute.EOEntityIndex.name()
,
EOEntityIndex.entity()
public NSArray attributes()
public void setAttributes(NSArray value)
value
- public void addAttribute(EOAttribute attribute)
attribute
to the receiver.
attribute
- public void removeAttribute(EOAttribute attribute)
attribute
from the receiver.
attribute
- public boolean isEmpty()
public com.webobjects.eoaccess.EOEntityIndex.Constraint constraint()
public void setConstraint(com.webobjects.eoaccess.EOEntityIndex.Constraint value)
value
- public void setConstraint(String value)
value
- public com.webobjects.eoaccess.EOEntityIndex.Type type()
public void setType(com.webobjects.eoaccess.EOEntityIndex.Type value)
value
- public void setType(String value)
value
- public com.webobjects.eoaccess.EOEntityIndex.Order order()
public void setOrder(com.webobjects.eoaccess.EOEntityIndex.Order value)
value
- public void setOrder(String value)
value
- public EOEntity entity()
public void setEntity(EOEntity value)
entity
- the entity to setpublic NSDictionary userInfo()
public void setUserInfo(NSDictionary aDictionary)
dictionary
of auxiliary data, which the application can use for whatever it needs. dictionary
can only contain property list data types (that is, NSDictionary, String, NSArray, and NSData).
aDictionary
- specifies dictionary of auxiliary datapublic String toString()
toString
in class Object
|
Last updated June 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |