test_class.declarator: gender
test_class.modifier: private
test_class.original_string: private DictionaryCategory gender;
test_class.type: DictionaryCategory
test_class.var_name: gender
test_class.declarator: education
test_class.modifier: private
test_class.original_string: private DictionaryCategory education;
test_class.type: DictionaryCategory
test_class.var_name: education
test_class.declarator: male
test_class.modifier: private
test_class.original_string: private Dictionary male;
test_class.type: Dictionary
test_class.var_name: male
test_class.declarator: undergraduate
test_class.modifier: private
test_class.original_string: private Dictionary undergraduate;
test_class.type: Dictionary
test_class.var_name: undergraduate
test_class.declarator: graduate
test_class.modifier: private
test_class.original_string: private Dictionary graduate;
test_class.type: Dictionary
test_class.var_name: graduate
test_class.declarator: associate
test_class.modifier: private
test_class.original_string: private Dictionary associate;
test_class.type: Dictionary
test_class.var_name: associate
test_class.file: dddlib-persistence/dddlib-persistence-hibernate/src/test/java/org/dayatang/persistence/hibernate/EntityRepositoryHibernateTest.java
test_class.identifier: EntityRepositoryHibernateTest
test_class.superclass: extends AbstractIntegrationTest
test_case.body: @Test
      public void testFindByExample() {
          Dictionary example = new Dictionary(null, "本", null);
          List<Dictionary> dictionaries = repository.findByExample(example, ExampleSettings.create(Dictionary.class).excludeZeroes());
          assertFalse(dictionaries.contains(male));
          assertFalse(dictionaries.contains(undergraduate));
          dictionaries = repository.findByExample(example, ExampleSettings.create(Dictionary.class).excludeZeroes().enableLike());
          assertTrue(dictionaries.contains(undergraduate));
          assertFalse(dictionaries.contains(male));
      }
test_case.class_method_signature: EntityRepositoryHibernateTest.testFindByExample()
test_case.full_signature: @Test public void testFindByExample()
test_case.identifier: testFindByExample
test_case.invocations: findByExample excludeZeroes create assertFalse contains assertFalse contains findByExample enableLike excludeZeroes create assertTrue contains assertFalse contains
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFindByExample()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(EntityRepositoryHibernate.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(EntityRepositoryHibernate.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: sessionProvider
focal_class.modifier: private final
focal_class.original_string: private final SessionProvider sessionProvider;
focal_class.type: SessionProvider
focal_class.var_name: sessionProvider
focal_class.file: dddlib-persistence/dddlib-persistence-hibernate/src/main/java/org/dayatang/persistence/hibernate/EntityRepositoryHibernate.java
focal_class.identifier: EntityRepositoryHibernate
focal_class.interfaces: implements EntityRepository
focal_class.class_method_signature: EntityRepositoryHibernate.EntityRepositoryHibernate()
focal_class.full_signature: public  EntityRepositoryHibernate()
focal_class.identifier: EntityRepositoryHibernate
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  EntityRepositoryHibernate()
focal_class.class_method_signature: EntityRepositoryHibernate.EntityRepositoryHibernate(SessionFactory sessionFactory)
focal_class.full_signature: public  EntityRepositoryHibernate(SessionFactory sessionFactory)
focal_class.identifier: EntityRepositoryHibernate
focal_class.modifiers: public
focal_class.parameters: (SessionFactory sessionFactory)
focal_class.signature:  EntityRepositoryHibernate(SessionFactory sessionFactory)
focal_class.class_method_signature: EntityRepositoryHibernate.EntityRepositoryHibernate(Session session)
focal_class.full_signature: public  EntityRepositoryHibernate(Session session)
focal_class.identifier: EntityRepositoryHibernate
focal_class.modifiers: public
focal_class.parameters: (Session session)
focal_class.signature:  EntityRepositoryHibernate(Session session)
focal_class.class_method_signature: EntityRepositoryHibernate.save(T entity)
focal_class.full_signature: @Override public T save(T entity)
focal_class.identifier: save
focal_class.modifiers: @Override public
focal_class.parameters: (T entity)
focal_class.return: T
focal_class.signature: T save(T entity)
focal_class.class_method_signature: EntityRepositoryHibernate.remove(Entity entity)
focal_class.full_signature: @Override public void remove(Entity entity)
focal_class.identifier: remove
focal_class.modifiers: @Override public
focal_class.parameters: (Entity entity)
focal_class.return: void
focal_class.signature: void remove(Entity entity)
focal_class.class_method_signature: EntityRepositoryHibernate.exists(final Class<T> clazz, final Serializable id)
focal_class.full_signature: @Override public boolean exists(final Class<T> clazz, final Serializable id)
focal_class.identifier: exists
focal_class.modifiers: @Override public
focal_class.parameters: (final Class<T> clazz, final Serializable id)
focal_class.return: boolean
focal_class.signature: boolean exists(final Class<T> clazz, final Serializable id)
focal_class.class_method_signature: EntityRepositoryHibernate.get(final Class<T> clazz, final Serializable id)
focal_class.full_signature: @Override public T get(final Class<T> clazz, final Serializable id)
focal_class.identifier: get
focal_class.modifiers: @Override public
focal_class.parameters: (final Class<T> clazz, final Serializable id)
focal_class.return: T
focal_class.signature: T get(final Class<T> clazz, final Serializable id)
focal_class.class_method_signature: EntityRepositoryHibernate.load(final Class<T> clazz, final Serializable id)
focal_class.full_signature: @Override public T load(final Class<T> clazz, final Serializable id)
focal_class.identifier: load
focal_class.modifiers: @Override public
focal_class.parameters: (final Class<T> clazz, final Serializable id)
focal_class.return: T
focal_class.signature: T load(final Class<T> clazz, final Serializable id)
focal_class.class_method_signature: EntityRepositoryHibernate.getUnmodified(Class<T> clazz, T entity)
focal_class.full_signature: @Override public T getUnmodified(Class<T> clazz, T entity)
focal_class.identifier: getUnmodified
focal_class.modifiers: @Override public
focal_class.parameters: (Class<T> clazz, T entity)
focal_class.return: T
focal_class.signature: T getUnmodified(Class<T> clazz, T entity)
focal_class.class_method_signature: EntityRepositoryHibernate.getByBusinessKeys(Class<T> clazz, NamedParameters keyValues)
focal_class.full_signature: @Override public T getByBusinessKeys(Class<T> clazz, NamedParameters keyValues)
focal_class.identifier: getByBusinessKeys
focal_class.modifiers: @Override public
focal_class.parameters: (Class<T> clazz, NamedParameters keyValues)
focal_class.return: T
focal_class.signature: T getByBusinessKeys(Class<T> clazz, NamedParameters keyValues)
focal_class.class_method_signature: EntityRepositoryHibernate.findAll(Class<T> clazz)
focal_class.full_signature: @Override public List<T> findAll(Class<T> clazz)
focal_class.identifier: findAll
focal_class.modifiers: @Override public
focal_class.parameters: (Class<T> clazz)
focal_class.return: List<T>
focal_class.signature: List<T> findAll(Class<T> clazz)
focal_class.class_method_signature: EntityRepositoryHibernate.createCriteriaQuery(Class<T> entityClass)
focal_class.full_signature: @Override public CriteriaQuery createCriteriaQuery(Class<T> entityClass)
focal_class.identifier: createCriteriaQuery
focal_class.modifiers: @Override public
focal_class.parameters: (Class<T> entityClass)
focal_class.return: CriteriaQuery
focal_class.signature: CriteriaQuery createCriteriaQuery(Class<T> entityClass)
focal_class.class_method_signature: EntityRepositoryHibernate.find(CriteriaQuery criteriaQuery)
focal_class.full_signature: @SuppressWarnings("rawtypes") @Override public List<T> find(CriteriaQuery criteriaQuery)
focal_class.identifier: find
focal_class.modifiers: @SuppressWarnings("rawtypes") @Override public
focal_class.parameters: (CriteriaQuery criteriaQuery)
focal_class.return: List<T>
focal_class.signature: List<T> find(CriteriaQuery criteriaQuery)
focal_class.class_method_signature: EntityRepositoryHibernate.getSingleResult(CriteriaQuery criteriaQuery)
focal_class.full_signature: @Override public T getSingleResult(CriteriaQuery criteriaQuery)
focal_class.identifier: getSingleResult
focal_class.modifiers: @Override public
focal_class.parameters: (CriteriaQuery criteriaQuery)
focal_class.return: T
focal_class.signature: T getSingleResult(CriteriaQuery criteriaQuery)
focal_class.class_method_signature: EntityRepositoryHibernate.find(Class<T> entityClass, QueryCriterion criterion)
focal_class.full_signature: @Override public List<T> find(Class<T> entityClass, QueryCriterion criterion)
focal_class.identifier: find
focal_class.modifiers: @Override public
focal_class.parameters: (Class<T> entityClass, QueryCriterion criterion)
focal_class.return: List<T>
focal_class.signature: List<T> find(Class<T> entityClass, QueryCriterion criterion)
focal_class.class_method_signature: EntityRepositoryHibernate.getSingleResult(Class<T> entityClass, QueryCriterion criterion)
focal_class.full_signature: @Override public T getSingleResult(Class<T> entityClass, QueryCriterion criterion)
focal_class.identifier: getSingleResult
focal_class.modifiers: @Override public
focal_class.parameters: (Class<T> entityClass, QueryCriterion criterion)
focal_class.return: T
focal_class.signature: T getSingleResult(Class<T> entityClass, QueryCriterion criterion)
focal_class.class_method_signature: EntityRepositoryHibernate.createJpqlQuery(String jpql)
focal_class.full_signature: @Override public JpqlQuery createJpqlQuery(String jpql)
focal_class.identifier: createJpqlQuery
focal_class.modifiers: @Override public
focal_class.parameters: (String jpql)
focal_class.return: JpqlQuery
focal_class.signature: JpqlQuery createJpqlQuery(String jpql)
focal_class.class_method_signature: EntityRepositoryHibernate.find(JpqlQuery jpqlQuery)
focal_class.full_signature: @Override public List<T> find(JpqlQuery jpqlQuery)
focal_class.identifier: find
focal_class.modifiers: @Override public
focal_class.parameters: (JpqlQuery jpqlQuery)
focal_class.return: List<T>
focal_class.signature: List<T> find(JpqlQuery jpqlQuery)
focal_class.class_method_signature: EntityRepositoryHibernate.getSingleResult(JpqlQuery jpqlQuery)
focal_class.full_signature: @Override public T getSingleResult(JpqlQuery jpqlQuery)
focal_class.identifier: getSingleResult
focal_class.modifiers: @Override public
focal_class.parameters: (JpqlQuery jpqlQuery)
focal_class.return: T
focal_class.signature: T getSingleResult(JpqlQuery jpqlQuery)
focal_class.class_method_signature: EntityRepositoryHibernate.executeUpdate(JpqlQuery jpqlQuery)
focal_class.full_signature: @Override public int executeUpdate(JpqlQuery jpqlQuery)
focal_class.identifier: executeUpdate
focal_class.modifiers: @Override public
focal_class.parameters: (JpqlQuery jpqlQuery)
focal_class.return: int
focal_class.signature: int executeUpdate(JpqlQuery jpqlQuery)
focal_class.class_method_signature: EntityRepositoryHibernate.getQuery(JpqlQuery jpqlQuery)
focal_class.full_signature: private Query getQuery(JpqlQuery jpqlQuery)
focal_class.identifier: getQuery
focal_class.modifiers: private
focal_class.parameters: (JpqlQuery jpqlQuery)
focal_class.return: Query
focal_class.signature: Query getQuery(JpqlQuery jpqlQuery)
focal_class.class_method_signature: EntityRepositoryHibernate.createNamedQuery(String queryName)
focal_class.full_signature: @Override public NamedQuery createNamedQuery(String queryName)
focal_class.identifier: createNamedQuery
focal_class.modifiers: @Override public
focal_class.parameters: (String queryName)
focal_class.return: NamedQuery
focal_class.signature: NamedQuery createNamedQuery(String queryName)
focal_class.class_method_signature: EntityRepositoryHibernate.find(NamedQuery namedQuery)
focal_class.full_signature: @Override public List<T> find(NamedQuery namedQuery)
focal_class.identifier: find
focal_class.modifiers: @Override public
focal_class.parameters: (NamedQuery namedQuery)
focal_class.return: List<T>
focal_class.signature: List<T> find(NamedQuery namedQuery)
focal_class.class_method_signature: EntityRepositoryHibernate.getSingleResult(NamedQuery namedQuery)
focal_class.full_signature: @Override public T getSingleResult(NamedQuery namedQuery)
focal_class.identifier: getSingleResult
focal_class.modifiers: @Override public
focal_class.parameters: (NamedQuery namedQuery)
focal_class.return: T
focal_class.signature: T getSingleResult(NamedQuery namedQuery)
focal_class.class_method_signature: EntityRepositoryHibernate.executeUpdate(NamedQuery namedQuery)
focal_class.full_signature: @Override public int executeUpdate(NamedQuery namedQuery)
focal_class.identifier: executeUpdate
focal_class.modifiers: @Override public
focal_class.parameters: (NamedQuery namedQuery)
focal_class.return: int
focal_class.signature: int executeUpdate(NamedQuery namedQuery)
focal_class.class_method_signature: EntityRepositoryHibernate.getQuery(NamedQuery namedQuery)
focal_class.full_signature: private Query getQuery(NamedQuery namedQuery)
focal_class.identifier: getQuery
focal_class.modifiers: private
focal_class.parameters: (NamedQuery namedQuery)
focal_class.return: Query
focal_class.signature: Query getQuery(NamedQuery namedQuery)
focal_class.class_method_signature: EntityRepositoryHibernate.createSqlQuery(String sql)
focal_class.full_signature: @Override public SqlQuery createSqlQuery(String sql)
focal_class.identifier: createSqlQuery
focal_class.modifiers: @Override public
focal_class.parameters: (String sql)
focal_class.return: SqlQuery
focal_class.signature: SqlQuery createSqlQuery(String sql)
focal_class.class_method_signature: EntityRepositoryHibernate.find(SqlQuery sqlQuery)
focal_class.full_signature: @SuppressWarnings("rawtypes") @Override public List<T> find(SqlQuery sqlQuery)
focal_class.identifier: find
focal_class.modifiers: @SuppressWarnings("rawtypes") @Override public
focal_class.parameters: (SqlQuery sqlQuery)
focal_class.return: List<T>
focal_class.signature: List<T> find(SqlQuery sqlQuery)
focal_class.class_method_signature: EntityRepositoryHibernate.getSingleResult(SqlQuery sqlQuery)
focal_class.full_signature: @Override public T getSingleResult(SqlQuery sqlQuery)
focal_class.identifier: getSingleResult
focal_class.modifiers: @Override public
focal_class.parameters: (SqlQuery sqlQuery)
focal_class.return: T
focal_class.signature: T getSingleResult(SqlQuery sqlQuery)
focal_class.class_method_signature: EntityRepositoryHibernate.executeUpdate(SqlQuery sqlQuery)
focal_class.full_signature: @Override public int executeUpdate(SqlQuery sqlQuery)
focal_class.identifier: executeUpdate
focal_class.modifiers: @Override public
focal_class.parameters: (SqlQuery sqlQuery)
focal_class.return: int
focal_class.signature: int executeUpdate(SqlQuery sqlQuery)
focal_class.class_method_signature: EntityRepositoryHibernate.getQuery(SqlQuery sqlQuery)
focal_class.full_signature: private Query getQuery(SqlQuery sqlQuery)
focal_class.identifier: getQuery
focal_class.modifiers: private
focal_class.parameters: (SqlQuery sqlQuery)
focal_class.return: Query
focal_class.signature: Query getQuery(SqlQuery sqlQuery)
focal_class.class_method_signature: EntityRepositoryHibernate.findByExample(final E example, final ExampleSettings<T> settings)
focal_class.full_signature: @Override public List<T> findByExample(final E example, final ExampleSettings<T> settings)
focal_class.identifier: findByExample
focal_class.modifiers: @Override public
focal_class.parameters: (final E example, final ExampleSettings<T> settings)
focal_class.return: List<T>
focal_class.signature: List<T> findByExample(final E example, final ExampleSettings<T> settings)
focal_class.class_method_signature: EntityRepositoryHibernate.findByProperty(Class<T> clazz, String propertyName, Object propertyValue)
focal_class.full_signature: @Override public List<T> findByProperty(Class<T> clazz, String propertyName, Object propertyValue)
focal_class.identifier: findByProperty
focal_class.modifiers: @Override public
focal_class.parameters: (Class<T> clazz, String propertyName, Object propertyValue)
focal_class.return: List<T>
focal_class.signature: List<T> findByProperty(Class<T> clazz, String propertyName, Object propertyValue)
focal_class.class_method_signature: EntityRepositoryHibernate.findByProperties(Class<T> clazz, NamedParameters properties)
focal_class.full_signature: @Override public List<T> findByProperties(Class<T> clazz, NamedParameters properties)
focal_class.identifier: findByProperties
focal_class.modifiers: @Override public
focal_class.parameters: (Class<T> clazz, NamedParameters properties)
focal_class.return: List<T>
focal_class.signature: List<T> findByProperties(Class<T> clazz, NamedParameters properties)
focal_class.class_method_signature: EntityRepositoryHibernate.getQueryStringOfNamedQuery(String queryName)
focal_class.full_signature: @Override public String getQueryStringOfNamedQuery(String queryName)
focal_class.identifier: getQueryStringOfNamedQuery
focal_class.modifiers: @Override public
focal_class.parameters: (String queryName)
focal_class.return: String
focal_class.signature: String getQueryStringOfNamedQuery(String queryName)
focal_class.class_method_signature: EntityRepositoryHibernate.flush()
focal_class.full_signature: @Override public void flush()
focal_class.identifier: flush
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void flush()
focal_class.class_method_signature: EntityRepositoryHibernate.refresh(Entity entity)
focal_class.full_signature: @Override public void refresh(Entity entity)
focal_class.identifier: refresh
focal_class.modifiers: @Override public
focal_class.parameters: (Entity entity)
focal_class.return: void
focal_class.signature: void refresh(Entity entity)
focal_class.class_method_signature: EntityRepositoryHibernate.clear()
focal_class.full_signature: @Override public void clear()
focal_class.identifier: clear
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clear()
focal_class.class_method_signature: EntityRepositoryHibernate.getSession()
focal_class.full_signature:  Session getSession()
focal_class.identifier: getSession
focal_class.parameters: ()
focal_class.return: Session
focal_class.signature: Session getSession()
focal_class.class_method_signature: EntityRepositoryHibernate.processQuery(Query query, BaseQuery originQuery)
focal_class.full_signature: private void processQuery(Query query, BaseQuery originQuery)
focal_class.identifier: processQuery
focal_class.modifiers: private
focal_class.parameters: (Query query, BaseQuery originQuery)
focal_class.return: void
focal_class.signature: void processQuery(Query query, BaseQuery originQuery)
focal_class.class_method_signature: EntityRepositoryHibernate.processQuery(Query query, QueryParameters parameters, 
              int firstResult, int maxResults)
focal_class.full_signature: private void processQuery(Query query, QueryParameters parameters, 
              int firstResult, int maxResults)
focal_class.identifier: processQuery
focal_class.modifiers: private
focal_class.parameters: (Query query, QueryParameters parameters, 
              int firstResult, int maxResults)
focal_class.return: void
focal_class.signature: void processQuery(Query query, QueryParameters parameters, 
              int firstResult, int maxResults)
focal_class.class_method_signature: EntityRepositoryHibernate.fillParameters(Query query, QueryParameters params)
focal_class.full_signature: private void fillParameters(Query query, QueryParameters params)
focal_class.identifier: fillParameters
focal_class.modifiers: private
focal_class.parameters: (Query query, QueryParameters params)
focal_class.return: void
focal_class.signature: void fillParameters(Query query, QueryParameters params)
focal_class.class_method_signature: EntityRepositoryHibernate.fillParameters(Query query, PositionalParameters params)
focal_class.full_signature: private void fillParameters(Query query, PositionalParameters params)
focal_class.identifier: fillParameters
focal_class.modifiers: private
focal_class.parameters: (Query query, PositionalParameters params)
focal_class.return: void
focal_class.signature: void fillParameters(Query query, PositionalParameters params)
focal_class.class_method_signature: EntityRepositoryHibernate.fillParameters(Query query, NamedParameters params)
focal_class.full_signature: private void fillParameters(Query query, NamedParameters params)
focal_class.identifier: fillParameters
focal_class.modifiers: private
focal_class.parameters: (Query query, NamedParameters params)
focal_class.return: void
focal_class.signature: void fillParameters(Query query, NamedParameters params)
focal_method.body: @Override
      public <T extends Entity, E extends T> List<T> findByExample(final E example, final ExampleSettings<T> settings) {
          Example theExample = Example.create(example);
          if (settings.isLikeEnabled()) {
              theExample.enableLike(MatchMode.ANYWHERE);
          }
          if (settings.isIgnoreCaseEnabled()) {
              theExample.ignoreCase();
          }
          if (settings.isExcludeNone()) {
              theExample.excludeNone();
          }
          if (settings.isExcludeZeroes()) {
              theExample.excludeZeroes();
          }
          for (String propName : settings.getExcludedProperties()) {
              theExample.excludeProperty(propName);
          }
          return getSession().createCriteria(settings.getEntityClass()).add(theExample).list();
      }
focal_method.class_method_signature: EntityRepositoryHibernate.findByExample(final E example, final ExampleSettings<T> settings)
focal_method.full_signature: @Override public List<T> findByExample(final E example, final ExampleSettings<T> settings)
focal_method.identifier: findByExample
focal_method.invocations: create isLikeEnabled enableLike isIgnoreCaseEnabled ignoreCase isExcludeNone excludeNone isExcludeZeroes excludeZeroes getExcludedProperties excludeProperty list add createCriteria getSession getEntityClass
focal_method.modifiers: @Override public
focal_method.parameters: (final E example, final ExampleSettings<T> settings)
focal_method.return: List<T>
focal_method.signature: List<T> findByExample(final E example, final ExampleSettings<T> settings)