Package com.alvazan.orm.api.base

Examples of com.alvazan.orm.api.base.NoSqlEntityManager.find()


  }

  @Override
  public PlayOrmMonitor getMonitor(String id) {
    NoSqlEntityManager mgr = factory.createEntityManager();
    MonitorDbo mon = mgr.find(MonitorDbo.class, id);
    return CopyUtil.copy(mon);
  }
 
  public List<PlayOrmMonitor> getMonitors(List<String> ids) {
    NoSqlEntityManager mgr = factory.createEntityManager();
View Full Code Here


  }

  private DboTableMeta setupMetaData(int numColumns, NoSqlEntityManagerFactory factory) {
    NoSqlEntityManager mgr = factory.createEntityManager();
   
    DboDatabaseMeta meta = mgr.find(DboDatabaseMeta.class, DboDatabaseMeta.META_DB_ROWKEY);
    if(meta != null) {
      meta = new DboDatabaseMeta();
    }

    DboTableMeta table = new DboTableMeta();
View Full Code Here

          return NoSqlModel.create(rootParamNode, name, clazz, annotations);

        Object theId = metaLayer.convertIdFromString(clazz, idStr);
       
        //Read the entity in so that this entity is used instead...
      Object o = em.find(clazz, theId);
      if(o == null)
        throw new RowNotFoundException("Row with rowkey="+theId+" was not found, but your page posted this id to lookup the row of class type="+clazz.getSimpleName());
      return NoSqlModel.edit(rootParamNode, name, o, annotations);
    }
View Full Code Here

        ParamNode idChild = fieldParamNode.getChild(keyName, true);
        String theIdStr = retrieveValue(idChild);
       
        if (theIdStr != null) {
          Object theId = meta.convertIdFromString(relation, theIdStr);
          Object to = em.find(relation, theId);
          if(to != null) {
            edit(paramNode, field.getName(), to, field.getAnnotations());
            // Remove it to prevent us from finding it again later
            paramNode.removeChild( field.getName(), removedNodesList);
            set(field, o, to);
View Full Code Here

  }

  private DboTableMeta setupMetaData(int numColumns, NoSqlEntityManagerFactory factory) {
    NoSqlEntityManager mgr = factory.createEntityManager();
   
    DboDatabaseMeta meta = mgr.find(DboDatabaseMeta.class, DboDatabaseMeta.META_DB_ROWKEY);
    if(meta != null) {
      meta = new DboDatabaseMeta();
    }

    DboTableMeta table = new DboTableMeta();
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.