Package com.alvazan.orm.api.z8spi.conv

Examples of com.alvazan.orm.api.z8spi.conv.Converter


    throw new UnsupportedOperationException();
  }

    private byte[] getBytesValue(Object value, NoSqlConverter customConv) {
        Class<? extends Converter> convClazz = customConv.converter();
        Converter converter = ReflectionUtil.create(convClazz);
        return converter.convertToNoSql(value);
    }
View Full Code Here


      Class<? extends KeyGenerator> generation = idAnno.generation();
      gen = ReflectionUtil.create(generation);
    }
   
    Class<?> type = field.getType();
    Converter converter = null;
    if(!NoConversion.class.isAssignableFrom(idAnno.customConverter()))
      converter = ReflectionUtil.create(idAnno.customConverter());
   
    String columnName = field.getName();
    if(!"".equals(idAnno.columnName()))
View Full Code Here

    boolean isPartitioned = false;
    if(field.isAnnotationPresent(NoSqlPartitionByThisField.class))
      isPartitioned = true;
     
    Class<?> type = field.getType();
    Converter converter = null;
    if(col != null && !NoConversion.class.isAssignableFrom(col.customConverter()))
      converter = ReflectionUtil.create(col.customConverter());

    converter = lookupConverter(field, type, converter);
    if(converter == null)
View Full Code Here

      MetaAbstractClass<?> fkMeta = metaInfo.findOrCreate(type);
      MetaEmbeddedEntity temp = metaEmbeddedProvider.get();
      temp.setup(t, field, colName, fkMeta);
      metaField = temp;
    } else {
      Converter converter = lookupConverter(field, type, null);
      if(converter == null)
        throw new IllegalArgumentException("We found no converters(customer or standard for type="
            +type.getSimpleName()+" and this class is not annotated with " +
                "@NoSqlEmbeddable either.  The field that caused this issue is field="+field);
     
View Full Code Here

TOP

Related Classes of com.alvazan.orm.api.z8spi.conv.Converter

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.