1 16 17 package org.springframework.orm.toplink; 18 19 import java.util.Collection ; 20 import java.util.List ; 21 22 import oracle.toplink.expressions.Expression; 23 import oracle.toplink.queryframework.Call; 24 import oracle.toplink.queryframework.DatabaseQuery; 25 import oracle.toplink.sessions.ObjectCopyingPolicy; 26 27 import org.springframework.dao.DataAccessException; 28 29 43 public interface TopLinkOperations { 44 45 61 Object execute(TopLinkCallback action) throws DataAccessException; 62 63 71 List executeFind(TopLinkCallback action) throws DataAccessException; 72 73 74 78 89 Object executeNamedQuery(Class entityClass, String queryName) throws DataAccessException; 90 91 103 Object executeNamedQuery(Class entityClass, String queryName, boolean enforceReadOnly) 104 throws DataAccessException; 105 106 118 Object executeNamedQuery(Class entityClass, String queryName, Object [] args) throws DataAccessException; 119 120 133 Object executeNamedQuery(Class entityClass, String queryName, Object [] args, boolean enforceReadOnly) 134 throws DataAccessException; 135 136 147 Object executeQuery(DatabaseQuery query) throws DataAccessException; 148 149 161 Object executeQuery(DatabaseQuery query, boolean enforceReadOnly) throws DataAccessException; 162 163 175 Object executeQuery(DatabaseQuery query, Object [] args) throws DataAccessException; 176 177 190 Object executeQuery(DatabaseQuery query, Object [] args, boolean enforceReadOnly) 191 throws DataAccessException; 192 193 194 198 207 List readAll(Class entityClass) throws DataAccessException; 208 209 219 List readAll(Class entityClass, boolean enforceReadOnly) throws DataAccessException; 220 221 233 List readAll(Class entityClass, Expression expression) throws DataAccessException; 234 235 248 List readAll(Class entityClass, Expression expression, boolean enforceReadOnly) 249 throws DataAccessException; 250 251 263 List readAll(Class entityClass, Call call) throws DataAccessException; 264 265 278 List readAll(Class entityClass, Call call, boolean enforceReadOnly) throws DataAccessException; 279 280 292 Object read(Class entityClass, Expression expression) throws DataAccessException; 293 294 307 Object read(Class entityClass, Expression expression, boolean enforceReadOnly) 308 throws DataAccessException; 309 310 322 Object read(Class entityClass, Call call) throws DataAccessException; 323 324 337 Object read(Class entityClass, Call call, boolean enforceReadOnly) 338 throws DataAccessException; 339 340 341 345 357 Object readById(Class entityClass, Object id) throws DataAccessException; 358 359 372 Object readById(Class entityClass, Object id, boolean enforceReadOnly) throws DataAccessException; 373 374 386 Object readById(Class entityClass, Object [] keys) throws DataAccessException; 387 388 401 Object readById(Class entityClass, Object [] keys, boolean enforceReadOnly) throws DataAccessException; 402 403 418 Object readAndCopy(Class entityClass, Object id) throws DataAccessException; 419 420 436 Object readAndCopy(Class entityClass, Object id, boolean enforceReadOnly) throws DataAccessException; 437 438 453 Object readAndCopy(Class entityClass, Object [] keys) throws DataAccessException; 454 455 471 Object readAndCopy(Class entityClass, Object [] keys, boolean enforceReadOnly) throws DataAccessException; 472 473 474 478 486 Object copy(Object entity) throws DataAccessException; 487 488 496 Object copy(Object entity, ObjectCopyingPolicy copyingPolicy) throws DataAccessException; 497 498 506 List copyAll(Collection entities) throws DataAccessException; 507 508 516 List copyAll(Collection entities, ObjectCopyingPolicy copyingPolicy) throws DataAccessException; 517 518 530 Object refresh(Object entity) throws DataAccessException; 531 532 547 Object refresh(Object entity, boolean enforceReadOnly) throws DataAccessException; 548 549 561 List refreshAll(Collection entities) throws DataAccessException; 562 563 576 List refreshAll(Collection entities, boolean enforceReadOnly) throws DataAccessException; 577 578 579 583 598 Object register(Object entity); 599 600 609 List registerAll(Collection entities); 610 611 618 void registerNew(Object entity); 619 620 629 Object registerExisting(Object entity); 630 631 643 Object merge(Object entity) throws DataAccessException; 644 645 657 Object deepMerge(Object entity) throws DataAccessException; 658 659 671 Object shallowMerge(Object entity) throws DataAccessException; 672 673 685 Object mergeWithReferences(Object entity) throws DataAccessException; 686 687 693 void delete(Object entity) throws DataAccessException; 694 695 701 void deleteAll(Collection entities) throws DataAccessException; 702 703 } 704 | Popular Tags |