1 19 20 package org.apache.cayenne.access.jdbc; 21 22 29 public class SQLStatement { 30 31 protected String sql; 32 protected ParameterBinding[] bindings; 33 protected ColumnDescriptor[] resultColumns; 34 35 public SQLStatement() { 36 } 37 38 public SQLStatement(String sql, ParameterBinding[] bindings) { 39 this(sql, null, bindings); 40 } 41 42 45 public SQLStatement(String sql, ColumnDescriptor[] resultColumns, 46 ParameterBinding[] bindings) { 47 48 setSql(sql); 49 setBindings(bindings); 50 setResultColumns(resultColumns); 51 } 52 53 56 public ColumnDescriptor[] getResultColumns() { 57 return resultColumns; 58 } 59 60 63 public void setResultColumns(ColumnDescriptor[] descriptors) { 64 resultColumns = descriptors; 65 } 66 67 public ParameterBinding[] getBindings() { 68 return bindings; 69 } 70 71 public String getSql() { 72 return sql; 73 } 74 75 public void setBindings(ParameterBinding[] bindings) { 76 this.bindings = bindings; 77 } 78 79 public void setSql(String string) { 80 sql = string; 81 } 82 } 83 | Popular Tags |