Package overit.geocall.sql
Class DBRow
java.lang.Object
overit.geocall.sql.DBRow
- All Implemented Interfaces:
Serializable
The class represents a row of a
DBView, with the lists of fields and original fields that compose it- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a columnvoidApply the changesvoidChanges the valuesvoidensureColumns(int n) Adds a defined number of columnReturns the original valuesReturns the list of valuesvoidremoveColumn(int pos) Removes a column in a given positionvoidsetRo()Sets read onlyvoidUndo the changes
-
Constructor Details
-
DBRow
Constructor for DBRow- Parameters:
values- The list of fields
-
-
Method Details
-
addColumn
public void addColumn()Adds a column -
removeColumn
public void removeColumn(int pos) Removes a column in a given position- Parameters:
pos- The position of the column to remove
-
ensureColumns
public void ensureColumns(int n) Adds a defined number of column- Parameters:
n- The numbero of column to add
-
applyChanges
public void applyChanges()Apply the changes -
undoChanges
public void undoChanges()Undo the changes -
changingValues
public void changingValues()Changes the values -
getOriginalValues
Returns the original values- Returns:
- The list of original values
-
getValues
Returns the list of values- Returns:
- The list of value
-
setRo
public void setRo()Sets read only
-