|  1 |     | 
     | 
  |  2 |     | 
     | 
  |  3 |     | 
     | 
  |  4 |     | 
     | 
  |  5 |     | 
     | 
  |  6 |     | 
     | 
  |  7 |     | 
     | 
  |  8 |     | 
     | 
  |  9 |     | 
     | 
  |  10 |     | 
     | 
  |  11 |     | 
     | 
  |  12 |     | 
     | 
  |  13 |     | 
     | 
  |  14 |     | 
     | 
  |  15 |     | 
     | 
  |  16 |     | 
   package org.kuali.rice.kns.dao.impl;  | 
  |  17 |     | 
     | 
  |  18 |     | 
   import java.lang.annotation.Annotation;  | 
  |  19 |     | 
   import java.lang.reflect.Field;  | 
  |  20 |     | 
   import java.lang.reflect.InvocationTargetException;  | 
  |  21 |     | 
   import java.util.Collection;  | 
  |  22 |     | 
   import java.util.HashMap;  | 
  |  23 |     | 
   import java.util.Iterator;  | 
  |  24 |     | 
   import java.util.List;  | 
  |  25 |     | 
   import java.util.Map;  | 
  |  26 |     | 
   import java.util.Set;  | 
  |  27 |     | 
     | 
  |  28 |     | 
   import org.apache.commons.lang.StringUtils;  | 
  |  29 |     | 
   import org.apache.ojb.broker.query.Criteria;  | 
  |  30 |     | 
   import org.apache.ojb.broker.query.QueryByCriteria;  | 
  |  31 |     | 
   import org.apache.ojb.broker.query.QueryFactory;  | 
  |  32 |     | 
   import org.kuali.rice.kns.bo.BusinessObject;  | 
  |  33 |     | 
   import org.kuali.rice.kns.bo.PersistableBusinessObject;  | 
  |  34 |     | 
   import org.kuali.rice.kns.dao.BusinessObjectDao;  | 
  |  35 |     | 
   import org.kuali.rice.kns.service.KNSServiceLocatorInternal;  | 
  |  36 |     | 
   import org.kuali.rice.kns.service.PersistenceStructureService;  | 
  |  37 |     | 
   import org.kuali.rice.kns.util.KNSPropertyConstants;  | 
  |  38 |     | 
   import org.kuali.rice.kns.util.ObjectUtils;  | 
  |  39 |     | 
   import org.kuali.rice.kns.util.OjbCollectionAware;  | 
  |  40 |     | 
   import org.springframework.dao.DataAccessException;  | 
  |  41 |     | 
     | 
  |  42 |     | 
     | 
  |  43 |     | 
     | 
  |  44 |     | 
     | 
  |  45 |     | 
     | 
  |  46 |     | 
   public class BusinessObjectDaoOjb extends PlatformAwareDaoBaseOjb implements BusinessObjectDao, OjbCollectionAware { | 
  |  47 |    0 |        private static final org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(BusinessObjectDaoOjb.class);  | 
  |  48 |     | 
     | 
  |  49 |     | 
       private PersistenceStructureService persistenceStructureService;  | 
  |  50 |     | 
     | 
  |  51 |     | 
         | 
  |  52 |     | 
     | 
  |  53 |     | 
     | 
  |  54 |    0 |            public BusinessObjectDaoOjb(PersistenceStructureService persistenceStructureService) { | 
  |  55 |    0 |                    this.persistenceStructureService = persistenceStructureService;  | 
  |  56 |    0 |            }  | 
  |  57 |     | 
     | 
  |  58 |     | 
         | 
  |  59 |     | 
     | 
  |  60 |     | 
     | 
  |  61 |     | 
           public <T extends BusinessObject> T findBySinglePrimaryKey(Class<T> clazz, Object primaryKey) { | 
  |  62 |    0 |                    if (primaryKey.getClass().getName().startsWith("java.lang.")) { | 
  |  63 |     | 
                           try { | 
  |  64 |    0 |                                    return (T) getPersistenceBrokerTemplate().getObjectById(clazz, primaryKey);  | 
  |  65 |    0 |                            } catch ( DataAccessException ex ) { | 
  |  66 |     | 
                                 | 
  |  67 |    0 |                                    return null;  | 
  |  68 |     | 
                           }  | 
  |  69 |     | 
                   } else { | 
  |  70 |    0 |                            Criteria criteria = buildCriteria(primaryKey);  | 
  |  71 |     | 
     | 
  |  72 |    0 |                    return (T) getPersistenceBrokerTemplate().getObjectByQuery(QueryFactory.newQuery(clazz, criteria));  | 
  |  73 |     | 
                   }  | 
  |  74 |     | 
           }  | 
  |  75 |     | 
     | 
  |  76 |     | 
         | 
  |  77 |     | 
     | 
  |  78 |     | 
     | 
  |  79 |     | 
       public <T extends BusinessObject> T findByPrimaryKey(Class<T> clazz, Map<String, ?> primaryKeys) { | 
  |  80 |    0 |            Criteria criteria = buildCriteria(primaryKeys);  | 
  |  81 |     | 
     | 
  |  82 |    0 |            return (T) getPersistenceBrokerTemplate().getObjectByQuery(QueryFactory.newQuery(clazz, criteria));  | 
  |  83 |     | 
       }  | 
  |  84 |     | 
     | 
  |  85 |     | 
         | 
  |  86 |     | 
     | 
  |  87 |     | 
     | 
  |  88 |     | 
     | 
  |  89 |     | 
     | 
  |  90 |     | 
     | 
  |  91 |     | 
     | 
  |  92 |     | 
       public <T extends BusinessObject> Collection<T> findAll(Class<T> clazz) { | 
  |  93 |    0 |            return (Collection<T>)getPersistenceBrokerTemplate().getCollectionByQuery(QueryFactory.newQuery(clazz, (Criteria) null));  | 
  |  94 |     | 
       }  | 
  |  95 |     | 
     | 
  |  96 |     | 
         | 
  |  97 |     | 
     | 
  |  98 |     | 
     | 
  |  99 |     | 
       public <T extends BusinessObject> Collection<T> findAllOrderBy(Class<T> clazz, String sortField, boolean sortAscending) { | 
  |  100 |    0 |            QueryByCriteria queryByCriteria = new QueryByCriteria(clazz, (Criteria) null);  | 
  |  101 |     | 
     | 
  |  102 |    0 |            if (sortAscending) { | 
  |  103 |    0 |                queryByCriteria.addOrderByAscending(sortField);  | 
  |  104 |     | 
           }  | 
  |  105 |     | 
           else { | 
  |  106 |    0 |                queryByCriteria.addOrderByDescending(sortField);  | 
  |  107 |     | 
           }  | 
  |  108 |     | 
     | 
  |  109 |    0 |            return (Collection<T>)getPersistenceBrokerTemplate().getCollectionByQuery(queryByCriteria);  | 
  |  110 |     | 
       }  | 
  |  111 |     | 
     | 
  |  112 |     | 
         | 
  |  113 |     | 
     | 
  |  114 |     | 
     | 
  |  115 |     | 
     | 
  |  116 |     | 
     | 
  |  117 |     | 
       public <T extends BusinessObject> Collection<T> findMatching(Class<T> clazz, Map<String, ?> fieldValues) { | 
  |  118 |    0 |            Criteria criteria = buildCriteria(fieldValues);  | 
  |  119 |     | 
     | 
  |  120 |    0 |            return (Collection<T>)getPersistenceBrokerTemplate().getCollectionByQuery(QueryFactory.newQuery(clazz, criteria));  | 
  |  121 |     | 
       }  | 
  |  122 |     | 
     | 
  |  123 |     | 
     | 
  |  124 |     | 
         | 
  |  125 |     | 
     | 
  |  126 |     | 
     | 
  |  127 |     | 
     | 
  |  128 |     | 
             | 
  |  129 |     | 
             | 
  |  130 |     | 
             | 
  |  131 |     | 
     | 
  |  132 |     | 
             | 
  |  133 |     | 
     | 
  |  134 |     | 
     | 
  |  135 |     | 
       public <T extends BusinessObject> Collection<T> findAllActive(Class<T> clazz) { | 
  |  136 |    0 |            return (Collection<T>)getPersistenceBrokerTemplate().getCollectionByQuery(QueryFactory.newQuery(clazz, buildActiveCriteria()));  | 
  |  137 |     | 
       }  | 
  |  138 |     | 
     | 
  |  139 |     | 
         | 
  |  140 |     | 
     | 
  |  141 |     | 
     | 
  |  142 |     | 
       public <T extends BusinessObject> Collection<T> findAllInactive(Class<T> clazz) { | 
  |  143 |    0 |            return (Collection<T>)getPersistenceBrokerTemplate().getCollectionByQuery(QueryFactory.newQuery(clazz, buildInactiveCriteria()));  | 
  |  144 |     | 
       }  | 
  |  145 |     | 
     | 
  |  146 |     | 
         | 
  |  147 |     | 
     | 
  |  148 |     | 
     | 
  |  149 |     | 
       public <T extends BusinessObject> Collection<T> findAllActiveOrderBy(Class<T> clazz, String sortField, boolean sortAscending) { | 
  |  150 |    0 |            QueryByCriteria queryByCriteria = new QueryByCriteria(clazz, buildActiveCriteria());  | 
  |  151 |     | 
     | 
  |  152 |    0 |            if (sortAscending) { | 
  |  153 |    0 |                queryByCriteria.addOrderByAscending(sortField);  | 
  |  154 |     | 
           }  | 
  |  155 |     | 
           else { | 
  |  156 |    0 |                queryByCriteria.addOrderByDescending(sortField);  | 
  |  157 |     | 
           }  | 
  |  158 |     | 
     | 
  |  159 |    0 |            return (Collection<T>)getPersistenceBrokerTemplate().getCollectionByQuery(queryByCriteria);  | 
  |  160 |     | 
       }  | 
  |  161 |     | 
     | 
  |  162 |     | 
         | 
  |  163 |     | 
     | 
  |  164 |     | 
     | 
  |  165 |     | 
       public <T extends BusinessObject> Collection<T> findMatchingActive(Class<T> clazz, Map<String, ?> fieldValues) { | 
  |  166 |    0 |            Criteria criteria = buildCriteria(fieldValues);  | 
  |  167 |    0 |            criteria.addAndCriteria(buildActiveCriteria());  | 
  |  168 |     | 
     | 
  |  169 |    0 |            return (Collection<T>)getPersistenceBrokerTemplate().getCollectionByQuery(QueryFactory.newQuery(clazz, criteria));  | 
  |  170 |     | 
       }  | 
  |  171 |     | 
     | 
  |  172 |     | 
         | 
  |  173 |     | 
     | 
  |  174 |     | 
     | 
  |  175 |     | 
     | 
  |  176 |     | 
     | 
  |  177 |     | 
       public int countMatching(Class clazz, Map<String, ?> fieldValues) { | 
  |  178 |    0 |            Criteria criteria = buildCriteria(fieldValues);  | 
  |  179 |     | 
     | 
  |  180 |    0 |            return getPersistenceBrokerTemplate().getCount(QueryFactory.newQuery(clazz, criteria));  | 
  |  181 |     | 
       }  | 
  |  182 |     | 
     | 
  |  183 |     | 
         | 
  |  184 |     | 
     | 
  |  185 |     | 
     | 
  |  186 |     | 
     | 
  |  187 |     | 
     | 
  |  188 |     | 
       public int countMatching(Class clazz, Map<String, ?> positiveFieldValues, Map<String, ?> negativeFieldValues) { | 
  |  189 |    0 |            Criteria criteria = buildCriteria(positiveFieldValues);  | 
  |  190 |    0 |            Criteria negativeCriteria = buildNegativeCriteria(negativeFieldValues);  | 
  |  191 |    0 |            criteria.addAndCriteria(negativeCriteria);  | 
  |  192 |    0 |            return getPersistenceBrokerTemplate().getCount(QueryFactory.newQuery(clazz, criteria));  | 
  |  193 |     | 
       }  | 
  |  194 |     | 
     | 
  |  195 |     | 
     | 
  |  196 |     | 
         | 
  |  197 |     | 
     | 
  |  198 |     | 
     | 
  |  199 |     | 
     | 
  |  200 |     | 
     | 
  |  201 |     | 
       public <T extends BusinessObject> Collection<T> findMatchingOrderBy(Class<T> clazz, Map<String, ?> fieldValues, String sortField, boolean sortAscending) { | 
  |  202 |    0 |            Criteria criteria = buildCriteria(fieldValues);  | 
  |  203 |    0 |            QueryByCriteria queryByCriteria = new QueryByCriteria(clazz, criteria);  | 
  |  204 |     | 
     | 
  |  205 |    0 |            if (sortAscending) { | 
  |  206 |    0 |                queryByCriteria.addOrderByAscending(sortField);  | 
  |  207 |     | 
           }  | 
  |  208 |     | 
           else { | 
  |  209 |    0 |                queryByCriteria.addOrderByDescending(sortField);  | 
  |  210 |     | 
           }  | 
  |  211 |     | 
     | 
  |  212 |    0 |            return (Collection<T>)getPersistenceBrokerTemplate().getCollectionByQuery(queryByCriteria);  | 
  |  213 |     | 
       }  | 
  |  214 |     | 
     | 
  |  215 |     | 
             | 
  |  216 |     | 
     | 
  |  217 |     | 
     | 
  |  218 |     | 
     | 
  |  219 |     | 
     | 
  |  220 |     | 
           public PersistableBusinessObject save(PersistableBusinessObject bo) throws DataAccessException { | 
  |  221 |     | 
                     | 
  |  222 |     | 
                     | 
  |  223 |     | 
                     | 
  |  224 |    0 |                    Set<String> boCollections = getPersistenceStructureService().listCollectionObjectTypes(bo.getClass()).keySet();  | 
  |  225 |    0 |                    PersistableBusinessObject savedBo = null;  | 
  |  226 |    0 |                    if (!boCollections.isEmpty()) { | 
  |  227 |     | 
                             | 
  |  228 |    0 |                            savedBo = (PersistableBusinessObject) ObjectUtils.deepCopy(bo);  | 
  |  229 |    0 |                            for (String boCollection : boCollections) { | 
  |  230 |    0 |                                    if (getPersistenceStructureService().isCollectionUpdatable(savedBo.getClass(), boCollection)) { | 
  |  231 |    0 |                                            savedBo.refreshReferenceObject(boCollection);  | 
  |  232 |     | 
                                   }  | 
  |  233 |     | 
                           }  | 
  |  234 |    0 |                KNSServiceLocatorInternal.getOjbCollectionHelper().processCollections(this, bo, savedBo);  | 
  |  235 |     | 
           }  | 
  |  236 |     | 
     | 
  |  237 |    0 |                    getPersistenceBrokerTemplate().store(bo);  | 
  |  238 |    0 |                    return bo;  | 
  |  239 |     | 
           }  | 
  |  240 |     | 
     | 
  |  241 |     | 
         | 
  |  242 |     | 
     | 
  |  243 |     | 
     | 
  |  244 |     | 
     | 
  |  245 |     | 
     | 
  |  246 |     | 
       public List<? extends PersistableBusinessObject> save(List businessObjects) throws DataAccessException { | 
  |  247 |    0 |                if ( LOG.isDebugEnabled() ) { | 
  |  248 |    0 |                        LOG.debug( "About to persist the following BOs:" );  | 
  |  249 |    0 |                        for ( Object bo : businessObjects ) { | 
  |  250 |    0 |                                LOG.debug( "   --->" + bo );  | 
  |  251 |     | 
                       }  | 
  |  252 |     | 
               }  | 
  |  253 |    0 |            for (Iterator i = businessObjects.iterator(); i.hasNext();) { | 
  |  254 |    0 |                Object bo = i.next();  | 
  |  255 |    0 |                getPersistenceBrokerTemplate().store(bo);  | 
  |  256 |    0 |            }  | 
  |  257 |    0 |            return businessObjects;  | 
  |  258 |     | 
       }  | 
  |  259 |     | 
     | 
  |  260 |     | 
     | 
  |  261 |     | 
         | 
  |  262 |     | 
     | 
  |  263 |     | 
     | 
  |  264 |     | 
     | 
  |  265 |     | 
     | 
  |  266 |     | 
     | 
  |  267 |     | 
     | 
  |  268 |     | 
       public void delete(PersistableBusinessObject bo) { | 
  |  269 |    0 |            getPersistenceBrokerTemplate().delete(bo);  | 
  |  270 |    0 |        }  | 
  |  271 |     | 
     | 
  |  272 |     | 
         | 
  |  273 |     | 
     | 
  |  274 |     | 
     | 
  |  275 |     | 
       public void delete(List<? extends PersistableBusinessObject> boList) { | 
  |  276 |    0 |            for (PersistableBusinessObject bo : boList) { | 
  |  277 |    0 |                getPersistenceBrokerTemplate().delete(bo);  | 
  |  278 |     | 
           }  | 
  |  279 |    0 |        }  | 
  |  280 |     | 
     | 
  |  281 |     | 
     | 
  |  282 |     | 
         | 
  |  283 |     | 
     | 
  |  284 |     | 
     | 
  |  285 |     | 
       public void deleteMatching(Class clazz, Map<String, ?> fieldValues) { | 
  |  286 |    0 |            Criteria criteria = buildCriteria(fieldValues);  | 
  |  287 |     | 
     | 
  |  288 |    0 |            getPersistenceBrokerTemplate().deleteByQuery(QueryFactory.newQuery(clazz, criteria));  | 
  |  289 |     | 
     | 
  |  290 |     | 
             | 
  |  291 |     | 
             | 
  |  292 |    0 |            getPersistenceBrokerTemplate().clearCache();  | 
  |  293 |    0 |        }  | 
  |  294 |     | 
     | 
  |  295 |     | 
         | 
  |  296 |     | 
     | 
  |  297 |     | 
     | 
  |  298 |     | 
       public PersistableBusinessObject retrieve(PersistableBusinessObject object) { | 
  |  299 |    0 |            return (PersistableBusinessObject) getPersistenceBrokerTemplate().getObjectByQuery(QueryFactory.newQueryByIdentity(object));  | 
  |  300 |     | 
       }  | 
  |  301 |     | 
     | 
  |  302 |     | 
         | 
  |  303 |     | 
     | 
  |  304 |     | 
     | 
  |  305 |     | 
     | 
  |  306 |     | 
           public  <T extends BusinessObject> T findByPrimaryKeyUsingKeyObject(Class<T> clazz, Object pkObject) { | 
  |  307 |    0 |                    throw new UnsupportedOperationException("OJB does not support this option"); | 
  |  308 |     | 
           }  | 
  |  309 |     | 
     | 
  |  310 |     | 
             | 
  |  311 |     | 
     | 
  |  312 |     | 
     | 
  |  313 |     | 
     | 
  |  314 |     | 
           public PersistableBusinessObject manageReadOnly(PersistableBusinessObject bo) { | 
  |  315 |    0 |                    return bo;  | 
  |  316 |     | 
           }  | 
  |  317 |     | 
     | 
  |  318 |     | 
             | 
  |  319 |     | 
     | 
  |  320 |     | 
     | 
  |  321 |     | 
     | 
  |  322 |     | 
     | 
  |  323 |     | 
     | 
  |  324 |     | 
       private Criteria buildCriteria(Map<String, ?> fieldValues) { | 
  |  325 |    0 |            Criteria criteria = new Criteria();  | 
  |  326 |    0 |            for (Iterator i = fieldValues.entrySet().iterator(); i.hasNext();) { | 
  |  327 |    0 |                Map.Entry<String, Object> e = (Map.Entry<String, Object>) i.next();  | 
  |  328 |     | 
     | 
  |  329 |    0 |                String key = e.getKey();  | 
  |  330 |    0 |                Object value = e.getValue();  | 
  |  331 |    0 |                if (value instanceof Collection) { | 
  |  332 |    0 |                    criteria.addIn(key, (Collection) value);  | 
  |  333 |     | 
               }  | 
  |  334 |     | 
               else { | 
  |  335 |    0 |                    criteria.addEqualTo(key, value);  | 
  |  336 |     | 
               }  | 
  |  337 |    0 |            }  | 
  |  338 |     | 
     | 
  |  339 |    0 |            return criteria;  | 
  |  340 |     | 
       }  | 
  |  341 |     | 
     | 
  |  342 |     | 
         | 
  |  343 |     | 
       private Criteria buildCriteria(Object primaryKey) { | 
  |  344 |    0 |                Map<String, Object> fieldValues = new HashMap<String, Object>();  | 
  |  345 |     | 
             | 
  |  346 |    0 |                for (Field field : primaryKey.getClass().getDeclaredFields()) { | 
  |  347 |     | 
                       Object fieldValue;  | 
  |  348 |     | 
                           try { | 
  |  349 |    0 |                    for (Annotation an : field.getAnnotations()) { | 
  |  350 |     | 
                         | 
  |  351 |     | 
                         | 
  |  352 |    0 |                        if (an.annotationType().getName().equals("javax.persistence.Id")) { | 
  |  353 |    0 |                            fieldValue = primaryKey.getClass().getMethod("get" + StringUtils.capitalize(field.getName())).invoke(primaryKey); | 
  |  354 |    0 |                            fieldValues.put(field.getName(), fieldValue);  | 
  |  355 |    0 |                            break;  | 
  |  356 |     | 
                       }  | 
  |  357 |     | 
                   }  | 
  |  358 |    0 |                            } catch (IllegalArgumentException e) { | 
  |  359 |    0 |                                    e.printStackTrace();  | 
  |  360 |    0 |                            } catch (IllegalAccessException e) { | 
  |  361 |    0 |                                    e.printStackTrace();  | 
  |  362 |    0 |                            } catch (SecurityException e) { | 
  |  363 |    0 |                                    e.printStackTrace();  | 
  |  364 |    0 |                            } catch (InvocationTargetException e) { | 
  |  365 |    0 |                                    e.printStackTrace();  | 
  |  366 |    0 |                            } catch (NoSuchMethodException e) { | 
  |  367 |    0 |                                    e.printStackTrace();  | 
  |  368 |    0 |                            }  | 
  |  369 |     | 
               }  | 
  |  370 |     | 
             | 
  |  371 |     | 
             | 
  |  372 |    0 |            return this.buildCriteria(fieldValues);  | 
  |  373 |     | 
       }  | 
  |  374 |     | 
         | 
  |  375 |     | 
         | 
  |  376 |     | 
     | 
  |  377 |     | 
     | 
  |  378 |     | 
     | 
  |  379 |     | 
       private Criteria buildActiveCriteria(){ | 
  |  380 |    0 |            Criteria criteria = new Criteria();  | 
  |  381 |    0 |            criteria.addEqualTo(KNSPropertyConstants.ACTIVE, true);  | 
  |  382 |     | 
     | 
  |  383 |    0 |            return criteria;  | 
  |  384 |     | 
       }  | 
  |  385 |     | 
     | 
  |  386 |     | 
         | 
  |  387 |     | 
     | 
  |  388 |     | 
     | 
  |  389 |     | 
     | 
  |  390 |     | 
       private Criteria buildInactiveCriteria(){ | 
  |  391 |    0 |            Criteria criteria = new Criteria();  | 
  |  392 |    0 |            criteria.addEqualTo(KNSPropertyConstants.ACTIVE, false);  | 
  |  393 |     | 
     | 
  |  394 |    0 |            return criteria;  | 
  |  395 |     | 
       }  | 
  |  396 |     | 
     | 
  |  397 |     | 
         | 
  |  398 |     | 
     | 
  |  399 |     | 
     | 
  |  400 |     | 
     | 
  |  401 |     | 
     | 
  |  402 |     | 
     | 
  |  403 |     | 
       private Criteria buildNegativeCriteria(Map<String, ?> negativeFieldValues) { | 
  |  404 |    0 |            Criteria criteria = new Criteria();  | 
  |  405 |    0 |            for (Iterator i = negativeFieldValues.entrySet().iterator(); i.hasNext();) { | 
  |  406 |    0 |                Map.Entry<String, Object> e = (Map.Entry<String, Object>) i.next();  | 
  |  407 |     | 
     | 
  |  408 |    0 |                String key = e.getKey();  | 
  |  409 |    0 |                Object value = e.getValue();  | 
  |  410 |    0 |                if (value instanceof Collection) { | 
  |  411 |    0 |                    criteria.addNotIn(key, (Collection) value);  | 
  |  412 |     | 
               }  | 
  |  413 |     | 
               else { | 
  |  414 |    0 |                    criteria.addNotEqualTo(key, value);  | 
  |  415 |     | 
               }  | 
  |  416 |    0 |            }  | 
  |  417 |     | 
     | 
  |  418 |    0 |            return criteria;  | 
  |  419 |     | 
       }  | 
  |  420 |     | 
     | 
  |  421 |     | 
         | 
  |  422 |     | 
     | 
  |  423 |     | 
     | 
  |  424 |     | 
     | 
  |  425 |     | 
       protected PersistenceStructureService getPersistenceStructureService() { | 
  |  426 |    0 |            return persistenceStructureService;  | 
  |  427 |     | 
       }  | 
  |  428 |     | 
     | 
  |  429 |     | 
         | 
  |  430 |     | 
     | 
  |  431 |     | 
     | 
  |  432 |     | 
     | 
  |  433 |     | 
       public void setPersistenceStructureService(PersistenceStructureService persistenceStructureService) { | 
  |  434 |    0 |            this.persistenceStructureService = persistenceStructureService;  | 
  |  435 |    0 |        }  | 
  |  436 |     | 
     | 
  |  437 |     | 
   }  |