Package net.sf.xbus.base.core

Examples of net.sf.xbus.base.core.XException


      stmt = mConnection.createStatement();
      result = stmt.executeUpdate(statement);
    }
    catch (SQLException e)
    {
      throw new XException(Constants.LOCATION_EXTERN,
          Constants.LAYER_TECHNICAL,
          Constants.PACKAGE_TECHNICAL_DATABASE, "0", e);
    }
    finally
    {
View Full Code Here


          .prepareStatement(statement);
      mPreparedStatements.put(name, pStatement);
    }
    catch (SQLException e)
    {
      throw new XException(Constants.LOCATION_EXTERN,
          Constants.LAYER_TECHNICAL,
          Constants.PACKAGE_TECHNICAL_DATABASE, "0", e);
    }
  }
View Full Code Here

      if (pStatement == null)
      {
        List params = new Vector();
        params.add(name);
        throw new XException(Constants.LOCATION_EXTERN,
            Constants.LAYER_TECHNICAL,
            Constants.PACKAGE_TECHNICAL_DATABASE, "7", params);
      }
      pStatement.setString(pos, value);
    }
    catch (SQLException e)
    {
      throw new XException(Constants.LOCATION_EXTERN,
          Constants.LAYER_TECHNICAL,
          Constants.PACKAGE_TECHNICAL_DATABASE, "0", e);
    }
  }
View Full Code Here

      if (pStatement == null)
      {
        List params = new Vector();
        params.add(name);
        throw new XException(Constants.LOCATION_EXTERN,
            Constants.LAYER_TECHNICAL,
            Constants.PACKAGE_TECHNICAL_DATABASE, "7", params);
      }
      pStatement.setInt(pos, value);
    }
    catch (SQLException e)
    {
      throw new XException(Constants.LOCATION_EXTERN,
          Constants.LAYER_TECHNICAL,
          Constants.PACKAGE_TECHNICAL_DATABASE, "0", e);
    }
  }
View Full Code Here

      if (pStatement == null)
      {
        List params = new Vector();
        params.add(name);
        throw new XException(Constants.LOCATION_EXTERN,
            Constants.LAYER_TECHNICAL,
            Constants.PACKAGE_TECHNICAL_DATABASE, "7", params);
      }

      pStatement.setNull(pos, type);
    }
    catch (SQLException e)
    {
      throw new XException(Constants.LOCATION_EXTERN,
          Constants.LAYER_TECHNICAL,
          Constants.PACKAGE_TECHNICAL_DATABASE, "0", e);
    }
  }
View Full Code Here

      if (pStatement == null)
      {
        List params = new Vector();
        params.add(name);
        throw new XException(Constants.LOCATION_EXTERN,
            Constants.LAYER_TECHNICAL,
            Constants.PACKAGE_TECHNICAL_DATABASE, "7", params);
      }
      result = pStatement.executeUpdate();
    }
    catch (SQLException e)
    {
      throw new XException(Constants.LOCATION_EXTERN,
          Constants.LAYER_TECHNICAL,
          Constants.PACKAGE_TECHNICAL_DATABASE, "0", e);
    }
    return result;
  }
View Full Code Here

      if (pStatement == null)
      {
        List params = new Vector();
        params.add(name);
        throw new XException(Constants.LOCATION_EXTERN,
            Constants.LAYER_TECHNICAL,
            Constants.PACKAGE_TECHNICAL_DATABASE, "7", params);
      }

      int maxRows = Configuration.getInstance().getValueAsInt(
          mConfigChapter, mConfigSection, "MaxRows");
      if (maxRows >= 0)
      {
        pStatement.setMaxRows(maxRows);
      }
      result = pStatement.executeQuery();
    }
    catch (SQLException e)
    {
      throw new XException(Constants.LOCATION_EXTERN,
          Constants.LAYER_TECHNICAL,
          Constants.PACKAGE_TECHNICAL_DATABASE, "0", e);
    }
    return result;
  }
View Full Code Here

        statement.appendChild(record);
      }
    }
    catch (SQLException e)
    {
      throw new XException(Constants.LOCATION_EXTERN,
          Constants.LAYER_TECHNICAL,
          Constants.PACKAGE_TECHNICAL_DATABASE, "0", e);
    }
  }
View Full Code Here

      {
        mSystem.setGuiAvailable(false);
      }
      catch (PropertyVetoException e)
      {
        throw new XException(Constants.LOCATION_EXTERN,
            Constants.LAYER_TECHNICAL,
            Constants.PACKAGE_TECHNICAL_AS400, "0", e);
      }
    }
    mAS400Connections.put(getKey(name), this);
View Full Code Here

        && !resolution.equals(Constants.WRITE_OVERWRITE)
        && !resolution.equals(Constants.WRITE_RENAME))
    {
      List params = new Vector();
      params.add(resolution);
      throw new XException(Constants.LOCATION_EXTERN,
          Constants.LAYER_TECHNICAL,
          Constants.PACKAGE_TECHNICAL_FILE, "28", params);
    }

    return resolution;
View Full Code Here

TOP

Related Classes of net.sf.xbus.base.core.XException

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.