View Javadoc

1   /*
2   Wotonomy: OpenStep design patterns for pure Java applications.
3   Copyright (C) 2002 Israfil consulting Services Corporation
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  $Id: EOKeyGlobalID.java 894 2006-02-16 16:47:14 +0000 (Thu, 16 Feb 2006) cgruber $
19  
20  */
21  
22  package net.wotonomy.control;
23  
24  import java.io.ObjectStreamException;
25  
26  import net.wotonomy.foundation.NSArray;
27  import net.wotonomy.foundation.NSCoder;
28  import net.wotonomy.foundation.NSCoding;
29  
30  /***
31  * The model object which represents the mapping between database 
32  * fields and object properties, lists available entities, lists 
33  * connection dictionaries, and has fetch specifications.
34  * 
35  * @author cgruber@israfil.net
36  * @author $Author: cgruber $
37  * @version $Revision: 894 $
38  */
39  
40  public abstract class EOKeyGlobalID extends EOGlobalID
41  	    implements NSCoding {
42  
43  	protected String _entityName;
44  	protected int _hash;
45  
46      protected EOKeyGlobalID(String entityName, int hashCode) {
47      	super();
48      	_entityName = entityName;
49      	_hash = hashCode;
50      }
51  
52      protected void _prepClone(EOKeyGlobalID gid) {
53          throw new UnsupportedOperationException("Not Yet Implemented");
54      }
55  
56      public static EOKeyGlobalID globalIDWithEntityName(String s, Object aobj[]) {
57          throw new UnsupportedOperationException("Not Yet Implemented");
58      }
59  
60      public static EOKeyGlobalID _defaultGlobalIDWithEntityName(String s, Object aobj[]) {
61          throw new UnsupportedOperationException("Not Yet Implemented");
62      }
63  
64      public String entityName() {
65      	return _entityName;
66      }
67  
68      public String _literalEntityName() {
69          throw new UnsupportedOperationException("Not Yet Implemented");
70      }
71  
72      public boolean _isFinal() {
73          throw new UnsupportedOperationException("Not Yet Implemented");
74      }
75  
76      public void _setGuessedEntityName(String s) {
77          throw new UnsupportedOperationException("Not Yet Implemented");
78      }
79  
80      public String _guessedEntityName() {
81          throw new UnsupportedOperationException("Not Yet Implemented");
82      }
83  
84      public void _setSubEntityName(String s) {
85          throw new UnsupportedOperationException("Not Yet Implemented");
86      }
87  
88      public String _subEntityName() {
89          throw new UnsupportedOperationException("Not Yet Implemented");
90      }
91  
92      public int hashCode() {
93      	return _hash;
94      }
95  
96      public abstract Object[] keyValues();
97  
98      public abstract Object[] _keyValuesNoCopy();
99  
100     public abstract int keyCount();
101 
102     public NSArray keyValuesArray() {
103     	return new NSArray(keyValues());
104     }
105 
106     public static Object decodeObject(NSCoder nscoder) {
107         throw new UnsupportedOperationException("Not Yet Implemented");
108     }
109 
110     public static EOKeyGlobalID _adjustForInheritance(EOKeyGlobalID eokeyglobalid, String s, String s1) {
111         throw new UnsupportedOperationException("Not Yet Implemented");
112     }
113 
114     public void encodeWithCoder(NSCoder nscoder) {
115         throw new UnsupportedOperationException("Not Yet Implemented");
116     }
117 
118     public Class classForCoder() {
119         throw new UnsupportedOperationException("Not Yet Implemented");
120     }
121 
122     protected Object readResolve() throws ObjectStreamException {
123         throw new UnsupportedOperationException("Not Yet Implemented");
124     }
125 
126 }
127 /*
128  * $Log$
129  * Revision 1.2  2006/02/16 16:47:14  cgruber
130  * Move some classes in to "internal" packages and re-work imports, etc.
131  *
132  * Also use UnsupportedOperationExceptions where appropriate, instead of WotonomyExceptions.
133  *
134  * Revision 1.1  2006/02/16 13:19:57  cgruber
135  * Check in all sources in eclipse-friendly maven-enabled packages.
136  *
137  * Revision 1.2  2003/08/19 01:50:54  chochos
138  * added two concrete implementations of EOKeyGlobalID.
139  *
140  * Revision 1.1  2002/07/14 21:59:06  mpowers
141  * Contributions from cgruber.
142  *
143  * Revision 1.1  2002/06/25 00:11:09  cgruber
144  * Add EOKeyGlobalID, but it won't work without NSCoder.
145  *
146  */