|
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
de.schwarzrot.data.access.jdbc.JDBCEntityIntrospector
public class JDBCEntityIntrospector
class to complete entity introspection for jdbc data storage systems. All
unmapped physical names are set to lower case and the PropertyInfo
entry is patched with the database model information.
| Constructor Summary | |
|---|---|
JDBCEntityIntrospector()
|
|
| Method Summary | |
|---|---|
protected String |
getMapped(String pn)
change all column-names to lower case value of property names |
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 |
setPersistenceInfo(EntityDescriptor ed,
String colName,
int colType,
int colSize,
int colDecimals)
add database model information to PropertyInfo entry and marks
that property as being persistent. |
protected void |
validate(EntityDescriptor ed,
Object handle)
empty callback for subclasses to extend introspection. |
| Methods inherited from class de.schwarzrot.data.access.support.EntityIntrospector |
|---|
dumpCache, getEntityDescriptor, getLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JDBCEntityIntrospector()
| Method Detail |
|---|
protected String getMapped(String pn)
getMapped in class EntityIntrospectorpn - the logical property name
EntityIntrospector.getMapped(java.lang.String)
protected void initForDescriptor(EntityDescriptor ed,
Object handle)
EntityIntrospectorPropertyInfo entries.
initForDescriptor in class EntityIntrospectored - 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)
EntityIntrospector
patchPropertyInfo in class EntityIntrospectorinfo - the collected PropertyInfoed - the EntityDescriptor holding the PropertyInfo
entry
protected void setPersistenceInfo(EntityDescriptor ed,
String colName,
int colType,
int colSize,
int colDecimals)
PropertyInfo entry and marks
that property as being persistent.
colName - column name from databasecolType - column type from databasecolSize - column size from databasecolDecimals - number of decimal digits for that column
protected void validate(EntityDescriptor ed,
Object handle)
EntityIntrospectorPropertyInfo entries.
validate in class EntityIntrospectored - 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 | |||||||||