Examples of fetchId()


Examples of com.alvazan.orm.impl.meta.data.MetaClass.fetchId()

    if(metaClass == null)
      throw new IllegalArgumentException("Entity type="+entity.getClass().getName()+" was not scanned and added to meta information on startup.  It is either missing @NoSqlEntity annotation or it was not in list of scanned packages");

    boolean needRead = false;
    MetaIdField idField = metaClass.getIdField();
    Object id = metaClass.fetchId(entity);
    if(idField.isAutoGen() && id != null && !(entity instanceof NoSqlProxy)) {
      //We do NOT have the data from the database IF this is NOT a NoSqlProxy and we need it since this is an
      //update
      needRead = true;
    }
View Full Code Here

Examples of com.alvazan.orm.impl.meta.data.MetaClass.fetchId()

    MetaClass metaClass = metaInfo.getMetaClass(entity.getClass());
    if(metaClass == null)
      throw new IllegalArgumentException("Entity type="+entity.getClass().getName()+" was not scanned and added to meta information on startup.  It is either missing @NoSqlEntity annotation or it was not in list of scanned packages");

    Object proxy = entity;
    Object pk = metaClass.fetchId(entity);
    MetaIdField idField = metaClass.getIdField();
    byte[] rowKey = idField.convertIdToNonVirtKey(pk);
    byte[] virtKey = idField.formVirtRowKey(rowKey);
    DboTableMeta metaDbo = metaClass.getMetaDbo();
   
View Full Code Here

Examples of com.alvazan.orm.impl.meta.data.MetaClass.fetchId()

 
  @SuppressWarnings({ "unchecked" })
  @Override
  public Object getKey(Object entity) {
    MetaClass metaClass = getMetaClass(entity.getClass());
    return metaClass.fetchId(entity);
  }

  private MetaClass getMetaClass(Class type) {
    MetaClass meta = metaInfo.getMetaClass(type);
    if(meta == null)
View Full Code Here

Examples of com.alvazan.orm.impl.meta.data.MetaClass.fetchId()

    if(metaClass == null)
      throw new IllegalArgumentException("Entity type="+entity.getClass().getName()+" was not scanned and added to meta information on startup.  It is either missing @NoSqlEntity annotation or it was not in list of scanned packages");

    boolean needRead = false;
    MetaIdField idField = metaClass.getIdField();
    Object id = metaClass.fetchId(entity);
    if(idField.isAutoGen() && id != null && !(entity instanceof NoSqlProxy)) {
      //We do NOT have the data from the database IF this is NOT a NoSqlProxy and we need it since this is an
      //update
      needRead = true;
    }
View Full Code Here

Examples of com.alvazan.orm.impl.meta.data.MetaClass.fetchId()

    MetaClass metaClass = metaInfo.getMetaClass(entity.getClass());
    if(metaClass == null)
      throw new IllegalArgumentException("Entity type="+entity.getClass().getName()+" was not scanned and added to meta information on startup.  It is either missing @NoSqlEntity annotation or it was not in list of scanned packages");

    Object proxy = entity;
    Object pk = metaClass.fetchId(entity);
    MetaIdField idField = metaClass.getIdField();
    byte[] rowKey = idField.convertIdToNonVirtKey(pk);
    byte[] virtKey = idField.formVirtRowKey(rowKey);
    DboTableMeta metaDbo = metaClass.getMetaDbo();
   
View Full Code Here

Examples of com.alvazan.orm.impl.meta.data.MetaClass.fetchId()

    if(metaClass == null)
      throw new IllegalArgumentException("Entity type="+entity.getClass().getName()+" was not scanned and added to meta information on startup.  It is either missing @NoSqlEntity annotation or it was not in list of scanned packages");

    boolean needRead = false;
    MetaIdField idField = metaClass.getIdField();
    Object id = metaClass.fetchId(entity);
    if(idField.isAutoGen() && id != null && !(entity instanceof NoSqlProxy)) {
      //We do NOT have the data from the database IF this is NOT a NoSqlProxy and we need it since this is an
      //update
      needRead = true;
    }
View Full Code Here

Examples of com.alvazan.orm.impl.meta.data.MetaClass.fetchId()

      MetaClass metaClass = metaInfo.getMetaClass(entity.getClass());
    if(metaClass == null)
      throw new IllegalArgumentException("Entity type="+entity.getClass().getName()+" was not scanned and added to meta information on startup.  It is either missing @NoSqlEntity annotation or it was not in list of scanned packages");

    Object proxy = entity;
    Object pk = metaClass.fetchId(entity);
    MetaIdField idField = metaClass.getIdField();
    byte[] rowKey = idField.convertIdToNonVirtKey(pk);
    byte[] virtKey = idField.formVirtRowKey(rowKey);
    DboTableMeta metaDbo = metaClass.getMetaDbo();
   
View Full Code Here

Examples of com.alvazan.orm.impl.meta.data.MetaClass.fetchId()

    if(metaClass == null)
      throw new IllegalArgumentException("Entity type="+entity.getClass().getName()+" was not scanned and added to meta information on startup.  It is either missing @NoSqlEntity annotation or it was not in list of scanned packages");

    boolean needRead = false;
    MetaIdField idField = metaClass.getIdField();
    Object id = metaClass.fetchId(entity);
    if(idField.isAutoGen() && id != null && !(entity instanceof NoSqlProxy)) {
      //We do NOT have the data from the database IF this is NOT a NoSqlProxy and we need it since this is an
      //update
      needRead = true;
    }
View Full Code Here

Examples of com.alvazan.orm.impl.meta.data.MetaClass.fetchId()

    MetaClass metaClass = metaInfo.getMetaClass(entity.getClass());
    if(metaClass == null)
      throw new IllegalArgumentException("Entity type="+entity.getClass().getName()+" was not scanned and added to meta information on startup.  It is either missing @NoSqlEntity annotation or it was not in list of scanned packages");

    Object proxy = entity;
    Object pk = metaClass.fetchId(entity);
    MetaIdField idField = metaClass.getIdField();
    byte[] rowKey = idField.convertIdToNonVirtKey(pk);
    byte[] virtKey = idField.formVirtRowKey(rowKey);
    DboTableMeta metaDbo = metaClass.getMetaDbo();
   
View Full Code Here

Examples of com.alvazan.orm.impl.meta.data.MetaClass.fetchId()

    if(metaClass == null)
      throw new IllegalArgumentException("Entity type="+entity.getClass().getName()+" was not scanned and added to meta information on startup.  It is either missing @NoSqlEntity annotation or it was not in list of scanned packages");

    boolean needRead = false;
    MetaIdField idField = metaClass.getIdField();
    Object id = metaClass.fetchId(entity);
    if(idField.isAutoGen() && id != null && !(entity instanceof NoSqlProxy)) {
      //We do NOT have the data from the database IF this is NOT a NoSqlProxy and we need it since this is an
      //update
      needRead = true;
    }
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.