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(javax.persistence.metamodel.Attribute<?,?> attr)
Gets a ordinal value of enumerated persistent attribute category.
|
static List<javax.persistence.metamodel.Attribute<?,?>> |
getAttributesInOrder(Class<?> cls,
javax.persistence.metamodel.Metamodel model) |
static List<javax.persistence.metamodel.Attribute<?,?>> |
getAttributesInOrder(ClassMetaData meta,
javax.persistence.metamodel.Metamodel model) |
static List<javax.persistence.metamodel.Attribute<?,?>> |
getAttributesInOrder(javax.persistence.metamodel.ManagedType<?> type)
Gets the attributes of the given type in defined order.
|
static String |
getAttributeTypeName(javax.persistence.metamodel.Attribute<?,?> attr)
Gets name of the attribute type.
|
static String |
getTagByAttributeType(javax.persistence.metamodel.Attribute<?,?> attr) |
static boolean |
isEnum(javax.persistence.metamodel.Attribute<?,?> a) |
static boolean |
isId(javax.persistence.metamodel.Attribute<?,?> a) |
static boolean |
isLob(javax.persistence.metamodel.Attribute<?,?> a) |
static boolean |
isVersion(javax.persistence.metamodel.Attribute<?,?> a) |
public static final char DASH
public static final char UNDERSCORE
public static List<javax.persistence.metamodel.Attribute<?,?>> getAttributesInOrder(Class<?> cls, javax.persistence.metamodel.Metamodel model)
public static List<javax.persistence.metamodel.Attribute<?,?>> getAttributesInOrder(ClassMetaData meta, javax.persistence.metamodel.Metamodel model)
public static List<javax.persistence.metamodel.Attribute<?,?>> getAttributesInOrder(javax.persistence.metamodel.ManagedType<?> type)
type
- public static boolean isId(javax.persistence.metamodel.Attribute<?,?> a)
public static boolean isVersion(javax.persistence.metamodel.Attribute<?,?> a)
public static boolean isEnum(javax.persistence.metamodel.Attribute<?,?> a)
public static boolean isLob(javax.persistence.metamodel.Attribute<?,?> a)
public static MetamodelHelper.AttributeCategory getAttributeCategory(javax.persistence.metamodel.Attribute<?,?> attr)
attr
- public static String getTagByAttributeType(javax.persistence.metamodel.Attribute<?,?> attr)
public static String getAttributeTypeName(javax.persistence.metamodel.Attribute<?,?> attr)
attr
- Copyright © 2006–2022 Apache Software Foundation. All rights reserved.