111112113114115116117118119
/** * Sets the specified column. */ public void setColumn(int index, Column column) { Data data = addData(index); data.setColumn(column); }
122123124125126127128129130
* Returns the generated string key. */ public String getString(int columnIndex) throws SQLException { Data data = _keys.get(columnIndex - 1); return data.getString(); }
133134135136137138139140141
* Sets the generated string key. */ public void setString(int columnIndex, String value) throws SQLException { Data data = addData(columnIndex); data.setString(value); }
144145146147148149150151152
* Returns the generated integer key. */ public int getInt(int columnIndex) throws SQLException { Data data = _keys.get(columnIndex - 1); return data.getInt(); }
155156157158159160161162163
* Sets the generated int key. */ public void setInt(int columnIndex, int value) throws SQLException { Data data = addData(columnIndex); data.setInt(value); }
166167168169170171172173174
* Returns the generated long key. */ public long getLong(int columnIndex) throws SQLException { Data data = _keys.get(columnIndex - 1); return data.getLong(); }
177178179180181182183184185
* Sets the generated long key. */ public void setLong(int columnIndex, long value) throws SQLException { Data data = addData(columnIndex); data.setLong(value); }
188189190191192193194195196
* Extends the capacity for the data. */ private Data addData(int columnIndex) { for (int i = _keys.size(); i < columnIndex; i++) _keys.add(new Data()); return _keys.get(columnIndex - 1); }