Package de.innovationgate.webgate.api

Examples of de.innovationgate.webgate.api.WGProcedureException


     * @see
     * de.innovationgate.webgate.api.WGDatabaseCore#execProcedure(java.lang.
     * String, java.util.List)
     */
    public Object execProcedure(String procName, List args) throws WGProcedureException {
        throw new WGProcedureException("Procedures are not yet supported");
    }
View Full Code Here


   */
  public Object execProcedure(String procName, List args) throws WGProcedureException, WGBackendException {

    Method proc = (Method) _procs.get(procName);
    if (proc == null) {
      throw new WGProcedureException("No procedure of name '" + procName + "'");
    }
   
    Object result = null;
    try {
      result = proc.invoke(this, args.toArray());
    }
    catch (IllegalArgumentException e) {
      throw new WGProcedureException("Argument types and/or count does not match arguments of procedure '" + procName + "'");
    }
    catch (IllegalAccessException e) {
      throw new WGProcedureException("Unable to access procedure '" + procName + "'. Method not visible.");
    }
    catch (InvocationTargetException e) {
      WGFactory.getLogger().error("Error invoking procedure '" + procName + "':" + e.getTargetException().getMessage(), e);
      throw new WGProcedureException("Error invoking procedure '" + procName + "':" + e.getTargetException().getMessage());
   
   
    return result; 
   

View Full Code Here

  /* (Kein Javadoc)
   * @see de.innovationgate.webgate.api.WGDatabaseCore#execProcedure(java.lang.String, java.util.List)
   */
  public Object execProcedure(String procName, List args) throws WGProcedureException {
    throw new WGProcedureException("Implementation '" + getTypeName() + "' does not support procedures.");
  }
View Full Code Here

  public boolean rollbackTransaction() {
    return false;
  }

  public Object execProcedure(String procName, List args) throws WGProcedureException {
    throw new WGProcedureException("Implementation '" + getTypeName() + "' does not support procedures.");
  }
View Full Code Here

TOP

Related Classes of de.innovationgate.webgate.api.WGProcedureException

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.