Example usage for org.hibernate.internal FilterImpl getParameter

List of usage examples for org.hibernate.internal FilterImpl getParameter

Introduction

In this page you can find the example usage for org.hibernate.internal FilterImpl getParameter.

Prototype

public Object getParameter(String name) 

Source Link

Document

Get the value of the named parameter for the current filter.

Usage

From source file:org.candlepin.model.PoolCurator.java

License:Open Source License

/**
 * @param session/*from w ww. java2 s .  co  m*/
 * @param consumerFilter
 */
private void enableIfPrevEnabled(Filter consumerFilter) {
    // if filter was previously enabled, restore it.
    if (consumerFilter != null) {
        FilterImpl filterImpl = (FilterImpl) consumerFilter;
        Filter filter = currentSession().enableFilter(CONSUMER_FILTER);
        filter.setParameter("consumer_id", filterImpl.getParameter("consumer_id"));
    }
}