Examples of SqlQInfo


Examples of gc.base.sql.SqlQInfo

  public String    synchronizable;
 
  /** Default constructor. */
  public GptResource() {
    super();
    SqlQInfo info = getSqlQInfo();
    info.setTableSuffix("RESOURCE");
    info.setFields(new String[]{"*"});
    info.setOrderBy(null);
    info.setWhere(null);
  }
 
View Full Code Here

Examples of gc.base.sql.SqlQInfo

   * @param docuuid the document uuid
   * @throws Exception if an exception occurs
   */
  public void querySqlDB(TaskContext context, Connection con, String docuuid) throws Exception {
    key = null;
    SqlQInfo info = getSqlQInfo();
    info.setWhere("DOCUUID=?");
    List<Object> bindings = new ArrayList<Object>();
    bindings.add(docuuid);
    info.setQueryBindings(bindings);
    SqlQuery q = new SqlQuery();
    q.query(context,con,info, new SqlRowHandler() {
      @Override
      public void handleSqlRow(TaskContext context, Connection con, ResultSet rs,
          long rowNum) throws Exception {
View Full Code Here

Examples of gc.base.sql.SqlQInfo

  public String xml;
 
  /** Default constructor. */
  public GptResourceXml() {
    super();
    SqlQInfo info = this.getSqlQInfo();
    info.setTableSuffix("RESOURCE_DATA");
    info.setFields(new String[]{"DOCUUID,XML"});
    info.setOrderBy(null);
    info.setWhere(null);
    info.setFetchSize(1);
  }
View Full Code Here

Examples of gc.base.sql.SqlQInfo

   * @throws Exception if an exception occurs
   */
  public void querySqlDB(TaskContext context, Connection con, String docuuid) throws Exception {
    key = null;
    xml = null;
    SqlQInfo info = getSqlQInfo();
    info.setWhere("DOCUUID=?");
    List<Object> bindings = new ArrayList<Object>();
    bindings.add(docuuid);
    info.setQueryBindings(bindings);
    SqlQuery q = new SqlQuery();
    q.query(context,con,info, new SqlRowHandler() {
      @Override
      public void handleSqlRow(TaskContext context, Connection con, ResultSet rs,
          long rowNum) throws Exception {
View Full Code Here

Examples of gc.base.sql.SqlQInfo

public class GptHarvestingSite extends GptResource {
 
  /** Default constructor. */
  public GptHarvestingSite() {
    super();
    SqlQInfo info = getSqlQInfo();
    info.setWhere("PROTOCOL IS NOT NULL");
  }
View Full Code Here

Examples of gc.base.sql.SqlQInfo

   * @throws Exception if an exception occurs
   */
  public void querySqlDB(TaskContext context, Connection con, String docuuid) throws Exception {
    init(context, con);
   
    SqlQInfo info = getSqlQInfo();
    info.setTableSuffix("COLLECTION_MEMBER");
    info.setWhere("DOCUUID=?");
    List<Object> bindings = new ArrayList<Object>();
    bindings.add(docuuid);
    info.setQueryBindings(bindings);
    SqlQuery q = new SqlQuery();
    q.query(context, con, info, new SqlRowHandler() {
      @Override
      public void handleSqlRow(TaskContext context, Connection con, ResultSet rs, long rowNum) throws Exception {
        readFields(rs);
View Full Code Here

Examples of gc.base.sql.SqlQInfo

 
  private void init(TaskContext context, Connection con) throws Exception {
    if (collections==null) {
      collections = new TreeMap<String, String>(String.CASE_INSENSITIVE_ORDER);
     
      SqlQInfo info = getSqlQInfo();
      info.setTableSuffix("COLLECTION");
      SqlQuery q = new SqlQuery();
      q.query(context, con, info, new SqlRowHandler() {
        @Override
        public void handleSqlRow(TaskContext context, Connection con, ResultSet rs, long rowNum) throws Exception {
          String coluuid = rs.getString("COLUUID");
View Full Code Here

Examples of gc.base.sql.SqlQInfo

  public String  dn;
 
  /** Default constructor. */
  public GptUser() {
    super();
    SqlQInfo info = getSqlQInfo();
    info.setTableSuffix("USER");
    info.setFields(new String[]{"*"});
    info.setOrderBy(null);
    info.setWhere(null);
  }
 
View Full Code Here

Examples of gc.base.sql.SqlQInfo

   * @param userid the user id
   * @throws Exception if an exception occurs
   */
  public void querySqlDB(TaskContext context, Connection con, int userid) throws Exception {
    key = null;
    SqlQInfo info = getSqlQInfo();
    info.setWhere("USERID=?");
    List<Object> bindings = new ArrayList<Object>();
    bindings.add(new Integer(userid));
    info.setQueryBindings(bindings);
    SqlQuery q = new SqlQuery();
    q.query(context,con,info, new SqlRowHandler() {
      @Override
      public void handleSqlRow(TaskContext context, Connection con, ResultSet rs,
          long rowNum) throws Exception {
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.