View Javadoc
1   package org.andromda.cartridges.spring.metafacades;
2   
3   import java.util.ArrayList;
4   import java.util.Collection;
5   
6   /**
7    * MetafacadeLogic implementation for org.andromda.cartridges.spring.metafacades.SpringCriteriaSearch.
8    *
9    * @see org.andromda.cartridges.spring.metafacades.SpringCriteriaSearch
10   */
11  public class SpringCriteriaSearchLogicImpl
12          extends SpringCriteriaSearchLogic
13  {
14      private static final long serialVersionUID = 34L;
15      /**
16       * Public constructor for SpringCriteriaSearchLogicImpl
17       * @param metaObject
18       * @param context
19       * @see org.andromda.cartridges.spring.metafacades.SpringCriteriaSearch
20       */
21      public SpringCriteriaSearchLogicImpl(Object metaObject, String context)
22      {
23          super(metaObject, context);
24      }
25  
26      /**
27       * @param follow
28       * @return super.getAttributes(follow).getType()
29       * @see org.andromda.cartridges.spring.metafacades.SpringEntityOperation#getImplementationCall()
30       */
31      protected Collection<SpringCriteriaAttributeLogic> handleGetAttributes(boolean follow)
32      {
33          Collection<SpringCriteriaAttributeLogic> arguments = new ArrayList<SpringCriteriaAttributeLogic>();
34          for (Object parameter : super.getAttributes(follow))
35          {
36              arguments.add((SpringCriteriaAttributeLogic)((SpringCriteriaAttributeLogic)parameter).getType());
37          }
38          return arguments;
39      }
40  
41  }