1 2 12 package com.versant.core.jdbc; 13 14 import com.versant.core.metadata.FetchGroup; 15 import com.versant.core.common.State; 16 import com.versant.core.jdbc.metadata.JdbcField; 17 import com.versant.core.server.PersistGraph; 18 19 import java.sql.ResultSet ; 20 import java.sql.SQLException ; 21 import java.sql.PreparedStatement ; 22 23 26 public interface JdbcState { 27 28 33 public void copyPass1Fields(ResultSet rs, FetchGroup fetchGroup, 34 int firstCol) throws SQLException ; 35 36 public void copyPass1Fields(ResultSet rs, JdbcField[] fields); 37 38 48 public int setParams(PreparedStatement ps, int[] fieldNos, 49 int firstFieldNo, int lastFieldNo, int firstParam, 50 PersistGraph pGraph, int tableNo) throws SQLException ; 51 52 65 public int setParamsChangedAndNotNull(PreparedStatement ps, int[] fieldNos, 66 int firstFieldNo, int lastFieldNo, int firstParam, 67 PersistGraph pGraph, int tableNo) throws SQLException ; 68 69 79 public int setOptimisticLockingParams(PreparedStatement ps, int firstParam) 80 throws SQLException ; 81 82 90 public void setOracleStyleLOBs(ResultSet rs, int[] stateFieldNos, 91 int numFieldNos, int firstCol) throws SQLException ; 92 93 103 public boolean hasSameNullFields(State state, State mask); 104 105 } 106 107 | Popular Tags |