ERXEntity Class Reference

Inherits com::webobjects::eoaccess::EOEntity.

Collaboration diagram for ERXEntity:

Collaboration graph
[legend]

List of all members.

Public Member Functions

EOAttribute anyAttributeNamed (String name)
 ERXEntity (NSDictionary plist, Object owner)
 ERXEntity ()
boolean hasExternalName ()
void setClassDescription (EOClassDescription classDescription)

Protected Member Functions

EOKeyGlobalID _globalIDWithoutTypeCoercion (Object[] values)

Static Private Attributes

static final Pattern NeededByEOFPattern = Pattern.compile( "\\QNeededByEOF\\E(\\d+)" )


Detailed Description

ERXEntity provides a basic subclass of EOEntity providing a simple fix for vertical inheritance.

Note: If you plan on subclassing EOEntity or ERXEntity you MUST put your subclass in the same package if you want it to work. There are numerous default and protected instance methods within EOEntity itself that will fail to resolve at runtime if your subclass is in another package!

See also:
EOEntity
Author:
ldeck

Constructor & Destructor Documentation

ERXEntity (  ) 

Creates and returns a new ERXEntity.

ERXEntity ( NSDictionary  plist,
Object  owner 
)

Creates and returns a new EOEntity initialized from the property list plist belonging to the EOModel owner. plist is dictionary containing only property list data types (that is, NSDictionary, NSArray, NSData, and String). This constructor is used by EOModeler when it reads in an EOModel from a file.

Parameters:
plist - A dictionary of property list values from which to initialize the new EOEntity object.
owner - The EOModel to which the newly created entity belongs.
See also:
EOPropertyListEncoding.encodeIntoPropertyList(NSMutableDictionary propertyList)

EOPropertyListEncoding.awakeWithPropertyList(NSDictionary propertyList)


Member Function Documentation

EOKeyGlobalID _globalIDWithoutTypeCoercion ( Object[]  values  )  [protected]

Overridden through our bottleneck.

EOAttribute anyAttributeNamed ( String  name  ) 

ldeck radar bug#6302622.

Relating two sub-entities in vertical inheritance can fail to resolve the foreign key for inserts. i.e., NeededByEOF<index> was not dealt with. The simple fix is to return the primary key attribute at the given index.

See also:
com.webobjects.eoaccess.EOEntity.anyAttributeNamed(java.lang.String)

boolean hasExternalName (  ) 

See also:
com.webobjects.eoaccess.EOEntity.hasExternalName()
Since:
5.4.1

void setClassDescription ( EOClassDescription  classDescription  ) 

Sets the class description for the instance.

Parameters:
classDescription - the EOClassDescription to associate with the receiver.


Member Data Documentation

final Pattern NeededByEOFPattern = Pattern.compile( "\\QNeededByEOF\\E(\\d+)" ) [static, private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:31 2012 for Project Wonder by  doxygen 1.5.8