Package org.hibernate.type

Examples of org.hibernate.type.TypeResolver


      Map.Entry entry = (Map.Entry) iter.next();
      String typename = null;
      Type type = null;
      if(entry.getValue() instanceof String) {
        try {
          type = new TypeResolver().heuristicType((String) entry.getValue());
        } catch(Throwable t) {
          type = null;
          typename = (String) entry.getValue();
        }
      }
View Full Code Here


      Map.Entry entry = (Map.Entry) iter.next();
      String typename = null;
      Type type = null;
      if(entry.getValue() instanceof String) {
        try {
          type = new TypeResolver().heuristicType((String) entry.getValue());
        } catch(Throwable t) {
          type = null;
          typename = (String) entry.getValue();
        }
      }
View Full Code Here

        } catch (Exception e) {
            throw new HibernateException("Failed to obtain identifier method", e);
        }

        type = (AbstractSingleColumnStandardBasicType<? extends Object>)
            new TypeResolver().heuristicType(identifierType.getName(), parameters);

        if (type == null)
            throw new HibernateException("Unsupported identifier type "
                    + identifierType.getName());
View Full Code Here

            return FieldProviderResponse.NOT_HANDLED;
        }
        //look for any map field metadata that was previously added for the requested field
        for (Map.Entry<String, FieldMetadata> entry : addMetadataFromFieldTypeRequest.getPresentationAttributes().entrySet()) {
            if (entry.getKey().startsWith(addMetadataFromFieldTypeRequest.getRequestedPropertyName() + FieldManager.MAPFIELDSEPARATOR)) {
                TypeLocatorImpl typeLocator = new TypeLocatorImpl(new TypeResolver());

                Type myType = null;
                //first, check if an explicit type was declared
                String valueClass = ((BasicFieldMetadata) entry.getValue()).getMapFieldValueClass();
                if (valueClass != null) {
View Full Code Here

        }
        catch (Exception e) {
            throw new HibernateException("Failed to obtain identifier method", e);
        }

        type = (AbstractSingleColumnStandardBasicType<? extends Object>) new TypeResolver().heuristicType(identifierType.getName(), parameters);

        if (type == null)
            throw new HibernateException("Unsupported identifier type " + identifierType.getName());

        sqlTypes = new int[] {((AbstractSingleColumnStandardBasicType<?>) type).sqlType()};
View Full Code Here

TOP

Related Classes of org.hibernate.type.TypeResolver

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.