Examples of convertFromNoSql()


Examples of com.alvazan.orm.api.z8spi.conv.Converter.convertFromNoSql()

    if(nonVirtKey == null)
      return t;
    MetaIdField<T> idField = this.getIdField();
    Converter converter = idField.getConverter();

    Object entityId = converter.convertFromNoSql(nonVirtKey);
    T proxy = idField.convertIdToProxy(session, entityId, cacheLoadCallback);
    t.setEntityId(entityId);
    t.setProxy(proxy);
   
    return t;
View Full Code Here

Examples of com.alvazan.orm.api.z8spi.conv.Converter.convertFromNoSql()

    if(nonVirtKey == null)
      return t;
    MetaIdField<T> idField = this.getIdField();
    Converter converter = idField.getConverter();

    Object entityId = converter.convertFromNoSql(nonVirtKey);
    T proxy = idField.convertIdToProxy(session, entityId, cacheLoadCallback);
    t.setEntityId(entityId);
    t.setProxy(proxy);
   
    return t;
View Full Code Here

Examples of com.alvazan.orm.api.z8spi.conv.Converter.convertFromNoSql()

    ReflectionUtil.putFieldValue(entity, field, cursor);
  }

  private String formRowKey(byte[] byteKey) {
    Converter converter = ownerMeta.getIdField().getConverter();
    Object objKey = converter.convertFromNoSql(byteKey);
    String keyAsStr = converter.convertTypeToString(objKey);
   
    //We ALWAYS ignore partition in this case since this index row is ALWAYS tied to this row period...moving it all
    //would be a pain and be useless...
    String rowKey = getMetaDbo().getIndexRowKey(null, null)+"/"+keyAsStr;
View Full Code Here

Examples of com.alvazan.orm.api.z8spi.conv.Converter.convertFromNoSql()

    if(nonVirtKey == null)
      return t;
    MetaIdField<T> idField = this.getIdField();
    Converter converter = idField.getConverter();

    Object entityId = converter.convertFromNoSql(nonVirtKey);
    T proxy = idField.convertIdToProxy(session, entityId, cacheLoadCallback, null);
    t.setEntityId(entityId);
    t.setProxy(proxy);
   
    return t;
View Full Code Here

Examples of com.alvazan.orm.api.z8spi.conv.Converter.convertFromNoSql()

    }

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

Examples of com.alvazan.orm.api.z8spi.conv.Converter.convertFromNoSql()

    if(nonVirtKey == null)
      return t;
    MetaIdField<T> idField = this.getIdField();
    Converter converter = idField.getConverter();

    Object entityId = converter.convertFromNoSql(nonVirtKey);
    T proxy = idField.convertIdToProxy(session, entityId, cacheLoadCallback);
    t.setEntityId(entityId);
    t.setProxy(proxy);
   
    return t;
View Full Code Here

Examples of com.alvazan.orm.api.z8spi.conv.Converter.convertFromNoSql()

    ReflectionUtil.putFieldValue(entity, field, cursor);
  }

  private String formRowKey(byte[] byteKey) {
    Converter converter = ownerMeta.getIdField().getConverter();
    Object objKey = converter.convertFromNoSql(byteKey);
    String keyAsStr = converter.convertTypeToString(objKey);
   
    //We ALWAYS ignore partition in this case since this index row is ALWAYS tied to this row period...moving it all
    //would be a pain and be useless...
    String rowKey = getMetaDbo().getIndexRowKey(null, null)+"/"+keyAsStr;
View Full Code Here

Examples of com.alvazan.orm.api.z8spi.conv.Converter.convertFromNoSql()

    if(nonVirtKey == null)
      return t;
    MetaIdField<T> idField = this.getIdField();
    Converter converter = idField.getConverter();

    Object entityId = converter.convertFromNoSql(nonVirtKey);
    T proxy = idField.convertIdToProxy(session, entityId, cacheLoadCallback);
    t.setEntityId(entityId);
    t.setProxy(proxy);
   
    return t;
View Full Code Here

Examples of com.alvazan.orm.api.z8spi.conv.Converter.convertFromNoSql()

    }

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

Examples of com.alvazan.orm.api.z8spi.conv.Converter.convertFromNoSql()

    ReflectionUtil.putFieldValue(entity, field, cursor);
  }

  private String formRowKey(byte[] byteKey) {
    Converter converter = ownerMeta.getIdField().getConverter();
    Object objKey = converter.convertFromNoSql(byteKey);
    String keyAsStr = converter.convertTypeToString(objKey);
   
    //We ALWAYS ignore partition in this case since this index row is ALWAYS tied to this row period...moving it all
    //would be a pain and be useless...
    String rowKey = getMetaDbo().getIndexRowKey(null, null)+"/"+keyAsStr;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.