Examples of FilterDefinition


Examples of org.hibernate.engine.spi.FilterDefinition

  private static void bindFilterDef(FilterDef defAnn, Mappings mappings) {
    Map<String, org.hibernate.type.Type> params = new HashMap<String, org.hibernate.type.Type>();
    for ( ParamDef param : defAnn.parameters() ) {
      params.put( param.name(), mappings.getTypeResolver().heuristicType( param.type() ) );
    }
    FilterDefinition def = new FilterDefinition( defAnn.name(), defAnn.defaultCondition(), params );
    LOG.debugf( "Binding filter definition: %s", def.getFilterName() );
    mappings.addFilterDefinition( def );
  }
View Full Code Here

Examples of org.hibernate.engine.spi.FilterDefinition

        }
      }
      if ( condition == null ) {
        condition = filterDefinition.getCondition();
      }
      metadata.addFilterDefinition( new FilterDefinition( name, condition, parameters ) );
    }
  }
View Full Code Here

Examples of org.hibernate.engine.spi.FilterDefinition

  public StatisticsImplementor getStatisticsImplementor() {
    return serviceRegistry.getService( StatisticsImplementor.class );
  }

  public FilterDefinition getFilterDefinition(String filterName) throws HibernateException {
    FilterDefinition def = filters.get( filterName );
    if ( def == null ) {
      throw new HibernateException( "No such filter configured [" + filterName + "]" );
    }
    return def;
  }
View Full Code Here

Examples of org.pentaho.platform.uifoundation.component.FilterDefinition

*/
public class FilterDefinitionFactory {

  public static FilterDefinition create( final Element node, final IPentahoSession session, final ILogger logger )
    throws FilterPanelException {
    FilterDefinition fd = null;
    if ( null != XmlDom4JHelper.getNodeText( "session-attribute", node ) ) { //$NON-NLS-1$
      fd = new SessionFilterDefinition( node, session, logger );
    } else if ( null != XmlDom4JHelper.getNodeText( "global-attribute", node ) ) { //$NON-NLS-1$
      fd = new GlobalFilterDefinition( node, session, logger );
    } else if ( null != XmlDom4JHelper.getNodeText( "data-solution", node ) ) { //$NON-NLS-1$
      fd = new ActionFilterDefinition( node, session, logger );
    } else if ( null != XmlDom4JHelper.getNodeText( "static-lov", node ) ) { //$NON-NLS-1$
      fd = new StaticFilterDefinition( node, session, logger );
    } else {
      //
    }
    if ( fd != null ) {
      fd.fromXml( node );
    }
    return fd;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.