de.schwarzrot.data.access.support
Class EntityDescriptor
java.lang.Object
de.schwarzrot.data.access.support.EntityDescriptor
public class EntityDescriptor
- extends Object
an description container like Class- or BeanInfo class, that
holds meta-information about an entity. As the default java introspection is
not usable for this persistence layer, we do the introspection by ourself -
mainly to get rid of types used with generics.
- Author:
- Reinhard Mantey
Method Summary |
void |
cleanup()
|
void |
dump()
|
protected void |
evaluateProperties(Class<?> entityType)
|
|
getEntityType()
|
|
getEntityType(DataAccessor ds)
|
Map<String,PropertyInfo> |
getForeigns()
|
String |
getMappedName(PropertyInfo pi)
|
Map<String,String> |
getMappings()
|
String |
getName()
|
Map<String,PropertyInfo> |
getNamedChildren()
|
List<SortInfo> |
getOrder()
|
Class<?> |
getParentType()
|
Map<String,PropertyInfo> |
getPersistenceAttributes()
|
String |
getPhysName()
|
String |
getPhysName(String propertyName)
|
Map<String,PropertyInfo> |
getProperties()
|
String |
getSchema()
|
Map<String,Integer> |
getSkipList()
|
List<String> |
getUniqueColumnNames()
|
Map<String,PropertyInfo> |
getUnnamedChildren()
|
Map<String,Integer> |
getUserAttributes()
|
String |
getVariantColName()
|
Map<Object,String> |
getVariantTypeMap()
|
protected Entity |
investigate(Class<?> entityType)
|
protected void |
investigateRelations()
|
boolean |
isUserType()
|
boolean |
isVirtual()
|
void |
setSchema(String schema)
|
void |
setVirtual(boolean virtual)
|
boolean |
shouldSkip(String propertyName)
|
protected void |
validatePropertyInfo(Class<?> entityType,
PropertyInfo pi)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityDescriptor
public EntityDescriptor(Class<?> entityType)
cleanup
public void cleanup()
dump
public void dump()
getEntityType
public <E extends Entity> Class<E> getEntityType()
throws ClassNotFoundException
- Throws:
ClassNotFoundException
getEntityType
public <E extends Entity> Class<E> getEntityType(DataAccessor ds)
getForeigns
public final Map<String,PropertyInfo> getForeigns()
getMappedName
public String getMappedName(PropertyInfo pi)
getMappings
public final Map<String,String> getMappings()
getName
public final String getName()
getNamedChildren
public final Map<String,PropertyInfo> getNamedChildren()
getOrder
public List<SortInfo> getOrder()
getParentType
public final Class<?> getParentType()
getPersistenceAttributes
public final Map<String,PropertyInfo> getPersistenceAttributes()
getPhysName
public final String getPhysName()
getPhysName
public String getPhysName(String propertyName)
getProperties
public final Map<String,PropertyInfo> getProperties()
getSchema
public final String getSchema()
getSkipList
public final Map<String,Integer> getSkipList()
getUniqueColumnNames
public final List<String> getUniqueColumnNames()
getUnnamedChildren
public final Map<String,PropertyInfo> getUnnamedChildren()
getUserAttributes
public final Map<String,Integer> getUserAttributes()
getVariantColName
public String getVariantColName()
getVariantTypeMap
public Map<Object,String> getVariantTypeMap()
isUserType
public final boolean isUserType()
isVirtual
public final boolean isVirtual()
setSchema
public final void setSchema(String schema)
setVirtual
public final void setVirtual(boolean virtual)
shouldSkip
public boolean shouldSkip(String propertyName)
evaluateProperties
protected void evaluateProperties(Class<?> entityType)
investigate
protected Entity investigate(Class<?> entityType)
investigateRelations
protected void investigateRelations()
validatePropertyInfo
protected void validatePropertyInfo(Class<?> entityType,
PropertyInfo pi)
Submit
a bug or request a feature
SRJRCFrames is published according to the
GNU General Public License
Copyright 2005-2012
Reinhard Mantey - some rights reserved.