Examples of ParseFile


Examples of org.parse4j.ParseFile

    if ((value instanceof ParseQuery.RelationConstraint)) {
          return ((ParseQuery.RelationConstraint) value).encode(objectEncoder);
    }
   
    if(value instanceof ParseFile) {
      ParseFile file = (ParseFile) value;
      JSONObject output = new JSONObject();
      output.put("__type", "File");
      output.put("name", file.getName());
      output.put("url", file.getUrl());
      return output; 
    }
   
    if(value instanceof ParseGeoPoint) {
      ParseGeoPoint gp = (ParseGeoPoint) value;
View Full Code Here

Examples of org.parse4j.ParseFile

      return decodePointer(jsonObject.optString("className"),
          jsonObject.optString("objectId"));
    }

    if (typeString.equals("File")) {
      return new ParseFile(jsonObject.optString("name"),
          jsonObject.optString("url"));
    }

    if (typeString.equals("GeoPoint")) {
      double latitude, longitude;
View Full Code Here

Examples of org.uploadDB.core.ParseFile

  private InsertTable it;

  public void CreateTable (ConnectionScreen cs, ConnectController cc, CSVParserController csvc) {

    //Create a parsefile object.
    ParseFile pf = new ParseFile(false);

    //Let the parse file methods analyse the file to get the field values and the field length.   
    pf.ReadFirstLine(cs.getFileOpen().getSelectedFile());
    pf.AnalyseFile(cs.getFileOpen().getSelectedFile());

    //Set the db connection for the createtable object
    ct = new CreateTable();
    ct.setDbCon(cc.getDbCon());   
    ct.setTableName(cs.getFTableName().getText());   
    ct.createtable(cc.getDbCon(), pf.getTableLayout(), pf.getFieldLength());

    //Create an inserttable object and sets it name.
    it = new InsertTable(false);   
    it.setDbCon(cc.getDbCon());
    it.setTableName(cs.getFTableName().getText());
    it.ReadFile(cc.getDbCon(), cs.getFileOpen().getSelectedFile(), pf.getTableLayout(),pf.getCsvStrat());

    //Disconnect from DB
    try {
      cc.getDbCon().disConnect();
    } catch (Exception e) {
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.