Package com.baasbox.dao

Examples of com.baasbox.dao.FileAssetDao.save()


    ODocument doc=dao.create(name,fileName,contentType,content);
    if (meta!=null && !meta.trim().isEmpty()) {
      ODocument metaDoc=(new ODocument()).fromJSON("{ 'meta' : " + meta + "}");
      doc.merge(metaDoc, true, false);
    }
    dao.save(doc);
    return doc;
  }
 
  public static ODocument get(String rid) throws SqlInjectionException, IllegalArgumentException, InvalidModelException, ODatabaseException, DocumentNotFoundException {
    AssetDao dao = AssetDao.getInstance();
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.