Added: incubator/jdo/trunk/tck11/test/java/org/apache/jdo/tck/pc/fieldtypes/HashtableStringKeyCollections.java URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck11/test/java/org/apache/jdo/tck/pc/fieldtypes/HashtableStringKeyCollections.java?view=auto&rev=158179 ============================================================================== --- incubator/jdo/trunk/tck11/test/java/org/apache/jdo/tck/pc/fieldtypes/HashtableStringKeyCollections.java (added) +++ incubator/jdo/trunk/tck11/test/java/org/apache/jdo/tck/pc/fieldtypes/HashtableStringKeyCollections.java Fri Mar 18 17:07:39 2005 @@ -0,0 +1,954 @@ +/* + * Copyright 2005 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.jdo.tck.pc.fieldtypes; + +import java.io.Serializable; +import java.util.Hashtable; + +public class HashtableStringKeyCollections { + public int identifier; + public Hashtable HashtableOfString_Object0; + public Hashtable HashtableOfString_Object1; + public Hashtable HashtableOfString_Object2; + public Hashtable HashtableOfString_SimpleClass3; + public Hashtable HashtableOfString_SimpleClass4; + public Hashtable HashtableOfString_SimpleClass5; + public Hashtable HashtableOfString_SimpleInterface6; + public Hashtable HashtableOfString_SimpleInterface7; + public Hashtable HashtableOfString_SimpleInterface8; + public Hashtable HashtableOfString_String9; + public Hashtable HashtableOfString_String10; + public Hashtable HashtableOfString_String11; + public Hashtable HashtableOfString_Date12; + public Hashtable HashtableOfString_Date13; + public Hashtable HashtableOfString_Date14; + public Hashtable HashtableOfString_Locale15; + public Hashtable HashtableOfString_Locale16; + public Hashtable HashtableOfString_Locale17; + public Hashtable HashtableOfString_BigDecimal18; + public Hashtable HashtableOfString_BigDecimal19; + public Hashtable HashtableOfString_BigDecimal20; + public Hashtable HashtableOfString_BigInteger21; + public Hashtable HashtableOfString_BigInteger22; + public Hashtable HashtableOfString_BigInteger23; + public Hashtable HashtableOfString_Byte24; + public Hashtable HashtableOfString_Byte25; + public Hashtable HashtableOfString_Byte26; + public Hashtable HashtableOfString_Double27; + public Hashtable HashtableOfString_Double28; + public Hashtable HashtableOfString_Double29; + public Hashtable HashtableOfString_Float30; + public Hashtable HashtableOfString_Float31; + public Hashtable HashtableOfString_Float32; + public Hashtable HashtableOfString_Integer33; + public Hashtable HashtableOfString_Integer34; + public Hashtable HashtableOfString_Integer35; + public Hashtable HashtableOfString_Long36; + public Hashtable HashtableOfString_Long37; + public Hashtable HashtableOfString_Long38; + public Hashtable HashtableOfString_Short39; + public Hashtable HashtableOfString_Short40; + public Hashtable HashtableOfString_Short41; + public Hashtable HashtableOfString_Object42; + public Hashtable HashtableOfString_Object43; + public Hashtable HashtableOfString_Object44; + public Hashtable HashtableOfString_SimpleClass45; + public Hashtable HashtableOfString_SimpleClass46; + public Hashtable HashtableOfString_SimpleClass47; + public Hashtable HashtableOfString_SimpleInterface48; + public Hashtable HashtableOfString_SimpleInterface49; + public Hashtable HashtableOfString_SimpleInterface50; + public Hashtable HashtableOfString_String51; + public Hashtable HashtableOfString_String52; + public Hashtable HashtableOfString_String53; + public Hashtable HashtableOfString_Date54; + public Hashtable HashtableOfString_Date55; + public Hashtable HashtableOfString_Date56; + public Hashtable HashtableOfString_Locale57; + public Hashtable HashtableOfString_Locale58; + public Hashtable HashtableOfString_Locale59; + public Hashtable HashtableOfString_BigDecimal60; + public Hashtable HashtableOfString_BigDecimal61; + public Hashtable HashtableOfString_BigDecimal62; + public Hashtable HashtableOfString_BigInteger63; + public Hashtable HashtableOfString_BigInteger64; + public Hashtable HashtableOfString_BigInteger65; + public Hashtable HashtableOfString_Byte66; + public Hashtable HashtableOfString_Byte67; + public Hashtable HashtableOfString_Byte68; + public Hashtable HashtableOfString_Double69; + public Hashtable HashtableOfString_Double70; + public Hashtable HashtableOfString_Double71; + public Hashtable HashtableOfString_Float72; + public Hashtable HashtableOfString_Float73; + public Hashtable HashtableOfString_Float74; + public Hashtable HashtableOfString_Integer75; + public Hashtable HashtableOfString_Integer76; + public Hashtable HashtableOfString_Integer77; + public Hashtable HashtableOfString_Long78; + public Hashtable HashtableOfString_Long79; + public Hashtable HashtableOfString_Long80; + public Hashtable HashtableOfString_Short81; + public Hashtable HashtableOfString_Short82; + public Hashtable HashtableOfString_Short83; + public Hashtable HashtableOfString_Object84; + public Hashtable HashtableOfString_Object85; + public Hashtable HashtableOfString_Object86; + public Hashtable HashtableOfString_SimpleClass87; + public Hashtable HashtableOfString_SimpleClass88; + public Hashtable HashtableOfString_SimpleClass89; + public Hashtable HashtableOfString_SimpleInterface90; + public Hashtable HashtableOfString_SimpleInterface91; + public Hashtable HashtableOfString_SimpleInterface92; + public Hashtable HashtableOfString_String93; + public Hashtable HashtableOfString_String94; + public Hashtable HashtableOfString_String95; + public Hashtable HashtableOfString_Date96; + public Hashtable HashtableOfString_Date97; + public Hashtable HashtableOfString_Date98; + public Hashtable HashtableOfString_Locale99; + public Hashtable HashtableOfString_Locale100; + public Hashtable HashtableOfString_Locale101; + public Hashtable HashtableOfString_BigDecimal102; + public Hashtable HashtableOfString_BigDecimal103; + public Hashtable HashtableOfString_BigDecimal104; + public Hashtable HashtableOfString_BigInteger105; + public Hashtable HashtableOfString_BigInteger106; + public Hashtable HashtableOfString_BigInteger107; + public Hashtable HashtableOfString_Byte108; + public Hashtable HashtableOfString_Byte109; + public Hashtable HashtableOfString_Byte110; + public Hashtable HashtableOfString_Double111; + public Hashtable HashtableOfString_Double112; + public Hashtable HashtableOfString_Double113; + public Hashtable HashtableOfString_Float114; + public Hashtable HashtableOfString_Float115; + public Hashtable HashtableOfString_Float116; + public Hashtable HashtableOfString_Integer117; + public Hashtable HashtableOfString_Integer118; + public Hashtable HashtableOfString_Integer119; + public Hashtable HashtableOfString_Long120; + public Hashtable HashtableOfString_Long121; + public Hashtable HashtableOfString_Long122; + public Hashtable HashtableOfString_Short123; + public Hashtable HashtableOfString_Short124; + public Hashtable HashtableOfString_Short125; + + public static final String [] fieldSpecs = { + "public Hashtable HashtableOfString_Object0", + "embedded-value=true public Hashtable HashtableOfString_Object1", + "embedded-value=false public Hashtable HashtableOfString_Object2", + "public Hashtable HashtableOfString_SimpleClass3", + "embedded-value=true public Hashtable HashtableOfString_SimpleClass4", + "embedded-value=false public Hashtable HashtableOfString_SimpleClass5", + "public Hashtable HashtableOfString_SimpleInterface6", + "embedded-value=true public Hashtable HashtableOfString_SimpleInterface7", + "embedded-value=false public Hashtable HashtableOfString_SimpleInterface8", + "public Hashtable HashtableOfString_String9", + "embedded-value=true public Hashtable HashtableOfString_String10", + "embedded-value=false public Hashtable HashtableOfString_String11", + "public Hashtable HashtableOfString_Date12", + "embedded-value=true public Hashtable HashtableOfString_Date13", + "embedded-value=false public Hashtable HashtableOfString_Date14", + "public Hashtable HashtableOfString_Locale15", + "embedded-value=true public Hashtable HashtableOfString_Locale16", + "embedded-value=false public Hashtable HashtableOfString_Locale17", + "public Hashtable HashtableOfString_BigDecimal18", + "embedded-value=true public Hashtable HashtableOfString_BigDecimal19", + "embedded-value=false public Hashtable HashtableOfString_BigDecimal20", + "public Hashtable HashtableOfString_BigInteger21", + "embedded-value=true public Hashtable HashtableOfString_BigInteger22", + "embedded-value=false public Hashtable HashtableOfString_BigInteger23", + "public Hashtable HashtableOfString_Byte24", + "embedded-value=true public Hashtable HashtableOfString_Byte25", + "embedded-value=false public Hashtable HashtableOfString_Byte26", + "public Hashtable HashtableOfString_Double27", + "embedded-value=true public Hashtable HashtableOfString_Double28", + "embedded-value=false public Hashtable HashtableOfString_Double29", + "public Hashtable HashtableOfString_Float30", + "embedded-value=true public Hashtable HashtableOfString_Float31", + "embedded-value=false public Hashtable HashtableOfString_Float32", + "public Hashtable HashtableOfString_Integer33", + "embedded-value=true public Hashtable HashtableOfString_Integer34", + "embedded-value=false public Hashtable HashtableOfString_Integer35", + "public Hashtable HashtableOfString_Long36", + "embedded-value=true public Hashtable HashtableOfString_Long37", + "embedded-value=false public Hashtable HashtableOfString_Long38", + "public Hashtable HashtableOfString_Short39", + "embedded-value=true public Hashtable HashtableOfString_Short40", + "embedded-value=false public Hashtable HashtableOfString_Short41", + "embedded-key=true public Hashtable HashtableOfString_Object42", + "embedded-key=true embedded-value=true public Hashtable HashtableOfString_Object43", + "embedded-key=true embedded-value=false public Hashtable HashtableOfString_Object44", + "embedded-key=true public Hashtable HashtableOfString_SimpleClass45", + "embedded-key=true embedded-value=true public Hashtable HashtableOfString_SimpleClass46", + "embedded-key=true embedded-value=false public Hashtable HashtableOfString_SimpleClass47", + "embedded-key=true public Hashtable HashtableOfString_SimpleInterface48", + "embedded-key=true embedded-value=true public Hashtable HashtableOfString_SimpleInterface49", + "embedded-key=true embedded-value=false public Hashtable HashtableOfString_SimpleInterface50", + "embedded-key=true public Hashtable HashtableOfString_String51", + "embedded-key=true embedded-value=true public Hashtable HashtableOfString_String52", + "embedded-key=true embedded-value=false public Hashtable HashtableOfString_String53", + "embedded-key=true public Hashtable HashtableOfString_Date54", + "embedded-key=true embedded-value=true public Hashtable HashtableOfString_Date55", + "embedded-key=true embedded-value=false public Hashtable HashtableOfString_Date56", + "embedded-key=true public Hashtable HashtableOfString_Locale57", + "embedded-key=true embedded-value=true public Hashtable HashtableOfString_Locale58", + "embedded-key=true embedded-value=false public Hashtable HashtableOfString_Locale59", + "embedded-key=true public Hashtable HashtableOfString_BigDecimal60", + "embedded-key=true embedded-value=true public Hashtable HashtableOfString_BigDecimal61", + "embedded-key=true embedded-value=false public Hashtable HashtableOfString_BigDecimal62", + "embedded-key=true public Hashtable HashtableOfString_BigInteger63", + "embedded-key=true embedded-value=true public Hashtable HashtableOfString_BigInteger64", + "embedded-key=true embedded-value=false public Hashtable HashtableOfString_BigInteger65", + "embedded-key=true public Hashtable HashtableOfString_Byte66", + "embedded-key=true embedded-value=true public Hashtable HashtableOfString_Byte67", + "embedded-key=true embedded-value=false public Hashtable HashtableOfString_Byte68", + "embedded-key=true public Hashtable HashtableOfString_Double69", + "embedded-key=true embedded-value=true public Hashtable HashtableOfString_Double70", + "embedded-key=true embedded-value=false public Hashtable HashtableOfString_Double71", + "embedded-key=true public Hashtable HashtableOfString_Float72", + "embedded-key=true embedded-value=true public Hashtable HashtableOfString_Float73", + "embedded-key=true embedded-value=false public Hashtable HashtableOfString_Float74", + "embedded-key=true public Hashtable HashtableOfString_Integer75", + "embedded-key=true embedded-value=true public Hashtable HashtableOfString_Integer76", + "embedded-key=true embedded-value=false public Hashtable HashtableOfString_Integer77", + "embedded-key=true public Hashtable HashtableOfString_Long78", + "embedded-key=true embedded-value=true public Hashtable HashtableOfString_Long79", + "embedded-key=true embedded-value=false public Hashtable HashtableOfString_Long80", + "embedded-key=true public Hashtable HashtableOfString_Short81", + "embedded-key=true embedded-value=true public Hashtable HashtableOfString_Short82", + "embedded-key=true embedded-value=false public Hashtable HashtableOfString_Short83", + "embedded-key=false public Hashtable HashtableOfString_Object84", + "embedded-key=false embedded-value=true public Hashtable HashtableOfString_Object85", + "embedded-key=false embedded-value=false public Hashtable HashtableOfString_Object86", + "embedded-key=false public Hashtable HashtableOfString_SimpleClass87", + "embedded-key=false embedded-value=true public Hashtable HashtableOfString_SimpleClass88", + "embedded-key=false embedded-value=false public Hashtable HashtableOfString_SimpleClass89", + "embedded-key=false public Hashtable HashtableOfString_SimpleInterface90", + "embedded-key=false embedded-value=true public Hashtable HashtableOfString_SimpleInterface91", + "embedded-key=false embedded-value=false public Hashtable HashtableOfString_SimpleInterface92", + "embedded-key=false public Hashtable HashtableOfString_String93", + "embedded-key=false embedded-value=true public Hashtable HashtableOfString_String94", + "embedded-key=false embedded-value=false public Hashtable HashtableOfString_String95", + "embedded-key=false public Hashtable HashtableOfString_Date96", + "embedded-key=false embedded-value=true public Hashtable HashtableOfString_Date97", + "embedded-key=false embedded-value=false public Hashtable HashtableOfString_Date98", + "embedded-key=false public Hashtable HashtableOfString_Locale99", + "embedded-key=false embedded-value=true public Hashtable HashtableOfString_Locale100", + "embedded-key=false embedded-value=false public Hashtable HashtableOfString_Locale101", + "embedded-key=false public Hashtable HashtableOfString_BigDecimal102", + "embedded-key=false embedded-value=true public Hashtable HashtableOfString_BigDecimal103", + "embedded-key=false embedded-value=false public Hashtable HashtableOfString_BigDecimal104", + "embedded-key=false public Hashtable HashtableOfString_BigInteger105", + "embedded-key=false embedded-value=true public Hashtable HashtableOfString_BigInteger106", + "embedded-key=false embedded-value=false public Hashtable HashtableOfString_BigInteger107", + "embedded-key=false public Hashtable HashtableOfString_Byte108", + "embedded-key=false embedded-value=true public Hashtable HashtableOfString_Byte109", + "embedded-key=false embedded-value=false public Hashtable HashtableOfString_Byte110", + "embedded-key=false public Hashtable HashtableOfString_Double111", + "embedded-key=false embedded-value=true public Hashtable HashtableOfString_Double112", + "embedded-key=false embedded-value=false public Hashtable HashtableOfString_Double113", + "embedded-key=false public Hashtable HashtableOfString_Float114", + "embedded-key=false embedded-value=true public Hashtable HashtableOfString_Float115", + "embedded-key=false embedded-value=false public Hashtable HashtableOfString_Float116", + "embedded-key=false public Hashtable HashtableOfString_Integer117", + "embedded-key=false embedded-value=true public Hashtable HashtableOfString_Integer118", + "embedded-key=false embedded-value=false public Hashtable HashtableOfString_Integer119", + "embedded-key=false public Hashtable HashtableOfString_Long120", + "embedded-key=false embedded-value=true public Hashtable HashtableOfString_Long121", + "embedded-key=false embedded-value=false public Hashtable HashtableOfString_Long122", + "embedded-key=false public Hashtable HashtableOfString_Short123", + "embedded-key=false embedded-value=true public Hashtable HashtableOfString_Short124", + "embedded-key=false embedded-value=false public Hashtable HashtableOfString_Short125" + }; + public int getLength() + { + return fieldSpecs.length; + } + public Hashtable get(int index) + { + switch (index) + { + case(0): + return HashtableOfString_Object0; + case(1): + return HashtableOfString_Object1; + case(2): + return HashtableOfString_Object2; + case(3): + return HashtableOfString_SimpleClass3; + case(4): + return HashtableOfString_SimpleClass4; + case(5): + return HashtableOfString_SimpleClass5; + case(6): + return HashtableOfString_SimpleInterface6; + case(7): + return HashtableOfString_SimpleInterface7; + case(8): + return HashtableOfString_SimpleInterface8; + case(9): + return HashtableOfString_String9; + case(10): + return HashtableOfString_String10; + case(11): + return HashtableOfString_String11; + case(12): + return HashtableOfString_Date12; + case(13): + return HashtableOfString_Date13; + case(14): + return HashtableOfString_Date14; + case(15): + return HashtableOfString_Locale15; + case(16): + return HashtableOfString_Locale16; + case(17): + return HashtableOfString_Locale17; + case(18): + return HashtableOfString_BigDecimal18; + case(19): + return HashtableOfString_BigDecimal19; + case(20): + return HashtableOfString_BigDecimal20; + case(21): + return HashtableOfString_BigInteger21; + case(22): + return HashtableOfString_BigInteger22; + case(23): + return HashtableOfString_BigInteger23; + case(24): + return HashtableOfString_Byte24; + case(25): + return HashtableOfString_Byte25; + case(26): + return HashtableOfString_Byte26; + case(27): + return HashtableOfString_Double27; + case(28): + return HashtableOfString_Double28; + case(29): + return HashtableOfString_Double29; + case(30): + return HashtableOfString_Float30; + case(31): + return HashtableOfString_Float31; + case(32): + return HashtableOfString_Float32; + case(33): + return HashtableOfString_Integer33; + case(34): + return HashtableOfString_Integer34; + case(35): + return HashtableOfString_Integer35; + case(36): + return HashtableOfString_Long36; + case(37): + return HashtableOfString_Long37; + case(38): + return HashtableOfString_Long38; + case(39): + return HashtableOfString_Short39; + case(40): + return HashtableOfString_Short40; + case(41): + return HashtableOfString_Short41; + case(42): + return HashtableOfString_Object42; + case(43): + return HashtableOfString_Object43; + case(44): + return HashtableOfString_Object44; + case(45): + return HashtableOfString_SimpleClass45; + case(46): + return HashtableOfString_SimpleClass46; + case(47): + return HashtableOfString_SimpleClass47; + case(48): + return HashtableOfString_SimpleInterface48; + case(49): + return HashtableOfString_SimpleInterface49; + case(50): + return HashtableOfString_SimpleInterface50; + case(51): + return HashtableOfString_String51; + case(52): + return HashtableOfString_String52; + case(53): + return HashtableOfString_String53; + case(54): + return HashtableOfString_Date54; + case(55): + return HashtableOfString_Date55; + case(56): + return HashtableOfString_Date56; + case(57): + return HashtableOfString_Locale57; + case(58): + return HashtableOfString_Locale58; + case(59): + return HashtableOfString_Locale59; + case(60): + return HashtableOfString_BigDecimal60; + case(61): + return HashtableOfString_BigDecimal61; + case(62): + return HashtableOfString_BigDecimal62; + case(63): + return HashtableOfString_BigInteger63; + case(64): + return HashtableOfString_BigInteger64; + case(65): + return HashtableOfString_BigInteger65; + case(66): + return HashtableOfString_Byte66; + case(67): + return HashtableOfString_Byte67; + case(68): + return HashtableOfString_Byte68; + case(69): + return HashtableOfString_Double69; + case(70): + return HashtableOfString_Double70; + case(71): + return HashtableOfString_Double71; + case(72): + return HashtableOfString_Float72; + case(73): + return HashtableOfString_Float73; + case(74): + return HashtableOfString_Float74; + case(75): + return HashtableOfString_Integer75; + case(76): + return HashtableOfString_Integer76; + case(77): + return HashtableOfString_Integer77; + case(78): + return HashtableOfString_Long78; + case(79): + return HashtableOfString_Long79; + case(80): + return HashtableOfString_Long80; + case(81): + return HashtableOfString_Short81; + case(82): + return HashtableOfString_Short82; + case(83): + return HashtableOfString_Short83; + case(84): + return HashtableOfString_Object84; + case(85): + return HashtableOfString_Object85; + case(86): + return HashtableOfString_Object86; + case(87): + return HashtableOfString_SimpleClass87; + case(88): + return HashtableOfString_SimpleClass88; + case(89): + return HashtableOfString_SimpleClass89; + case(90): + return HashtableOfString_SimpleInterface90; + case(91): + return HashtableOfString_SimpleInterface91; + case(92): + return HashtableOfString_SimpleInterface92; + case(93): + return HashtableOfString_String93; + case(94): + return HashtableOfString_String94; + case(95): + return HashtableOfString_String95; + case(96): + return HashtableOfString_Date96; + case(97): + return HashtableOfString_Date97; + case(98): + return HashtableOfString_Date98; + case(99): + return HashtableOfString_Locale99; + case(100): + return HashtableOfString_Locale100; + case(101): + return HashtableOfString_Locale101; + case(102): + return HashtableOfString_BigDecimal102; + case(103): + return HashtableOfString_BigDecimal103; + case(104): + return HashtableOfString_BigDecimal104; + case(105): + return HashtableOfString_BigInteger105; + case(106): + return HashtableOfString_BigInteger106; + case(107): + return HashtableOfString_BigInteger107; + case(108): + return HashtableOfString_Byte108; + case(109): + return HashtableOfString_Byte109; + case(110): + return HashtableOfString_Byte110; + case(111): + return HashtableOfString_Double111; + case(112): + return HashtableOfString_Double112; + case(113): + return HashtableOfString_Double113; + case(114): + return HashtableOfString_Float114; + case(115): + return HashtableOfString_Float115; + case(116): + return HashtableOfString_Float116; + case(117): + return HashtableOfString_Integer117; + case(118): + return HashtableOfString_Integer118; + case(119): + return HashtableOfString_Integer119; + case(120): + return HashtableOfString_Long120; + case(121): + return HashtableOfString_Long121; + case(122): + return HashtableOfString_Long122; + case(123): + return HashtableOfString_Short123; + case(124): + return HashtableOfString_Short124; + case(125): + return HashtableOfString_Short125; + default: + throw new IndexOutOfBoundsException(); + } + } + public boolean set(int index,Hashtable value) + { + if(fieldSpecs[index].indexOf("final") != -1) + return false; + switch (index) + { + case(0): + HashtableOfString_Object0= value; + break; + case(1): + HashtableOfString_Object1= value; + break; + case(2): + HashtableOfString_Object2= value; + break; + case(3): + HashtableOfString_SimpleClass3= value; + break; + case(4): + HashtableOfString_SimpleClass4= value; + break; + case(5): + HashtableOfString_SimpleClass5= value; + break; + case(6): + HashtableOfString_SimpleInterface6= value; + break; + case(7): + HashtableOfString_SimpleInterface7= value; + break; + case(8): + HashtableOfString_SimpleInterface8= value; + break; + case(9): + HashtableOfString_String9= value; + break; + case(10): + HashtableOfString_String10= value; + break; + case(11): + HashtableOfString_String11= value; + break; + case(12): + HashtableOfString_Date12= value; + break; + case(13): + HashtableOfString_Date13= value; + break; + case(14): + HashtableOfString_Date14= value; + break; + case(15): + HashtableOfString_Locale15= value; + break; + case(16): + HashtableOfString_Locale16= value; + break; + case(17): + HashtableOfString_Locale17= value; + break; + case(18): + HashtableOfString_BigDecimal18= value; + break; + case(19): + HashtableOfString_BigDecimal19= value; + break; + case(20): + HashtableOfString_BigDecimal20= value; + break; + case(21): + HashtableOfString_BigInteger21= value; + break; + case(22): + HashtableOfString_BigInteger22= value; + break; + case(23): + HashtableOfString_BigInteger23= value; + break; + case(24): + HashtableOfString_Byte24= value; + break; + case(25): + HashtableOfString_Byte25= value; + break; + case(26): + HashtableOfString_Byte26= value; + break; + case(27): + HashtableOfString_Double27= value; + break; + case(28): + HashtableOfString_Double28= value; + break; + case(29): + HashtableOfString_Double29= value; + break; + case(30): + HashtableOfString_Float30= value; + break; + case(31): + HashtableOfString_Float31= value; + break; + case(32): + HashtableOfString_Float32= value; + break; + case(33): + HashtableOfString_Integer33= value; + break; + case(34): + HashtableOfString_Integer34= value; + break; + case(35): + HashtableOfString_Integer35= value; + break; + case(36): + HashtableOfString_Long36= value; + break; + case(37): + HashtableOfString_Long37= value; + break; + case(38): + HashtableOfString_Long38= value; + break; + case(39): + HashtableOfString_Short39= value; + break; + case(40): + HashtableOfString_Short40= value; + break; + case(41): + HashtableOfString_Short41= value; + break; + case(42): + HashtableOfString_Object42= value; + break; + case(43): + HashtableOfString_Object43= value; + break; + case(44): + HashtableOfString_Object44= value; + break; + case(45): + HashtableOfString_SimpleClass45= value; + break; + case(46): + HashtableOfString_SimpleClass46= value; + break; + case(47): + HashtableOfString_SimpleClass47= value; + break; + case(48): + HashtableOfString_SimpleInterface48= value; + break; + case(49): + HashtableOfString_SimpleInterface49= value; + break; + case(50): + HashtableOfString_SimpleInterface50= value; + break; + case(51): + HashtableOfString_String51= value; + break; + case(52): + HashtableOfString_String52= value; + break; + case(53): + HashtableOfString_String53= value; + break; + case(54): + HashtableOfString_Date54= value; + break; + case(55): + HashtableOfString_Date55= value; + break; + case(56): + HashtableOfString_Date56= value; + break; + case(57): + HashtableOfString_Locale57= value; + break; + case(58): + HashtableOfString_Locale58= value; + break; + case(59): + HashtableOfString_Locale59= value; + break; + case(60): + HashtableOfString_BigDecimal60= value; + break; + case(61): + HashtableOfString_BigDecimal61= value; + break; + case(62): + HashtableOfString_BigDecimal62= value; + break; + case(63): + HashtableOfString_BigInteger63= value; + break; + case(64): + HashtableOfString_BigInteger64= value; + break; + case(65): + HashtableOfString_BigInteger65= value; + break; + case(66): + HashtableOfString_Byte66= value; + break; + case(67): + HashtableOfString_Byte67= value; + break; + case(68): + HashtableOfString_Byte68= value; + break; + case(69): + HashtableOfString_Double69= value; + break; + case(70): + HashtableOfString_Double70= value; + break; + case(71): + HashtableOfString_Double71= value; + break; + case(72): + HashtableOfString_Float72= value; + break; + case(73): + HashtableOfString_Float73= value; + break; + case(74): + HashtableOfString_Float74= value; + break; + case(75): + HashtableOfString_Integer75= value; + break; + case(76): + HashtableOfString_Integer76= value; + break; + case(77): + HashtableOfString_Integer77= value; + break; + case(78): + HashtableOfString_Long78= value; + break; + case(79): + HashtableOfString_Long79= value; + break; + case(80): + HashtableOfString_Long80= value; + break; + case(81): + HashtableOfString_Short81= value; + break; + case(82): + HashtableOfString_Short82= value; + break; + case(83): + HashtableOfString_Short83= value; + break; + case(84): + HashtableOfString_Object84= value; + break; + case(85): + HashtableOfString_Object85= value; + break; + case(86): + HashtableOfString_Object86= value; + break; + case(87): + HashtableOfString_SimpleClass87= value; + break; + case(88): + HashtableOfString_SimpleClass88= value; + break; + case(89): + HashtableOfString_SimpleClass89= value; + break; + case(90): + HashtableOfString_SimpleInterface90= value; + break; + case(91): + HashtableOfString_SimpleInterface91= value; + break; + case(92): + HashtableOfString_SimpleInterface92= value; + break; + case(93): + HashtableOfString_String93= value; + break; + case(94): + HashtableOfString_String94= value; + break; + case(95): + HashtableOfString_String95= value; + break; + case(96): + HashtableOfString_Date96= value; + break; + case(97): + HashtableOfString_Date97= value; + break; + case(98): + HashtableOfString_Date98= value; + break; + case(99): + HashtableOfString_Locale99= value; + break; + case(100): + HashtableOfString_Locale100= value; + break; + case(101): + HashtableOfString_Locale101= value; + break; + case(102): + HashtableOfString_BigDecimal102= value; + break; + case(103): + HashtableOfString_BigDecimal103= value; + break; + case(104): + HashtableOfString_BigDecimal104= value; + break; + case(105): + HashtableOfString_BigInteger105= value; + break; + case(106): + HashtableOfString_BigInteger106= value; + break; + case(107): + HashtableOfString_BigInteger107= value; + break; + case(108): + HashtableOfString_Byte108= value; + break; + case(109): + HashtableOfString_Byte109= value; + break; + case(110): + HashtableOfString_Byte110= value; + break; + case(111): + HashtableOfString_Double111= value; + break; + case(112): + HashtableOfString_Double112= value; + break; + case(113): + HashtableOfString_Double113= value; + break; + case(114): + HashtableOfString_Float114= value; + break; + case(115): + HashtableOfString_Float115= value; + break; + case(116): + HashtableOfString_Float116= value; + break; + case(117): + HashtableOfString_Integer117= value; + break; + case(118): + HashtableOfString_Integer118= value; + break; + case(119): + HashtableOfString_Integer119= value; + break; + case(120): + HashtableOfString_Long120= value; + break; + case(121): + HashtableOfString_Long121= value; + break; + case(122): + HashtableOfString_Long122= value; + break; + case(123): + HashtableOfString_Short123= value; + break; + case(124): + HashtableOfString_Short124= value; + break; + case(125): + HashtableOfString_Short125= value; + break; + default: + throw new IndexOutOfBoundsException(); + } + return true; + } + + public static class Oid implements Serializable { + public int identifier; + + public Oid() { + } + + public Oid(String s) { identifier = Integer.parseInt(s); } + + public String toString() { return this.getClass().getName() + ": " + identifier;} + + public int hashCode() { return (int)identifier ; } + + public boolean equals(Object other) { + if (other != null && (other instanceof Oid)) { + Oid k = (Oid)other; + return k.identifier == this.identifier; + } + return false; + } + + } +}
Added: incubator/jdo/trunk/tck11/test/java/org/apache/jdo/tck/pc/fieldtypes/HashtableStringValueCollections.java URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck11/test/java/org/apache/jdo/tck/pc/fieldtypes/HashtableStringValueCollections.java?view=auto&rev=158179 ============================================================================== --- incubator/jdo/trunk/tck11/test/java/org/apache/jdo/tck/pc/fieldtypes/HashtableStringValueCollections.java (added) +++ incubator/jdo/trunk/tck11/test/java/org/apache/jdo/tck/pc/fieldtypes/HashtableStringValueCollections.java Fri Mar 18 17:07:39 2005 @@ -0,0 +1,891 @@ +/* + * Copyright 2005 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.jdo.tck.pc.fieldtypes; + +import java.io.Serializable; +import java.util.Hashtable; + +public class HashtableStringValueCollections { + public int identifier; + public Hashtable HashtableOfObject_String0; + public Hashtable HashtableOfObject_String1; + public Hashtable HashtableOfObject_String2; + public Hashtable HashtableOfObject_String3; + public Hashtable HashtableOfObject_String4; + public Hashtable HashtableOfObject_String5; + public Hashtable HashtableOfObject_String6; + public Hashtable HashtableOfObject_String7; + public Hashtable HashtableOfObject_String8; + public Hashtable HashtableOfSimpleClass_String9; + public Hashtable HashtableOfSimpleClass_String10; + public Hashtable HashtableOfSimpleClass_String11; + public Hashtable HashtableOfSimpleClass_String12; + public Hashtable HashtableOfSimpleClass_String13; + public Hashtable HashtableOfSimpleClass_String14; + public Hashtable HashtableOfSimpleClass_String15; + public Hashtable HashtableOfSimpleClass_String16; + public Hashtable HashtableOfSimpleClass_String17; + public Hashtable HashtableOfSimpleInterface_String18; + public Hashtable HashtableOfSimpleInterface_String19; + public Hashtable HashtableOfSimpleInterface_String20; + public Hashtable HashtableOfSimpleInterface_String21; + public Hashtable HashtableOfSimpleInterface_String22; + public Hashtable HashtableOfSimpleInterface_String23; + public Hashtable HashtableOfSimpleInterface_String24; + public Hashtable HashtableOfSimpleInterface_String25; + public Hashtable HashtableOfSimpleInterface_String26; + public Hashtable HashtableOfString_String27; + public Hashtable HashtableOfString_String28; + public Hashtable HashtableOfString_String29; + public Hashtable HashtableOfString_String30; + public Hashtable HashtableOfString_String31; + public Hashtable HashtableOfString_String32; + public Hashtable HashtableOfString_String33; + public Hashtable HashtableOfString_String34; + public Hashtable HashtableOfString_String35; + public Hashtable HashtableOfDate_String36; + public Hashtable HashtableOfDate_String37; + public Hashtable HashtableOfDate_String38; + public Hashtable HashtableOfDate_String39; + public Hashtable HashtableOfDate_String40; + public Hashtable HashtableOfDate_String41; + public Hashtable HashtableOfDate_String42; + public Hashtable HashtableOfDate_String43; + public Hashtable HashtableOfDate_String44; + public Hashtable HashtableOfBigDecimal_String45; + public Hashtable HashtableOfBigDecimal_String46; + public Hashtable HashtableOfBigDecimal_String47; + public Hashtable HashtableOfBigDecimal_String48; + public Hashtable HashtableOfBigDecimal_String49; + public Hashtable HashtableOfBigDecimal_String50; + public Hashtable HashtableOfBigDecimal_String51; + public Hashtable HashtableOfBigDecimal_String52; + public Hashtable HashtableOfBigDecimal_String53; + public Hashtable HashtableOfBigInteger_String54; + public Hashtable HashtableOfBigInteger_String55; + public Hashtable HashtableOfBigInteger_String56; + public Hashtable HashtableOfBigInteger_String57; + public Hashtable HashtableOfBigInteger_String58; + public Hashtable HashtableOfBigInteger_String59; + public Hashtable HashtableOfBigInteger_String60; + public Hashtable HashtableOfBigInteger_String61; + public Hashtable HashtableOfBigInteger_String62; + public Hashtable HashtableOfByte_String63; + public Hashtable HashtableOfByte_String64; + public Hashtable HashtableOfByte_String65; + public Hashtable HashtableOfByte_String66; + public Hashtable HashtableOfByte_String67; + public Hashtable HashtableOfByte_String68; + public Hashtable HashtableOfByte_String69; + public Hashtable HashtableOfByte_String70; + public Hashtable HashtableOfByte_String71; + public Hashtable HashtableOfDouble_String72; + public Hashtable HashtableOfDouble_String73; + public Hashtable HashtableOfDouble_String74; + public Hashtable HashtableOfDouble_String75; + public Hashtable HashtableOfDouble_String76; + public Hashtable HashtableOfDouble_String77; + public Hashtable HashtableOfDouble_String78; + public Hashtable HashtableOfDouble_String79; + public Hashtable HashtableOfDouble_String80; + public Hashtable HashtableOfFloat_String81; + public Hashtable HashtableOfFloat_String82; + public Hashtable HashtableOfFloat_String83; + public Hashtable HashtableOfFloat_String84; + public Hashtable HashtableOfFloat_String85; + public Hashtable HashtableOfFloat_String86; + public Hashtable HashtableOfFloat_String87; + public Hashtable HashtableOfFloat_String88; + public Hashtable HashtableOfFloat_String89; + public Hashtable HashtableOfInteger_String90; + public Hashtable HashtableOfInteger_String91; + public Hashtable HashtableOfInteger_String92; + public Hashtable HashtableOfInteger_String93; + public Hashtable HashtableOfInteger_String94; + public Hashtable HashtableOfInteger_String95; + public Hashtable HashtableOfInteger_String96; + public Hashtable HashtableOfInteger_String97; + public Hashtable HashtableOfInteger_String98; + public Hashtable HashtableOfLong_String99; + public Hashtable HashtableOfLong_String100; + public Hashtable HashtableOfLong_String101; + public Hashtable HashtableOfLong_String102; + public Hashtable HashtableOfLong_String103; + public Hashtable HashtableOfLong_String104; + public Hashtable HashtableOfLong_String105; + public Hashtable HashtableOfLong_String106; + public Hashtable HashtableOfLong_String107; + public Hashtable HashtableOfShort_String108; + public Hashtable HashtableOfShort_String109; + public Hashtable HashtableOfShort_String110; + public Hashtable HashtableOfShort_String111; + public Hashtable HashtableOfShort_String112; + public Hashtable HashtableOfShort_String113; + public Hashtable HashtableOfShort_String114; + public Hashtable HashtableOfShort_String115; + public Hashtable HashtableOfShort_String116; + + public static final String [] fieldSpecs = { + "public Hashtable HashtableOfObject_String0", + "embedded-value=true public Hashtable HashtableOfObject_String1", + "embedded-value=false public Hashtable HashtableOfObject_String2", + "embedded-key=true public Hashtable HashtableOfObject_String3", + "embedded-key=true embedded-value=true public Hashtable HashtableOfObject_String4", + "embedded-key=true embedded-value=false public Hashtable HashtableOfObject_String5", + "embedded-key=false public Hashtable HashtableOfObject_String6", + "embedded-key=false embedded-value=true public Hashtable HashtableOfObject_String7", + "embedded-key=false embedded-value=false public Hashtable HashtableOfObject_String8", + "public Hashtable HashtableOfSimpleClass_String9", + "embedded-value=true public Hashtable HashtableOfSimpleClass_String10", + "embedded-value=false public Hashtable HashtableOfSimpleClass_String11", + "embedded-key=true public Hashtable HashtableOfSimpleClass_String12", + "embedded-key=true embedded-value=true public Hashtable HashtableOfSimpleClass_String13", + "embedded-key=true embedded-value=false public Hashtable HashtableOfSimpleClass_String14", + "embedded-key=false public Hashtable HashtableOfSimpleClass_String15", + "embedded-key=false embedded-value=true public Hashtable HashtableOfSimpleClass_String16", + "embedded-key=false embedded-value=false public Hashtable HashtableOfSimpleClass_String17", + "public Hashtable HashtableOfSimpleInterface_String18", + "embedded-value=true public Hashtable HashtableOfSimpleInterface_String19", + "embedded-value=false public Hashtable HashtableOfSimpleInterface_String20", + "embedded-key=true public Hashtable HashtableOfSimpleInterface_String21", + "embedded-key=true embedded-value=true public Hashtable HashtableOfSimpleInterface_String22", + "embedded-key=true embedded-value=false public Hashtable HashtableOfSimpleInterface_String23", + "embedded-key=false public Hashtable HashtableOfSimpleInterface_String24", + "embedded-key=false embedded-value=true public Hashtable HashtableOfSimpleInterface_String25", + "embedded-key=false embedded-value=false public Hashtable HashtableOfSimpleInterface_String26", + "public Hashtable HashtableOfString_String27", + "embedded-value=true public Hashtable HashtableOfString_String28", + "embedded-value=false public Hashtable HashtableOfString_String29", + "embedded-key=true public Hashtable HashtableOfString_String30", + "embedded-key=true embedded-value=true public Hashtable HashtableOfString_String31", + "embedded-key=true embedded-value=false public Hashtable HashtableOfString_String32", + "embedded-key=false public Hashtable HashtableOfString_String33", + "embedded-key=false embedded-value=true public Hashtable HashtableOfString_String34", + "embedded-key=false embedded-value=false public Hashtable HashtableOfString_String35", + "public Hashtable HashtableOfDate_String36", + "embedded-value=true public Hashtable HashtableOfDate_String37", + "embedded-value=false public Hashtable HashtableOfDate_String38", + "embedded-key=true public Hashtable HashtableOfDate_String39", + "embedded-key=true embedded-value=true public Hashtable HashtableOfDate_String40", + "embedded-key=true embedded-value=false public Hashtable HashtableOfDate_String41", + "embedded-key=false public Hashtable HashtableOfDate_String42", + "embedded-key=false embedded-value=true public Hashtable HashtableOfDate_String43", + "embedded-key=false embedded-value=false public Hashtable HashtableOfDate_String44", + "public Hashtable HashtableOfBigDecimal_String45", + "embedded-value=true public Hashtable HashtableOfBigDecimal_String46", + "embedded-value=false public Hashtable HashtableOfBigDecimal_String47", + "embedded-key=true public Hashtable HashtableOfBigDecimal_String48", + "embedded-key=true embedded-value=true public Hashtable HashtableOfBigDecimal_String49", + "embedded-key=true embedded-value=false public Hashtable HashtableOfBigDecimal_String50", + "embedded-key=false public Hashtable HashtableOfBigDecimal_String51", + "embedded-key=false embedded-value=true public Hashtable HashtableOfBigDecimal_String52", + "embedded-key=false embedded-value=false public Hashtable HashtableOfBigDecimal_String53", + "public Hashtable HashtableOfBigInteger_String54", + "embedded-value=true public Hashtable HashtableOfBigInteger_String55", + "embedded-value=false public Hashtable HashtableOfBigInteger_String56", + "embedded-key=true public Hashtable HashtableOfBigInteger_String57", + "embedded-key=true embedded-value=true public Hashtable HashtableOfBigInteger_String58", + "embedded-key=true embedded-value=false public Hashtable HashtableOfBigInteger_String59", + "embedded-key=false public Hashtable HashtableOfBigInteger_String60", + "embedded-key=false embedded-value=true public Hashtable HashtableOfBigInteger_String61", + "embedded-key=false embedded-value=false public Hashtable HashtableOfBigInteger_String62", + "public Hashtable HashtableOfByte_String63", + "embedded-value=true public Hashtable HashtableOfByte_String64", + "embedded-value=false public Hashtable HashtableOfByte_String65", + "embedded-key=true public Hashtable HashtableOfByte_String66", + "embedded-key=true embedded-value=true public Hashtable HashtableOfByte_String67", + "embedded-key=true embedded-value=false public Hashtable HashtableOfByte_String68", + "embedded-key=false public Hashtable HashtableOfByte_String69", + "embedded-key=false embedded-value=true public Hashtable HashtableOfByte_String70", + "embedded-key=false embedded-value=false public Hashtable HashtableOfByte_String71", + "public Hashtable HashtableOfDouble_String72", + "embedded-value=true public Hashtable HashtableOfDouble_String73", + "embedded-value=false public Hashtable HashtableOfDouble_String74", + "embedded-key=true public Hashtable HashtableOfDouble_String75", + "embedded-key=true embedded-value=true public Hashtable HashtableOfDouble_String76", + "embedded-key=true embedded-value=false public Hashtable HashtableOfDouble_String77", + "embedded-key=false public Hashtable HashtableOfDouble_String78", + "embedded-key=false embedded-value=true public Hashtable HashtableOfDouble_String79", + "embedded-key=false embedded-value=false public Hashtable HashtableOfDouble_String80", + "public Hashtable HashtableOfFloat_String81", + "embedded-value=true public Hashtable HashtableOfFloat_String82", + "embedded-value=false public Hashtable HashtableOfFloat_String83", + "embedded-key=true public Hashtable HashtableOfFloat_String84", + "embedded-key=true embedded-value=true public Hashtable HashtableOfFloat_String85", + "embedded-key=true embedded-value=false public Hashtable HashtableOfFloat_String86", + "embedded-key=false public Hashtable HashtableOfFloat_String87", + "embedded-key=false embedded-value=true public Hashtable HashtableOfFloat_String88", + "embedded-key=false embedded-value=false public Hashtable HashtableOfFloat_String89", + "public Hashtable HashtableOfInteger_String90", + "embedded-value=true public Hashtable HashtableOfInteger_String91", + "embedded-value=false public Hashtable HashtableOfInteger_String92", + "embedded-key=true public Hashtable HashtableOfInteger_String93", + "embedded-key=true embedded-value=true public Hashtable HashtableOfInteger_String94", + "embedded-key=true embedded-value=false public Hashtable HashtableOfInteger_String95", + "embedded-key=false public Hashtable HashtableOfInteger_String96", + "embedded-key=false embedded-value=true public Hashtable HashtableOfInteger_String97", + "embedded-key=false embedded-value=false public Hashtable HashtableOfInteger_String98", + "public Hashtable HashtableOfLong_String99", + "embedded-value=true public Hashtable HashtableOfLong_String100", + "embedded-value=false public Hashtable HashtableOfLong_String101", + "embedded-key=true public Hashtable HashtableOfLong_String102", + "embedded-key=true embedded-value=true public Hashtable HashtableOfLong_String103", + "embedded-key=true embedded-value=false public Hashtable HashtableOfLong_String104", + "embedded-key=false public Hashtable HashtableOfLong_String105", + "embedded-key=false embedded-value=true public Hashtable HashtableOfLong_String106", + "embedded-key=false embedded-value=false public Hashtable HashtableOfLong_String107", + "public Hashtable HashtableOfShort_String108", + "embedded-value=true public Hashtable HashtableOfShort_String109", + "embedded-value=false public Hashtable HashtableOfShort_String110", + "embedded-key=true public Hashtable HashtableOfShort_String111", + "embedded-key=true embedded-value=true public Hashtable HashtableOfShort_String112", + "embedded-key=true embedded-value=false public Hashtable HashtableOfShort_String113", + "embedded-key=false public Hashtable HashtableOfShort_String114", + "embedded-key=false embedded-value=true public Hashtable HashtableOfShort_String115", + "embedded-key=false embedded-value=false public Hashtable HashtableOfShort_String116" + }; + public int getLength() + { + return fieldSpecs.length; + } + public Hashtable get(int index) + { + switch (index) + { + case(0): + return HashtableOfObject_String0; + case(1): + return HashtableOfObject_String1; + case(2): + return HashtableOfObject_String2; + case(3): + return HashtableOfObject_String3; + case(4): + return HashtableOfObject_String4; + case(5): + return HashtableOfObject_String5; + case(6): + return HashtableOfObject_String6; + case(7): + return HashtableOfObject_String7; + case(8): + return HashtableOfObject_String8; + case(9): + return HashtableOfSimpleClass_String9; + case(10): + return HashtableOfSimpleClass_String10; + case(11): + return HashtableOfSimpleClass_String11; + case(12): + return HashtableOfSimpleClass_String12; + case(13): + return HashtableOfSimpleClass_String13; + case(14): + return HashtableOfSimpleClass_String14; + case(15): + return HashtableOfSimpleClass_String15; + case(16): + return HashtableOfSimpleClass_String16; + case(17): + return HashtableOfSimpleClass_String17; + case(18): + return HashtableOfSimpleInterface_String18; + case(19): + return HashtableOfSimpleInterface_String19; + case(20): + return HashtableOfSimpleInterface_String20; + case(21): + return HashtableOfSimpleInterface_String21; + case(22): + return HashtableOfSimpleInterface_String22; + case(23): + return HashtableOfSimpleInterface_String23; + case(24): + return HashtableOfSimpleInterface_String24; + case(25): + return HashtableOfSimpleInterface_String25; + case(26): + return HashtableOfSimpleInterface_String26; + case(27): + return HashtableOfString_String27; + case(28): + return HashtableOfString_String28; + case(29): + return HashtableOfString_String29; + case(30): + return HashtableOfString_String30; + case(31): + return HashtableOfString_String31; + case(32): + return HashtableOfString_String32; + case(33): + return HashtableOfString_String33; + case(34): + return HashtableOfString_String34; + case(35): + return HashtableOfString_String35; + case(36): + return HashtableOfDate_String36; + case(37): + return HashtableOfDate_String37; + case(38): + return HashtableOfDate_String38; + case(39): + return HashtableOfDate_String39; + case(40): + return HashtableOfDate_String40; + case(41): + return HashtableOfDate_String41; + case(42): + return HashtableOfDate_String42; + case(43): + return HashtableOfDate_String43; + case(44): + return HashtableOfDate_String44; + case(45): + return HashtableOfBigDecimal_String45; + case(46): + return HashtableOfBigDecimal_String46; + case(47): + return HashtableOfBigDecimal_String47; + case(48): + return HashtableOfBigDecimal_String48; + case(49): + return HashtableOfBigDecimal_String49; + case(50): + return HashtableOfBigDecimal_String50; + case(51): + return HashtableOfBigDecimal_String51; + case(52): + return HashtableOfBigDecimal_String52; + case(53): + return HashtableOfBigDecimal_String53; + case(54): + return HashtableOfBigInteger_String54; + case(55): + return HashtableOfBigInteger_String55; + case(56): + return HashtableOfBigInteger_String56; + case(57): + return HashtableOfBigInteger_String57; + case(58): + return HashtableOfBigInteger_String58; + case(59): + return HashtableOfBigInteger_String59; + case(60): + return HashtableOfBigInteger_String60; + case(61): + return HashtableOfBigInteger_String61; + case(62): + return HashtableOfBigInteger_String62; + case(63): + return HashtableOfByte_String63; + case(64): + return HashtableOfByte_String64; + case(65): + return HashtableOfByte_String65; + case(66): + return HashtableOfByte_String66; + case(67): + return HashtableOfByte_String67; + case(68): + return HashtableOfByte_String68; + case(69): + return HashtableOfByte_String69; + case(70): + return HashtableOfByte_String70; + case(71): + return HashtableOfByte_String71; + case(72): + return HashtableOfDouble_String72; + case(73): + return HashtableOfDouble_String73; + case(74): + return HashtableOfDouble_String74; + case(75): + return HashtableOfDouble_String75; + case(76): + return HashtableOfDouble_String76; + case(77): + return HashtableOfDouble_String77; + case(78): + return HashtableOfDouble_String78; + case(79): + return HashtableOfDouble_String79; + case(80): + return HashtableOfDouble_String80; + case(81): + return HashtableOfFloat_String81; + case(82): + return HashtableOfFloat_String82; + case(83): + return HashtableOfFloat_String83; + case(84): + return HashtableOfFloat_String84; + case(85): + return HashtableOfFloat_String85; + case(86): + return HashtableOfFloat_String86; + case(87): + return HashtableOfFloat_String87; + case(88): + return HashtableOfFloat_String88; + case(89): + return HashtableOfFloat_String89; + case(90): + return HashtableOfInteger_String90; + case(91): + return HashtableOfInteger_String91; + case(92): + return HashtableOfInteger_String92; + case(93): + return HashtableOfInteger_String93; + case(94): + return HashtableOfInteger_String94; + case(95): + return HashtableOfInteger_String95; + case(96): + return HashtableOfInteger_String96; + case(97): + return HashtableOfInteger_String97; + case(98): + return HashtableOfInteger_String98; + case(99): + return HashtableOfLong_String99; + case(100): + return HashtableOfLong_String100; + case(101): + return HashtableOfLong_String101; + case(102): + return HashtableOfLong_String102; + case(103): + return HashtableOfLong_String103; + case(104): + return HashtableOfLong_String104; + case(105): + return HashtableOfLong_String105; + case(106): + return HashtableOfLong_String106; + case(107): + return HashtableOfLong_String107; + case(108): + return HashtableOfShort_String108; + case(109): + return HashtableOfShort_String109; + case(110): + return HashtableOfShort_String110; + case(111): + return HashtableOfShort_String111; + case(112): + return HashtableOfShort_String112; + case(113): + return HashtableOfShort_String113; + case(114): + return HashtableOfShort_String114; + case(115): + return HashtableOfShort_String115; + case(116): + return HashtableOfShort_String116; + default: + throw new IndexOutOfBoundsException(); + } + } + public boolean set(int index,Hashtable value) + { + if(fieldSpecs[index].indexOf("final") != -1) + return false; + switch (index) + { + case(0): + HashtableOfObject_String0= value; + break; + case(1): + HashtableOfObject_String1= value; + break; + case(2): + HashtableOfObject_String2= value; + break; + case(3): + HashtableOfObject_String3= value; + break; + case(4): + HashtableOfObject_String4= value; + break; + case(5): + HashtableOfObject_String5= value; + break; + case(6): + HashtableOfObject_String6= value; + break; + case(7): + HashtableOfObject_String7= value; + break; + case(8): + HashtableOfObject_String8= value; + break; + case(9): + HashtableOfSimpleClass_String9= value; + break; + case(10): + HashtableOfSimpleClass_String10= value; + break; + case(11): + HashtableOfSimpleClass_String11= value; + break; + case(12): + HashtableOfSimpleClass_String12= value; + break; + case(13): + HashtableOfSimpleClass_String13= value; + break; + case(14): + HashtableOfSimpleClass_String14= value; + break; + case(15): + HashtableOfSimpleClass_String15= value; + break; + case(16): + HashtableOfSimpleClass_String16= value; + break; + case(17): + HashtableOfSimpleClass_String17= value; + break; + case(18): + HashtableOfSimpleInterface_String18= value; + break; + case(19): + HashtableOfSimpleInterface_String19= value; + break; + case(20): + HashtableOfSimpleInterface_String20= value; + break; + case(21): + HashtableOfSimpleInterface_String21= value; + break; + case(22): + HashtableOfSimpleInterface_String22= value; + break; + case(23): + HashtableOfSimpleInterface_String23= value; + break; + case(24): + HashtableOfSimpleInterface_String24= value; + break; + case(25): + HashtableOfSimpleInterface_String25= value; + break; + case(26): + HashtableOfSimpleInterface_String26= value; + break; + case(27): + HashtableOfString_String27= value; + break; + case(28): + HashtableOfString_String28= value; + break; + case(29): + HashtableOfString_String29= value; + break; + case(30): + HashtableOfString_String30= value; + break; + case(31): + HashtableOfString_String31= value; + break; + case(32): + HashtableOfString_String32= value; + break; + case(33): + HashtableOfString_String33= value; + break; + case(34): + HashtableOfString_String34= value; + break; + case(35): + HashtableOfString_String35= value; + break; + case(36): + HashtableOfDate_String36= value; + break; + case(37): + HashtableOfDate_String37= value; + break; + case(38): + HashtableOfDate_String38= value; + break; + case(39): + HashtableOfDate_String39= value; + break; + case(40): + HashtableOfDate_String40= value; + break; + case(41): + HashtableOfDate_String41= value; + break; + case(42): + HashtableOfDate_String42= value; + break; + case(43): + HashtableOfDate_String43= value; + break; + case(44): + HashtableOfDate_String44= value; + break; + case(45): + HashtableOfBigDecimal_String45= value; + break; + case(46): + HashtableOfBigDecimal_String46= value; + break; + case(47): + HashtableOfBigDecimal_String47= value; + break; + case(48): + HashtableOfBigDecimal_String48= value; + break; + case(49): + HashtableOfBigDecimal_String49= value; + break; + case(50): + HashtableOfBigDecimal_String50= value; + break; + case(51): + HashtableOfBigDecimal_String51= value; + break; + case(52): + HashtableOfBigDecimal_String52= value; + break; + case(53): + HashtableOfBigDecimal_String53= value; + break; + case(54): + HashtableOfBigInteger_String54= value; + break; + case(55): + HashtableOfBigInteger_String55= value; + break; + case(56): + HashtableOfBigInteger_String56= value; + break; + case(57): + HashtableOfBigInteger_String57= value; + break; + case(58): + HashtableOfBigInteger_String58= value; + break; + case(59): + HashtableOfBigInteger_String59= value; + break; + case(60): + HashtableOfBigInteger_String60= value; + break; + case(61): + HashtableOfBigInteger_String61= value; + break; + case(62): + HashtableOfBigInteger_String62= value; + break; + case(63): + HashtableOfByte_String63= value; + break; + case(64): + HashtableOfByte_String64= value; + break; + case(65): + HashtableOfByte_String65= value; + break; + case(66): + HashtableOfByte_String66= value; + break; + case(67): + HashtableOfByte_String67= value; + break; + case(68): + HashtableOfByte_String68= value; + break; + case(69): + HashtableOfByte_String69= value; + break; + case(70): + HashtableOfByte_String70= value; + break; + case(71): + HashtableOfByte_String71= value; + break; + case(72): + HashtableOfDouble_String72= value; + break; + case(73): + HashtableOfDouble_String73= value; + break; + case(74): + HashtableOfDouble_String74= value; + break; + case(75): + HashtableOfDouble_String75= value; + break; + case(76): + HashtableOfDouble_String76= value; + break; + case(77): + HashtableOfDouble_String77= value; + break; + case(78): + HashtableOfDouble_String78= value; + break; + case(79): + HashtableOfDouble_String79= value; + break; + case(80): + HashtableOfDouble_String80= value; + break; + case(81): + HashtableOfFloat_String81= value; + break; + case(82): + HashtableOfFloat_String82= value; + break; + case(83): + HashtableOfFloat_String83= value; + break; + case(84): + HashtableOfFloat_String84= value; + break; + case(85): + HashtableOfFloat_String85= value; + break; + case(86): + HashtableOfFloat_String86= value; + break; + case(87): + HashtableOfFloat_String87= value; + break; + case(88): + HashtableOfFloat_String88= value; + break; + case(89): + HashtableOfFloat_String89= value; + break; + case(90): + HashtableOfInteger_String90= value; + break; + case(91): + HashtableOfInteger_String91= value; + break; + case(92): + HashtableOfInteger_String92= value; + break; + case(93): + HashtableOfInteger_String93= value; + break; + case(94): + HashtableOfInteger_String94= value; + break; + case(95): + HashtableOfInteger_String95= value; + break; + case(96): + HashtableOfInteger_String96= value; + break; + case(97): + HashtableOfInteger_String97= value; + break; + case(98): + HashtableOfInteger_String98= value; + break; + case(99): + HashtableOfLong_String99= value; + break; + case(100): + HashtableOfLong_String100= value; + break; + case(101): + HashtableOfLong_String101= value; + break; + case(102): + HashtableOfLong_String102= value; + break; + case(103): + HashtableOfLong_String103= value; + break; + case(104): + HashtableOfLong_String104= value; + break; + case(105): + HashtableOfLong_String105= value; + break; + case(106): + HashtableOfLong_String106= value; + break; + case(107): + HashtableOfLong_String107= value; + break; + case(108): + HashtableOfShort_String108= value; + break; + case(109): + HashtableOfShort_String109= value; + break; + case(110): + HashtableOfShort_String110= value; + break; + case(111): + HashtableOfShort_String111= value; + break; + case(112): + HashtableOfShort_String112= value; + break; + case(113): + HashtableOfShort_String113= value; + break; + case(114): + HashtableOfShort_String114= value; + break; + case(115): + HashtableOfShort_String115= value; + break; + case(116): + HashtableOfShort_String116= value; + break; + default: + throw new IndexOutOfBoundsException(); + } + return true; + } + + public static class Oid implements Serializable { + public int identifier; + + public Oid() { + } + + public Oid(String s) { identifier = Integer.parseInt(s); } + + public String toString() { return this.getClass().getName() + ": " + identifier;} + + public int hashCode() { return (int)identifier ; } + + public boolean equals(Object other) { + if (other != null && (other instanceof Oid)) { + Oid k = (Oid)other; + return k.identifier == this.identifier; + } + return false; + } + + } +} Added: incubator/jdo/trunk/tck11/test/java/org/apache/jdo/tck/pc/fieldtypes/LinkedListCollections.java URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck11/test/java/org/apache/jdo/tck/pc/fieldtypes/LinkedListCollections.java?view=auto&rev=158179 ============================================================================== --- incubator/jdo/trunk/tck11/test/java/org/apache/jdo/tck/pc/fieldtypes/LinkedListCollections.java (added) +++ incubator/jdo/trunk/tck11/test/java/org/apache/jdo/tck/pc/fieldtypes/LinkedListCollections.java Fri Mar 18 17:07:39 2005 @@ -0,0 +1,366 @@ +/* + * Copyright 2005 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.jdo.tck.pc.fieldtypes; + +import java.io.Serializable; +import java.util.LinkedList; + +public class LinkedListCollections { + public int identifier; + public LinkedList LinkedListOfObject0; + public LinkedList LinkedListOfObject1; + public LinkedList LinkedListOfObject2; + public LinkedList LinkedListOfSimpleClass3; + public LinkedList LinkedListOfSimpleClass4; + public LinkedList LinkedListOfSimpleClass5; + public LinkedList LinkedListOfSimpleInterface6; + public LinkedList LinkedListOfSimpleInterface7; + public LinkedList LinkedListOfSimpleInterface8; + public LinkedList LinkedListOfString9; + public LinkedList LinkedListOfString10; + public LinkedList LinkedListOfString11; + public LinkedList LinkedListOfDate12; + public LinkedList LinkedListOfDate13; + public LinkedList LinkedListOfDate14; + public LinkedList LinkedListOfLocale15; + public LinkedList LinkedListOfLocale16; + public LinkedList LinkedListOfLocale17; + public LinkedList LinkedListOfBigDecimal18; + public LinkedList LinkedListOfBigDecimal19; + public LinkedList LinkedListOfBigDecimal20; + public LinkedList LinkedListOfBigInteger21; + public LinkedList LinkedListOfBigInteger22; + public LinkedList LinkedListOfBigInteger23; + public LinkedList LinkedListOfByte24; + public LinkedList LinkedListOfByte25; + public LinkedList LinkedListOfByte26; + public LinkedList LinkedListOfDouble27; + public LinkedList LinkedListOfDouble28; + public LinkedList LinkedListOfDouble29; + public LinkedList LinkedListOfFloat30; + public LinkedList LinkedListOfFloat31; + public LinkedList LinkedListOfFloat32; + public LinkedList LinkedListOfInteger33; + public LinkedList LinkedListOfInteger34; + public LinkedList LinkedListOfInteger35; + public LinkedList LinkedListOfLong36; + public LinkedList LinkedListOfLong37; + public LinkedList LinkedListOfLong38; + public LinkedList LinkedListOfShort39; + public LinkedList LinkedListOfShort40; + public LinkedList LinkedListOfShort41; + + public static final String [] fieldSpecs = { + "public LinkedList LinkedListOfObject0", + "embedded-element=true public LinkedList LinkedListOfObject1", + "embedded-element=false public LinkedList LinkedListOfObject2", + "public LinkedList LinkedListOfSimpleClass3", + "embedded-element=true public LinkedList LinkedListOfSimpleClass4", + "embedded-element=false public LinkedList LinkedListOfSimpleClass5", + "public LinkedList LinkedListOfSimpleInterface6", + "embedded-element=true public LinkedList LinkedListOfSimpleInterface7", + "embedded-element=false public LinkedList LinkedListOfSimpleInterface8", + "public LinkedList LinkedListOfString9", + "embedded-element=true public LinkedList LinkedListOfString10", + "embedded-element=false public LinkedList LinkedListOfString11", + "public LinkedList LinkedListOfDate12", + "embedded-element=true public LinkedList LinkedListOfDate13", + "embedded-element=false public LinkedList LinkedListOfDate14", + "public LinkedList LinkedListOfLocale15", + "embedded-element=true public LinkedList LinkedListOfLocale16", + "embedded-element=false public LinkedList LinkedListOfLocale17", + "public LinkedList LinkedListOfBigDecimal18", + "embedded-element=true public LinkedList LinkedListOfBigDecimal19", + "embedded-element=false public LinkedList LinkedListOfBigDecimal20", + "public LinkedList LinkedListOfBigInteger21", + "embedded-element=true public LinkedList LinkedListOfBigInteger22", + "embedded-element=false public LinkedList LinkedListOfBigInteger23", + "public LinkedList LinkedListOfByte24", + "embedded-element=true public LinkedList LinkedListOfByte25", + "embedded-element=false public LinkedList LinkedListOfByte26", + "public LinkedList LinkedListOfDouble27", + "embedded-element=true public LinkedList LinkedListOfDouble28", + "embedded-element=false public LinkedList LinkedListOfDouble29", + "public LinkedList LinkedListOfFloat30", + "embedded-element=true public LinkedList LinkedListOfFloat31", + "embedded-element=false public LinkedList LinkedListOfFloat32", + "public LinkedList LinkedListOfInteger33", + "embedded-element=true public LinkedList LinkedListOfInteger34", + "embedded-element=false public LinkedList LinkedListOfInteger35", + "public LinkedList LinkedListOfLong36", + "embedded-element=true public LinkedList LinkedListOfLong37", + "embedded-element=false public LinkedList LinkedListOfLong38", + "public LinkedList LinkedListOfShort39", + "embedded-element=true public LinkedList LinkedListOfShort40", + "embedded-element=false public LinkedList LinkedListOfShort41" + }; + public int getLength() + { + return fieldSpecs.length; + } + public LinkedList get(int index) + { + switch (index) + { + case(0): + return LinkedListOfObject0; + case(1): + return LinkedListOfObject1; + case(2): + return LinkedListOfObject2; + case(3): + return LinkedListOfSimpleClass3; + case(4): + return LinkedListOfSimpleClass4; + case(5): + return LinkedListOfSimpleClass5; + case(6): + return LinkedListOfSimpleInterface6; + case(7): + return LinkedListOfSimpleInterface7; + case(8): + return LinkedListOfSimpleInterface8; + case(9): + return LinkedListOfString9; + case(10): + return LinkedListOfString10; + case(11): + return LinkedListOfString11; + case(12): + return LinkedListOfDate12; + case(13): + return LinkedListOfDate13; + case(14): + return LinkedListOfDate14; + case(15): + return LinkedListOfLocale15; + case(16): + return LinkedListOfLocale16; + case(17): + return LinkedListOfLocale17; + case(18): + return LinkedListOfBigDecimal18; + case(19): + return LinkedListOfBigDecimal19; + case(20): + return LinkedListOfBigDecimal20; + case(21): + return LinkedListOfBigInteger21; + case(22): + return LinkedListOfBigInteger22; + case(23): + return LinkedListOfBigInteger23; + case(24): + return LinkedListOfByte24; + case(25): + return LinkedListOfByte25; + case(26): + return LinkedListOfByte26; + case(27): + return LinkedListOfDouble27; + case(28): + return LinkedListOfDouble28; + case(29): + return LinkedListOfDouble29; + case(30): + return LinkedListOfFloat30; + case(31): + return LinkedListOfFloat31; + case(32): + return LinkedListOfFloat32; + case(33): + return LinkedListOfInteger33; + case(34): + return LinkedListOfInteger34; + case(35): + return LinkedListOfInteger35; + case(36): + return LinkedListOfLong36; + case(37): + return LinkedListOfLong37; + case(38): + return LinkedListOfLong38; + case(39): + return LinkedListOfShort39; + case(40): + return LinkedListOfShort40; + case(41): + return LinkedListOfShort41; + default: + throw new IndexOutOfBoundsException(); + } + } + public boolean set(int index,LinkedList value) + { + if(fieldSpecs[index].indexOf("final") != -1) + return false; + switch (index) + { + case(0): + LinkedListOfObject0= value; + break; + case(1): + LinkedListOfObject1= value; + break; + case(2): + LinkedListOfObject2= value; + break; + case(3): + LinkedListOfSimpleClass3= value; + break; + case(4): + LinkedListOfSimpleClass4= value; + break; + case(5): + LinkedListOfSimpleClass5= value; + break; + case(6): + LinkedListOfSimpleInterface6= value; + break; + case(7): + LinkedListOfSimpleInterface7= value; + break; + case(8): + LinkedListOfSimpleInterface8= value; + break; + case(9): + LinkedListOfString9= value; + break; + case(10): + LinkedListOfString10= value; + break; + case(11): + LinkedListOfString11= value; + break; + case(12): + LinkedListOfDate12= value; + break; + case(13): + LinkedListOfDate13= value; + break; + case(14): + LinkedListOfDate14= value; + break; + case(15): + LinkedListOfLocale15= value; + break; + case(16): + LinkedListOfLocale16= value; + break; + case(17): + LinkedListOfLocale17= value; + break; + case(18): + LinkedListOfBigDecimal18= value; + break; + case(19): + LinkedListOfBigDecimal19= value; + break; + case(20): + LinkedListOfBigDecimal20= value; + break; + case(21): + LinkedListOfBigInteger21= value; + break; + case(22): + LinkedListOfBigInteger22= value; + break; + case(23): + LinkedListOfBigInteger23= value; + break; + case(24): + LinkedListOfByte24= value; + break; + case(25): + LinkedListOfByte25= value; + break; + case(26): + LinkedListOfByte26= value; + break; + case(27): + LinkedListOfDouble27= value; + break; + case(28): + LinkedListOfDouble28= value; + break; + case(29): + LinkedListOfDouble29= value; + break; + case(30): + LinkedListOfFloat30= value; + break; + case(31): + LinkedListOfFloat31= value; + break; + case(32): + LinkedListOfFloat32= value; + break; + case(33): + LinkedListOfInteger33= value; + break; + case(34): + LinkedListOfInteger34= value; + break; + case(35): + LinkedListOfInteger35= value; + break; + case(36): + LinkedListOfLong36= value; + break; + case(37): + LinkedListOfLong37= value; + break; + case(38): + LinkedListOfLong38= value; + break; + case(39): + LinkedListOfShort39= value; + break; + case(40): + LinkedListOfShort40= value; + break; + case(41): + LinkedListOfShort41= value; + break; + default: + throw new IndexOutOfBoundsException(); + } + return true; + } + + public static class Oid implements Serializable { + public int identifier; + + public Oid() { + } + + public Oid(String s) { identifier = Integer.parseInt(s); } + + public String toString() { return this.getClass().getName() + ": " + identifier;} + + public int hashCode() { return (int)identifier ; } + + public boolean equals(Object other) { + if (other != null && (other instanceof Oid)) { + Oid k = (Oid)other; + return k.identifier == this.identifier; + } + return false; + } + + } +}