|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.storage.rdbms.TableRow
public class TableRow
Represents a database row.
| Constructor Summary | |
|---|---|
TableRow(String table,
List<String> columns)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Return true if this object equals obj, false otherwise. |
boolean |
getBooleanColumn(String column)
Return the boolean value of column. |
Date |
getDateColumn(String column)
Return the date value of column. |
double |
getDoubleColumn(String column)
Return the double value of column. |
int |
getIntColumn(String column)
Return the integer value of column. |
long |
getLongColumn(String column)
Return the long value of column. |
String |
getStringColumn(String column)
Return the String value of column. |
String |
getTable()
Return the name of the table containing this row, or null if this row is not associated with a database table. |
boolean |
hasColumn(String column)
Return true if this row contains a column with this name. |
boolean |
hasColumnChanged(String column)
Return true if this row contains this column and the value has been updated. |
int |
hashCode()
Return a hash code for this object. |
boolean |
isColumnNull(String column)
Return true if the column is an SQL NULL. |
void |
setColumn(String column,
boolean b)
Set column to the boolean b. |
void |
setColumn(String column,
Date d)
Set column to the date d. |
void |
setColumn(String column,
double d)
Set column to the double d. |
void |
setColumn(String column,
int i)
Set column to the integer i. |
void |
setColumn(String column,
long l)
Set column to the long l. |
void |
setColumn(String column,
String s)
Set column to the String s. |
void |
setColumnNull(String column)
Set column to an SQL NULL. |
void |
setTable(String table)
|
String |
toString()
Return a String representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TableRow(String table,
List<String> columns)
table - The name of the database table containing this row.columns - A list of column names. Each member of the List is a String.
After construction, the list of columns is fixed; attempting
to access a column not in the list will cause an
IllegalArgumentException to be thrown.| Method Detail |
|---|
public String getTable()
public void setTable(String table)
public boolean hasColumn(String column)
column - The column name (case-insensitive)
public boolean hasColumnChanged(String column)
column - The column name (case-insensitive)
public boolean isColumnNull(String column)
column - The column name (case-insensitive)
public int getIntColumn(String column)
column - The column name (case-insensitive)
public long getLongColumn(String column)
column - The column name (case-insensitive)
public double getDoubleColumn(String column)
column - The column name (case-insensitive)
public String getStringColumn(String column)
column - The column name (case-insensitive)
public boolean getBooleanColumn(String column)
column - The column name (case-insensitive)
public Date getDateColumn(String column)
column - The column name (case-insensitive)
public void setColumnNull(String column)
column - The column name (case-insensitive)
public void setColumn(String column,
boolean b)
column - The column name (case-insensitive)b - The boolean value
public void setColumn(String column,
String s)
column - The column name (case-insensitive)s - The String value
public void setColumn(String column,
int i)
column - The column name (case-insensitive)i - The integer value
public void setColumn(String column,
long l)
column - The column name (case-insensitive)l - The long value
public void setColumn(String column,
double d)
column - The column name (case-insensitive)d - The double value
public void setColumn(String column,
Date d)
column - The column name (case-insensitive)d - The date valuepublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectobj -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||