1 23 24 package org.objectweb.jorm.naming.api; 25 26 import org.objectweb.jorm.api.PException; 27 import org.objectweb.jorm.api.PExceptionIO; 28 import org.objectweb.jorm.type.api.PType; 29 30 import java.util.Date ; 31 import java.io.Serializable ; 32 import java.math.BigDecimal ; 33 import java.math.BigInteger ; 34 35 42 public interface PName extends Cloneable , Serializable { 43 50 boolean codingSupported(int codingtype); 51 52 58 byte[] encode() throws PExceptionNaming; 59 60 67 Object encodeAbstract() throws PExceptionNaming, UnsupportedOperationException ; 68 69 75 byte encodeByte() throws PExceptionNaming, UnsupportedOperationException ; 76 77 83 Byte encodeObyte() throws PExceptionNaming, UnsupportedOperationException ; 84 85 91 char encodeChar() throws PExceptionNaming, UnsupportedOperationException ; 92 93 99 Character encodeOchar() throws PExceptionNaming, UnsupportedOperationException ; 100 101 107 int encodeInt() throws PExceptionNaming, UnsupportedOperationException ; 108 109 115 Integer encodeOint() throws PExceptionNaming, UnsupportedOperationException ; 116 117 123 long encodeLong() throws PExceptionNaming, UnsupportedOperationException ; 124 125 131 Long encodeOlong() throws PExceptionNaming, UnsupportedOperationException ; 132 133 139 short encodeShort() throws PExceptionNaming, UnsupportedOperationException ; 140 141 147 Short encodeOshort() throws PExceptionNaming, UnsupportedOperationException ; 148 149 155 String encodeString() throws PExceptionNaming; 156 157 163 char[] encodeCharArray() throws PExceptionNaming; 164 165 171 Date encodeDate() throws PExceptionNaming; 172 173 179 BigInteger encodeBigInteger() throws PExceptionNaming; 180 181 187 BigDecimal encodeBigDecimal() throws PExceptionNaming; 188 189 200 PName export(Object conn, PNamingContext pnc) throws PException; 201 202 214 PName export(Object conn, PNamingContext pnc, Object hints) 215 throws PException; 216 217 221 PNameManager getPNameManager(); 222 223 228 PType getPType(); 229 230 235 boolean isNull(); 236 237 248 PName resolve(Object conn) throws UnsupportedOperationException , PException; 249 250 260 void unexport(Object conn) throws PException; 261 262 273 void unexport(Object conn, Object hints) throws PException; 274 } 275 | Popular Tags |