1 23 24 25 26 31 32 package com.sun.jdo.spi.persistence.support.sqlstore.ejb; 33 34 import java.util.Collection ; 35 import java.util.Set ; 36 37 import javax.ejb.EJBObject ; 38 39 import com.sun.jdo.api.persistence.support.PersistenceManager; 40 import com.sun.jdo.spi.persistence.support.sqlstore.utility.NumericConverter; 41 42 49 public interface JDOEJB11Helper { 50 51 57 EJBObject convertPCToEJBObject (Object pc, PersistenceManager pm); 58 59 68 Object convertEJBObjectToPC(EJBObject o, PersistenceManager pm, boolean validate); 69 70 77 Collection convertCollectionPCToEJBObject (Collection pcs, PersistenceManager pm); 78 79 86 Set convertCollectionPCToEJBObjectSet (Collection pcs, PersistenceManager pm); 87 88 98 Collection convertCollectionEJBObjectToPC (Collection coll, PersistenceManager pm, 99 boolean validate); 100 101 107 Object convertPCToPrimaryKey (Object pc, PersistenceManager pm); 108 109 116 Collection convertCollectionPCToPrimaryKey (Collection pcs, PersistenceManager pm); 117 118 124 Object convertObjectIdToPrimaryKey (Object objectId); 125 126 132 Object convertPrimaryKeyToObjectId (Object key); 133 134 140 Collection convertCollectionObjectIdToPrimaryKey (Collection oids); 141 142 148 Collection convertCollectionPrimaryKeyToObjectId (Collection key); 149 150 155 Class getPCClass (); 156 157 162 byte[] writeSerializableObjectToByteArray(java.io.Serializable serializableObject); 163 164 171 java.io.Serializable readSerializableObjectFromByteArray(byte[] byteArray); 172 173 174 178 Object getContainer(); 179 180 188 void assertInstanceOfRemoteInterfaceImpl(Object o); 189 190 196 NumericConverter getNumericConverter(); 197 } 198 | Popular Tags |