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

The following examples show how to use org.hibernate.Session#disableFilter() . These examples are extracted from open source projects. 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 Project: spring-analysis-note   File: HibernateTemplate.java    License: MIT License 5 votes vote down vote up
/**
 * Disable the specified filters on the given Session.
 * @param session the current Hibernate Session
 * @see #setFilterNames
 * @see Session#disableFilter(String)
 */
protected void disableFilters(Session session) {
	String[] filterNames = getFilterNames();
	if (filterNames != null) {
		for (String filterName : filterNames) {
			session.disableFilter(filterName);
		}
	}
}
 
Example 2
/**
 * Disable the specified filters on the given Session.
 * @param session the current Hibernate Session
 * @see #setFilterNames
 * @see Session#disableFilter(String)
 */
protected void disableFilters(Session session) {
	String[] filterNames = getFilterNames();
	if (filterNames != null) {
		for (String filterName : filterNames) {
			session.disableFilter(filterName);
		}
	}
}
 
Example 3
/**
 * 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 4
/**
 * Disable the specified filters on the given Session.
 * @param session the current Hibernate Session
 * @see #setFilterNames
 * @see Session#disableFilter(String)
 */
protected void disableFilters(Session session) {
	String[] filterNames = getFilterNames();
	if (filterNames != null) {
		for (String filterName : filterNames) {
			session.disableFilter(filterName);
		}
	}
}
 
Example 5
/**
 * 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 6
/**
 * 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 7
/**
 * Disable the specified filters on the given Session.
 * @param session the current Hibernate Session
 * @see #setFilterNames
 * @see Session#disableFilter(String)
 */
protected void disableFilters(Session session) {
	String[] filterNames = getFilterNames();
	if (filterNames != null) {
		for (String filterName : filterNames) {
			session.disableFilter(filterName);
		}
	}
}
 
Example 8
/**
 * 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 9
protected void disableTenantFilter(Session session) {
	Filter filter = session.getEnabledFilter(TENANT_FILTER_NAME);
	if (filter != null) {
		session.disableFilter(TENANT_FILTER_NAME);
	}
}