Package com.baasbox.dao

Examples of com.baasbox.dao.AssetDao.create()


import com.orientechnologies.orient.core.record.impl.ORecordBytes;

public class AssetService {
  public static ODocument create(String name, String meta) throws InvalidJsonException,Throwable{
    AssetDao dao = AssetDao.getInstance();
    ODocument doc=dao.create(name);
    try{
     
      if (meta!=null && !meta.trim().isEmpty()) {
        ODocument metaDoc=(new ODocument()).fromJSON("{ 'meta' : " + meta + "}");
        doc.merge(metaDoc, true, false);
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.