1 2 12 package com.versant.core.jdbc; 13 14 import com.versant.core.common.NewObjectOID; 15 import com.versant.core.metadata.ClassMetaData; 16 import com.versant.core.jdbc.metadata.JdbcField; 17 import com.versant.core.jdbc.metadata.JdbcColumn; 18 19 import java.sql.ResultSet ; 20 import java.sql.SQLException ; 21 import java.sql.PreparedStatement ; 22 23 28 public final class JdbcNewObjectOID extends NewObjectOID implements JdbcOID { 29 30 public JdbcNewObjectOID() { 31 } 32 33 public JdbcNewObjectOID(ClassMetaData cmd) { 34 super(cmd); 35 } 36 37 public NewObjectOID newInstance(ClassMetaData cmd) { 38 return new JdbcNewObjectOID(cmd); 39 } 40 41 public boolean copyKeyFields(ResultSet rs, int firstCol) 42 throws SQLException { 43 return ((JdbcOID)realOID).copyKeyFields(rs, firstCol); 44 } 45 46 public boolean copyKeyFields(ResultSet rs, JdbcField[] pks, 47 int[] pkFieldIndexs) throws SQLException { 48 return ((JdbcOID)realOID).copyKeyFields(rs, pks, pkFieldIndexs); 49 } 50 51 public boolean validateKeyFields(ResultSet rs, int firstCol) 52 throws SQLException { 53 return ((JdbcOID)realOID).validateKeyFields(rs, firstCol); 54 } 55 56 public int setParams(PreparedStatement ps, int firstParam) 57 throws SQLException { 58 return ((JdbcOID)realOID).setParams(ps, firstParam); 59 } 60 61 public int setParams(PreparedStatement ps, int firstParam, 62 JdbcColumn[] pkc) throws SQLException { 63 return ((JdbcOID)realOID).setParams(ps, firstParam, pkc); 64 } 65 66 } 67 68 | Popular Tags |