Examples of XQueryConnectionAction


Examples of org.pentaho.actionsequence.dom.actions.XQueryConnectionAction

          "XQueryBaseComponent.ERROR_0003_OUTPUT_NOT_SPECIFIED", getActionName() ) ); //$NON-NLS-1$
      } else {
        result = true;
      }
    } else if ( actionDefinition instanceof XQueryConnectionAction ) {
      XQueryConnectionAction xQueryConnectionAction = (XQueryConnectionAction) actionDefinition;
      if ( xQueryConnectionAction.getOutputConnection() == null ) {
        error( Messages.getInstance().getErrorString(
          "XQueryBaseComponent.ERROR_0003_OUTPUT_NOT_SPECIFIED", getActionName() ) ); //$NON-NLS-1$
      } else {
        result = true;
      }
View Full Code Here

Examples of org.pentaho.actionsequence.dom.actions.XQueryConnectionAction

          "IPreparedComponent.ERROR_0001_INVALID_CONNECTION_TYPE", getActionName() ) ); //$NON-NLS-1$
      } else {
        result = runQuery( connection, xQueryAction.getQuery().getStringValue() );
      }
    } else if ( actionDefinition instanceof XQueryConnectionAction ) {
      XQueryConnectionAction xQueryConnectionAction = (XQueryConnectionAction) getActionDefinition();
      connection = getConnection();
      if ( connection == null ) {
        error( Messages.getInstance().getErrorString(
          "IPreparedComponent.ERROR_0002_CONNECTION_NOT_AVAILABLE", getActionName() ) ); //$NON-NLS-1$
      } else if ( connection.getDatasourceType() != IPentahoConnection.XML_DATASOURCE ) {
        error( Messages.getInstance().getErrorString(
          "IPreparedComponent.ERROR_0001_INVALID_CONNECTION_TYPE", getActionName() ) ); //$NON-NLS-1$
      } else {
        xQueryConnectionAction.getOutputConnection().setValue( this );
        result = true;
      }
    }
    return result;
  }
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.