Package it.highwaytech.db

Examples of it.highwaytech.db.QueryResult


      // }

      XMLBuilder theXMLDoc = null;
      if (!selid.equals("") && !pos.equals("")) {
        // httpSession.setAttribute("posInQr", new Integer(pos));
        QueryResult queryResult = xwconn.getQRFromSelId(selid);
        String docXML = xwconn.getSingleXMLFromQr(queryResult, Integer.parseInt(pos), true);
        try {
          viewBean.setPhysDocNext(xwconn.getNumDocFromQRElement(queryResult, Integer.parseInt(pos) + 1));
        } catch (Exception e) {
          viewBean.setPhysDocNext(-1);
View Full Code Here


   * (non-Javadoc)
   *
   * @see com.regesta.framework.xw.XMLEngine#executeUpdate(java.lang.String, java.lang.String)
   */
  public void executeUpdate(String xmlToInsert, String xQuery) throws SQLException, XWException {
    QueryResult qr = null;
    int docNumber = -1;
    String theLock = "";
    if (xQuery != null) {
      qr = find(connection, theDb, xQuery, "", ServerCommand.find_SORT, adjacency, 0, null);
      docNumber = getNumDoc(connection, theDb, qr, 0);
View Full Code Here

   * (non-Javadoc)
   *
   * @see com.regesta.framework.xw.XMLEngine#insert(java.lang.String)
   */
  public int insert(String xmlToInsert) throws SQLException, XWException {
    QueryResult qr = null;
    int docNumber = -1;
    String theLock = "";
    XMLCommand theCommand = new XMLCommand(XMLCommand.SaveDocument, XMLCommand.SaveDocument_Save, docNumber, xmlToInsert, thePne, thePnce, theLock);
    String result = "";
    result = XMLCommand(connection, theDb, theCommand.toString());
View Full Code Here

   *
   * @see com.regesta.framework.xw.XMLEngine#select(java.lang.String)
   */
  public String[] select(String xQuery) throws SQLException, XWException {
    String[] result = null;
    QueryResult qr = null;
    if (xQuery != null) {
      qr = find(connection, theDb, xQuery, "", ServerCommand.find_SORT, adjacency, 0, null);
      if (qr != null) {
        result = new String[qr.elements];
        for (int i = 0; i < qr.elements; i++) {
View Full Code Here

   *
   * @see com.regesta.framework.xw.XMLEngine#select(java.lang.String, java.lang.String)
   */
  public String[] select(String xQuery, String sortParamethers) throws SQLException, XWException {
    String[] result = null;
    QueryResult qr = null;
    if (xQuery != null) {
      qr = find(connection, theDb, xQuery, sortParamethers, ServerCommand.find_SORT, adjacency, 0, null);
      if (qr != null) {
        result = new String[qr.elements];
        for (int i = 0; i < qr.elements; i++) {
View Full Code Here

   * (non-Javadoc)
   *
   * @see com.regesta.framework.xw.XMLEngine#selectQR(java.lang.String)
   */
  public QueryResult selectQR(String xQuery) throws SQLException, XWException {
    QueryResult qr = selectQR(xQuery, "", ServerCommand.find_SORT, adjacency);
    return qr;
  }
View Full Code Here

   * (non-Javadoc)
   *
   * @see com.regesta.framework.xw.XMLEngine#selectQR(java.lang.String, java.lang.String, byte, int)
   */
  public QueryResult selectQR(String xQuery, String sort, byte serverCommand, int adj) throws SQLException, XWException {
    QueryResult qr = null;
    if (xQuery != null) {
      qr = find(connection, theDb, xQuery, sort, serverCommand, adj, 0, null);
    } else {
      throw new XWException("xQuery must not be null");
    }
View Full Code Here

   *
   * @see com.regesta.framework.xw.XMLEngine#getSonsFromNumDoc(int)
   */
  public QueryResult getSonsFromNumDoc(int numDoc) throws SQLException, XWException {

    QueryResult qr = null;

    qr = findSons(connection, theDb, numDoc);

    return qr;
  }
View Full Code Here

   *
   * @see com.regesta.framework.xw.XMLEngine#selectObject(java.lang.String)
   */
  public Vector selectObject(String xQuery) throws SQLException, XWException {
    Vector result = null;
    QueryResult qr = null;
    if (xQuery != null) {
      qr = find(connection, theDb, xQuery, "", ServerCommand.find_SORT, adjacency, 0, null);
      if (qr != null) {
        result = new Vector();
        for (int i = 0; i < qr.elements; i++) {
View Full Code Here

   *
   * @see com.regesta.framework.xw.XMLEngine#delete(java.lang.String)
   */
  public void delete(String xQuery) throws SQLException, XWException {

    QueryResult qr = null;
    if (xQuery != null) {
      qr = find(connection, theDb, xQuery, "", ServerCommand.find_SORT, adjacency, 0, null);
      if (qr != null) {

        for (int i = 0; i < qr.elements; i++) {
View Full Code Here

TOP

Related Classes of it.highwaytech.db.QueryResult

Copyright © 2018 www.massapicom. 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.