1 21 package oracle.toplink.essentials.internal.databaseaccess; 23 24 import java.sql.PreparedStatement ; 25 import java.sql.SQLException ; 26 import oracle.toplink.essentials.internal.sessions.AbstractSession; 27 28 40 public class BindCallCustomParameter { 41 42 49 public BindCallCustomParameter(Object obj) { 50 this.obj = obj; 51 } 52 53 protected BindCallCustomParameter() { 54 } 55 56 public void set(DatabasePlatform platform, PreparedStatement statement, int index, AbstractSession session) throws SQLException { 57 platform.setParameterValueInDatabaseCall(obj, statement, index, session); 58 } 59 60 public String toString() { 61 if (obj != null) { 62 return obj.toString(); 63 } else { 64 return "null"; 65 } 66 } 67 68 protected Object obj; 69 } 70 | Popular Tags |