/** * @return * @throws SqlJetException */ private Object[] getDefaults() throws SqlJetException { final Object[] row = new Object[tableDef.getColumns().size()]; if (btree.getDb().getOptions().getFileFormat() > 2) { for (int i = 0; i < tableDef.getColumns().size(); i++) { final ISqlJetColumnDef column = tableDef.getColumns().get(i); for (final ISqlJetColumnConstraint constraint : column.getConstraints()) { if (constraint instanceof ISqlJetColumnDefault) { final ISqlJetColumnDefault d = (ISqlJetColumnDefault) constraint; row[i] = d.getExpression().getValue(); } } } } return row; }
public ISqlJetBtreeRecord getRecord() throws SqlJetException { if (eof()) return null; if (null == recordCache) { lock(); try { recordCache = new SqlJetBtreeRecord(getCursor(), index, btree.getDb().getOptions().getFileFormat()); } finally { unlock(); } valueCache = new Object[recordCache.getFieldsCount()]; } return recordCache; }