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

The following examples show how to use org.hibernate.Session#disableFilter() . 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: HibernateTemplate.java    From spring-analysis-note with 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
Source File: HibernateTemplate.java    From java-technology-stack with 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 3
Source File: HibernateTemplate.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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
Source File: HibernateTemplate.java    From lams with GNU General Public License v2.0 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 5
Source File: HibernateAccessor.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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
Source File: HibernateAccessor.java    From spring4-understanding with Apache License 2.0 5 votes vote down vote up
/**
 * 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
Source File: HibernateTemplate.java    From spring4-understanding with Apache License 2.0 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 8
Source File: HibernateTemplate.java    From spring4-understanding with Apache License 2.0 5 votes vote down vote up
/**
 * 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
Source File: AbstractHibernateDAO.java    From Knowage-Server with GNU Affero General Public License v3.0 4 votes vote down vote up
protected void disableTenantFilter(Session session) {
	Filter filter = session.getEnabledFilter(TENANT_FILTER_NAME);
	if (filter != null) {
		session.disableFilter(TENANT_FILTER_NAME);
	}
}