Java Code Examples for org.hibernate.Session.disableFilter()

The following are Jave code examples for showing how to use disableFilter() of the org.hibernate.Session class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: lams   File: HibernateTemplate.java   View Source Code Vote up 5 votes
/**
 * Disable the specified filters on the given Session.
 * @param session the current Hibernate Session
 * @see #setFilterNames
 * @see org.hibernate.Session#disableFilter(String)
 */
protected void disableFilters(Session session) {
	String[] filterNames = getFilterNames();
	if (filterNames != null) {
		for (String filterName : filterNames) {
			session.disableFilter(filterName);
		}
	}
}
 
Example 2
Project: lams   File: HibernateAccessor.java   View Source Code Vote up 5 votes
/**
 * Disable the specified filters on the given Session.
 * @param session the current Hibernate Session
 * @see #setFilterNames
 * @see org.hibernate.Session#disableFilter(String)
 */
protected void disableFilters(Session session) {
	String[] filterNames = getFilterNames();
	if (filterNames != null) {
		for (String filterName : filterNames) {
			session.disableFilter(filterName);
		}
	}
}