Class BasicTypeImpl<J>

All Implemented Interfaces:
BasicType<J>, Type<J>, Serializable, BasicValuedMapping, Bindable, JdbcMapping, JdbcMappingContainer, MappingModelExpressible, MappingType, SqlExpressible, ValueMapping, BasicDomainType<J>, DomainType<J>, SimpleDomainType<J>, BindableType<J>, OutputableType<J>, ReturnableType<J>, SqmExpressible<J>, AdjustableBasicType<J>, BasicType<J>, JavaTypedExpressible, ProcedureParameterExtractionAware<J>, ProcedureParameterNamedBinder<J>, Type
Direct Known Subclasses:
NamedBasicTypeImpl

public class BasicTypeImpl<J> extends AbstractSingleColumnStandardBasicType<J> implements AdjustableBasicType<J>
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getRegistrationKeys

      public String[] getRegistrationKeys()
      Description copied from interface: BasicType
      Get the names under which this type should be registered in the type registry.
      Specified by:
      getRegistrationKeys in interface BasicType<J>
      Overrides:
      getRegistrationKeys in class AbstractStandardBasicType<J>
      Returns:
      The keys under which to register this type.
    • getName

      public String getName()
      BasicTypeImpl produces a name whose sole purpose is to be used as part of interpreting Envers-produced mappings. We want to use the same exact BasicTypeImpl *instance* in the audit mapping (Envers) as is used in the audited (ORM) mapping. The name is in the form `basicType@${u}(${o},${r})`, where
      1. ${u} is a unique number
      2. ${o} is the mapped Java type
      3. ${r} is the mapped SQL type (JDBC type code)
      `basicType@${u}` is enough to uniquely identify this type instance; the Java Type and JDBC type code are informational E.g. `basicType@321(java.lang.String,12)`
      Specified by:
      getName in interface Type
      Returns:
      the Hibernate type name
    • toString

      public String toString()
      Overrides:
      toString in class Object