{
LOG.debug( MSG.getMessage( Keys.QUERY_RP_REQ,
requestDoc.toString( ) ) );
}
QueryResourcePropertiesResponseDocument responseDoc = createResponseDocument( );
QueryExpressionType queryExprType =
requestDoc.getQueryResourceProperties( ).getQueryExpression( );
XmlBeansQueryExpression queryExpr = new XmlBeansQueryExpression( queryExprType );
refreshAllProperties( );
Object result = null;
try
{
result = QUERY_ENGINE.executeQuery( queryExpr,
getProperties( ) );
}
catch ( UnknownQueryExpressionDialectException uqede )
{
throw new UnknownQueryExpressionDialectFaultException( NAMESPACE_SET,
uqede.getDialect( ) );
}
catch ( QueryEvaluationErrorException qeee )
{
throw new QueryEvaluationErrorFaultException( NAMESPACE_SET,
qeee.getMessage( ) );
}
catch ( InvalidQueryExpressionException iqee )
{
throw new InvalidQueryExpressionFaultException( NAMESPACE_SET, queryExpr );
}
QueryResourcePropertiesResponseDocument.QueryResourcePropertiesResponse responseElem =
responseDoc.getQueryResourcePropertiesResponse( );
if ( result.getClass( ).isArray( ) )
{
for ( int i = 0; i < Array.getLength( result ); i++ )
{
Object resultItem = Array.get( result, i );