# HG changeset patch # User casties # Date 1481314761 -3600 # Node ID 153a0232270b1420b4f3d92876ed4662e8e5cc28 # Parent e08f3dd127a51620abc204539ad68e8937fc3321 cleanup and better comments. diff -r e08f3dd127a5 -r 153a0232270b src/main/java/org/mpi/openmind/cache/WrapperService.java --- a/src/main/java/org/mpi/openmind/cache/WrapperService.java Thu Dec 08 15:39:26 2016 +0100 +++ b/src/main/java/org/mpi/openmind/cache/WrapperService.java Fri Dec 09 21:19:21 2016 +0100 @@ -421,13 +421,13 @@ } /** - * Returns a list of attributes by objectClass of the entity, the att Name - * and its value. + * Returns a sorted list of attributes by def (=objectClass) of the entity, the att Name + * and its (normalized) value. * * @param def * @param attName * @param attValue - * sub string and ignores case sensitive. + * case insensitive sub string match. * @param maxResults * @return */ @@ -470,6 +470,16 @@ return list; } + /** + * Returns a list of attributes by def (=objectClass) of the entity, the att Name + * and its (normalized) value. + * + * @param def + * @param attName + * @param attValue + * @param maxResults + * @return + */ private List getAttributesByDefByAttName0(String def, String attName, String attValue, int maxResults) { List list = new ArrayList(); diff -r e08f3dd127a5 -r 153a0232270b src/main/java/org/mpi/openmind/repository/services/AbstractPersistenceService.java --- a/src/main/java/org/mpi/openmind/repository/services/AbstractPersistenceService.java Thu Dec 08 15:39:26 2016 +0100 +++ b/src/main/java/org/mpi/openmind/repository/services/AbstractPersistenceService.java Fri Dec 09 21:19:21 2016 +0100 @@ -39,12 +39,6 @@ private boolean importMode = false; - /* - * static { logger.setLevel(Level.DEBUG); PatternLayout layout = new - * PatternLayout( "%d{ABSOLUTE} %5p %c{1}:%L - %m%n"); Appender stdout = new - * ConsoleAppender(layout, "System.out"); logger.addAppender(stdout); } - */ - public AbstractPersistenceService() { } @@ -65,19 +59,6 @@ return ownValue; } - /* - * Performs the actual disabling of the Hibernate second-level cache. - */ - /* - protected void disableSecondLevelCache() { - Map cacheRegionsMap = ((SessionFactoryImpl) HibernateUtil - .getSessionFactory()).getAllSecondLevelCacheRegions(); - Collection cacheRegions = cacheRegionsMap.values(); - for (Cache cache : cacheRegions) { - cache.clear(); - } - }*/ - public int dropAssertions() { int row = 0; try {