final Collection returnValues = new HashSet();
final QueryResult[] queryResultTemplates = queryFeature.getQueryResultTemplates();
for( int i = 0; i < queryResultTemplates.length; i++ )
{
final QueryResult queryResult = queryResultTemplates[ i ];
RecordModel recordModel = queryResult.getRecordModel();
if( recordModel == null )
{
recordModel= recordModelFactory.createRecordModel( queryResult.getRecordClassName() );
}
final Collection editFields = recordModel.getEditFields();
for( Iterator iterator = editFields.iterator(); iterator.hasNext(); )
{
final DataFieldModel dataFieldModel = (DataFieldModel)iterator.next();
if( dataFieldModel.isAttribute() )
{
returnValues.add( stripAttribute( SEPARATOR + normaliseQueryContext( queryResult.getSchemaContext() ) + SEPARATOR + dataFieldModel.getName() ) );
}
else
{
returnValues.add( SEPARATOR + normaliseQueryContext( queryResult.getSchemaContext() ) + SEPARATOR + dataFieldModel.getName() );
}
}
}
final StringBuffer query = ( isTamino ) ? new StringBuffer( "declare namespace tf=\"http://namespaces.softwareag.com/tamino/TaminoFunction\" " ) : new StringBuffer(); //$NON-NLS-1$;