org.openrdf.repository.object.composition
Class PropertyMapperFactory

java.lang.Object
  extended by org.openrdf.repository.object.composition.BehaviourFactory
      extended by org.openrdf.repository.object.composition.PropertyMapperFactory

public class PropertyMapperFactory
extends BehaviourFactory

Properties that have the rdf or localname annotation are replaced with getters and setters that access the Sesame Repository directly.

Author:
James Leigh

Field Summary
 
Fields inherited from class org.openrdf.repository.object.composition.BehaviourFactory
BEAN_FIELD_NAME, CLASS_PREFIX, cp, properties
 
Constructor Summary
PropertyMapperFactory()
           
 
Method Summary
protected  void enhance(ClassTemplate cc, Class<?> concept)
           
static Class<?> getClassType(Method method)
           
static Class<?> getContentClassType(Method method)
           
static Type[] getContentTypeArguments(Method method)
           
protected  String getJavaClassName(Class<?> concept)
           
static String getLoadedMethod(Field field)
           
static String getMapperClassNameFor(Class<?> concept)
           
static String getReadMethod(Field field)
           
static Type[] getTypeArguments(Method method)
           
static String getWriteMethod(Field field)
           
protected  boolean isEnhanceable(Class<?> concept)
           
 
Methods inherited from class org.openrdf.repository.object.composition.BehaviourFactory
createBehaviourTemplate, createClassTemplate, findBehaviour, findImplementations, findImplementations, findImplementations, getImplementingClasses, isBaseClass, isOverridden, setBaseClasses, setClassDefiner, setPropertyMapper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyMapperFactory

public PropertyMapperFactory()
Method Detail

getMapperClassNameFor

public static String getMapperClassNameFor(Class<?> concept)

getLoadedMethod

public static String getLoadedMethod(Field field)
                              throws Exception
Throws:
Exception

getReadMethod

public static String getReadMethod(Field field)
                            throws Exception
Throws:
Exception

getWriteMethod

public static String getWriteMethod(Field field)
                             throws Exception
Throws:
Exception

getClassType

public static Class<?> getClassType(Method method)

getContentClassType

public static Class<?> getContentClassType(Method method)

getTypeArguments

public static Type[] getTypeArguments(Method method)

getContentTypeArguments

public static Type[] getContentTypeArguments(Method method)

isEnhanceable

protected boolean isEnhanceable(Class<?> concept)
                         throws ObjectStoreConfigException
Specified by:
isEnhanceable in class BehaviourFactory
Throws:
ObjectStoreConfigException

getJavaClassName

protected String getJavaClassName(Class<?> concept)
Overrides:
getJavaClassName in class BehaviourFactory

enhance

protected void enhance(ClassTemplate cc,
                       Class<?> concept)
                throws Exception
Overrides:
enhance in class BehaviourFactory
Throws:
Exception


Copyright © 2004-2011 James Leigh Services Inc.. All Rights Reserved.