Codota Logo
FilterDefinition.getDefaultFilterCondition
Code IndexAdd Codota to your IDE (free)

How to use
getDefaultFilterCondition
method
in
org.hibernate.engine.spi.FilterDefinition

Best Java code snippets using org.hibernate.engine.spi.FilterDefinition.getDefaultFilterCondition (Showing top 18 results out of 315)

  • Common ways to obtain FilterDefinition
private void myMethod () {
FilterDefinition f =
  • Codota IconSessionFactoryImplementor sessionFactoryImplementor;sessionFactoryImplementor.getFilterDefinition(parsed[0])
  • Codota IconFilterDef filterDef;FilterDef filterDef2;Map parameterTypes;new FilterDefinition(filterDef.name(), filterDef2.defaultCondition(), parameterTypes)
  • Codota IconSessionFactory sessionFactory;String filterName;sessionFactory.getFilterDefinition(filterName)
  • Smart code suggestions by Codota
}
origin: hibernate/hibernate-orm

private String getCondition(String cond, String name) {
  if ( BinderHelper.isEmptyAnnotationValue( cond ) ) {
    cond = buildingContext.getMetadataCollector().getFilterDefinition( name ).getDefaultFilterCondition();
    if ( StringHelper.isEmpty( cond ) ) {
      throw new AnnotationException(
          "no filter condition found for filter " + name + " in "
              + StringHelper.qualify( propertyHolder.getPath(), propertyName )
      );
    }
  }
  return cond;
}
origin: hibernate/hibernate-orm

final FilterDefinition filterDefinition = mappingDocument.getMetadataCollector().getFilterDefinition( filterSource.getName() );
if ( filterDefinition != null ) {
  condition = filterDefinition.getDefaultFilterCondition();
origin: hibernate/hibernate-orm

final FilterDefinition filterDefinition = sourceDocument.getMetadataCollector().getFilterDefinition( filterSource.getName() );
if ( filterDefinition != null ) {
  condition = filterDefinition.getDefaultFilterCondition();
origin: hibernate/hibernate-orm

if ( BinderHelper.isEmptyAnnotationValue( cond ) ) {
  FilterDefinition definition = context.getMetadataCollector().getFilterDefinition( filterName );
  cond = definition == null ? null : definition.getDefaultFilterCondition();
  if ( StringHelper.isEmpty( cond ) ) {
    throw new AnnotationException(
origin: org.hibernate/com.springsource.org.hibernate

private static void parseFilter(Element filterElement, Filterable filterable, Mappings model) {
  final String name = filterElement.attributeValue( "name" );
  String condition = filterElement.getTextTrim();
  if ( StringHelper.isEmpty(condition) ) {
    condition = filterElement.attributeValue( "condition" );
  }
  //TODO: bad implementation, cos it depends upon ordering of mapping doc
  //      fixing this requires that Collection/PersistentClass gain access
  //      to the Mappings reference from Configuration (or the filterDefinitions
  //      map directly) sometime during Configuration.buildSessionFactory
  //      (after all the types/filter-defs are known and before building
  //      persisters).
  if ( StringHelper.isEmpty(condition) ) {
    condition = model.getFilterDefinition(name).getDefaultFilterCondition();
  }
  if ( condition==null) {
    throw new MappingException("no filter condition found for filter: " + name);
  }
  LOG.debugf( "Applying filter [%s] as [%s]", name, condition );
  filterable.addFilter( name, condition );
}
origin: org.hibernate/com.springsource.org.hibernate.core

private static void parseFilter(Element filterElement, Filterable filterable, Mappings model) {
  final String name = filterElement.attributeValue( "name" );
  String condition = filterElement.getTextTrim();
  if ( StringHelper.isEmpty(condition) ) {
    condition = filterElement.attributeValue( "condition" );
  }
  //TODO: bad implementation, cos it depends upon ordering of mapping doc
  //      fixing this requires that Collection/PersistentClass gain access
  //      to the Mappings reference from Configuration (or the filterDefinitions
  //      map directly) sometime during Configuration.buildSessionFactory
  //      (after all the types/filter-defs are known and before building
  //      persisters).
  if ( StringHelper.isEmpty(condition) ) {
    condition = model.getFilterDefinition(name).getDefaultFilterCondition();
  }
  if ( condition==null) {
    throw new MappingException("no filter condition found for filter: " + name);
  }
  LOG.debugf( "Applying filter [%s] as [%s]", name, condition );
  filterable.addFilter( name, condition );
}
origin: org.hibernate/com.springsource.org.hibernate

private String getCondition(String cond, String name) {
  if ( BinderHelper.isEmptyAnnotationValue( cond ) ) {
    cond = mappings.getFilterDefinition( name ).getDefaultFilterCondition();
    if ( StringHelper.isEmpty( cond ) ) {
      throw new AnnotationException(
          "no filter condition found for filter " + name + " in "
              + StringHelper.qualify( propertyHolder.getPath(), propertyName )
      );
    }
  }
  return cond;
}
origin: org.hibernate/com.springsource.org.hibernate.core

private String getCondition(String cond, String name) {
  if ( BinderHelper.isEmptyAnnotationValue( cond ) ) {
    cond = mappings.getFilterDefinition( name ).getDefaultFilterCondition();
    if ( StringHelper.isEmpty( cond ) ) {
      throw new AnnotationException(
          "no filter condition found for filter " + name + " in "
              + StringHelper.qualify( propertyHolder.getPath(), propertyName )
      );
    }
  }
  return cond;
}
origin: org.hibernate.orm/hibernate-core

private String getCondition(String cond, String name) {
  if ( BinderHelper.isEmptyAnnotationValue( cond ) ) {
    cond = buildingContext.getMetadataCollector().getFilterDefinition( name ).getDefaultFilterCondition();
    if ( StringHelper.isEmpty( cond ) ) {
      throw new AnnotationException(
          "no filter condition found for filter " + name + " in "
              + StringHelper.qualify( propertyHolder.getPath(), propertyName )
      );
    }
  }
  return cond;
}
origin: org.hibernate/com.springsource.org.hibernate

if ( StringHelper.isEmpty(condition) ) condition = filterElement.attributeValue( "condition" );
if ( StringHelper.isEmpty(condition) ) {
  condition = model.getFilterDefinition(name).getDefaultFilterCondition();
origin: org.hibernate/com.springsource.org.hibernate.core

if ( StringHelper.isEmpty(condition) ) condition = filterElement.attributeValue( "condition" );
if ( StringHelper.isEmpty(condition) ) {
  condition = model.getFilterDefinition(name).getDefaultFilterCondition();
origin: org.hibernate/com.springsource.org.hibernate

filterDefaultConditionsByName.put( filterDefinition.getFilterName(), filterDefinition.getDefaultFilterCondition() );
origin: org.hibernate/com.springsource.org.hibernate.core

filterDefaultConditionsByName.put( filterDefinition.getFilterName(), filterDefinition.getDefaultFilterCondition() );
origin: org.hibernate/com.springsource.org.hibernate

if ( BinderHelper.isEmptyAnnotationValue( cond ) ) {
  FilterDefinition definition = mappings.getFilterDefinition( filterName );
  cond = definition == null ? null : definition.getDefaultFilterCondition();
  if ( StringHelper.isEmpty( cond ) ) {
    throw new AnnotationException(
origin: org.hibernate/com.springsource.org.hibernate.core

if ( BinderHelper.isEmptyAnnotationValue( cond ) ) {
  FilterDefinition definition = mappings.getFilterDefinition( filterName );
  cond = definition == null ? null : definition.getDefaultFilterCondition();
  if ( StringHelper.isEmpty( cond ) ) {
    throw new AnnotationException(
origin: org.hibernate.orm/hibernate-core

final FilterDefinition filterDefinition = mappingDocument.getMetadataCollector().getFilterDefinition( filterSource.getName() );
if ( filterDefinition != null ) {
  condition = filterDefinition.getDefaultFilterCondition();
origin: org.hibernate.orm/hibernate-core

if ( BinderHelper.isEmptyAnnotationValue( cond ) ) {
  FilterDefinition definition = context.getMetadataCollector().getFilterDefinition( filterName );
  cond = definition == null ? null : definition.getDefaultFilterCondition();
  if ( StringHelper.isEmpty( cond ) ) {
    throw new AnnotationException(
origin: org.hibernate.orm/hibernate-core

final FilterDefinition filterDefinition = sourceDocument.getMetadataCollector().getFilterDefinition( filterSource.getName() );
if ( filterDefinition != null ) {
  condition = filterDefinition.getDefaultFilterCondition();
org.hibernate.engine.spiFilterDefinitiongetDefaultFilterCondition

Popular methods of FilterDefinition

  • <init>
    Construct a new FilterDefinition instance.
  • getFilterName
    Get the name of the filter this configuration defines.
  • getParameterNames
    Get a set of the parameters defined by this configuration.
  • getParameterType
    Retrieve the type of the named parameter defined for this filter.
  • getParameterTypes

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Notification (javax.management)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now