Examples of create()


Examples of com.avaje.ebean.RawSqlBuilder.create()

   
   
    String sql = "select dtype, id, license_number from vehicle where id = :id";
    RawSqlBuilder rawSqlBuilder = RawSqlBuilder.parse(sql);
   
    RawSql rawSql = rawSqlBuilder.create();
   
    List<Vehicle> list = Ebean.find(Vehicle.class)
        .setRawSql(rawSql)
        .setParameter("id", truck.getId())
        .findList();

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);

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

    dao.delete(collectionName);
  }
 
  public static ODocument create(String collectionName) throws Throwable, InvalidCollectionException, InvalidModelException{
    CollectionDao dao = CollectionDao.getInstance();
    ODocument doc=dao.create(collectionName);
    return doc;
  }
 
  public static boolean exists(String collectionName) throws InvalidCollectionException, SqlInjectionException{
    CollectionDao dao = CollectionDao.getInstance();

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

  public static ODocument create(String collection, JsonNode bodyJson) throws Throwable, InvalidCollectionException,InvalidModelException {
    DocumentDao dao = DocumentDao.getInstance(collection);
    DbHelper.requestTransaction();

    ODocument doc = dao.create();
    try  {
      dao.update(doc,(ODocument) (new ODocument()).fromJSON(bodyJson.toString()));
      dao.save(doc);
      DbHelper.commitTransaction();
    }catch (OSerializationException e){

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);

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

    }
    public static ODocument createFile(String fileName, String data,
        String contentType, long contentLength, InputStream is,
        HashMap<String,?> metadata, String contentString) throws Throwable {
      FileDao dao = FileDao.getInstance();
      ODocument doc=dao.create(fileName,contentType,contentLength,is,metadata,contentString);
      if (data!=null && !data.trim().isEmpty()) {
        ODocument metaDoc=(new ODocument()).fromJSON("{ '"+DATA_FIELD_NAME+"' : " + data + "}");
        doc.merge(metaDoc, true, false);
      }
      dao.save(doc);

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

      try{
          //because we have to create an OUser record and a User Object, we need a transaction
     
            DbHelper.requestTransaction();
           
            if (role==null) profile=dao.create(username, password);
            else profile=dao.create(username, password,role);
           
            ORID userRid = ((ORID)profile.field("user")).getIdentity();
            ORole friendRole=RoleDao.createFriendRole(username);
            friendRole.getDocument().field(RoleService.FIELD_ASSIGNABLE,true);

Examples of com.bbn.openmap.proj.LambertConformalLoader.create()

    this.lcc = lcc;
  }
 
  public LambertConformalGCT(Properties props) {
    LambertConformalLoader loader = new LambertConformalLoader();
    lcc = (LambertConformal) loader.create(props);
  }

  public synchronized Point2D forward(double lat, double lon, Point2D ret) {
    return lcc.LLToWorld(lat, lon, ret);
  }

Examples of com.betfair.cougar.core.impl.CougarSpringCtxFactoryImpl.create()

        System.setProperty("cougar.client.socket.ssl.supportsTls","false");
        System.setProperty("cougar.client.socket.ssl.requiresTls","false");

        CougarLoggingUtils.setTraceLogger(null);
        CougarSpringCtxFactoryImpl cougarCtx = new CougarSpringCtxFactoryImpl();
        appContext = cougarCtx.create(null);
        client = (BaselineSyncClient) appContext.getBean("syncClient");
        ctx = new CougarClientExecutionContext();
  }

    /**
 

Examples of com.boundlessgeo.geoserver.api.controllers.IconController.create()

        request.setMethod("post");

        createMultiPartFormContent(request, "form-data; name=\"icon\"; filename=\"STYLE.PROPERTIES\"",
            "text/x-java-properties", "square=LINESTRING((0 0,0 1,1 1,1 0,0 0))".getBytes() );

        JSONArr arr = ctrl.create("cite", request);
        assertEquals( 1, arr.size() );
       
        Resource r = catalog.getResourceLoader().get("workspaces/cite/styles/STYLE.PROPERTIES");
        assertEquals("created", Resource.Type.RESOURCE, r.getType() );
       
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.