All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.plasma.query.collector.SelectionPredicates Maven / Gradle / Ivy

There is a newer version: 1.3.3
Show newest version
package org.plasma.query.collector;

import org.plasma.query.model.Where;


/**
 * Provides access to path predicates for a query graph with operations useful for
 * service implementors.   
 * @see org.plasma.query.model.Select 
 * @see commonj.sdo.Type
 * @see commonj.sdo.Property
 *  
 * @author Scott Cinnamond
 * @since 1.1.5
 */
public interface SelectionPredicates {
          
	
	/**
	 * Traverses the given predicate adding its properties
	 * and property paths to the selection.
	 * @param predicate the predicate
	 */
	public void collect(Where predicate);
	
	/**
	 * Returns true if the selection has path predicates. 
	 * @return true if the selection has path predicates.
	 */
	public boolean hasPredicates();
	
	/**
	 * Returns the predicate for the given property or null
	 * if the given property is not mapped. 
	 * @param property the property
	 * @return the predicate for the given property or null
	 * if the given property is not mapped.
	 */
	public Where getPredicate(commonj.sdo.Property property);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy