1 16 17 package org.springframework.orm.ojb; 18 19 import java.util.Collection ; 20 import java.util.Iterator ; 21 22 import org.apache.ojb.broker.query.Query; 23 24 import org.springframework.dao.DataAccessException; 25 26 52 public interface PersistenceBrokerOperations { 53 54 69 Object execute(PersistenceBrokerCallback action) throws DataAccessException; 70 71 79 Collection executeFind(PersistenceBrokerCallback action) throws DataAccessException; 80 81 82 86 99 Object getObjectById(Class entityClass, Object idValue) throws DataAccessException; 100 101 105 Object getObjectByQuery(Query query) throws DataAccessException; 106 107 111 Collection getCollectionByQuery(Query query) throws DataAccessException; 112 113 117 Iterator getIteratorByQuery(Query query) throws DataAccessException; 118 119 123 Iterator getReportQueryIteratorByQuery(Query query) throws DataAccessException; 124 125 129 int getCount(Query query) throws DataAccessException; 130 131 135 void removeFromCache(Object entityOrId) throws DataAccessException; 136 137 141 void clearCache() throws DataAccessException; 142 143 147 void store(Object entity) throws DataAccessException; 148 149 153 void delete(Object entity) throws DataAccessException; 154 155 159 void deleteByQuery(Query query) throws DataAccessException; 160 161 } 162 | Popular Tags |