@@ -0,0 +1,1587 @@
+/**%0A * Copyright 2016 Miguel Vale Teixeira%0A * %0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *   http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A * %0A * @author: Miguel Vale Teixeira%0A * @data: 2016/01/13%0A * %0A */%0Apackage com.kediumm.jstocks.controller.core;%0A%0A%0Aimport java.util.List;%0A%0Aimport com.kediumm.jstocks.model.GBCE;%0A%0Apublic class FindData %7B%0A%09%0A%09private GBCE objGBCE = new GBCE();%0A%09private int index;%0A%09%0A%09public FindData() %7B%7D%0A%0A%09%0A%09/**%0A%09 * %0A%09 * %3C!-- begin-user-doc --%3E%0A%09 * Find if Stock Symbol exist. %0A%09 * %3C!-- end-user-doc --%3E%0A%09 * %0A%09 * @see %0A%09 * @param the new value of the '%3Cem%3EList%3CGBCE%3E lstGBCE%3C/em%3E' attribute.%0A%09 * @param the new value of the '%3Cem%3EString find_symbol%3C/em%3E' attribute.%0A%09 * @model %0A%09 * @generated%0A%09 * @return the GBCE object%0A%09 * @throws%0A%09 */%0A%09public GBCE findRecord(List%3CGBCE%3E lstGBCE, String find_symbol) %7B%0A%09%09%0A%09%09for (int i=0; i %3C lstGBCE.size(); i++) %7B%0A%09%09%09%0A%09%09%09objGBCE = lstGBCE.get(i);%0A%09%09%09%0A%09%09%09if ((objGBCE.getStk_symbol()).equals(find_symbol)) %7B%0A%09%09%09%09index = i;%0A%09%09%09%09return objGBCE;%0A%09%09%09%09//break;%0A%09%09%09%7D%0A%09%09%09%0A%09%09%7D%0A%09%09%0A%09%09return null;%0A%09%09%0A%09%7D%0A%0A%0A%09/**%0A%09 * @return the index%0A%09 */%0A%09public int getIndex() %7B%0A%09%09return index;%0A%09%7D%0A%0A%7D%0A

create controller service to find data