@Override public E set(int index, E element) { int minSize = index+1; ensureCapacity(minSize); while(size()<minSize) add(null); return super.set(index, element); }
if(!getPrimaryKeyCached) { String pkName = null; List<Column> columns = new AutoGrowArrayList<>(); try (ResultSet results = schema.getCatalog().getMetaData().getMetaData().getPrimaryKeys(schema.getCatalog().getName(), schema.getName(), name)) { while(results.next()) {
@Override public void add(int index, E element) { ensureCapacity(index+1); while(size()<index) add(null); super.add(index, element); }
@Override public boolean addAll(int index, Collection<? extends E> c) { ensureCapacity(index+c.size()); while(size()<index) add(null); return super.addAll(index, c); } }