|
SRJRCFrames v0.1.296 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.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 EntityIntrospector
pn
- the logical property name
EntityIntrospector.getMapped(java.lang.String)
protected void initForDescriptor(EntityDescriptor ed, Object handle)
EntityIntrospector
PropertyInfo
entries.
initForDescriptor
in class EntityIntrospector
ed
- the freshly created EntityDescriptor
handle
- abstraction of an connection handle, in case physical data
storage needs to do some extra investigationprotected void patchPropertyInfo(PropertyInfo info, EntityDescriptor ed)
EntityIntrospector
patchPropertyInfo
in class EntityIntrospector
info
- the collected PropertyInfo
ed
- the EntityDescriptor
holding the PropertyInfo
entryprotected 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 columnprotected void validate(EntityDescriptor ed, Object handle)
EntityIntrospector
PropertyInfo
entries.
validate
in class EntityIntrospector
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 |