Fields |
File that contains attribute description template for generated HBM files. public static final java.lang.String ATTR_DESC_HBM_TEMPLATE = "com/arsi/mj/maprpt/entity/hibgen/model/ATTR-DESC.hbm.xml.template"
|
File that contains audit attribute description template for generated HBM files. public static final java.lang.String AUDIT_DESC_HBM_TEMPLATE = "com/arsi/mj/maprpt/entity/hibgen/model/AUDIT-DESC.hbm.xml.template"
|
File that contains class description template for generated HBM files. public static final java.lang.String CLASS_DESC_HBM_TEMPLATE = "com/arsi/mj/maprpt/entity/hibgen/model/CLASS-DESC.hbm.xml.template"
|
File that contains in-line CLOB description template for generated HBM files. public static final java.lang.String CLOB_DESC_HBM_TEMPLATE = "com/arsi/mj/maprpt/entity/hibgen/model/CLOB-DESC.hbm.xml.template"
|
Entity attribute name of create-timestamp. public static final java.lang.String CREATE_TIMESTAMP_ATTRIBUTE = "createTimestamp"
|
Default name of create-timestamp column. public static final java.lang.String CREATE_TIMESTAMP_COLUMN = "create_timestamp"
|
Hibernate type of create-timestamp column. public static final java.lang.String CREATE_TIMESTAMP_TYPE
|
Entity attribute name of create-user. public static final java.lang.String CREATE_USER_ATTRIBUTE = "createUserId"
|
Default name of create-user column. public static final java.lang.String CREATE_USER_COLUMN = "create_user_id"
|
Hibernate type of create-user column. public static final java.lang.String CREATE_USER_TYPE
|
Default suffix to append to entity class to arrive at base class name. public static final java.lang.String ENTITY_BASE_CLASS_SUFFIX = "Base"
|
Default suffix to append to entity class to arrive at manager class name. public static final java.lang.String ENTITY_MANAGER_CLASS_SUFFIX = "Mgr"
|
Name of generic enumeration class. public static final java.lang.String GENERIC_ENUM_CLASS_NAME = "com.arsi.mj.GenericEnumUserType"
|
Parameter of generic typedef that identifies java.lang.Enum -derived class. public static final java.lang.String GENERIC_ENUM_CLASS_PARAM = "enumClass"
|
Name of identifier method of java.lang.Enum class for generic typedef. public static final java.lang.String GENERIC_ENUM_IDENTIFIER_METHOD_NAME = "asName"
|
Parameter of generic typedef that specifies identifier method of java.lang.Enum class. public static final java.lang.String GENERIC_ENUM_IDENTIFIER_METHOD_PARAM = "identifierMethod"
|
Name of valueOf method of java.lang.Enum class for generic typedef. public static final java.lang.String GENERIC_ENUM_VALUEOF_METHOD_NAME = "asValueOf"
|
Parameter of generic typedef that specifies valueOf method of java.lang.Enum class. public static final java.lang.String GENERIC_ENUM_VALUEOF_METHOD_PARAM = "valueOfMethod"
|
Prefix of CLOB entity attribute that contains in-line data. public static final java.lang.String INLINE_CLOB_ATTRIBUTE_PREFIX = "inline"
|
Prefix of CLOB column that contains in-line data. public static final java.lang.String INLINE_CLOB_COLUMN_PREFIX = "inline_"
|
Hibernate type of CLOB column that stores in-line data. public static final java.lang.String INLINE_CLOB_TYPE
|
File that contains line-type attribute description template for generated HBM files. public static final java.lang.String LINETYPE_DESC_HBM_TEMPLATE = "com/arsi/mj/maprpt/entity/hibgen/model/LINETYPE-DESC.hbm.xml.template"
|
File that contains complete HBM.XML template for generated line-meta-data mapping file. public static final java.lang.String MJ_LINEMETA_HBM_TEMPLATE = "com/arsi/mj/maprpt/entity/hibgen/model/MJLineMetadata.hbm.xml.ftl"
|
File that contains report-number attribute description template for generated HBM files. public static final java.lang.String RPTNUM_DESC_HBM_TEMPLATE = "com/arsi/mj/maprpt/entity/hibgen/model/RPTNUM-DESC.hbm.xml.template"
|
File that contains report-range attribute description template for generated HBM files. public static final java.lang.String RPTRANGE_DESC_HBM_TEMPLATE = "com/arsi/mj/maprpt/entity/hibgen/model/RPTRNG-DESC.hbm.xml.template"
|
Default name of ID column. public static final java.lang.String SURROGATE_KEY_COLUMN = "id"
|
Prefix that is prepended to table name to form default sequence name for ID column. public static final java.lang.String SURROGATE_KEY_SEQUENCE_PREFIX = "SEQ_"
|
Hibernate type of ID column. public static final java.lang.String SURROGATE_KEY_TYPE
|
Entity attribute name of last-update-timestamp. public static final java.lang.String UPDATE_TIMESTAMP_ATTRIBUTE = "lastUpdateTimestamp"
|
Default name of last-update-timestamp column. public static final java.lang.String UPDATE_TIMESTAMP_COLUMN = "update_timestamp"
|
Hibernate type of last-update-timestamp column. public static final java.lang.String UPDATE_TIMESTAMP_TYPE
|
Entity attribute name of last-update-user. public static final java.lang.String UPDATE_USER_ATTRIBUTE = "lastUpdateUserId"
|
Default name of last-update-user column. public static final java.lang.String UPDATE_USER_COLUMN = "update_user_id"
|
Hibernate type of last-update-user column. public static final java.lang.String UPDATE_USER_TYPE
|
Methods |
protected com.arsi.mj.NameValuePair doGenerateLineMetdataHibernateMapping(com.arsi.mj.maprpt.entity.handler.DataEntityHandler anEntityHandler, java.lang.String aMapperReportDescription) throws com.arsi.mj.MJTranslateException
|
protected com.arsi.mj.maprpt.entity.hibgen.hbmxjc.Property doPropertyMapperArtifact(com.arsi.mj.maprpt.entity.handler.DataEntityHandler anEntityHandler, com.arsi.mj.config.atoms.ColumnDef aColdef, java.lang.String anEnumClassName, java.util.Collection someConstants, java.lang.String aFieldDescTemplate) throws com.arsi.mj.MJTranslateException
|
Enforce that data type of column is a Java primitive type and will not result in
Hibernate's hbm2java using a wrapper type.
- Parameters:
aType - a Hibernate or Java type name (e.g., "integer" or "java.lang.Integer").
- Returns:
- primitive type if enforcement needed (e.g., "int"), or original
type if no enforcement required.
protected java.lang.String enforcePrimitiveType(java.lang.String aType)
|
Enforce that data type of column is a Java wrapper type and will not result in
Hibernate's hbm2java using a primitive type.
- Parameters:
aType - a Hibernate or Java type name (e.g., "long").
- Returns:
- wrapper type if enforcement needed (e.g., "java.lang.Long"), or original
type if no enforcement required.
protected java.lang.String enforceWrapperType(java.lang.String aType)
|
Convert full enumeration class name to shorter name suitable for use as Hibernate
typedef name. The typedef name is referenced by other Hibernate mapping elements.
- Parameters:
anEnumClassName - full enumeration class name, i.e., package and class.
- Throws:
IllegalArgumentException - if enumeration class name does not contain a valid package or class name.
- Returns:
- name suitable for use as Hibernate typedef name, i.e., the class name
with the first letter in lower case.
public static final java.lang.String enumClassNameToTypedefRef(java.lang.String anEnumClassName) throws java.lang.IllegalArgumentException
|
public com.arsi.mj.NameValuePair generateHibernateMapping(com.arsi.mj.maprpt.entity.handler.DataEntityHandler anEntityHandler, java.util.List someInlineHandlers, java.lang.String aMapperReportDescription) throws com.arsi.mj.MJTranslateException
|
public com.arsi.mj.maprpt.entity.hibgen.hbmxjc.Id id(com.arsi.mj.maprpt.entity.handler.DataEntityHandler anEntityHandler) throws com.arsi.mj.MJTranslateException
|
public com.arsi.mj.maprpt.entity.hibgen.hbmxjc.Join joinLineMetadata(com.arsi.mj.maprpt.entity.handler.DataEntityHandler anEntityHandler) throws com.arsi.mj.MJTranslateException
|
public com.arsi.mj.maprpt.entity.hibgen.hbmxjc.Klass klass(com.arsi.mj.maprpt.entity.handler.DataEntityHandler anEntityHandler, java.util.List someInlineHandlers, java.lang.String aMapperReportDescription) throws com.arsi.mj.MJTranslateException
|
public com.arsi.mj.maprpt.entity.hibgen.hbmxjc.Properties propertiesAudit(com.arsi.mj.maprpt.entity.handler.DataEntityHandler anEntityHandler) throws com.arsi.mj.MJTranslateException
|
public com.arsi.mj.maprpt.entity.hibgen.hbmxjc.Property propertyInlineClob(com.arsi.mj.maprpt.entity.handler.DataEntityHandler anEntityHandler, int anEntityNum, com.arsi.mj.maprpt.parser.tuple.inline.IInlineDataHandler anInlineHandler) throws com.arsi.mj.MJTranslateException
|
public com.arsi.mj.maprpt.entity.hibgen.hbmxjc.Property propertyLineType(com.arsi.mj.maprpt.entity.handler.DataEntityHandler anEntityHandler, com.arsi.mj.config.atoms.ColumnDef aColdef, com.arsi.mj.maprpt.enums.LineTypeEnumMapping anEnumMapping) throws com.arsi.mj.MJTranslateException
|
public com.arsi.mj.maprpt.entity.hibgen.hbmxjc.Property propertyReportNumber(com.arsi.mj.maprpt.entity.handler.DataEntityHandler anEntityHandler, com.arsi.mj.config.atoms.ColumnDef aColdef, com.arsi.mj.maprpt.enums.ReportNumberEnumMapping anEnumMapping) throws com.arsi.mj.MJTranslateException
|
public com.arsi.mj.maprpt.entity.hibgen.hbmxjc.Property propertyReportRange(com.arsi.mj.maprpt.entity.handler.DataEntityHandler anEntityHandler, com.arsi.mj.config.atoms.ColumnDef aColdef, com.arsi.mj.maprpt.enums.ReportRangeEnumMapping anEnumMapping) throws com.arsi.mj.MJTranslateException
|
public com.arsi.mj.maprpt.entity.hibgen.hbmxjc.Property propertySimple(int aColumnOrdinal, com.arsi.mj.maprpt.entity.handler.AnnotatedColumnDef aColdef, com.arsi.mj.maprpt.entity.handler.DataEntityHandler anEntityHandler) throws com.arsi.mj.MJTranslateException
|
public com.arsi.mj.maprpt.entity.hibgen.hbmxjc.Query queryDetail(com.arsi.mj.maprpt.entity.handler.DataEntityHandler anEntityHandler, int anEntityNum, com.arsi.mj.maprpt.parser.tuple.inline.IInlineDataHandler anInlineHandler) throws com.arsi.mj.MJTranslateException
|
public java.util.List typedefs(com.arsi.mj.maprpt.entity.handler.DataEntityHandler anEntityHandler) throws com.arsi.mj.MJTranslateException
|