1 /*
2 Wotonomy: OpenStep design patterns for pure Java applications.
3 Copyright (C) 2001 Michael Powers
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, see http://www.gnu.org
17 */
18 package net.wotonomy.control;
19
20 /***
21 *
22 * @author ezamudio@nasoft.com
23 * @author $Author: cgruber $
24 * @version $Revision: 893 $
25 */
26 public class EOIntegralKeyGlobalID extends EOKeyGlobalID {
27
28 protected Number keyValue;
29
30 public EOIntegralKeyGlobalID(String entityName, Number value) {
31 super(entityName, 0);
32 keyValue = value;
33 }
34
35 /* (non-Javadoc)
36 * @see net.wotonomy.control.EOKeyGlobalID#keyValues()
37 */
38 public Object[] keyValues() {
39 return new Object[]{ keyValue };
40 }
41
42 /* (non-Javadoc)
43 * @see net.wotonomy.control.EOKeyGlobalID#_keyValuesNoCopy()
44 */
45 public Object[] _keyValuesNoCopy() {
46 return new Object[]{ keyValue };
47 }
48
49 /* (non-Javadoc)
50 * @see net.wotonomy.control.EOKeyGlobalID#keyCount()
51 */
52 public int keyCount() {
53 return 1;
54 }
55
56 /* (non-Javadoc)
57 * @see net.wotonomy.control.EOGlobalID#isTemporary()
58 */
59 public boolean isTemporary() {
60 return false;
61 }
62
63 }
64 /*
65 * $Log$
66 * Revision 1.1 2006/02/16 13:19:57 cgruber
67 * Check in all sources in eclipse-friendly maven-enabled packages.
68 *
69 * Revision 1.2 2003/08/19 01:59:01 chochos
70 * Added the wotonomy headers
71 *
72 */