1 package org.enhydra.shark.api.internal.repositorypersistence; 2 3 import java.util.List ; 4 import org.enhydra.shark.api.RepositoryTransaction; 5 import org.enhydra.shark.api.RootException; 6 import org.enhydra.shark.api.TransactionException; 7 import org.enhydra.shark.api.internal.working.CallbackUtilities; 8 9 16 public interface RepositoryPersistenceManager { 17 18 27 void configure(CallbackUtilities cus) throws RootException; 28 29 40 void uploadXPDL (RepositoryTransaction t,String xpdlId,byte[] xpdl,byte[] serializedPkg,long xpdlClassVer) throws RepositoryException; 41 42 53 void updateXPDL (RepositoryTransaction t,String xpdlId,String xpdlVersion,byte[] xpdl,byte[] serializedPkg,long xpdlClassVer) throws RepositoryException; 54 55 65 void deleteXPDL (RepositoryTransaction t,String xpdlId,String xpdlVersion) throws RepositoryException; 66 67 78 void moveToHistory (RepositoryTransaction t,String xpdlId,String xpdlVersion) throws RepositoryException; 79 80 90 void deleteFromHistory (RepositoryTransaction t,String xpdlId,String xpdlVersion) throws RepositoryException; 91 92 100 void clearRepository (RepositoryTransaction t) throws RepositoryException; 101 102 114 String getCurrentVersion (RepositoryTransaction t,String xpdlId) throws RepositoryException; 115 116 128 String getNextVersion (RepositoryTransaction t,String xpdlId) throws RepositoryException; 129 130 142 long getSerializedXPDLObjectVersion (RepositoryTransaction t,String xpdlId,String xpdlVersion) throws RepositoryException; 143 144 157 byte[] getXPDL (RepositoryTransaction t,String xpdlId) throws RepositoryException; 158 159 174 byte[] getSerializedXPDLObject (RepositoryTransaction t,String xpdlId) throws RepositoryException; 175 176 189 byte[] getXPDL (RepositoryTransaction t,String xpdlId,String xpdlVersion) throws RepositoryException; 190 191 206 byte[] getSerializedXPDLObject (RepositoryTransaction t,String xpdlId,String xpdlVersion) throws RepositoryException; 207 208 221 List getXPDLVersions (RepositoryTransaction t,String xpdlId) throws RepositoryException; 222 223 234 boolean doesXPDLExist (RepositoryTransaction t,String xpdlId) throws RepositoryException; 235 236 248 boolean doesXPDLExist (RepositoryTransaction t,String xpdlId,String xpdlVersion) throws RepositoryException; 249 250 261 List getExistingXPDLIds (RepositoryTransaction t) throws RepositoryException; 262 263 264 276 void addXPDLReference (RepositoryTransaction t, 277 String referredXPDLId, 278 String referringXPDLId, 279 String referringXPDLVersion, 280 int referredXPDLNumber) throws RepositoryException; 281 282 283 294 List getReferringXPDLIds (RepositoryTransaction t,String referredXPDLId) throws RepositoryException; 295 296 308 List getReferringXPDLVersions (RepositoryTransaction t,String referredXPDLId,String referringXPDLId) throws RepositoryException; 309 310 311 323 List getReferredXPDLIds (RepositoryTransaction t,String referringXPDLId,String referringXPDLVersion) throws RepositoryException; 324 325 332 RepositoryTransaction createTransaction() throws TransactionException; 333 334 } 335 | Popular Tags |