| |
|
| java.lang.Object org.jpox.metadata.MetaData org.jpox.metadata.AbstractClassMetaData org.jpox.metadata.InterfaceMetaData
InterfaceMetaData | public class InterfaceMetaData extends AbstractClassMetaData (Code) | | Representation of the MetaData of a "persistent-interface".
since: 1.1 version: $Revision: 1.44 $ |
Constructor Summary | |
public | InterfaceMetaData(PackageMetaData parent, String name, String identityType, String objectidClass, String requiresExtent, String detachable, String embeddedOnly, String catalog, String schema, String table, String entityName) Constructor. |
InterfaceMetaData | public InterfaceMetaData(PackageMetaData parent, String name, String identityType, String objectidClass, String requiresExtent, String detachable, String embeddedOnly, String catalog, String schema, String table, String entityName)(Code) | | Constructor.
Takes the basic string information found in the MetaData file.
Parameters: parent - The package to which this class belongs Parameters: name - Name of class Parameters: identityType - Type of identity Parameters: objectidClass - Class of the object id Parameters: requiresExtent - Whether the class requires an extent Parameters: detachable - Whether this is detachable Parameters: embeddedOnly - embedded-only tag Parameters: catalog - Name for catalog Parameters: schema - Name for schema Parameters: table - Name of the table where to persist objects of this type Parameters: entityName - the entity name required by JPA §4.3.1 |
addMetaDataForMembersNotInMetaData | protected void addMetaDataForMembersNotInMetaData(Class cls)(Code) | | Add MetaData for properties of the interface not declared in MetaData.
Parameters: cls - Class represented by this metadata |
initialise | public void initialise()(Code) | | Method to initialise the object, creating internal convenience arrays.
Initialises all sub-objects. If populate() is going to be used it should
be used BEFORE calling this method.
|
newDefaultedProperty | protected AbstractMemberMetaData newDefaultedProperty(String name)(Code) | | Utility to add a defaulted PropertyMetaData to the class.
Provided as a method since then any derived classes can override it.
Parameters: name - name of field the new PropertyMetaData |
populate | public synchronized void populate(ClassLoaderResolver clr, ClassLoader primary)(Code) | | Method to provide the details of the class being represented by this
MetaData. This can be used to firstly provide defaults for attributes
that aren't specified in the MetaData, and secondly to report any errors
with attributes that have been specifed that are inconsistent with the
class being represented.
One possible use of this method would be to take a basic ClassMetaData
for a class and call this, passing in the users class. This would then
add AbstractMemberMetaData for all fields in this class providing defaults for
all of these.
Parameters: clr - ClassLoaderResolver to use in loading any classes Parameters: primary - the primary ClassLoader to use (or null) |
populatePropertyMetaData | protected void populatePropertyMetaData(ClassLoaderResolver clr, Class cls, boolean pkFields, ClassLoader primary)(Code) | | Populate PropertyMetaData.
Parameters: clr - The ClassLoader Parameters: cls - This class Parameters: pkFields - Process pk fields (or non-PK fields if false) Parameters: primary - the primary ClassLoader to use (or null) throws: InvalidMetaDataException - if the Class for a declared type in a field cannot be loaded by the clr throws: InvalidMetaDataException - if a field declared in the MetaData does not exist in the Class |
toString | public String toString(String prefix, String indent)(Code) | | Returns a string representation of the object.
This can be used as part of a facility to output a MetaData file.
Parameters: prefix - prefix string Parameters: indent - indent string a string representation of the object. |
|
|
|