Package com.dotmarketing.common.db

Examples of com.dotmarketing.common.db.DotConnect.addParam()


  public void insertInode(String inode, String owner, String type, String identifier) throws SQLException {
    String sql = "INSERT INTO INODE(INODE, OWNER, IDATE, TYPE, IDENTIFIER) VALUES (?,?,CURRENT TIMESTAMP,?,?)";
    DotConnect dot = new DotConnect();
    dot.setSQL(sql);
    dot.addParam(inode);
    dot.addParam(owner);
    dot.addParam(type);
    dot.addParam(identifier);
    dot.executeStatement(sql);
View Full Code Here


  public void insertInode(String inode, String owner, String type, String identifier) throws SQLException {
    String sql = "INSERT INTO INODE(INODE, OWNER, IDATE, TYPE, IDENTIFIER) VALUES (?,?,CURRENT TIMESTAMP,?,?)";
    DotConnect dot = new DotConnect();
    dot.setSQL(sql);
    dot.addParam(inode);
    dot.addParam(owner);
    dot.addParam(type);
    dot.addParam(identifier);
    dot.executeStatement(sql);

  }
View Full Code Here

    String sql = "INSERT INTO INODE(INODE, OWNER, IDATE, TYPE, IDENTIFIER) VALUES (?,?,CURRENT TIMESTAMP,?,?)";
    DotConnect dot = new DotConnect();
    dot.setSQL(sql);
    dot.addParam(inode);
    dot.addParam(owner);
    dot.addParam(type);
    dot.addParam(identifier);
    dot.executeStatement(sql);

  }
 
View Full Code Here

    DotConnect dot = new DotConnect();
    dot.setSQL(sql);
    dot.addParam(inode);
    dot.addParam(owner);
    dot.addParam(type);
    dot.addParam(identifier);
    dot.executeStatement(sql);

  }
 
  public static synchronized String generateUuid(){
View Full Code Here

    DotConnect dotConnect = new DotConnect();
    StringBuffer sql = new StringBuffer("select * from user_favorites where page_url = ? and user_id = ?");

    dotConnect.setSQL(sql.toString());
    dotConnect.addParam(url_page);
    dotConnect.addParam(user_id);
    ArrayList results =null;
    try {
      results = dotConnect.getResults();
    } catch (DotDataException e) {
View Full Code Here

    DotConnect dotConnect = new DotConnect();
    StringBuffer sql = new StringBuffer("select * from user_favorites where page_url = ? and user_id = ?");

    dotConnect.setSQL(sql.toString());
    dotConnect.addParam(url_page);
    dotConnect.addParam(user_id);
    ArrayList results =null;
    try {
      results = dotConnect.getResults();
    } catch (DotDataException e) {
      Logger.error(FavoritesWebAPI.class,"isUrlFavorite method failed:"+ e, e);
View Full Code Here

      if (UtilMethods.isSet(url_params)) {
        url_page = url_page + "?" + url_params ;
      }

      dotConnect.setSQL(sql.toString());
      dotConnect.addParam(user_id);
      dotConnect.addParam(url_page);
      dotConnect.getResult();
    }
    catch (Exception e) {
      retVal = false;
View Full Code Here

        url_page = url_page + "?" + url_params ;
      }

      dotConnect.setSQL(sql.toString());
      dotConnect.addParam(user_id);
      dotConnect.addParam(url_page);
      dotConnect.getResult();
    }
    catch (Exception e) {
      retVal = false;
    }
View Full Code Here

      DotConnect dotConnect = new DotConnect();

      String sql = "select * from user_favorites where user_id = ?";

      dotConnect.setSQL(sql);
      dotConnect.addParam(user_id);
      ArrayList<HashMap> favorites = (ArrayList<HashMap>) dotConnect.getResults();

      for (HashMap<String, String> favorite : favorites) {
        String page_url = String.valueOf(favorite.get("page_url"));

View Full Code Here

    }
    DotConnect dc = new DotConnect();
    dc.setSQL(bob.toString().toLowerCase());
    if(params != null){
      for (Object value : params) {
        dc.addParam(value);
      }
    }
    if(query.getStart() > 0){
      dc.setStartRow(query.getStart());
    }
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.