diff options
| author | Benjamin Culkin <scorpress@gmail.com> | 2024-05-19 17:56:33 -0400 |
|---|---|---|
| committer | Benjamin Culkin <scorpress@gmail.com> | 2024-05-19 17:56:33 -0400 |
| commit | aedc34d55462a75e329bbf342251ff6504cd117e (patch) | |
| tree | bcc8f1f2352582717b484df302aeea6696b8f000 /projects/net.wotonomy.persistence/src/main/java/net/wotonomy/control/EOKeyGlobalID.java | |
Initial import from SVN
Diffstat (limited to 'projects/net.wotonomy.persistence/src/main/java/net/wotonomy/control/EOKeyGlobalID.java')
| -rw-r--r-- | projects/net.wotonomy.persistence/src/main/java/net/wotonomy/control/EOKeyGlobalID.java | 146 |
1 files changed, 146 insertions, 0 deletions
diff --git a/projects/net.wotonomy.persistence/src/main/java/net/wotonomy/control/EOKeyGlobalID.java b/projects/net.wotonomy.persistence/src/main/java/net/wotonomy/control/EOKeyGlobalID.java new file mode 100644 index 0000000..76c4d05 --- /dev/null +++ b/projects/net.wotonomy.persistence/src/main/java/net/wotonomy/control/EOKeyGlobalID.java @@ -0,0 +1,146 @@ +/* +Wotonomy: OpenStep design patterns for pure Java applications. +Copyright (C) 2002 Israfil consulting Services Corporation + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, see http://www.gnu.org + +$Id: EOKeyGlobalID.java 894 2006-02-16 16:47:14Z cgruber $ + +*/ + +package net.wotonomy.control; + +import java.io.ObjectStreamException; + +import net.wotonomy.foundation.NSArray; +import net.wotonomy.foundation.NSCoder; +import net.wotonomy.foundation.NSCoding; + +/** +* The model object which represents the mapping between database +* fields and object properties, lists available entities, lists +* connection dictionaries, and has fetch specifications. +* +* @author cgruber@israfil.net +* @author $Author: cgruber $ +* @version $Revision: 894 $ +*/ + +public abstract class EOKeyGlobalID extends EOGlobalID + implements NSCoding { + + protected String _entityName; + protected int _hash; + + protected EOKeyGlobalID(String entityName, int hashCode) { + super(); + _entityName = entityName; + _hash = hashCode; + } + + protected void _prepClone(EOKeyGlobalID gid) { + throw new UnsupportedOperationException("Not Yet Implemented"); + } + + public static EOKeyGlobalID globalIDWithEntityName(String s, Object aobj[]) { + throw new UnsupportedOperationException("Not Yet Implemented"); + } + + public static EOKeyGlobalID _defaultGlobalIDWithEntityName(String s, Object aobj[]) { + throw new UnsupportedOperationException("Not Yet Implemented"); + } + + public String entityName() { + return _entityName; + } + + public String _literalEntityName() { + throw new UnsupportedOperationException("Not Yet Implemented"); + } + + public boolean _isFinal() { + throw new UnsupportedOperationException("Not Yet Implemented"); + } + + public void _setGuessedEntityName(String s) { + throw new UnsupportedOperationException("Not Yet Implemented"); + } + + public String _guessedEntityName() { + throw new UnsupportedOperationException("Not Yet Implemented"); + } + + public void _setSubEntityName(String s) { + throw new UnsupportedOperationException("Not Yet Implemented"); + } + + public String _subEntityName() { + throw new UnsupportedOperationException("Not Yet Implemented"); + } + + public int hashCode() { + return _hash; + } + + public abstract Object[] keyValues(); + + public abstract Object[] _keyValuesNoCopy(); + + public abstract int keyCount(); + + public NSArray keyValuesArray() { + return new NSArray(keyValues()); + } + + public static Object decodeObject(NSCoder nscoder) { + throw new UnsupportedOperationException("Not Yet Implemented"); + } + + public static EOKeyGlobalID _adjustForInheritance(EOKeyGlobalID eokeyglobalid, String s, String s1) { + throw new UnsupportedOperationException("Not Yet Implemented"); + } + + public void encodeWithCoder(NSCoder nscoder) { + throw new UnsupportedOperationException("Not Yet Implemented"); + } + + public Class classForCoder() { + throw new UnsupportedOperationException("Not Yet Implemented"); + } + + protected Object readResolve() throws ObjectStreamException { + throw new UnsupportedOperationException("Not Yet Implemented"); + } + +} +/* + * $Log$ + * Revision 1.2 2006/02/16 16:47:14 cgruber + * Move some classes in to "internal" packages and re-work imports, etc. + * + * Also use UnsupportedOperationExceptions where appropriate, instead of WotonomyExceptions. + * + * Revision 1.1 2006/02/16 13:19:57 cgruber + * Check in all sources in eclipse-friendly maven-enabled packages. + * + * Revision 1.2 2003/08/19 01:50:54 chochos + * added two concrete implementations of EOKeyGlobalID. + * + * Revision 1.1 2002/07/14 21:59:06 mpowers + * Contributions from cgruber. + * + * Revision 1.1 2002/06/25 00:11:09 cgruber + * Add EOKeyGlobalID, but it won't work without NSCoder. + * + */ |
