|
SRJRCFrames v0.1.296 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.schwarzrot.data.access.support.EntityIntrospector
public class EntityIntrospector
base class to storage dependant introspection. It acts like a decorator
factory, which by default returns an EntityDescriptor. That
EntityDescriptor does the introspection of the java class and this
EntityIntrospector changes that information to match the physical
datastorage information needs.
This implementation applies defined mappings to physical names and offers dedicated calls for subclasses to add their informations.
| Constructor Summary | |
|---|---|
EntityIntrospector()
|
|
| Method Summary | |
|---|---|
void |
dumpCache()
|
EntityDescriptor |
getEntityDescriptor(Class<?> entityType,
Object handle)
ensures that entity introspection will happen only once in the lifetime of the application. |
protected org.apache.commons.logging.Log |
getLogger()
|
protected String |
getMapped(String propertyName)
callback to extend introspection. |
protected void |
initForDescriptor(EntityDescriptor ed,
Object handle)
empty callback for subclasses to extend introspection. |
protected void |
patchPropertyInfo(PropertyInfo info,
EntityDescriptor ed)
callback to extend/change introspection. |
protected void |
validate(EntityDescriptor ed,
Object handle)
empty callback for subclasses to extend introspection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EntityIntrospector()
| Method Detail |
|---|
public void dumpCache()
public final EntityDescriptor getEntityDescriptor(Class<?> entityType,
Object handle)
entityType - the entity to introspecthandle - abstraction of an connection handle, in case physical data
storage needs to do some extra investigation
protected final org.apache.commons.logging.Log getLogger()
protected String getMapped(String propertyName)
propertyName - the logical property name
protected void initForDescriptor(EntityDescriptor ed,
Object handle)
PropertyInfo entries.
ed - the freshly created EntityDescriptorhandle - abstraction of an connection handle, in case physical data
storage needs to do some extra investigation
protected void patchPropertyInfo(PropertyInfo info,
EntityDescriptor ed)
info - the collected PropertyInfoed - the EntityDescriptor holding the PropertyInfo
entry
protected void validate(EntityDescriptor ed,
Object handle)
PropertyInfo entries.
ed - the EntityDescriptor to extendhandle - abstraction of an connection handle, in case physical data
storage needs to do some extra investigation
|
SRJRCFrames v0.1.296 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||