SRJRCFrames
v0.1.296

de.schwarzrot.data.access.support
Class EntityDescriptor

java.lang.Object
  extended by 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

Constructor Summary
EntityDescriptor(Class<?> entityType)
           
 
Method Summary
 void cleanup()
           
 void dump()
           
protected  void evaluateProperties(Class<?> entityType)
           
<E extends Entity>
Class<E>
getEntityType()
           
<E extends Entity>
Class<E>
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
 

Constructor Detail

EntityDescriptor

public EntityDescriptor(Class<?> entityType)
Method Detail

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)

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
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.