001package org.andromda.cartridges.spring.metafacades; 002 003import java.util.ArrayList; 004import java.util.Collection; 005 006/** 007 * MetafacadeLogic implementation for org.andromda.cartridges.spring.metafacades.SpringCriteriaSearch. 008 * 009 * @see org.andromda.cartridges.spring.metafacades.SpringCriteriaSearch 010 */ 011public class SpringCriteriaSearchLogicImpl 012 extends SpringCriteriaSearchLogic 013{ 014 private static final long serialVersionUID = 34L; 015 /** 016 * Public constructor for SpringCriteriaSearchLogicImpl 017 * @param metaObject 018 * @param context 019 * @see org.andromda.cartridges.spring.metafacades.SpringCriteriaSearch 020 */ 021 public SpringCriteriaSearchLogicImpl(Object metaObject, String context) 022 { 023 super(metaObject, context); 024 } 025 026 /** 027 * @param follow 028 * @return super.getAttributes(follow).getType() 029 * @see org.andromda.cartridges.spring.metafacades.SpringEntityOperation#getImplementationCall() 030 */ 031 protected Collection<SpringCriteriaAttributeLogic> handleGetAttributes(boolean follow) 032 { 033 Collection<SpringCriteriaAttributeLogic> arguments = new ArrayList<SpringCriteriaAttributeLogic>(); 034 for (Object parameter : super.getAttributes(follow)) 035 { 036 arguments.add((SpringCriteriaAttributeLogic)((SpringCriteriaAttributeLogic)parameter).getType()); 037 } 038 return arguments; 039 } 040 041}