org.apache.cayenne.jpa.map
Class JpaClassDescriptor
java.lang.Object
org.apache.cayenne.jpa.map.JpaClassDescriptor
public class JpaClassDescriptor
- extends Object
Provides information about a class relevant to JPA, such potential persistence fields,
etc.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fieldDescriptors
protected Collection<JpaPropertyDescriptor> fieldDescriptors
propertyDescriptors
protected Collection<JpaPropertyDescriptor> propertyDescriptors
managedClass
protected Class<?> managedClass
access
protected AccessType access
JpaClassDescriptor
public JpaClassDescriptor(Class<?> managedClass)
propertyNameForGetter
public static String propertyNameForGetter(String getterName)
propertyNameForSetter
public static String propertyNameForSetter(String setterName)
getManagedClass
public Class<?> getManagedClass()
getAccess
public AccessType getAccess()
setAccess
public void setAccess(AccessType access)
getProperty
public JpaPropertyDescriptor getProperty(String name)
- Returns descriptor matching the property name. If the underlying entity map uses
FIELD access, a descriptor is looked up in the list of class fields, if it uses
PROPERTY access - descriptor is looked up in the list of class properties.
getPropertyForMember
public JpaPropertyDescriptor getPropertyForMember(Member classMember)
- Returns descriptor matching the property name. Note that entity map access type is
ignored and instead field vs. property descriptor is determined from the member
type.
getFieldDescriptors
public Collection<JpaPropertyDescriptor> getFieldDescriptors()
getPropertyDescriptors
public Collection<JpaPropertyDescriptor> getPropertyDescriptors()
- Returns getters for public and protected methods that look like read/write bean
properties, as those are potential persistent properties.
compileFields
protected void compileFields()
compileProperties
protected void compileProperties()
Copyright © 2001-2008 Apache Cayenne. All Rights Reserved.