Class SQLRow
- java.lang.Object
-
- org.teichert.databaseexplorer.sqlitems.SQLRow
-
- All Implemented Interfaces:
Serializable
,Comparable<ISQLItem<SQLTable,SQLRow>>
,ISQLItem<SQLTable,SQLRow>
public class SQLRow extends Object implements ISQLItem<SQLTable,SQLRow>
Represents a row with content/values of anSQLTable
when it is loaded by an sql.
The line is separated by the columns/children of theSQLTable
and the values are saved within the list ofSQLTableValue
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SQLRow(int columnCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SQLRow
addValue(SQLTableValue value)
void
clear()
void
clearValues()
int
compareTo(ISQLItem<SQLTable,SQLRow> o)
void
copyFrom(SQLRow t)
SQLTableValue
getColumnValue(int columnIndex)
SQLTableValue
getColumnValue(String columnName)
String
getName()
SQLTable
getParent()
SQLTableValue[]
getValues()
boolean
isNew()
SQLRow
setNew(boolean isNew)
SQLRow
setParent(SQLTable parent)
SQLRow
setValue(int pos, SQLTableValue value)
void
setValues(SQLTableValue[] values)
String
toString()
-
-
-
Method Detail
-
addValue
public SQLRow addValue(SQLTableValue value)
-
setValue
public SQLRow setValue(int pos, SQLTableValue value)
-
setValues
public void setValues(SQLTableValue[] values)
-
getValues
public SQLTableValue[] getValues()
-
getColumnValue
public SQLTableValue getColumnValue(int columnIndex)
-
getColumnValue
public SQLTableValue getColumnValue(String columnName)
-
clearValues
public void clearValues()
-
setNew
public SQLRow setNew(boolean isNew)
-
isNew
public boolean isNew()
-
getParent
public SQLTable getParent()
-
copyFrom
public void copyFrom(SQLRow t)
-
-