Package com.baasbox.dao

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


    return doc;
  }
 
  public static ODocument createFile(String name,String fileName,String meta,String contentType, byte[] content) throws Throwable{
    FileAssetDao dao = FileAssetDao.getInstance();
    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);
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.