Class PrimitiveType

All Implemented Interfaces:
CustomComparableType

public class PrimitiveType extends PrimitiveOrValueType
Primitive or primitive box
  • Constructor Details

    • PrimitiveType

      public PrimitiveType(Type baseJavaType)
  • Method Details

    • valueToString

      public String valueToString(Object value)
    • canBePrototype

      public boolean canBePrototype()
      Specified by:
      canBePrototype in class JaversType
    • isInstance

      public boolean isInstance(Object cdo)
      Specified by:
      isInstance in class JaversType
    • getRawDehydratedType

      protected Type getRawDehydratedType()
      Type for JSON representation. For Values it's simply baseJavaType. For ManagedTypes (references to Entities and ValueObjects) it's GlobalId because JaVers serializes references in the 'dehydrated' form.
    • getBaseJavaClass

      public Class getBaseJavaClass()