Class BasicArrayType<T,E>

All Implemented Interfaces:
BasicType<T>, Type<T>, Serializable, BasicValuedMapping, Bindable, JdbcMapping, JdbcMappingContainer, MappingModelExpressible, MappingType, SqlExpressible, ValueMapping, BasicDomainType<T>, DomainType<T>, ReturnableType<T>, SimpleDomainType<T>, SqmBindableType<T>, SqmExpressible<T>, SqmDomainType<T>, AdjustableBasicType<T>, BasicPluralType<T,E>, BasicType<T>, BindableType<T>, JavaTypedExpressible, OutputableType<T>, ProcedureParameterExtractionAware<T>, ProcedureParameterNamedBinder<T>, Type

public final class BasicArrayType<T,E> extends AbstractSingleColumnStandardBasicType<T> implements AdjustableBasicType<T>, BasicPluralType<T,E>
A type that maps between ARRAY and T[]
See Also:
  • Constructor Details

  • Method Details

    • getElementType

      public BasicType<E> getElementType()
      Description copied from interface: BasicPluralType
      Get element type
      Specified by:
      getElementType in interface BasicPluralType<T,E>
    • getName

      public String getName()
      Description copied from interface: Type
      Returns the abbreviated name of the type.
      Specified by:
      getName in interface Type
      Returns:
      the Hibernate type name
    • registerUnderJavaType

      protected boolean registerUnderJavaType()
      Overrides:
      registerUnderJavaType in class AbstractStandardBasicType<T>
    • resolveIndicatedType

      public <X> BasicType<X> resolveIndicatedType(JdbcTypeIndicators indicators, JavaType<X> domainJtd)
      Description copied from interface: AdjustableBasicType
      Perform the adjustment
      Specified by:
      resolveIndicatedType in interface AdjustableBasicType<T>
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isEqual

      public boolean isEqual(Object one, Object another)
      Description copied from interface: Type
      Compare two instances of the class mapped by this type for persistence "equality", that is, equality of persistent state. For most types this could simply delegate to equals().

      This should always equate to some form of comparison of the value's internal state. As an example, for Java's Date class, the comparison should be of its internal state, but based only on the specific part which is persistent (the timestamp, date, or time).

      Specified by:
      isEqual in interface Type
      Overrides:
      isEqual in class AbstractStandardBasicType<T>
      Parameters:
      one - The first value
      another - The second value
      Returns:
      True if there are considered equal (see discussion above).
    • deepCopy

      public Object deepCopy(Object value, SessionFactoryImplementor factory)
      Description copied from interface: Type
      Return a deep copy of the persistent state, stopping at entities and at collections.
      Specified by:
      deepCopy in interface Type
      Overrides:
      deepCopy in class AbstractStandardBasicType<T>
      Parameters:
      value - The value to be copied
      factory - The session factory
      Returns:
      The deep copy