1 16 17 package org.springframework.orm.jdo; 18 19 import java.util.Collection ; 20 import java.util.Map ; 21 22 import org.springframework.dao.DataAccessException; 23 24 56 public interface JdoOperations { 57 58 74 Object execute(JdoCallback action) throws DataAccessException; 75 76 84 Collection executeFind(JdoCallback action) throws DataAccessException; 85 86 87 91 102 Object getObjectById(Object objectId) throws DataAccessException; 103 104 120 Object getObjectById(Class entityClass, Object idValue) throws DataAccessException; 121 122 128 void evict(Object entity) throws DataAccessException; 129 130 136 void evictAll(Collection entities) throws DataAccessException; 137 138 143 void evictAll() throws DataAccessException; 144 145 151 void refresh(Object entity) throws DataAccessException; 152 153 159 void refreshAll(Collection entities) throws DataAccessException; 160 161 166 void refreshAll() throws DataAccessException; 167 168 174 void makePersistent(Object entity) throws DataAccessException; 175 176 182 void makePersistentAll(Collection entities) throws DataAccessException; 183 184 190 void deletePersistent(Object entity) throws DataAccessException; 191 192 200 void deletePersistentAll(Collection entities) throws DataAccessException; 201 202 209 Object detachCopy(Object entity); 210 211 218 Collection detachCopyAll(Collection entities); 219 220 233 Object attachCopy(Object detachedEntity); 234 235 248 Collection attachCopyAll(Collection detachedEntities); 249 250 260 void flush() throws DataAccessException; 261 262 263 267 274 Collection find(Class entityClass) throws DataAccessException; 275 276 285 Collection find(Class entityClass, String filter) throws DataAccessException; 286 287 298 Collection find(Class entityClass, String filter, String ordering) throws DataAccessException; 299 300 313 Collection find(Class entityClass, String filter, String parameters, Object [] values) 314 throws DataAccessException; 315 316 332 Collection find(Class entityClass, String filter, String parameters, Object [] values, String ordering) 333 throws DataAccessException; 334 335 348 Collection find(Class entityClass, String filter, String parameters, Map values) 349 throws DataAccessException; 350 351 367 Collection find(Class entityClass, String filter, String parameters, Map values, String ordering) 368 throws DataAccessException; 369 370 383 Collection find(String language, Object queryObject) throws DataAccessException; 384 385 393 Collection find(String queryString) throws DataAccessException; 394 395 404 Collection find(String queryString, Object [] values) throws DataAccessException; 405 406 415 Collection find(String queryString, Map values) throws DataAccessException; 416 417 426 Collection findByNamedQuery(Class entityClass, String queryName) throws DataAccessException; 427 428 438 Collection findByNamedQuery(Class entityClass, String queryName, Object [] values) throws DataAccessException; 439 440 450 Collection findByNamedQuery(Class entityClass, String queryName, Map values) throws DataAccessException; 451 452 } 453 | Popular Tags |