org.objectweb.jorm.comp.generator.rdb
Class RdbMappingMOP

java.lang.Object
  |
  +--org.objectweb.jorm.comp.generator.lib.CommonHelper
        |
        +--org.objectweb.jorm.comp.generator.rdb.RdbCommonHelper
              |
              +--org.objectweb.jorm.comp.generator.rdb.RdbMappingMOP
All Implemented Interfaces:
Loggable, MOP

public class RdbMappingMOP
extends RdbCommonHelper
implements MOP


Inner classes inherited from class org.objectweb.jorm.comp.generator.lib.CommonHelper
CommonHelper.PNGDesc
 
Field Summary
protected static java.lang.String[] IMPLEMENTS
           
 
Fields inherited from class org.objectweb.jorm.comp.generator.rdb.RdbCommonHelper
adapter
 
Fields inherited from class org.objectweb.jorm.comp.generator.lib.CommonHelper
logger, loggerFactory, PN_GET_TYPES
 
Constructor Summary
RdbMappingMOP(RdbAdpater _tc)
           
 
Method Summary
 java.lang.String getCreateRequest(Class moc, CompilerParameter cp)
          This method builds the create request of a class
 java.lang.String getGetPNameXRequest(Class moc, CompilerParameter cp)
           
 java.lang.String[] getTemplateLibraries()
           
 void initContext(org.apache.velocity.context.Context ctx)
           
 
Methods inherited from class org.objectweb.jorm.comp.generator.rdb.RdbCommonHelper
getColumnName, getSqlGet
 
Methods inherited from class org.objectweb.jorm.comp.generator.lib.CommonHelper
canBeNullValue, containsCompositeName, containsCompositeReference, containsGenClassRef, containsReference, containsSerializedField, getCompositeNameDefEntries, getFQNOfCompositeName, getLogger, getLoggerFactory, getPaGetMethod, getPaSetMethod, getPNameDecodeFunction, getPNameEncodeFunction, getPNameGetterGetFunction, getPNGTypes, getPrimitiveElement, getProjectionField, getPType, getPTypeBigDecimal, getPTypeBoolean, getPTypeByte, getPTypeByteArray, getPTypeChar, getPTypeCharArray, getPTypeDate, getPTypeDouble, getPTypeFloat, getPTypeInt, getPTypeLong, getPTypeOboolean, getPTypeObyte, getPTypeOchar, getPTypeOdouble, getPTypeOfloat, getPTypeOint, getPTypeOlong, getPTypeOshort, getPTypeReference, getPTypeSerialized, getPTypeShort, getPTypeString, getSchemaName, isClass, isClassRef, isCompositeName, isFieldName, isGenClassRef, isHiddenField, isPrimitiveElement, isReference, isSerializedField, isSerializedType, isValidString, iterateCompositeName, iterateCompositeReference, setLogger, setLoggerFactory, upperFL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMPLEMENTS

protected static final java.lang.String[] IMPLEMENTS
Constructor Detail

RdbMappingMOP

public RdbMappingMOP(RdbAdpater _tc)
Method Detail

initContext

public void initContext(org.apache.velocity.context.Context ctx)
Specified by:
initContext in interface MOP

getTemplateLibraries

public java.lang.String[] getTemplateLibraries()
Specified by:
getTemplateLibraries in interface MOP

getCreateRequest

public java.lang.String getCreateRequest(Class moc,
                                         CompilerParameter cp)
                                  throws java.lang.Exception
This method builds the create request of a class
Parameters:
moc - is the meta object of the class
cp - is the compalerParameter which permits to reach the mapper name and the mapping name.
Returns:
the string of the sql create request

getGetPNameXRequest

public java.lang.String getGetPNameXRequest(Class moc,
                                            CompilerParameter cp)
                                     throws java.lang.Exception