|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectijgen.generator.util.TemplateUtils
public class TemplateUtils
Method Summary | |
---|---|
java.lang.String |
capitalizeFieldName(java.lang.String fieldName)
Capitalizes field name passed as a parameter. |
java.lang.String |
getCamelCaseFromClassName(java.lang.String className)
Gets a class name in camel case style. |
java.lang.String |
getCamelCaseGetterName(java.lang.String fieldName)
Gets a name of the getter based on the field name passed as an argument. |
java.lang.String |
getCamelCaseSetterName(java.lang.String fieldName)
Gets a name of the setter based on the field name passed as an argument. |
java.lang.String |
getClassWithoutPackage(java.lang.String fullPath)
|
java.lang.String |
getDbFieldName(java.lang.String fieldName)
Gets a database column name from field name specified as a parameter. |
static TemplateUtils |
getInstance()
Factory method responsible for providing an instance of class TemplateUtils. |
java.lang.String |
getJoinTableName(java.lang.String className,
java.lang.String genericFieldName)
Gets name of the join table based on the class name and the referenced field |
java.lang.String |
getRelationMappingString(FieldDefinition fieldDef,
ClassDefinition classDefinition)
Gets string for JPA annotation responsible for relation between the classDefinition and the relation info in fieldDef |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final TemplateUtils getInstance()
public java.lang.String getCamelCaseGetterName(java.lang.String fieldName)
fieldName
- name for the field
public java.lang.String getCamelCaseSetterName(java.lang.String fieldName)
fieldName
- name for the field
public java.lang.String getCamelCaseFromClassName(java.lang.String className)
className
- name of the class
public java.lang.String getDbFieldName(java.lang.String fieldName)
fieldName
- name for the field
public java.lang.String getRelationMappingString(FieldDefinition fieldDef, ClassDefinition classDefinition)
fieldDef
- field definition which holds the relation informationclassDefinition
- class definition that contains the fieldDef
public java.lang.String getJoinTableName(java.lang.String className, java.lang.String genericFieldName)
className
- genericFieldName
-
public java.lang.String capitalizeFieldName(java.lang.String fieldName)
fieldName
- name of the field
public java.lang.String getClassWithoutPackage(java.lang.String fullPath)
fullPath
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |