|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bm.introspectors.AbstractPersistentClassIntrospector<T>
T
- -
the type of the class to inspectpublic abstract class AbstractPersistentClassIntrospector<T>
This class implements the common methods for all concrete inspectors.
Field Summary | |
---|---|
protected java.util.Map<Property,PersistentPropertyInfo> |
fieldInfo
holds the meta information for persistent fields * |
protected java.util.Map<Property,PrimaryKeyInfo> |
pkFieldInfo
holds the meta information for primary key fields * |
Constructor Summary | |
---|---|
AbstractPersistentClassIntrospector()
|
Method Summary | |
---|---|
protected void |
extractGenerator(java.lang.annotation.Annotation[] propertyAnnotations,
PrimaryKeyInfo info)
|
java.lang.Object |
getField(T instance,
Property toGet)
Returns a value of an field. |
protected abstract org.apache.log4j.Logger |
getLogger()
Returns the logger for this class. |
java.util.List<Property> |
getPersitentProperties()
Returns the persistent fields. |
java.util.Set<Property> |
getPkFields()
Return the primary key fields. |
PersistentPropertyInfo |
getPresistentFieldInfo(Property toCheck)
This method returns informations about a persistent field. |
PrimaryKeyInfo |
getPrimaryKeyInfo(Property toCheck)
This method returns informations about a persistent field. |
java.lang.Class<T> |
getRepresentingClass()
Returns the representingClass. |
java.util.List<Property> |
getTransientFields()
Returns the transientFields. |
protected void |
processAccessTypeField(java.lang.Class<T> toInspect)
If the access type is field, we will extract all the necessary meta informations form the fields |
protected void |
processAccessTypeProperty(java.lang.Class<T> toInspect)
If the access type is property, we will extract all the necessary meta informations form the getter methods |
void |
setField(T instance,
Property toSet,
java.lang.Object value)
Sets a value of the field. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.util.Map<Property,PersistentPropertyInfo> fieldInfo
protected final java.util.Map<Property,PrimaryKeyInfo> pkFieldInfo
Constructor Detail |
---|
public AbstractPersistentClassIntrospector()
Method Detail |
---|
protected void processAccessTypeField(java.lang.Class<T> toInspect)
toInspect
- -
the class to inspectprotected void processAccessTypeProperty(java.lang.Class<T> toInspect)
toInspect
- -
the class to inspectpublic PersistentPropertyInfo getPresistentFieldInfo(Property toCheck)
getPresistentFieldInfo
in interface Introspector<T>
toCheck
- the property for persistent db field
Introspector.getPresistentFieldInfo(Property)
public PrimaryKeyInfo getPrimaryKeyInfo(Property toCheck)
getPrimaryKeyInfo
in interface Introspector<T>
toCheck
- the property for primary key
Introspector.getPrimaryKeyInfo(Property)
public java.util.List<Property> getPersitentProperties()
getPersitentProperties
in interface Introspector<T>
Introspector.getPersitentProperties()
public java.util.Set<Property> getPkFields()
getPkFields
in interface Introspector<T>
Introspector.getPkFields()
public java.util.List<Property> getTransientFields()
public java.lang.Object getField(T instance, Property toGet) throws java.lang.IllegalAccessException
getField
in interface Introspector<T>
instance
- -
the instance (Typed)toGet
- -
the parameter to get
java.lang.IllegalAccessException
- -
in error casepublic void setField(T instance, Property toSet, java.lang.Object value) throws java.lang.IllegalAccessException
setField
in interface Introspector<T>
instance
- -
the instance (Typed)toSet
- -
the parameter to setvalue
- -
the new value
java.lang.IllegalAccessException
- -
in error casepublic java.lang.Class<T> getRepresentingClass()
protected void extractGenerator(java.lang.annotation.Annotation[] propertyAnnotations, PrimaryKeyInfo info)
protected abstract org.apache.log4j.Logger getLogger()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |