net.sf.gilead.core.beanlib.mapper
Class ProxyClassMapper
java.lang.Object
net.sf.gilead.core.beanlib.mapper.ProxyClassMapper
- All Implemented Interfaces:
- IClassMapper
public class ProxyClassMapper
- extends java.lang.Object
- implements IClassMapper
Class mapper for domain and proxy
- Author:
- bruno.marchesson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_persistenceUtil
protected IPersistenceUtil _persistenceUtil
- The associated persistence util
_java5
protected boolean _java5
- For newly created proxy, must we use Java5 or Java 1.4 generator
ProxyClassMapper
public ProxyClassMapper()
getPersistenceUtil
public IPersistenceUtil getPersistenceUtil()
- Returns:
- the associated Persistence Util
setPersistenceUtil
public void setPersistenceUtil(IPersistenceUtil persistenceUtil)
- Parameters:
persistenceUtil
- the persistenceUtil to set
isJava5
public boolean isJava5()
- Returns:
- is Java5 used for proxy generation ?
setJava5
public void setJava5(boolean java5)
- Parameters:
java5
- must Java5 be used for proxy generation ?
getSourceClass
public java.lang.Class<?> getSourceClass(java.lang.Class<?> targetClass)
- Specified by:
getSourceClass
in interface IClassMapper
- Returns:
- the mapped class for the argument class
getTargetClass
public java.lang.Class<?> getTargetClass(java.lang.Class<?> sourceClass)
- Specified by:
getTargetClass
in interface IClassMapper
- Returns:
- the mapped class for the argument class