Class MetamodelHelper

java.lang.Object
org.apache.openjpa.persistence.jest.MetamodelHelper

public class MetamodelHelper extends Object
Author:
Pinaki Poddar
  • Field Details

  • Constructor Details

    • MetamodelHelper

      public MetamodelHelper()
  • Method Details

    • getAttributesInOrder

      public static List<Attribute<?,?>> getAttributesInOrder(Class<?> cls, Metamodel model)
    • getAttributesInOrder

      public static List<Attribute<?,?>> getAttributesInOrder(ClassMetaData meta, Metamodel model)
    • getAttributesInOrder

      public static List<Attribute<?,?>> getAttributesInOrder(ManagedType<?> type)
      Gets the attributes of the given type in defined order.
      Parameters:
      type -
    • isId

      public static boolean isId(Attribute<?,?> a)
    • isVersion

      public static boolean isVersion(Attribute<?,?> a)
    • isEnum

      public static boolean isEnum(Attribute<?,?> a)
    • isLob

      public static boolean isLob(Attribute<?,?> a)
    • getAttributeCategory

      public static MetamodelHelper.AttributeCategory getAttributeCategory(Attribute<?,?> attr)
      Gets a ordinal value of enumerated persistent attribute category.
      Parameters:
      attr -
    • getTagByAttributeType

      public static String getTagByAttributeType(Attribute<?,?> attr)
    • getAttributeTypeName

      public static String getAttributeTypeName(Attribute<?,?> attr)
      Gets name of the attribute type. For collection and map type attribute, the name is appended with generic type argument names.
      Parameters:
      attr -