Package org.hibernate.type

Examples of org.hibernate.type.AbstractStandardBasicType


  private void resolveSqlType(Value value, Type type) {
    if ( value == null || ! ( value instanceof SimpleValue ) || ! ( type instanceof AbstractStandardBasicType )  ) {
      return;
    }
    // Converting to AbstractStandardBasicType is bad, but this resolver is TEMPORARY!
    AbstractStandardBasicType basicType = ( AbstractStandardBasicType ) type;
    Datatype dataType = new Datatype(
                basicType.getSqlTypeDescriptor().getSqlType(),
                basicType.getName(),
                basicType.getReturnedClass()
            );
    ( (SimpleValue) value ).setDatatype( dataType );
  }
View Full Code Here


  public GridType getType(Type type) {
    if ( type == null ) {
      return null;
    }
    else if ( type instanceof AbstractStandardBasicType ) {
      AbstractStandardBasicType exposedType = (AbstractStandardBasicType) type;
      final GridType gridType = typeConverter.get( exposedType.getJavaTypeDescriptor() );
      if (gridType == null) {
        throw new HibernateException( "Unable to find a GridType for " + exposedType.getClass().getName() );
      }
      return gridType;
    }
    else if ( type instanceof CustomType ) {
      CustomType cType = (CustomType) type;
View Full Code Here

  public GridType getType(Type type) {
    if ( type == null ) {
      return null;
    }
    else if ( type instanceof AbstractStandardBasicType ) {
      AbstractStandardBasicType exposedType = (AbstractStandardBasicType) type;
      final GridType gridType = typeConverter.get( exposedType.getJavaTypeDescriptor() );
      if (gridType == null) {
        throw new HibernateException( "Unable to find a GridType for " + exposedType.getClass().getName() );
      }
      return gridType;
    }
    else if ( type instanceof CustomType ) {
      CustomType cType = (CustomType) type;
View Full Code Here

    GridType dialectType = dialect.overrideType( type );
    if ( dialectType != null ) {
      return dialectType;
    }
    else if ( type instanceof AbstractStandardBasicType ) {
      AbstractStandardBasicType exposedType = (AbstractStandardBasicType) type;
      final GridType gridType = typeConverter.get( exposedType.getJavaTypeDescriptor() );
      if (gridType == null) {
        throw new HibernateException( "Unable to find a GridType for " + exposedType.getClass().getName() );
      }
      return gridType;
    }
    else if ( type instanceof CustomType ) {
      CustomType cType = (CustomType) type;
View Full Code Here

TOP

Related Classes of org.hibernate.type.AbstractStandardBasicType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.