| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final JdbcConnection | |
| private boolean | |
| private ArrayList | |
| private final ResultInterface | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | UpdatableRow(JdbcConnection
the database connection conn, ResultInterface the result result)Construct a new object that is linked to the result set. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | |
| public void | |
| private int | |
| private int | |
| public void | |
| private boolean | |
| public boolean | |
| public Value[] | |
| private void | |
| public void |
| columnCount | back to summary |
|---|---|
| private final int columnCount | |
| conn | back to summary |
|---|---|
| private final JdbcConnection conn | |
| isUpdatable | back to summary |
|---|---|
| private boolean isUpdatable | |
| key | back to summary |
|---|---|
| private ArrayList<String> key | |
| result | back to summary |
|---|---|
| private final ResultInterface result | |
| schemaName | back to summary |
|---|---|
| private String schemaName | |
| tableName | back to summary |
|---|---|
| private String tableName | |
| UpdatableRow | back to summary |
|---|---|
| public UpdatableRow(JdbcConnection conn, ResultInterface result) throws SQLException Construct a new object that is linked to the result set. The constructor reads the database meta data to find out if the result set is updatable.
| |
| appendColumnList | back to summary |
|---|---|
| private void appendColumnList(StringBuilder builder, boolean set) | |
| appendKeyCondition | back to summary |
|---|---|
| private void appendKeyCondition(StringBuilder builder) | |
| appendTableName | back to summary |
|---|---|
| private void appendTableName(StringBuilder builder) | |
| deleteRow | back to summary |
|---|---|
| public void deleteRow(Value[] current) throws SQLException Delete the given row in the database.
| |
| findColumnIndex | back to summary |
|---|---|
| private int findColumnIndex(String columnName) | |
| getColumnIndex | back to summary |
|---|---|
| private int getColumnIndex(String columnName) | |
| insertRow | back to summary |
|---|---|
| public void insertRow(Value[] row) throws SQLException Insert a new row into the database.
| |
| isIndexUsable | back to summary |
|---|---|
| private boolean isIndexUsable(ArrayList<String> indexColumns) | |
| isUpdatable | back to summary |
|---|---|
| public boolean isUpdatable() Check if this result set is updatable.
| |
| readRow | back to summary |
|---|---|
| public Value[] readRow(Value[] row) throws SQLException Re-reads a row from the database and updates the values in the array.
| |
| setKey | back to summary |
|---|---|
| private void setKey(PreparedStatement prep, int start, Value[] current) throws SQLException | |
| updateRow | back to summary |
|---|---|
| public void updateRow(Value[] current, Value[] updateRow) throws SQLException Update a row in the database.
| |