<commit_before>/*
 * Copyright 2006-2008 The Kuali Foundation
 * 
 * Licensed under the Educational Community License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 * http://www.opensource.org/licenses/ecl1.php
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.kuali.kra;

import java.util.List;

import org.kuali.kra.service.impl.versioningartifacts.SequenceOwnerImpl;

/**
 * This interface defines callback methods for assigning newly versioned 
 * SeparatelySequenceableAssociate reference(s) back to the owner
 * 
 * This is needed in an OJB environment because there's reflection offers 
 * too little information (without a lot of work) to know how the new
 * SeparatelySequenceableAssociate(s) should be assigned back to the
 * SequenceOwner.
 * 
 * For instance, suppose the following classes are defined like this:
 * 
  <pre>
  public class Foo implements SequenceOwner {
      private List<Bar> federalBars;
      private List<Bar> institutionalBars;
      //...
      public void addFederalBar(bar) {
          if(bar != null) {
              federalBars.add(bar);
              bar.add(this);
          }
      }
      public void addInstitutionalBar(bar) {
          if(bar != null) {
              institutionalBars.add(bar);
              bar.add(this);
          }<commit_msg>KRACOEUS-2121: Fixed a bad import. Work still in progress.<commit_after>/*
 * Copyright 2006-2008 The Kuali Foundation
 * 
 * Licensed under the Educational Community License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 * http://www.opensource.org/licenses/ecl1.php
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.kuali.kra;

import java.util.List;

/**
 * This interface defines callback methods for assigning newly versioned 
 * SeparatelySequenceableAssociate reference(s) back to the owner
 * 
 * This is needed in an OJB environment because there's reflection offers 
 * too little information (without a lot of work) to know how the new
 * SeparatelySequenceableAssociate(s) should be assigned back to the
 * SequenceOwner.
 * 
 * For instance, suppose the following classes are defined like this:
 * 
  <pre>
  public class Foo implements SequenceOwner {
      private List<Bar> federalBars;
      private List<Bar> institutionalBars;
      //...
      public void addFederalBar(bar) {
          if(bar != null) {
              federalBars.add(bar);
              bar.add(this);
          }
      }
      public void addInstitutionalBar(bar) {
          if(bar != null) {
              institutionalBars.add(bar);
              bar.add(this);
          }
{'fraction_non_alphanumeric': 0.07637017070979335, 'fraction_numerical': 0.007786762503743636, 'mean_word_length': 3.009603841536615, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6747365', 'n_tokens_mistral': 909, 'n_tokens_neox': 854, 'n_words': 354}