public class MetamodelHelper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MetamodelHelper.AttributeCategory
Attribute Category makes a finer distinction over PersistentAttributeType declared in
Attribute.PersistentAttributeType such as id, version, lob or enum. |
static class |
MetamodelHelper.AttributeComparator
Compares attribute by their category and within the same category by name.
|
Modifier and Type | Field and Description |
---|---|
static char |
DASH |
static char |
UNDERSCORE |
Constructor and Description |
---|
MetamodelHelper() |
Modifier and Type | Method and Description |
---|---|
static MetamodelHelper.AttributeCategory |
getAttributeCategory(Attribute<?,?> attr)
Gets a ordinal value of enumerated persistent attribute category.
|
static List<Attribute<?,?>> |
getAttributesInOrder(Class<?> cls,
Metamodel model) |
static List<Attribute<?,?>> |
getAttributesInOrder(ClassMetaData meta,
Metamodel model) |
static List<Attribute<?,?>> |
getAttributesInOrder(ManagedType<?> type)
Gets the attributes of the given type in defined order.
|
static String |
getAttributeTypeName(Attribute<?,?> attr)
Gets name of the attribute type.
|
static String |
getTagByAttributeType(Attribute<?,?> attr) |
static boolean |
isEnum(Attribute<?,?> a) |
static boolean |
isId(Attribute<?,?> a) |
static boolean |
isLob(Attribute<?,?> a) |
static boolean |
isVersion(Attribute<?,?> a) |
public static final char DASH
public static final char UNDERSCORE
public static List<Attribute<?,?>> getAttributesInOrder(Class<?> cls, Metamodel model)
public static List<Attribute<?,?>> getAttributesInOrder(ClassMetaData meta, Metamodel model)
public static List<Attribute<?,?>> getAttributesInOrder(ManagedType<?> type)
type
- public static boolean isId(Attribute<?,?> a)
public static boolean isVersion(Attribute<?,?> a)
public static boolean isEnum(Attribute<?,?> a)
public static boolean isLob(Attribute<?,?> a)
public static MetamodelHelper.AttributeCategory getAttributeCategory(Attribute<?,?> attr)
attr
- Copyright © 2006–2017 Apache Software Foundation. All rights reserved.