1 23 24 package org.objectweb.jorm.api; 25 26 import org.objectweb.jorm.naming.api.PName; 27 import org.objectweb.jorm.naming.api.PExceptionNaming; 28 import org.objectweb.jorm.type.api.PExceptionTyping; 29 30 36 public interface PBinding { 37 static final byte ACTION_BIND = 0x01; 38 static final byte ACTION_UNBIND = 0x02; 39 static final byte ACTION_EXPORT = 0x03; 40 static final byte ACTION_UNEXPORT = 0x04; 41 static final byte ACTION_EXIST = 0x05; 42 static final byte ACTION_READ = 0x06; 43 static final byte ACTION_WRITE = 0x07; 44 48 static final byte LIFECYCLE_ACTIVEFORIO = 0x01; 49 55 static final byte LIFECYCLE_DELTOWRITE = 0x02; 56 62 static final byte LIFECYCLE_NEWTOWRITE = 0x03; 63 66 static final byte LIFECYCLE_NOTBOUND = 0x04; 67 71 static final byte LIFECYCLE_ERROR = 0x05; 72 73 83 void bind(PName pn) throws PException; 84 85 97 boolean exist(Object conn) throws PException; 98 99 115 PName export(Object conn) throws PException; 116 117 134 PName export(Object conn, Object hints) throws PException; 135 136 140 PClassMapping getPClassMapping(); 141 142 148 PName getPName(); 149 150 154 byte getStatus(); 155 156 162 void init(PClassMapping pcm) throws PException; 163 164 177 void read(Object conn, PAccessor pa) throws PException; 178 179 195 void read(Object conn, PAccessor pa, Object txctx) throws PException; 196 197 203 void unbind() throws PException; 204 205 218 void unexport(Object conn) throws PException; 219 220 239 void write(Object conn, PAccessor pa) throws PException; 240 } 241 | Popular Tags |