1 package org.hibernate.engine; 3 4 import org.hibernate.type.Type; 5 6 import java.util.Map ; 7 import java.util.HashMap ; 8 import java.util.Set ; 9 10 16 public class FilterDefinition { 17 private String filterName; 18 private String defaultFilterCondition; 19 private Map parameterTypes = new HashMap (); 20 21 26 public FilterDefinition(String name) { 27 this.filterName = name; 28 } 29 30 35 public String getFilterName() { 36 return filterName; 37 } 38 39 44 public Set getParameterNames() { 45 return parameterTypes.keySet(); 46 } 47 48 54 public Type getParameterType(String parameterName) { 55 return (Type) parameterTypes.get(parameterName); 56 } 57 58 65 public FilterDefinition addParameterType(String name, Type type) { 66 parameterTypes.put(name, type); 67 return this; 68 } 69 70 public String getDefaultFilterCondition() { 71 return defaultFilterCondition; 72 } 73 74 75 public void setDefaultFilterCondition(String defaultFilter) { 76 this.defaultFilterCondition = defaultFilter; 77 } 78 79 public Map getParameterTypes() { 80 return parameterTypes; 81 } 82 83 } 84 | Popular Tags |