public List<MetadataReference> queryByMetadata(long fileId)
			throws SQLException {

		QueryBuilder<MetadataReference, Void> qb = queryBuilder();
		qb.where().eq(MetadataReference.COLUMN_FILE_ID, fileId);
		List<MetadataReference> metadataReferences = qb.query();

		return metadataReferences;
	}
public List < MetadataReference > queryByMetadata ( long fileId ) throws SQLException { QueryBuilder < MetadataReference , Void > qb = queryBuilder ( ) ; qb . where ( ) . eq ( MetadataReference . COLUMN_FILE_ID , fileId ) ; List < MetadataReference > metadataReferences = qb . query ( ) ; return metadataReferences ; }
Query by the metadata ids

@param fileId
file id
@return metadata references
@throws SQLException
upon failure