Added: incubator/jdo/trunk/tck11/test/java/org/apache/jdo/tck/pc/fieldtypes/FieldsOfBigDecimal.java URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck11/test/java/org/apache/jdo/tck/pc/fieldtypes/FieldsOfBigDecimal.java?view=auto&rev=158179 ============================================================================== --- incubator/jdo/trunk/tck11/test/java/org/apache/jdo/tck/pc/fieldtypes/FieldsOfBigDecimal.java (added) +++ incubator/jdo/trunk/tck11/test/java/org/apache/jdo/tck/pc/fieldtypes/FieldsOfBigDecimal.java Fri Mar 18 17:07:39 2005 @@ -0,0 +1,1086 @@ +/* + * 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.math.*; +public class FieldsOfBigDecimal { + public int identifier; + private BigDecimal BigDecimal0; + private BigDecimal BigDecimal1; + private BigDecimal BigDecimal2; + private BigDecimal BigDecimal3; + private BigDecimal BigDecimal4; + private BigDecimal BigDecimal5; + private BigDecimal BigDecimal6; + private BigDecimal BigDecimal7; + private static BigDecimal BigDecimal8; + private transient BigDecimal BigDecimal9; + private transient BigDecimal BigDecimal10; + private transient BigDecimal BigDecimal11; + private transient BigDecimal BigDecimal12; + private transient BigDecimal BigDecimal13; + private transient BigDecimal BigDecimal14; + private final BigDecimal BigDecimal15 = new BigDecimal(100.15); + private volatile BigDecimal BigDecimal16; + private volatile BigDecimal BigDecimal17; + private volatile BigDecimal BigDecimal18; + private volatile BigDecimal BigDecimal19; + private volatile BigDecimal BigDecimal20; + private volatile BigDecimal BigDecimal21; + private volatile BigDecimal BigDecimal22; + private volatile BigDecimal BigDecimal23; + private static transient BigDecimal BigDecimal24; + private static final BigDecimal BigDecimal25 = new BigDecimal(100.15); + private static volatile BigDecimal BigDecimal26; + private transient final BigDecimal BigDecimal27 = new BigDecimal(100.15); + private transient volatile BigDecimal BigDecimal28; + private transient volatile BigDecimal BigDecimal29; + private transient volatile BigDecimal BigDecimal30; + private transient volatile BigDecimal BigDecimal31; + private transient volatile BigDecimal BigDecimal32; + private transient volatile BigDecimal BigDecimal33; + private static transient final BigDecimal BigDecimal34 = new BigDecimal(100.15); + private static transient volatile BigDecimal BigDecimal35; + public BigDecimal BigDecimal36; + public BigDecimal BigDecimal37; + public BigDecimal BigDecimal38; + public BigDecimal BigDecimal39; + public BigDecimal BigDecimal40; + public BigDecimal BigDecimal41; + public BigDecimal BigDecimal42; + public BigDecimal BigDecimal43; + public static BigDecimal BigDecimal44; + public transient BigDecimal BigDecimal45; + public transient BigDecimal BigDecimal46; + public transient BigDecimal BigDecimal47; + public transient BigDecimal BigDecimal48; + public transient BigDecimal BigDecimal49; + public transient BigDecimal BigDecimal50; + public final BigDecimal BigDecimal51 = new BigDecimal(100.15); + public volatile BigDecimal BigDecimal52; + public volatile BigDecimal BigDecimal53; + public volatile BigDecimal BigDecimal54; + public volatile BigDecimal BigDecimal55; + public volatile BigDecimal BigDecimal56; + public volatile BigDecimal BigDecimal57; + public volatile BigDecimal BigDecimal58; + public volatile BigDecimal BigDecimal59; + public static transient BigDecimal BigDecimal60; + public static final BigDecimal BigDecimal61 = new BigDecimal(100.15); + public static volatile BigDecimal BigDecimal62; + public transient final BigDecimal BigDecimal63 = new BigDecimal(100.15); + public transient volatile BigDecimal BigDecimal64; + public transient volatile BigDecimal BigDecimal65; + public transient volatile BigDecimal BigDecimal66; + public transient volatile BigDecimal BigDecimal67; + public transient volatile BigDecimal BigDecimal68; + public transient volatile BigDecimal BigDecimal69; + public static transient final BigDecimal BigDecimal70 = new BigDecimal(100.15); + public static transient volatile BigDecimal BigDecimal71; + protected BigDecimal BigDecimal72; + protected BigDecimal BigDecimal73; + protected BigDecimal BigDecimal74; + protected BigDecimal BigDecimal75; + protected BigDecimal BigDecimal76; + protected BigDecimal BigDecimal77; + protected BigDecimal BigDecimal78; + protected BigDecimal BigDecimal79; + protected static BigDecimal BigDecimal80; + protected transient BigDecimal BigDecimal81; + protected transient BigDecimal BigDecimal82; + protected transient BigDecimal BigDecimal83; + protected transient BigDecimal BigDecimal84; + protected transient BigDecimal BigDecimal85; + protected transient BigDecimal BigDecimal86; + protected final BigDecimal BigDecimal87 = new BigDecimal(100.15); + protected volatile BigDecimal BigDecimal88; + protected volatile BigDecimal BigDecimal89; + protected volatile BigDecimal BigDecimal90; + protected volatile BigDecimal BigDecimal91; + protected volatile BigDecimal BigDecimal92; + protected volatile BigDecimal BigDecimal93; + protected volatile BigDecimal BigDecimal94; + protected volatile BigDecimal BigDecimal95; + protected static transient BigDecimal BigDecimal96; + protected static final BigDecimal BigDecimal97 = new BigDecimal(100.15); + protected static volatile BigDecimal BigDecimal98; + protected transient final BigDecimal BigDecimal99 = new BigDecimal(100.15); + protected transient volatile BigDecimal BigDecimal100; + protected transient volatile BigDecimal BigDecimal101; + protected transient volatile BigDecimal BigDecimal102; + protected transient volatile BigDecimal BigDecimal103; + protected transient volatile BigDecimal BigDecimal104; + protected transient volatile BigDecimal BigDecimal105; + protected static transient final BigDecimal BigDecimal106 = new BigDecimal(100.15); + protected static transient volatile BigDecimal BigDecimal107; + BigDecimal BigDecimal108; + BigDecimal BigDecimal109; + BigDecimal BigDecimal110; + BigDecimal BigDecimal111; + BigDecimal BigDecimal112; + BigDecimal BigDecimal113; + BigDecimal BigDecimal114; + BigDecimal BigDecimal115; + static BigDecimal BigDecimal116; + transient BigDecimal BigDecimal117; + transient BigDecimal BigDecimal118; + transient BigDecimal BigDecimal119; + transient BigDecimal BigDecimal120; + transient BigDecimal BigDecimal121; + transient BigDecimal BigDecimal122; + final BigDecimal BigDecimal123 = new BigDecimal(100.15); + volatile BigDecimal BigDecimal124; + volatile BigDecimal BigDecimal125; + volatile BigDecimal BigDecimal126; + volatile BigDecimal BigDecimal127; + volatile BigDecimal BigDecimal128; + volatile BigDecimal BigDecimal129; + volatile BigDecimal BigDecimal130; + volatile BigDecimal BigDecimal131; + static transient BigDecimal BigDecimal132; + static final BigDecimal BigDecimal133 = new BigDecimal(100.15); + static volatile BigDecimal BigDecimal134; + transient final BigDecimal BigDecimal135 = new BigDecimal(100.15); + transient volatile BigDecimal BigDecimal136; + transient volatile BigDecimal BigDecimal137; + transient volatile BigDecimal BigDecimal138; + transient volatile BigDecimal BigDecimal139; + transient volatile BigDecimal BigDecimal140; + transient volatile BigDecimal BigDecimal141; + static transient final BigDecimal BigDecimal142 = new BigDecimal(100.15); + static transient volatile BigDecimal BigDecimal143; + +public static final boolean [] isPersistent = { +true,true,true,false,true,true,true,false,false,false, +false,true,true,true,false,false,true,true,true,false, +true,true,true,false,false,false,false,false,false,false, +true,true,true,false,false,false,true,true,true,false, +true,true,true,false,false,false,false,true,true,true, +false,false,true,true,true,false,true,true,true,false, +false,false,false,false,false,false,true,true,true,false, +false,false,true,true,true,false,true,true,true,false, +false,false,false,true,true,true,false,false,true,true, +true,false,true,true,true,false,false,false,false,false, +false,false,true,true,true,false,false,false,true,true, +true,false,true,true,true,false,false,false,false,true, +true,true,false,false,true,true,true,false,true,true, +true,false,false,false,false,false,false,false,true,true, +true,false,false,false + }; + +public static final boolean [] isStatic = { +false,false,false,false,false,false,false,false,true,false, +false,false,false,false,false,false,false,false,false,false, +false,false,false,false,true,true,true,false,false,false, +false,false,false,false,true,true,false,false,false,false, +false,false,false,false,true,false,false,false,false,false, +false,false,false,false,false,false,false,false,false,false, +true,true,true,false,false,false,false,false,false,false, +true,true,false,false,false,false,false,false,false,false, +true,false,false,false,false,false,false,false,false,false, +false,false,false,false,false,false,true,true,true,false, +false,false,false,false,false,false,true,true,false,false, +false,false,false,false,false,false,true,false,false,false, +false,false,false,false,false,false,false,false,false,false, +false,false,true,true,true,false,false,false,false,false, +false,false,true,true + }; + +public static final boolean [] isFinal = { +false,false,false,false,false,false,false,false,false,false, +false,false,false,false,false,true,false,false,false,false, +false,false,false,false,false,true,false,true,false,false, +false,false,false,false,true,false,false,false,false,false, +false,false,false,false,false,false,false,false,false,false, +false,true,false,false,false,false,false,false,false,false, +false,true,false,true,false,false,false,false,false,false, +true,false,false,false,false,false,false,false,false,false, +false,false,false,false,false,false,false,true,false,false, +false,false,false,false,false,false,false,true,false,true, +false,false,false,false,false,false,true,false,false,false, +false,false,false,false,false,false,false,false,false,false, +false,false,false,true,false,false,false,false,false,false, +false,false,false,true,false,true,false,false,false,false, +false,false,true,false + }; + + public static final String [] fieldSpecs = { + "private BigDecimal BigDecimal0", + "embedded= true private BigDecimal BigDecimal1", + "embedded= false private BigDecimal BigDecimal2", + "persistence-modifier= none private BigDecimal BigDecimal3", + "persistence-modifier= persistent private BigDecimal BigDecimal4", + "persistence-modifier= persistent embedded= true private BigDecimal BigDecimal5", + "persistence-modifier= persistent embedded= false private BigDecimal BigDecimal6", + "persistence-modifier= transactional private BigDecimal BigDecimal7", + "private static BigDecimal BigDecimal8", + "private transient BigDecimal BigDecimal9", + "persistence-modifier= none private transient BigDecimal BigDecimal10", + "persistence-modifier= persistent private transient BigDecimal BigDecimal11", + "persistence-modifier= persistent embedded= true private transient BigDecimal BigDecimal12", + "persistence-modifier= persistent embedded= false private transient BigDecimal BigDecimal13", + "persistence-modifier= transactional private transient BigDecimal BigDecimal14", + "private final BigDecimal BigDecimal15", + "private volatile BigDecimal BigDecimal16", + "embedded= true private volatile BigDecimal BigDecimal17", + "embedded= false private volatile BigDecimal BigDecimal18", + "persistence-modifier= none private volatile BigDecimal BigDecimal19", + "persistence-modifier= persistent private volatile BigDecimal BigDecimal20", + "persistence-modifier= persistent embedded= true private volatile BigDecimal BigDecimal21", + "persistence-modifier= persistent embedded= false private volatile BigDecimal BigDecimal22", + "persistence-modifier= transactional private volatile BigDecimal BigDecimal23", + "private static transient BigDecimal BigDecimal24", + "private static final BigDecimal BigDecimal25", + "private static volatile BigDecimal BigDecimal26", + "private transient final BigDecimal BigDecimal27", + "private transient volatile BigDecimal BigDecimal28", + "persistence-modifier= none private transient volatile BigDecimal BigDecimal29", + "persistence-modifier= persistent private transient volatile BigDecimal BigDecimal30", + "persistence-modifier= persistent embedded= true private transient volatile BigDecimal BigDecimal31", + "persistence-modifier= persistent embedded= false private transient volatile BigDecimal BigDecimal32", + "persistence-modifier= transactional private transient volatile BigDecimal BigDecimal33", + "private static transient final BigDecimal BigDecimal34", + "private static transient volatile BigDecimal BigDecimal35", + "public BigDecimal BigDecimal36", + "embedded= true public BigDecimal BigDecimal37", + "embedded= false public BigDecimal BigDecimal38", + "persistence-modifier= none public BigDecimal BigDecimal39", + "persistence-modifier= persistent public BigDecimal BigDecimal40", + "persistence-modifier= persistent embedded= true public BigDecimal BigDecimal41", + "persistence-modifier= persistent embedded= false public BigDecimal BigDecimal42", + "persistence-modifier= transactional public BigDecimal BigDecimal43", + "public static BigDecimal BigDecimal44", + "public transient BigDecimal BigDecimal45", + "persistence-modifier= none public transient BigDecimal BigDecimal46", + "persistence-modifier= persistent public transient BigDecimal BigDecimal47", + "persistence-modifier= persistent embedded= true public transient BigDecimal BigDecimal48", + "persistence-modifier= persistent embedded= false public transient BigDecimal BigDecimal49", + "persistence-modifier= transactional public transient BigDecimal BigDecimal50", + "public final BigDecimal BigDecimal51", + "public volatile BigDecimal BigDecimal52", + "embedded= true public volatile BigDecimal BigDecimal53", + "embedded= false public volatile BigDecimal BigDecimal54", + "persistence-modifier= none public volatile BigDecimal BigDecimal55", + "persistence-modifier= persistent public volatile BigDecimal BigDecimal56", + "persistence-modifier= persistent embedded= true public volatile BigDecimal BigDecimal57", + "persistence-modifier= persistent embedded= false public volatile BigDecimal BigDecimal58", + "persistence-modifier= transactional public volatile BigDecimal BigDecimal59", + "public static transient BigDecimal BigDecimal60", + "public static final BigDecimal BigDecimal61", + "public static volatile BigDecimal BigDecimal62", + "public transient final BigDecimal BigDecimal63", + "public transient volatile BigDecimal BigDecimal64", + "persistence-modifier= none public transient volatile BigDecimal BigDecimal65", + "persistence-modifier= persistent public transient volatile BigDecimal BigDecimal66", + "persistence-modifier= persistent embedded= true public transient volatile BigDecimal BigDecimal67", + "persistence-modifier= persistent embedded= false public transient volatile BigDecimal BigDecimal68", + "persistence-modifier= transactional public transient volatile BigDecimal BigDecimal69", + "public static transient final BigDecimal BigDecimal70", + "public static transient volatile BigDecimal BigDecimal71", + "protected BigDecimal BigDecimal72", + "embedded= true protected BigDecimal BigDecimal73", + "embedded= false protected BigDecimal BigDecimal74", + "persistence-modifier= none protected BigDecimal BigDecimal75", + "persistence-modifier= persistent protected BigDecimal BigDecimal76", + "persistence-modifier= persistent embedded= true protected BigDecimal BigDecimal77", + "persistence-modifier= persistent embedded= false protected BigDecimal BigDecimal78", + "persistence-modifier= transactional protected BigDecimal BigDecimal79", + "protected static BigDecimal BigDecimal80", + "protected transient BigDecimal BigDecimal81", + "persistence-modifier= none protected transient BigDecimal BigDecimal82", + "persistence-modifier= persistent protected transient BigDecimal BigDecimal83", + "persistence-modifier= persistent embedded= true protected transient BigDecimal BigDecimal84", + "persistence-modifier= persistent embedded= false protected transient BigDecimal BigDecimal85", + "persistence-modifier= transactional protected transient BigDecimal BigDecimal86", + "protected final BigDecimal BigDecimal87", + "protected volatile BigDecimal BigDecimal88", + "embedded= true protected volatile BigDecimal BigDecimal89", + "embedded= false protected volatile BigDecimal BigDecimal90", + "persistence-modifier= none protected volatile BigDecimal BigDecimal91", + "persistence-modifier= persistent protected volatile BigDecimal BigDecimal92", + "persistence-modifier= persistent embedded= true protected volatile BigDecimal BigDecimal93", + "persistence-modifier= persistent embedded= false protected volatile BigDecimal BigDecimal94", + "persistence-modifier= transactional protected volatile BigDecimal BigDecimal95", + "protected static transient BigDecimal BigDecimal96", + "protected static final BigDecimal BigDecimal97", + "protected static volatile BigDecimal BigDecimal98", + "protected transient final BigDecimal BigDecimal99", + "protected transient volatile BigDecimal BigDecimal100", + "persistence-modifier= none protected transient volatile BigDecimal BigDecimal101", + "persistence-modifier= persistent protected transient volatile BigDecimal BigDecimal102", + "persistence-modifier= persistent embedded= true protected transient volatile BigDecimal BigDecimal103", + "persistence-modifier= persistent embedded= false protected transient volatile BigDecimal BigDecimal104", + "persistence-modifier= transactional protected transient volatile BigDecimal BigDecimal105", + "protected static transient final BigDecimal BigDecimal106", + "protected static transient volatile BigDecimal BigDecimal107", + "BigDecimal BigDecimal108", + "embedded= true BigDecimal BigDecimal109", + "embedded= false BigDecimal BigDecimal110", + "persistence-modifier= none BigDecimal BigDecimal111", + "persistence-modifier= persistent BigDecimal BigDecimal112", + "persistence-modifier= persistent embedded= true BigDecimal BigDecimal113", + "persistence-modifier= persistent embedded= false BigDecimal BigDecimal114", + "persistence-modifier= transactional BigDecimal BigDecimal115", + "static BigDecimal BigDecimal116", + "transient BigDecimal BigDecimal117", + "persistence-modifier= none transient BigDecimal BigDecimal118", + "persistence-modifier= persistent transient BigDecimal BigDecimal119", + "persistence-modifier= persistent embedded= true transient BigDecimal BigDecimal120", + "persistence-modifier= persistent embedded= false transient BigDecimal BigDecimal121", + "persistence-modifier= transactional transient BigDecimal BigDecimal122", + "final BigDecimal BigDecimal123", + "volatile BigDecimal BigDecimal124", + "embedded= true volatile BigDecimal BigDecimal125", + "embedded= false volatile BigDecimal BigDecimal126", + "persistence-modifier= none volatile BigDecimal BigDecimal127", + "persistence-modifier= persistent volatile BigDecimal BigDecimal128", + "persistence-modifier= persistent embedded= true volatile BigDecimal BigDecimal129", + "persistence-modifier= persistent embedded= false volatile BigDecimal BigDecimal130", + "persistence-modifier= transactional volatile BigDecimal BigDecimal131", + "static transient BigDecimal BigDecimal132", + "static final BigDecimal BigDecimal133", + "static volatile BigDecimal BigDecimal134", + "transient final BigDecimal BigDecimal135", + "transient volatile BigDecimal BigDecimal136", + "persistence-modifier= none transient volatile BigDecimal BigDecimal137", + "persistence-modifier= persistent transient volatile BigDecimal BigDecimal138", + "persistence-modifier= persistent embedded= true transient volatile BigDecimal BigDecimal139", + "persistence-modifier= persistent embedded= false transient volatile BigDecimal BigDecimal140", + "persistence-modifier= transactional transient volatile BigDecimal BigDecimal141", + "static transient final BigDecimal BigDecimal142", + "static transient volatile BigDecimal BigDecimal143" + }; + public int getLength() + { + return fieldSpecs.length; + } + public BigDecimal get(int index) + { + switch (index) + { + case(0): + return BigDecimal0; + case(1): + return BigDecimal1; + case(2): + return BigDecimal2; + case(3): + return BigDecimal3; + case(4): + return BigDecimal4; + case(5): + return BigDecimal5; + case(6): + return BigDecimal6; + case(7): + return BigDecimal7; + case(8): + return BigDecimal8; + case(9): + return BigDecimal9; + case(10): + return BigDecimal10; + case(11): + return BigDecimal11; + case(12): + return BigDecimal12; + case(13): + return BigDecimal13; + case(14): + return BigDecimal14; + case(15): + return BigDecimal15; + case(16): + return BigDecimal16; + case(17): + return BigDecimal17; + case(18): + return BigDecimal18; + case(19): + return BigDecimal19; + case(20): + return BigDecimal20; + case(21): + return BigDecimal21; + case(22): + return BigDecimal22; + case(23): + return BigDecimal23; + case(24): + return BigDecimal24; + case(25): + return BigDecimal25; + case(26): + return BigDecimal26; + case(27): + return BigDecimal27; + case(28): + return BigDecimal28; + case(29): + return BigDecimal29; + case(30): + return BigDecimal30; + case(31): + return BigDecimal31; + case(32): + return BigDecimal32; + case(33): + return BigDecimal33; + case(34): + return BigDecimal34; + case(35): + return BigDecimal35; + case(36): + return BigDecimal36; + case(37): + return BigDecimal37; + case(38): + return BigDecimal38; + case(39): + return BigDecimal39; + case(40): + return BigDecimal40; + case(41): + return BigDecimal41; + case(42): + return BigDecimal42; + case(43): + return BigDecimal43; + case(44): + return BigDecimal44; + case(45): + return BigDecimal45; + case(46): + return BigDecimal46; + case(47): + return BigDecimal47; + case(48): + return BigDecimal48; + case(49): + return BigDecimal49; + case(50): + return BigDecimal50; + case(51): + return BigDecimal51; + case(52): + return BigDecimal52; + case(53): + return BigDecimal53; + case(54): + return BigDecimal54; + case(55): + return BigDecimal55; + case(56): + return BigDecimal56; + case(57): + return BigDecimal57; + case(58): + return BigDecimal58; + case(59): + return BigDecimal59; + case(60): + return BigDecimal60; + case(61): + return BigDecimal61; + case(62): + return BigDecimal62; + case(63): + return BigDecimal63; + case(64): + return BigDecimal64; + case(65): + return BigDecimal65; + case(66): + return BigDecimal66; + case(67): + return BigDecimal67; + case(68): + return BigDecimal68; + case(69): + return BigDecimal69; + case(70): + return BigDecimal70; + case(71): + return BigDecimal71; + case(72): + return BigDecimal72; + case(73): + return BigDecimal73; + case(74): + return BigDecimal74; + case(75): + return BigDecimal75; + case(76): + return BigDecimal76; + case(77): + return BigDecimal77; + case(78): + return BigDecimal78; + case(79): + return BigDecimal79; + case(80): + return BigDecimal80; + case(81): + return BigDecimal81; + case(82): + return BigDecimal82; + case(83): + return BigDecimal83; + case(84): + return BigDecimal84; + case(85): + return BigDecimal85; + case(86): + return BigDecimal86; + case(87): + return BigDecimal87; + case(88): + return BigDecimal88; + case(89): + return BigDecimal89; + case(90): + return BigDecimal90; + case(91): + return BigDecimal91; + case(92): + return BigDecimal92; + case(93): + return BigDecimal93; + case(94): + return BigDecimal94; + case(95): + return BigDecimal95; + case(96): + return BigDecimal96; + case(97): + return BigDecimal97; + case(98): + return BigDecimal98; + case(99): + return BigDecimal99; + case(100): + return BigDecimal100; + case(101): + return BigDecimal101; + case(102): + return BigDecimal102; + case(103): + return BigDecimal103; + case(104): + return BigDecimal104; + case(105): + return BigDecimal105; + case(106): + return BigDecimal106; + case(107): + return BigDecimal107; + case(108): + return BigDecimal108; + case(109): + return BigDecimal109; + case(110): + return BigDecimal110; + case(111): + return BigDecimal111; + case(112): + return BigDecimal112; + case(113): + return BigDecimal113; + case(114): + return BigDecimal114; + case(115): + return BigDecimal115; + case(116): + return BigDecimal116; + case(117): + return BigDecimal117; + case(118): + return BigDecimal118; + case(119): + return BigDecimal119; + case(120): + return BigDecimal120; + case(121): + return BigDecimal121; + case(122): + return BigDecimal122; + case(123): + return BigDecimal123; + case(124): + return BigDecimal124; + case(125): + return BigDecimal125; + case(126): + return BigDecimal126; + case(127): + return BigDecimal127; + case(128): + return BigDecimal128; + case(129): + return BigDecimal129; + case(130): + return BigDecimal130; + case(131): + return BigDecimal131; + case(132): + return BigDecimal132; + case(133): + return BigDecimal133; + case(134): + return BigDecimal134; + case(135): + return BigDecimal135; + case(136): + return BigDecimal136; + case(137): + return BigDecimal137; + case(138): + return BigDecimal138; + case(139): + return BigDecimal139; + case(140): + return BigDecimal140; + case(141): + return BigDecimal141; + case(142): + return BigDecimal142; + case(143): + return BigDecimal143; + default: + throw new IndexOutOfBoundsException(); + } + } + public boolean set(int index,BigDecimal value) + { + if(fieldSpecs[index].indexOf("final") != -1) + return false; + switch (index) + { + case(0): + BigDecimal0= value; + break; + case(1): + BigDecimal1= value; + break; + case(2): + BigDecimal2= value; + break; + case(3): + BigDecimal3= value; + break; + case(4): + BigDecimal4= value; + break; + case(5): + BigDecimal5= value; + break; + case(6): + BigDecimal6= value; + break; + case(7): + BigDecimal7= value; + break; + case(8): + BigDecimal8= value; + break; + case(9): + BigDecimal9= value; + break; + case(10): + BigDecimal10= value; + break; + case(11): + BigDecimal11= value; + break; + case(12): + BigDecimal12= value; + break; + case(13): + BigDecimal13= value; + break; + case(14): + BigDecimal14= value; + break; + case(16): + BigDecimal16= value; + break; + case(17): + BigDecimal17= value; + break; + case(18): + BigDecimal18= value; + break; + case(19): + BigDecimal19= value; + break; + case(20): + BigDecimal20= value; + break; + case(21): + BigDecimal21= value; + break; + case(22): + BigDecimal22= value; + break; + case(23): + BigDecimal23= value; + break; + case(24): + BigDecimal24= value; + break; + case(26): + BigDecimal26= value; + break; + case(28): + BigDecimal28= value; + break; + case(29): + BigDecimal29= value; + break; + case(30): + BigDecimal30= value; + break; + case(31): + BigDecimal31= value; + break; + case(32): + BigDecimal32= value; + break; + case(33): + BigDecimal33= value; + break; + case(35): + BigDecimal35= value; + break; + case(36): + BigDecimal36= value; + break; + case(37): + BigDecimal37= value; + break; + case(38): + BigDecimal38= value; + break; + case(39): + BigDecimal39= value; + break; + case(40): + BigDecimal40= value; + break; + case(41): + BigDecimal41= value; + break; + case(42): + BigDecimal42= value; + break; + case(43): + BigDecimal43= value; + break; + case(44): + BigDecimal44= value; + break; + case(45): + BigDecimal45= value; + break; + case(46): + BigDecimal46= value; + break; + case(47): + BigDecimal47= value; + break; + case(48): + BigDecimal48= value; + break; + case(49): + BigDecimal49= value; + break; + case(50): + BigDecimal50= value; + break; + case(52): + BigDecimal52= value; + break; + case(53): + BigDecimal53= value; + break; + case(54): + BigDecimal54= value; + break; + case(55): + BigDecimal55= value; + break; + case(56): + BigDecimal56= value; + break; + case(57): + BigDecimal57= value; + break; + case(58): + BigDecimal58= value; + break; + case(59): + BigDecimal59= value; + break; + case(60): + BigDecimal60= value; + break; + case(62): + BigDecimal62= value; + break; + case(64): + BigDecimal64= value; + break; + case(65): + BigDecimal65= value; + break; + case(66): + BigDecimal66= value; + break; + case(67): + BigDecimal67= value; + break; + case(68): + BigDecimal68= value; + break; + case(69): + BigDecimal69= value; + break; + case(71): + BigDecimal71= value; + break; + case(72): + BigDecimal72= value; + break; + case(73): + BigDecimal73= value; + break; + case(74): + BigDecimal74= value; + break; + case(75): + BigDecimal75= value; + break; + case(76): + BigDecimal76= value; + break; + case(77): + BigDecimal77= value; + break; + case(78): + BigDecimal78= value; + break; + case(79): + BigDecimal79= value; + break; + case(80): + BigDecimal80= value; + break; + case(81): + BigDecimal81= value; + break; + case(82): + BigDecimal82= value; + break; + case(83): + BigDecimal83= value; + break; + case(84): + BigDecimal84= value; + break; + case(85): + BigDecimal85= value; + break; + case(86): + BigDecimal86= value; + break; + case(88): + BigDecimal88= value; + break; + case(89): + BigDecimal89= value; + break; + case(90): + BigDecimal90= value; + break; + case(91): + BigDecimal91= value; + break; + case(92): + BigDecimal92= value; + break; + case(93): + BigDecimal93= value; + break; + case(94): + BigDecimal94= value; + break; + case(95): + BigDecimal95= value; + break; + case(96): + BigDecimal96= value; + break; + case(98): + BigDecimal98= value; + break; + case(100): + BigDecimal100= value; + break; + case(101): + BigDecimal101= value; + break; + case(102): + BigDecimal102= value; + break; + case(103): + BigDecimal103= value; + break; + case(104): + BigDecimal104= value; + break; + case(105): + BigDecimal105= value; + break; + case(107): + BigDecimal107= value; + break; + case(108): + BigDecimal108= value; + break; + case(109): + BigDecimal109= value; + break; + case(110): + BigDecimal110= value; + break; + case(111): + BigDecimal111= value; + break; + case(112): + BigDecimal112= value; + break; + case(113): + BigDecimal113= value; + break; + case(114): + BigDecimal114= value; + break; + case(115): + BigDecimal115= value; + break; + case(116): + BigDecimal116= value; + break; + case(117): + BigDecimal117= value; + break; + case(118): + BigDecimal118= value; + break; + case(119): + BigDecimal119= value; + break; + case(120): + BigDecimal120= value; + break; + case(121): + BigDecimal121= value; + break; + case(122): + BigDecimal122= value; + break; + case(124): + BigDecimal124= value; + break; + case(125): + BigDecimal125= value; + break; + case(126): + BigDecimal126= value; + break; + case(127): + BigDecimal127= value; + break; + case(128): + BigDecimal128= value; + break; + case(129): + BigDecimal129= value; + break; + case(130): + BigDecimal130= value; + break; + case(131): + BigDecimal131= value; + break; + case(132): + BigDecimal132= value; + break; + case(134): + BigDecimal134= value; + break; + case(136): + BigDecimal136= value; + break; + case(137): + BigDecimal137= value; + break; + case(138): + BigDecimal138= value; + break; + case(139): + BigDecimal139= value; + break; + case(140): + BigDecimal140= value; + break; + case(141): + BigDecimal141= value; + break; + case(143): + BigDecimal143= 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/FieldsOfBigInteger.java URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck11/test/java/org/apache/jdo/tck/pc/fieldtypes/FieldsOfBigInteger.java?view=auto&rev=158179 ============================================================================== --- incubator/jdo/trunk/tck11/test/java/org/apache/jdo/tck/pc/fieldtypes/FieldsOfBigInteger.java (added) +++ incubator/jdo/trunk/tck11/test/java/org/apache/jdo/tck/pc/fieldtypes/FieldsOfBigInteger.java Fri Mar 18 17:07:39 2005 @@ -0,0 +1,1086 @@ +/* + * 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.math.*; +public class FieldsOfBigInteger { + public int identifier; + private BigInteger BigInteger0; + private BigInteger BigInteger1; + private BigInteger BigInteger2; + private BigInteger BigInteger3; + private BigInteger BigInteger4; + private BigInteger BigInteger5; + private BigInteger BigInteger6; + private BigInteger BigInteger7; + private static BigInteger BigInteger8; + private transient BigInteger BigInteger9; + private transient BigInteger BigInteger10; + private transient BigInteger BigInteger11; + private transient BigInteger BigInteger12; + private transient BigInteger BigInteger13; + private transient BigInteger BigInteger14; + private final BigInteger BigInteger15 = new BigInteger("100"); + private volatile BigInteger BigInteger16; + private volatile BigInteger BigInteger17; + private volatile BigInteger BigInteger18; + private volatile BigInteger BigInteger19; + private volatile BigInteger BigInteger20; + private volatile BigInteger BigInteger21; + private volatile BigInteger BigInteger22; + private volatile BigInteger BigInteger23; + private static transient BigInteger BigInteger24; + private static final BigInteger BigInteger25 = new BigInteger("100"); + private static volatile BigInteger BigInteger26; + private transient final BigInteger BigInteger27 = new BigInteger("100"); + private transient volatile BigInteger BigInteger28; + private transient volatile BigInteger BigInteger29; + private transient volatile BigInteger BigInteger30; + private transient volatile BigInteger BigInteger31; + private transient volatile BigInteger BigInteger32; + private transient volatile BigInteger BigInteger33; + private static transient final BigInteger BigInteger34 = new BigInteger("100"); + private static transient volatile BigInteger BigInteger35; + public BigInteger BigInteger36; + public BigInteger BigInteger37; + public BigInteger BigInteger38; + public BigInteger BigInteger39; + public BigInteger BigInteger40; + public BigInteger BigInteger41; + public BigInteger BigInteger42; + public BigInteger BigInteger43; + public static BigInteger BigInteger44; + public transient BigInteger BigInteger45; + public transient BigInteger BigInteger46; + public transient BigInteger BigInteger47; + public transient BigInteger BigInteger48; + public transient BigInteger BigInteger49; + public transient BigInteger BigInteger50; + public final BigInteger BigInteger51 = new BigInteger("100"); + public volatile BigInteger BigInteger52; + public volatile BigInteger BigInteger53; + public volatile BigInteger BigInteger54; + public volatile BigInteger BigInteger55; + public volatile BigInteger BigInteger56; + public volatile BigInteger BigInteger57; + public volatile BigInteger BigInteger58; + public volatile BigInteger BigInteger59; + public static transient BigInteger BigInteger60; + public static final BigInteger BigInteger61 = new BigInteger("100"); + public static volatile BigInteger BigInteger62; + public transient final BigInteger BigInteger63 = new BigInteger("100"); + public transient volatile BigInteger BigInteger64; + public transient volatile BigInteger BigInteger65; + public transient volatile BigInteger BigInteger66; + public transient volatile BigInteger BigInteger67; + public transient volatile BigInteger BigInteger68; + public transient volatile BigInteger BigInteger69; + public static transient final BigInteger BigInteger70 = new BigInteger("100"); + public static transient volatile BigInteger BigInteger71; + protected BigInteger BigInteger72; + protected BigInteger BigInteger73; + protected BigInteger BigInteger74; + protected BigInteger BigInteger75; + protected BigInteger BigInteger76; + protected BigInteger BigInteger77; + protected BigInteger BigInteger78; + protected BigInteger BigInteger79; + protected static BigInteger BigInteger80; + protected transient BigInteger BigInteger81; + protected transient BigInteger BigInteger82; + protected transient BigInteger BigInteger83; + protected transient BigInteger BigInteger84; + protected transient BigInteger BigInteger85; + protected transient BigInteger BigInteger86; + protected final BigInteger BigInteger87 = new BigInteger("100"); + protected volatile BigInteger BigInteger88; + protected volatile BigInteger BigInteger89; + protected volatile BigInteger BigInteger90; + protected volatile BigInteger BigInteger91; + protected volatile BigInteger BigInteger92; + protected volatile BigInteger BigInteger93; + protected volatile BigInteger BigInteger94; + protected volatile BigInteger BigInteger95; + protected static transient BigInteger BigInteger96; + protected static final BigInteger BigInteger97 = new BigInteger("100"); + protected static volatile BigInteger BigInteger98; + protected transient final BigInteger BigInteger99 = new BigInteger("100"); + protected transient volatile BigInteger BigInteger100; + protected transient volatile BigInteger BigInteger101; + protected transient volatile BigInteger BigInteger102; + protected transient volatile BigInteger BigInteger103; + protected transient volatile BigInteger BigInteger104; + protected transient volatile BigInteger BigInteger105; + protected static transient final BigInteger BigInteger106 = new BigInteger("100"); + protected static transient volatile BigInteger BigInteger107; + BigInteger BigInteger108; + BigInteger BigInteger109; + BigInteger BigInteger110; + BigInteger BigInteger111; + BigInteger BigInteger112; + BigInteger BigInteger113; + BigInteger BigInteger114; + BigInteger BigInteger115; + static BigInteger BigInteger116; + transient BigInteger BigInteger117; + transient BigInteger BigInteger118; + transient BigInteger BigInteger119; + transient BigInteger BigInteger120; + transient BigInteger BigInteger121; + transient BigInteger BigInteger122; + final BigInteger BigInteger123 = new BigInteger("100"); + volatile BigInteger BigInteger124; + volatile BigInteger BigInteger125; + volatile BigInteger BigInteger126; + volatile BigInteger BigInteger127; + volatile BigInteger BigInteger128; + volatile BigInteger BigInteger129; + volatile BigInteger BigInteger130; + volatile BigInteger BigInteger131; + static transient BigInteger BigInteger132; + static final BigInteger BigInteger133 = new BigInteger("100"); + static volatile BigInteger BigInteger134; + transient final BigInteger BigInteger135 = new BigInteger("100"); + transient volatile BigInteger BigInteger136; + transient volatile BigInteger BigInteger137; + transient volatile BigInteger BigInteger138; + transient volatile BigInteger BigInteger139; + transient volatile BigInteger BigInteger140; + transient volatile BigInteger BigInteger141; + static transient final BigInteger BigInteger142 = new BigInteger("100"); + static transient volatile BigInteger BigInteger143; + +public static final boolean [] isPersistent = { +true,true,true,false,true,true,true,false,false,false, +false,true,true,true,false,false,true,true,true,false, +true,true,true,false,false,false,false,false,false,false, +true,true,true,false,false,false,true,true,true,false, +true,true,true,false,false,false,false,true,true,true, +false,false,true,true,true,false,true,true,true,false, +false,false,false,false,false,false,true,true,true,false, +false,false,true,true,true,false,true,true,true,false, +false,false,false,true,true,true,false,false,true,true, +true,false,true,true,true,false,false,false,false,false, +false,false,true,true,true,false,false,false,true,true, +true,false,true,true,true,false,false,false,false,true, +true,true,false,false,true,true,true,false,true,true, +true,false,false,false,false,false,false,false,true,true, +true,false,false,false + }; + +public static final boolean [] isStatic = { +false,false,false,false,false,false,false,false,true,false, +false,false,false,false,false,false,false,false,false,false, +false,false,false,false,true,true,true,false,false,false, +false,false,false,false,true,true,false,false,false,false, +false,false,false,false,true,false,false,false,false,false, +false,false,false,false,false,false,false,false,false,false, +true,true,true,false,false,false,false,false,false,false, +true,true,false,false,false,false,false,false,false,false, +true,false,false,false,false,false,false,false,false,false, +false,false,false,false,false,false,true,true,true,false, +false,false,false,false,false,false,true,true,false,false, +false,false,false,false,false,false,true,false,false,false, +false,false,false,false,false,false,false,false,false,false, +false,false,true,true,true,false,false,false,false,false, +false,false,true,true + }; + +public static final boolean [] isFinal = { +false,false,false,false,false,false,false,false,false,false, +false,false,false,false,false,true,false,false,false,false, +false,false,false,false,false,true,false,true,false,false, +false,false,false,false,true,false,false,false,false,false, +false,false,false,false,false,false,false,false,false,false, +false,true,false,false,false,false,false,false,false,false, +false,true,false,true,false,false,false,false,false,false, +true,false,false,false,false,false,false,false,false,false, +false,false,false,false,false,false,false,true,false,false, +false,false,false,false,false,false,false,true,false,true, +false,false,false,false,false,false,true,false,false,false, +false,false,false,false,false,false,false,false,false,false, +false,false,false,true,false,false,false,false,false,false, +false,false,false,true,false,true,false,false,false,false, +false,false,true,false + }; + + public static final String [] fieldSpecs = { + "private BigInteger BigInteger0", + "embedded= true private BigInteger BigInteger1", + "embedded= false private BigInteger BigInteger2", + "persistence-modifier= none private BigInteger BigInteger3", + "persistence-modifier= persistent private BigInteger BigInteger4", + "persistence-modifier= persistent embedded= true private BigInteger BigInteger5", + "persistence-modifier= persistent embedded= false private BigInteger BigInteger6", + "persistence-modifier= transactional private BigInteger BigInteger7", + "private static BigInteger BigInteger8", + "private transient BigInteger BigInteger9", + "persistence-modifier= none private transient BigInteger BigInteger10", + "persistence-modifier= persistent private transient BigInteger BigInteger11", + "persistence-modifier= persistent embedded= true private transient BigInteger BigInteger12", + "persistence-modifier= persistent embedded= false private transient BigInteger BigInteger13", + "persistence-modifier= transactional private transient BigInteger BigInteger14", + "private final BigInteger BigInteger15", + "private volatile BigInteger BigInteger16", + "embedded= true private volatile BigInteger BigInteger17", + "embedded= false private volatile BigInteger BigInteger18", + "persistence-modifier= none private volatile BigInteger BigInteger19", + "persistence-modifier= persistent private volatile BigInteger BigInteger20", + "persistence-modifier= persistent embedded= true private volatile BigInteger BigInteger21", + "persistence-modifier= persistent embedded= false private volatile BigInteger BigInteger22", + "persistence-modifier= transactional private volatile BigInteger BigInteger23", + "private static transient BigInteger BigInteger24", + "private static final BigInteger BigInteger25", + "private static volatile BigInteger BigInteger26", + "private transient final BigInteger BigInteger27", + "private transient volatile BigInteger BigInteger28", + "persistence-modifier= none private transient volatile BigInteger BigInteger29", + "persistence-modifier= persistent private transient volatile BigInteger BigInteger30", + "persistence-modifier= persistent embedded= true private transient volatile BigInteger BigInteger31", + "persistence-modifier= persistent embedded= false private transient volatile BigInteger BigInteger32", + "persistence-modifier= transactional private transient volatile BigInteger BigInteger33", + "private static transient final BigInteger BigInteger34", + "private static transient volatile BigInteger BigInteger35", + "public BigInteger BigInteger36", + "embedded= true public BigInteger BigInteger37", + "embedded= false public BigInteger BigInteger38", + "persistence-modifier= none public BigInteger BigInteger39", + "persistence-modifier= persistent public BigInteger BigInteger40", + "persistence-modifier= persistent embedded= true public BigInteger BigInteger41", + "persistence-modifier= persistent embedded= false public BigInteger BigInteger42", + "persistence-modifier= transactional public BigInteger BigInteger43", + "public static BigInteger BigInteger44", + "public transient BigInteger BigInteger45", + "persistence-modifier= none public transient BigInteger BigInteger46", + "persistence-modifier= persistent public transient BigInteger BigInteger47", + "persistence-modifier= persistent embedded= true public transient BigInteger BigInteger48", + "persistence-modifier= persistent embedded= false public transient BigInteger BigInteger49", + "persistence-modifier= transactional public transient BigInteger BigInteger50", + "public final BigInteger BigInteger51", + "public volatile BigInteger BigInteger52", + "embedded= true public volatile BigInteger BigInteger53", + "embedded= false public volatile BigInteger BigInteger54", + "persistence-modifier= none public volatile BigInteger BigInteger55", + "persistence-modifier= persistent public volatile BigInteger BigInteger56", + "persistence-modifier= persistent embedded= true public volatile BigInteger BigInteger57", + "persistence-modifier= persistent embedded= false public volatile BigInteger BigInteger58", + "persistence-modifier= transactional public volatile BigInteger BigInteger59", + "public static transient BigInteger BigInteger60", + "public static final BigInteger BigInteger61", + "public static volatile BigInteger BigInteger62", + "public transient final BigInteger BigInteger63", + "public transient volatile BigInteger BigInteger64", + "persistence-modifier= none public transient volatile BigInteger BigInteger65", + "persistence-modifier= persistent public transient volatile BigInteger BigInteger66", + "persistence-modifier= persistent embedded= true public transient volatile BigInteger BigInteger67", + "persistence-modifier= persistent embedded= false public transient volatile BigInteger BigInteger68", + "persistence-modifier= transactional public transient volatile BigInteger BigInteger69", + "public static transient final BigInteger BigInteger70", + "public static transient volatile BigInteger BigInteger71", + "protected BigInteger BigInteger72", + "embedded= true protected BigInteger BigInteger73", + "embedded= false protected BigInteger BigInteger74", + "persistence-modifier= none protected BigInteger BigInteger75", + "persistence-modifier= persistent protected BigInteger BigInteger76", + "persistence-modifier= persistent embedded= true protected BigInteger BigInteger77", + "persistence-modifier= persistent embedded= false protected BigInteger BigInteger78", + "persistence-modifier= transactional protected BigInteger BigInteger79", + "protected static BigInteger BigInteger80", + "protected transient BigInteger BigInteger81", + "persistence-modifier= none protected transient BigInteger BigInteger82", + "persistence-modifier= persistent protected transient BigInteger BigInteger83", + "persistence-modifier= persistent embedded= true protected transient BigInteger BigInteger84", + "persistence-modifier= persistent embedded= false protected transient BigInteger BigInteger85", + "persistence-modifier= transactional protected transient BigInteger BigInteger86", + "protected final BigInteger BigInteger87", + "protected volatile BigInteger BigInteger88", + "embedded= true protected volatile BigInteger BigInteger89", + "embedded= false protected volatile BigInteger BigInteger90", + "persistence-modifier= none protected volatile BigInteger BigInteger91", + "persistence-modifier= persistent protected volatile BigInteger BigInteger92", + "persistence-modifier= persistent embedded= true protected volatile BigInteger BigInteger93", + "persistence-modifier= persistent embedded= false protected volatile BigInteger BigInteger94", + "persistence-modifier= transactional protected volatile BigInteger BigInteger95", + "protected static transient BigInteger BigInteger96", + "protected static final BigInteger BigInteger97", + "protected static volatile BigInteger BigInteger98", + "protected transient final BigInteger BigInteger99", + "protected transient volatile BigInteger BigInteger100", + "persistence-modifier= none protected transient volatile BigInteger BigInteger101", + "persistence-modifier= persistent protected transient volatile BigInteger BigInteger102", + "persistence-modifier= persistent embedded= true protected transient volatile BigInteger BigInteger103", + "persistence-modifier= persistent embedded= false protected transient volatile BigInteger BigInteger104", + "persistence-modifier= transactional protected transient volatile BigInteger BigInteger105", + "protected static transient final BigInteger BigInteger106", + "protected static transient volatile BigInteger BigInteger107", + "BigInteger BigInteger108", + "embedded= true BigInteger BigInteger109", + "embedded= false BigInteger BigInteger110", + "persistence-modifier= none BigInteger BigInteger111", + "persistence-modifier= persistent BigInteger BigInteger112", + "persistence-modifier= persistent embedded= true BigInteger BigInteger113", + "persistence-modifier= persistent embedded= false BigInteger BigInteger114", + "persistence-modifier= transactional BigInteger BigInteger115", + "static BigInteger BigInteger116", + "transient BigInteger BigInteger117", + "persistence-modifier= none transient BigInteger BigInteger118", + "persistence-modifier= persistent transient BigInteger BigInteger119", + "persistence-modifier= persistent embedded= true transient BigInteger BigInteger120", + "persistence-modifier= persistent embedded= false transient BigInteger BigInteger121", + "persistence-modifier= transactional transient BigInteger BigInteger122", + "final BigInteger BigInteger123", + "volatile BigInteger BigInteger124", + "embedded= true volatile BigInteger BigInteger125", + "embedded= false volatile BigInteger BigInteger126", + "persistence-modifier= none volatile BigInteger BigInteger127", + "persistence-modifier= persistent volatile BigInteger BigInteger128", + "persistence-modifier= persistent embedded= true volatile BigInteger BigInteger129", + "persistence-modifier= persistent embedded= false volatile BigInteger BigInteger130", + "persistence-modifier= transactional volatile BigInteger BigInteger131", + "static transient BigInteger BigInteger132", + "static final BigInteger BigInteger133", + "static volatile BigInteger BigInteger134", + "transient final BigInteger BigInteger135", + "transient volatile BigInteger BigInteger136", + "persistence-modifier= none transient volatile BigInteger BigInteger137", + "persistence-modifier= persistent transient volatile BigInteger BigInteger138", + "persistence-modifier= persistent embedded= true transient volatile BigInteger BigInteger139", + "persistence-modifier= persistent embedded= false transient volatile BigInteger BigInteger140", + "persistence-modifier= transactional transient volatile BigInteger BigInteger141", + "static transient final BigInteger BigInteger142", + "static transient volatile BigInteger BigInteger143" + }; + public int getLength() + { + return fieldSpecs.length; + } + public BigInteger get(int index) + { + switch (index) + { + case(0): + return BigInteger0; + case(1): + return BigInteger1; + case(2): + return BigInteger2; + case(3): + return BigInteger3; + case(4): + return BigInteger4; + case(5): + return BigInteger5; + case(6): + return BigInteger6; + case(7): + return BigInteger7; + case(8): + return BigInteger8; + case(9): + return BigInteger9; + case(10): + return BigInteger10; + case(11): + return BigInteger11; + case(12): + return BigInteger12; + case(13): + return BigInteger13; + case(14): + return BigInteger14; + case(15): + return BigInteger15; + case(16): + return BigInteger16; + case(17): + return BigInteger17; + case(18): + return BigInteger18; + case(19): + return BigInteger19; + case(20): + return BigInteger20; + case(21): + return BigInteger21; + case(22): + return BigInteger22; + case(23): + return BigInteger23; + case(24): + return BigInteger24; + case(25): + return BigInteger25; + case(26): + return BigInteger26; + case(27): + return BigInteger27; + case(28): + return BigInteger28; + case(29): + return BigInteger29; + case(30): + return BigInteger30; + case(31): + return BigInteger31; + case(32): + return BigInteger32; + case(33): + return BigInteger33; + case(34): + return BigInteger34; + case(35): + return BigInteger35; + case(36): + return BigInteger36; + case(37): + return BigInteger37; + case(38): + return BigInteger38; + case(39): + return BigInteger39; + case(40): + return BigInteger40; + case(41): + return BigInteger41; + case(42): + return BigInteger42; + case(43): + return BigInteger43; + case(44): + return BigInteger44; + case(45): + return BigInteger45; + case(46): + return BigInteger46; + case(47): + return BigInteger47; + case(48): + return BigInteger48; + case(49): + return BigInteger49; + case(50): + return BigInteger50; + case(51): + return BigInteger51; + case(52): + return BigInteger52; + case(53): + return BigInteger53; + case(54): + return BigInteger54; + case(55): + return BigInteger55; + case(56): + return BigInteger56; + case(57): + return BigInteger57; + case(58): + return BigInteger58; + case(59): + return BigInteger59; + case(60): + return BigInteger60; + case(61): + return BigInteger61; + case(62): + return BigInteger62; + case(63): + return BigInteger63; + case(64): + return BigInteger64; + case(65): + return BigInteger65; + case(66): + return BigInteger66; + case(67): + return BigInteger67; + case(68): + return BigInteger68; + case(69): + return BigInteger69; + case(70): + return BigInteger70; + case(71): + return BigInteger71; + case(72): + return BigInteger72; + case(73): + return BigInteger73; + case(74): + return BigInteger74; + case(75): + return BigInteger75; + case(76): + return BigInteger76; + case(77): + return BigInteger77; + case(78): + return BigInteger78; + case(79): + return BigInteger79; + case(80): + return BigInteger80; + case(81): + return BigInteger81; + case(82): + return BigInteger82; + case(83): + return BigInteger83; + case(84): + return BigInteger84; + case(85): + return BigInteger85; + case(86): + return BigInteger86; + case(87): + return BigInteger87; + case(88): + return BigInteger88; + case(89): + return BigInteger89; + case(90): + return BigInteger90; + case(91): + return BigInteger91; + case(92): + return BigInteger92; + case(93): + return BigInteger93; + case(94): + return BigInteger94; + case(95): + return BigInteger95; + case(96): + return BigInteger96; + case(97): + return BigInteger97; + case(98): + return BigInteger98; + case(99): + return BigInteger99; + case(100): + return BigInteger100; + case(101): + return BigInteger101; + case(102): + return BigInteger102; + case(103): + return BigInteger103; + case(104): + return BigInteger104; + case(105): + return BigInteger105; + case(106): + return BigInteger106; + case(107): + return BigInteger107; + case(108): + return BigInteger108; + case(109): + return BigInteger109; + case(110): + return BigInteger110; + case(111): + return BigInteger111; + case(112): + return BigInteger112; + case(113): + return BigInteger113; + case(114): + return BigInteger114; + case(115): + return BigInteger115; + case(116): + return BigInteger116; + case(117): + return BigInteger117; + case(118): + return BigInteger118; + case(119): + return BigInteger119; + case(120): + return BigInteger120; + case(121): + return BigInteger121; + case(122): + return BigInteger122; + case(123): + return BigInteger123; + case(124): + return BigInteger124; + case(125): + return BigInteger125; + case(126): + return BigInteger126; + case(127): + return BigInteger127; + case(128): + return BigInteger128; + case(129): + return BigInteger129; + case(130): + return BigInteger130; + case(131): + return BigInteger131; + case(132): + return BigInteger132; + case(133): + return BigInteger133; + case(134): + return BigInteger134; + case(135): + return BigInteger135; + case(136): + return BigInteger136; + case(137): + return BigInteger137; + case(138): + return BigInteger138; + case(139): + return BigInteger139; + case(140): + return BigInteger140; + case(141): + return BigInteger141; + case(142): + return BigInteger142; + case(143): + return BigInteger143; + default: + throw new IndexOutOfBoundsException(); + } + } + public boolean set(int index,BigInteger value) + { + if(fieldSpecs[index].indexOf("final") != -1) + return false; + switch (index) + { + case(0): + BigInteger0= value; + break; + case(1): + BigInteger1= value; + break; + case(2): + BigInteger2= value; + break; + case(3): + BigInteger3= value; + break; + case(4): + BigInteger4= value; + break; + case(5): + BigInteger5= value; + break; + case(6): + BigInteger6= value; + break; + case(7): + BigInteger7= value; + break; + case(8): + BigInteger8= value; + break; + case(9): + BigInteger9= value; + break; + case(10): + BigInteger10= value; + break; + case(11): + BigInteger11= value; + break; + case(12): + BigInteger12= value; + break; + case(13): + BigInteger13= value; + break; + case(14): + BigInteger14= value; + break; + case(16): + BigInteger16= value; + break; + case(17): + BigInteger17= value; + break; + case(18): + BigInteger18= value; + break; + case(19): + BigInteger19= value; + break; + case(20): + BigInteger20= value; + break; + case(21): + BigInteger21= value; + break; + case(22): + BigInteger22= value; + break; + case(23): + BigInteger23= value; + break; + case(24): + BigInteger24= value; + break; + case(26): + BigInteger26= value; + break; + case(28): + BigInteger28= value; + break; + case(29): + BigInteger29= value; + break; + case(30): + BigInteger30= value; + break; + case(31): + BigInteger31= value; + break; + case(32): + BigInteger32= value; + break; + case(33): + BigInteger33= value; + break; + case(35): + BigInteger35= value; + break; + case(36): + BigInteger36= value; + break; + case(37): + BigInteger37= value; + break; + case(38): + BigInteger38= value; + break; + case(39): + BigInteger39= value; + break; + case(40): + BigInteger40= value; + break; + case(41): + BigInteger41= value; + break; + case(42): + BigInteger42= value; + break; + case(43): + BigInteger43= value; + break; + case(44): + BigInteger44= value; + break; + case(45): + BigInteger45= value; + break; + case(46): + BigInteger46= value; + break; + case(47): + BigInteger47= value; + break; + case(48): + BigInteger48= value; + break; + case(49): + BigInteger49= value; + break; + case(50): + BigInteger50= value; + break; + case(52): + BigInteger52= value; + break; + case(53): + BigInteger53= value; + break; + case(54): + BigInteger54= value; + break; + case(55): + BigInteger55= value; + break; + case(56): + BigInteger56= value; + break; + case(57): + BigInteger57= value; + break; + case(58): + BigInteger58= value; + break; + case(59): + BigInteger59= value; + break; + case(60): + BigInteger60= value; + break; + case(62): + BigInteger62= value; + break; + case(64): + BigInteger64= value; + break; + case(65): + BigInteger65= value; + break; + case(66): + BigInteger66= value; + break; + case(67): + BigInteger67= value; + break; + case(68): + BigInteger68= value; + break; + case(69): + BigInteger69= value; + break; + case(71): + BigInteger71= value; + break; + case(72): + BigInteger72= value; + break; + case(73): + BigInteger73= value; + break; + case(74): + BigInteger74= value; + break; + case(75): + BigInteger75= value; + break; + case(76): + BigInteger76= value; + break; + case(77): + BigInteger77= value; + break; + case(78): + BigInteger78= value; + break; + case(79): + BigInteger79= value; + break; + case(80): + BigInteger80= value; + break; + case(81): + BigInteger81= value; + break; + case(82): + BigInteger82= value; + break; + case(83): + BigInteger83= value; + break; + case(84): + BigInteger84= value; + break; + case(85): + BigInteger85= value; + break; + case(86): + BigInteger86= value; + break; + case(88): + BigInteger88= value; + break; + case(89): + BigInteger89= value; + break; + case(90): + BigInteger90= value; + break; + case(91): + BigInteger91= value; + break; + case(92): + BigInteger92= value; + break; + case(93): + BigInteger93= value; + break; + case(94): + BigInteger94= value; + break; + case(95): + BigInteger95= value; + break; + case(96): + BigInteger96= value; + break; + case(98): + BigInteger98= value; + break; + case(100): + BigInteger100= value; + break; + case(101): + BigInteger101= value; + break; + case(102): + BigInteger102= value; + break; + case(103): + BigInteger103= value; + break; + case(104): + BigInteger104= value; + break; + case(105): + BigInteger105= value; + break; + case(107): + BigInteger107= value; + break; + case(108): + BigInteger108= value; + break; + case(109): + BigInteger109= value; + break; + case(110): + BigInteger110= value; + break; + case(111): + BigInteger111= value; + break; + case(112): + BigInteger112= value; + break; + case(113): + BigInteger113= value; + break; + case(114): + BigInteger114= value; + break; + case(115): + BigInteger115= value; + break; + case(116): + BigInteger116= value; + break; + case(117): + BigInteger117= value; + break; + case(118): + BigInteger118= value; + break; + case(119): + BigInteger119= value; + break; + case(120): + BigInteger120= value; + break; + case(121): + BigInteger121= value; + break; + case(122): + BigInteger122= value; + break; + case(124): + BigInteger124= value; + break; + case(125): + BigInteger125= value; + break; + case(126): + BigInteger126= value; + break; + case(127): + BigInteger127= value; + break; + case(128): + BigInteger128= value; + break; + case(129): + BigInteger129= value; + break; + case(130): + BigInteger130= value; + break; + case(131): + BigInteger131= value; + break; + case(132): + BigInteger132= value; + break; + case(134): + BigInteger134= value; + break; + case(136): + BigInteger136= value; + break; + case(137): + BigInteger137= value; + break; + case(138): + BigInteger138= value; + break; + case(139): + BigInteger139= value; + break; + case(140): + BigInteger140= value; + break; + case(141): + BigInteger141= value; + break; + case(143): + BigInteger143= 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; + } + + } +}