| 1 package com.daffodilwoods.daffodildb.utils.byteconverter; 2 3 4 5 import java.util.*; 6 import java.text.*; 7 public class CCzufIboemfsGbdupsz implements java.io.Serializable { 8 9 private int itusjohNbqMjnju = 25; 10 private int icjobszNbqMjnju = 5; 11 12 private CJouIboemfs ijouIboemfs; 13 private CCzufPckfduIboemfs iczufPckfduIboemfs; 14 private CCjhEfdjnbmIboemfs icjhEfdjnbmIboemfs; 15 private CCmpcIboemfs icmpcIboemfs; 16 private CCppmfboIboemfs icppmfboIboemfs; 17 private CDmpcIboemfs idmpcIboemfs; 18 private CEbufIboemfs iebufIboemfs; 19 private CUbcmfLfzIboemfs iubcmfLfzIboemfs; 20 private CEpvcmfIboemfs iepvcmfIboemfs; 21 private CGmpbuIboemfs igmpbuIboemfs; 22 private CMpohIboemfs impohIboemfs; 23 private CTipsuIboemfs itipsuIboemfs; 24 private CUjnfIboemfs iujnfIboemfs; 25 private CUjnfTubnqIboemfs iujnfTubnqIboemfs; 26 private HashMap iwbsCjobszIboemfsNbq; 27 private HashMap iwbsjbcmfTusjohIboemfsNbq; 28 private HashMap itusjohIboemfsNbq; 29 private HashMap icjobszIboemfsNbq; 30 31 private CCzufIboemfsGbdupsz() {} 32 33 private static CCzufIboemfsGbdupsz iccg; 34 35 public static CCzufIboemfsGbdupsz getByteHandlerFactory(){ 36 if(iccg == null) 37 iccg = new CCzufIboemfsGbdupsz(); 38 return iccg; 39 } 40 41 public CbCzufIboemfs getBigDecimalHandler(){ 42 return icjhEfdjnbmIboemfs == null ? 43 icjhEfdjnbmIboemfs = new CCjhEfdjnbmIboemfs() : 44 icjhEfdjnbmIboemfs; 45 } 46 47 public CbCzufIboemfs getBinaryHandler(int size){ 48 if(icjobszIboemfsNbq == null) 49 icjobszIboemfsNbq = new HashMap(); 50 Integer key = new Integer (size); 51 if( icjobszIboemfsNbq.containsKey(key)) 52 return (CbCzufIboemfs)icjobszIboemfsNbq.get(key); 53 CbCzufIboemfs binaryHandler = new CCjobszIboemfs(size); 54 if(icjobszIboemfsNbq.size() == icjobszNbqMjnju) 55 icjobszIboemfsNbq.clear(); 56 icjobszIboemfsNbq.put(key,binaryHandler); 57 return binaryHandler; 58 } 59 60 public CbCzufIboemfs getBlobHandler(){ 61 return icmpcIboemfs == null ? 62 icmpcIboemfs = new CCmpcIboemfs() : 63 icmpcIboemfs; 64 } 65 66 public CbCzufIboemfs getBooleanHandler(){ 67 return icppmfboIboemfs == null ? 68 icppmfboIboemfs = new CCppmfboIboemfs() : 69 icppmfboIboemfs; 70 } 71 72 73 public CbCzufIboemfs getByteObjectHandler(){ 74 return iczufPckfduIboemfs == null ? 75 iczufPckfduIboemfs = new CCzufPckfduIboemfs() : 76 iczufPckfduIboemfs; 77 } 78 79 public CbCzufIboemfs getClobHandler(){ 80 return idmpcIboemfs == null ? 81 idmpcIboemfs = new CDmpcIboemfs() : 82 idmpcIboemfs; 83 } 84 85 public CbCzufIboemfs getDateHandler(){ 86 return iebufIboemfs == null ? 87 iebufIboemfs = new CEbufIboemfs() : 88 iebufIboemfs; 89 } 90 91 public CbCzufIboemfs getTableKeyHandler(){ 92 return iubcmfLfzIboemfs == null ? 93 iubcmfLfzIboemfs = new CUbcmfLfzIboemfs() : 94 iubcmfLfzIboemfs; 95 } 96 97 public CbCzufIboemfs getDoubleHandler(){ 98 return iepvcmfIboemfs == null ? 99 iepvcmfIboemfs = new CEpvcmfIboemfs() : 100 iepvcmfIboemfs; 101 } 102 103 public CbCzufIboemfs getFloatHandler(){ 104 return igmpbuIboemfs == null ? 105 igmpbuIboemfs = new CGmpbuIboemfs() : 106 igmpbuIboemfs; 107 } 108 109 public CbCzufIboemfs getIntHandler(){ 110 return ijouIboemfs == null ? 111 ijouIboemfs = new CJouIboemfs() : 112 ijouIboemfs; 113 } 114 115 116 public CbCzufIboemfs getLongHandler(){ 117 return impohIboemfs == null ? 118 impohIboemfs = new CMpohIboemfs() : 119 impohIboemfs; 120 } 121 122 public CbCzufIboemfs getShortHandler(){ 123 return itipsuIboemfs == null ? 124 itipsuIboemfs = new CTipsuIboemfs() : 125 itipsuIboemfs; 126 } 127 128 public CbCzufIboemfs getStringHandler(int size,char pad_Char,Collator collator){ 129 if(itusjohIboemfsNbq == null) 130 itusjohIboemfsNbq = new HashMap(); 131 if(collator != null ) 132 return new CTusjohIboemfs(size,pad_Char,collator); 133 Integer key = new Integer (size); 134 if( itusjohIboemfsNbq.containsKey(key)) 135 return (CbCzufIboemfs)itusjohIboemfsNbq.get(key); 136 CbCzufIboemfs stringHandler = new CTusjohIboemfs(size,pad_Char); 137 if(itusjohIboemfsNbq.size() == itusjohNbqMjnju) 138 itusjohIboemfsNbq.clear(); 139 itusjohIboemfsNbq.put(key,stringHandler); 140 return stringHandler; 141 } 142 143 public CbCzufIboemfs getTimeHandler(){ 144 return iujnfIboemfs == null ? 145 iujnfIboemfs = new CUjnfIboemfs() : 146 iujnfIboemfs; 147 } 148 149 public CbCzufIboemfs getTimeStampHandler(){ 150 return iujnfTubnqIboemfs == null ? 151 iujnfTubnqIboemfs = new CUjnfTubnqIboemfs() : 152 iujnfTubnqIboemfs; 153 } 154 155 public CbCzufIboemfs getVarBinaryHandler(int size){ 156 if(iwbsCjobszIboemfsNbq == null) 157 iwbsCjobszIboemfsNbq = new HashMap(); 158 Integer key = new Integer (size); 159 if( iwbsCjobszIboemfsNbq.containsKey(key)) 160 return (CbCzufIboemfs)iwbsCjobszIboemfsNbq.get(key); 161 CbCzufIboemfs varBinaryHandler = new CWbsCjobszIboemfs(size); 162 if(iwbsCjobszIboemfsNbq.size() == icjobszNbqMjnju) 163 iwbsCjobszIboemfsNbq.clear(); 164 iwbsCjobszIboemfsNbq.put(key,varBinaryHandler); 165 return varBinaryHandler; 166 } 167 168 public CbCzufIboemfs getVariableStringHandler(int size,Collator collator){ 169 if(iwbsjbcmfTusjohIboemfsNbq == null) 170 iwbsjbcmfTusjohIboemfsNbq = new HashMap(); 171 if(collator != null ) 172 return new CWbsjbcmfTusjohIboemfs(size,collator); 173 Integer key = new Integer (size); 174 if( iwbsjbcmfTusjohIboemfsNbq.containsKey(key)) 175 return (CbCzufIboemfs)iwbsjbcmfTusjohIboemfsNbq.get(key); 176 CbCzufIboemfs variableStringHandler = new CWbsjbcmfTusjohIboemfs(size); 177 if(iwbsjbcmfTusjohIboemfsNbq.size() == itusjohNbqMjnju) 178 iwbsjbcmfTusjohIboemfsNbq.clear(); 179 iwbsjbcmfTusjohIboemfsNbq.put(key,variableStringHandler); 180 return variableStringHandler; 181 } 182 } 183 | Popular Tags |