Java Code Examples for org.hibernate.Filter#validate()

The following examples show how to use org.hibernate.Filter#validate() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LoadQueryInfluencers.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
public Map<String,Filter> getEnabledFilters() {
	// First, validate all the enabled filters...
	//TODO: this implementation has bad performance
	for ( Filter filter : enabledFilters.values() ) {
		filter.validate();
	}
	return enabledFilters;
}
 
Example 2
Source File: SessionImpl.java    From cacheonix-core with GNU Lesser General Public License v2.1 5 votes vote down vote up
public Map getEnabledFilters() {
	errorIfClosed();
	checkTransactionSynchStatus();
	// First, validate all the enabled filters...
	//TODO: this implementation has bad performance
	Iterator itr = enabledFilters.values().iterator();
	while ( itr.hasNext() ) {
		final Filter filter = (Filter) itr.next();
		filter.validate();
	}
	return enabledFilters;
}