1 package org.apache.ojb.broker.accesslayer; 2 3 17 18 import org.apache.ojb.broker.Identity; 19 import org.apache.ojb.broker.PersistenceBrokerException; 20 import org.apache.ojb.broker.core.ValueContainer; 21 import org.apache.ojb.broker.metadata.ClassDescriptor; 22 import org.apache.ojb.broker.query.Query; 23 24 34 public interface JdbcAccess 35 { 36 41 public void executeDelete(ClassDescriptor cld, Object obj) throws PersistenceBrokerException; 42 43 48 public void executeDelete(Query query, ClassDescriptor cld) throws PersistenceBrokerException; 49 50 55 public void executeInsert(ClassDescriptor cld, Object obj) throws PersistenceBrokerException; 56 57 63 public ResultSetAndStatement executeSQL(String sqlStatement, ClassDescriptor cld, boolean scrollable) throws PersistenceBrokerException; 64 65 72 public ResultSetAndStatement executeSQL(String sqlStatement, ClassDescriptor cld, ValueContainer[] values, boolean scrollable) throws PersistenceBrokerException; 73 74 80 public int executeUpdateSQL(String sqlStatement, ClassDescriptor cld) 81 throws PersistenceBrokerException; 82 83 91 public int executeUpdateSQL(String sqlStatement, ClassDescriptor cld, ValueContainer[] values1, ValueContainer[] values2) 92 throws PersistenceBrokerException; 93 98 public void executeUpdate(ClassDescriptor cld, Object obj) throws PersistenceBrokerException; 99 100 109 public Object materializeObject(ClassDescriptor cld, Identity oid) 110 throws PersistenceBrokerException; 111 112 117 public ResultSetAndStatement executeQuery(Query query, ClassDescriptor cld) throws PersistenceBrokerException; 118 } 119 | Popular Tags |