Class MetamodelHelper
java.lang.Object
org.apache.openjpa.persistence.jest.MetamodelHelper
- Author:
- Pinaki Poddar
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAttribute Category makes a finer distinction over PersistentAttributeType declared inAttribute.PersistentAttributeTypesuch as id, version, lob or enum.static classCompares attribute by their category and within the same category by name. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttributeCategory(Attribute<?, ?> attr) Gets a ordinal value of enumerated persistent attribute category.getAttributesInOrder(ManagedType<?> type) Gets the attributes of the given type in defined order.getAttributesInOrder(Class<?> cls, Metamodel model) getAttributesInOrder(ClassMetaData meta, Metamodel model) static StringgetAttributeTypeName(Attribute<?, ?> attr) Gets name of the attribute type.static StringgetTagByAttributeType(Attribute<?, ?> attr) static booleanstatic booleanstatic booleanstatic boolean
-
Field Details
-
DASH
public static final char DASH- See Also:
-
UNDERSCORE
public static final char UNDERSCORE- See Also:
-
-
Constructor Details
-
MetamodelHelper
public MetamodelHelper()
-
-
Method Details
-
getAttributesInOrder
-
getAttributesInOrder
-
getAttributesInOrder
Gets the attributes of the given type in defined order.- Parameters:
type-
-
isId
-
isVersion
-
isEnum
-
isLob
-
getAttributeCategory
Gets a ordinal value of enumerated persistent attribute category.- Parameters:
attr-
-
getTagByAttributeType
-
getAttributeTypeName
-