"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;
}