|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTypeHelper
org.objectweb.jorm.generator.lib.CommonHelper
org.objectweb.jorm.generator.lib.CommonJVMHelper
org.objectweb.jorm.generator.lib.CommonGenerator
This class contains the common elements for generating jorm objects (mapping, binding, accessors).
Field Summary | |
static java.lang.String |
GEN_TEMPLATE_DIR
|
protected Logger |
logger
The logger instance which logs the traces of the generator. |
protected LoggerFactory |
loggerFactory
The logger factory instance which permits to fetch Logger instance. |
static java.lang.String |
MAPPER_TEMPLATE_DIR
The base directory where to find velocity template. |
protected Template |
template
The main velocity template for the generator |
protected VelocityEngine |
velocityEngine
|
Fields inherited from class org.objectweb.jorm.generator.lib.CommonHelper |
debug, PN_GET_TYPES |
Constructor Summary | |
CommonGenerator()
|
Method Summary | |
Logger |
getLogger()
Returns a logger to an component that wants to log things. |
LoggerFactory |
getLoggerFactory()
Returns a logger factory that allows the creation of new loggers. |
java.lang.String[][] |
getTemplateLibraries()
|
void |
setLogger(Logger l)
Assigns a logger to an component that wants to log things. |
void |
setLoggerFactory(LoggerFactory lf)
Assigns a logger factory that allows the creation of new loggers. |
void |
setVelocityEngine(VelocityEngine ve)
|
Methods inherited from class org.objectweb.jorm.generator.lib.CommonJVMHelper |
any2I, getConstructorFieldsPncParam, getJVMClassName, getJVMClassName, getJVMClassName, getJVMType, getJVMType, loadNull, write, writeJavaClass |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String MAPPER_TEMPLATE_DIR
public static final java.lang.String GEN_TEMPLATE_DIR
protected Logger logger
protected LoggerFactory loggerFactory
protected VelocityEngine velocityEngine
protected Template template
Constructor Detail |
public CommonGenerator()
Method Detail |
public void setLoggerFactory(LoggerFactory lf)
Loggable
setLoggerFactory
in interface Loggable
setLoggerFactory
in class CommonHelper
public void setLogger(Logger l)
Loggable
setLogger
in interface Loggable
setLogger
in class CommonHelper
public Logger getLogger()
Loggable
getLogger
in interface Loggable
getLogger
in class CommonHelper
public LoggerFactory getLoggerFactory()
Loggable
getLoggerFactory
in interface Loggable
getLoggerFactory
in class CommonHelper
public void setVelocityEngine(VelocityEngine ve)
public java.lang.String[][] getTemplateLibraries()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |