01: package com.silvermindsoftware.hitch.sample.dao;
02:
03: import com.silvermindsoftware.hitch.sample.model.Sex;
04:
05: import java.util.List;
06: import java.util.ArrayList;
07:
08: /**
09: * Copyright 2007 Brandon Goodin
10: *
11: * Licensed under the Apache License, Version 2.0 (the "License");
12: * you may not use this file except in compliance with the License.
13: * You may obtain a copy of the License at
14: *
15: * http://www.apache.org/licenses/LICENSE-2.0
16: *
17: * Unless required by applicable law or agreed to in writing, software
18: * distributed under the License is distributed on an "AS IS" BASIS,
19: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20: * See the License for the specific language governing permissions and
21: * limitations under the License.
22: */
23:
24: public class SexDao {
25:
26: private List<Sex> sexList = new ArrayList<Sex>();
27:
28: public SexDao() {
29: sexList.add(new Sex(1, "Unspecified"));
30: sexList.add(new Sex(2, "Male"));
31: sexList.add(new Sex(3, "Female"));
32: }
33:
34: public Sex getSex() {
35: return sexList.get(1);
36: }
37:
38: public List<Sex> getList() {
39: return sexList;
40: }
41: }
|