@Override public Object getAttribute(Column column) { checkColumn(column); int index = column.getIndex(); Object res = null; synchronized (this) { if (index < attributes.length) { res = attributes[index]; } } if (res == null) { return column.getDefaultValue(); } return res; }
@Override public Object getAttribute(Column column) { checkColumn(column); int index = column.getIndex(); Object res = null; synchronized (this) { if (index < attributes.length) { res = attributes[index]; } } if (res == null) { return column.getDefaultValue(); } return res; }
private Object getTimeAttribute(Column column, Object timeObject) { checkColumn(column); checkColumnDynamic(column); int index = column.getIndex(); synchronized (this) { TimeMap dynamicValue = null; if (index < attributes.length) { dynamicValue = (TimeMap) attributes[index]; } if (dynamicValue != null) { return dynamicValue.get(timeObject, column.getDefaultValue()); } } return null; }
private Object getTimeAttribute(Column column, Object timeObject) { checkColumn(column); checkColumnDynamic(column); int index = column.getIndex(); synchronized (this) { TimeMap dynamicValue = null; if (index < attributes.length) { dynamicValue = (TimeMap) attributes[index]; } if (dynamicValue != null) { return dynamicValue.get(timeObject, column.getDefaultValue()); } } return null; }
columnStore.indexStore.set(column, oldValue, column.getDefaultValue(), this);
private void copyColumns(TableImpl sourceTable, TableImpl destTable) { for (Column col : sourceTable.toArray()) { if (!col.isProperty() && !destTable.hasColumn(col.getId())) { destTable.addColumn(col.getId(), col.getTitle(), col.getTypeClass(), col.getOrigin(), col .getDefaultValue(), col.isIndexed()); } } }
columnStore.indexStore.set(column, oldValue, column.getDefaultValue(), this);
private void copyColumns(TableImpl sourceTable, TableImpl destTable) { for (Column col : sourceTable.toArray()) { if (!col.isProperty() && !destTable.hasColumn(col.getId())) { destTable.addColumn(col.getId(), col.getTitle(), col.getTypeClass(), col.getOrigin(), col .getDefaultValue(), col.isIndexed()); } } }