java.lang.Objectorg.objectweb.telosys.common.TelosysObject
org.objectweb.telosys.common.data.DataRow
This class is a row composed of 1 to N cells of data
Each cell is indexed from 1 to N.
Constructor Summary | |
DataRow(int iSize)
Create a DataRow with N columns |
|
DataRow(int iSize,
java.lang.Object[] values)
Create a DataRow with N columns and populate it with the given values |
Method Summary | |
boolean |
getBoolean(int i)
Return the boolean value of the given position return false if null |
boolean |
getBoolean(int i,
boolean valueIfNull)
Return the boolean value of the given position |
byte |
getByte(int i)
Return the byte value of the given position (return 0 if null) |
byte |
getByte(int i,
byte valueIfNull)
Return the byte value of the given position |
java.util.Date |
getDate(int i)
Return the Date object of the given position (java.util.Date instance) |
double |
getDouble(int i)
Return the double value of the given position (return 0 if null) |
double |
getDouble(int i,
double valueIfNull)
Return the double value of the given position |
float |
getFloat(int i)
Return the float value of the given position (return 0 if null) |
float |
getFloat(int i,
float valueIfNull)
Return the float value of the given position |
int |
getInt(int i)
Return the integer value of the given position (return 0 if null) |
int |
getInt(int i,
int valueIfNull)
Return the integer value of the given position |
long |
getLong(int i)
Return the long value of the given position |
long |
getLong(int i,
long valueIfNull)
Return the long value of the given position |
java.lang.Object |
getObject(int i)
Return the object stored at the given position |
short |
getShort(int i)
Return the short value of the given position (return 0 if null) |
short |
getShort(int i,
short valueIfNull)
Return the short value of the given position |
int |
getSize()
Return the size of the row (the number of cells) ie : size = 3 for 3 cells (1 to 3) |
java.sql.Date |
getSqlDate(int i)
Return the Date object of the given position (java.sql.Date instance) |
java.lang.String |
getString(int i)
Return the String object stored at the given position |
java.lang.String |
getString(int i,
java.lang.String valueIfNull)
Return the String object stored at the given position |
protected void |
setObject(int i,
java.lang.Object obj)
Set a new object at the given column position ( 1 to N ) |
java.lang.String |
toString()
|
Methods inherited from class org.objectweb.telosys.common.TelosysObject |
error, error, error, getFlagTrace, info, setFlagTrace, trace, warn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DataRow(int iSize)
iSize
- the row size (the number of columns)public DataRow(int iSize, java.lang.Object[] values)
iSize
- the row size (the number of columns)values
- the values to populate the row cells ( standard Array : values from 0 to length-1 )Method Detail |
protected void setObject(int i, java.lang.Object obj)
i
- the columobj
- public java.lang.String toString()
public int getSize()
public java.lang.Object getObject(int i)
i
- position (1 to N)
public java.lang.String getString(int i)
i
- position (1 to N)
public java.lang.String getString(int i, java.lang.String valueIfNull)
i
- position (1 to N)valueIfNull
- the string to return if there's no object at the given position
public boolean getBoolean(int i)
i
- position in the row (1 to N)
public boolean getBoolean(int i, boolean valueIfNull)
i
- position in the row (1 to N)valueIfNull
- the value to return if there's no object at the given position
public int getInt(int i)
i
- position in the row (1 to N)
public int getInt(int i, int valueIfNull)
i
- position in the row (1 to N)valueIfNull
- the value to return if there's no object at the given position
public long getLong(int i)
i
- position in the row (1 to N)
public long getLong(int i, long valueIfNull)
i
- position in the row (1 to N)valueIfNull
- the value to return if there's no object at the given position
public short getShort(int i)
i
- position in the row (1 to N)
public short getShort(int i, short valueIfNull)
i
- position in the row (1 to N)valueIfNull
- the value to return if there's no object at the given position
public byte getByte(int i)
i
- position in the row (1 to N)
public byte getByte(int i, byte valueIfNull)
i
- position in the row (1 to N)valueIfNull
- the value to return if there's no object at the given position
public float getFloat(int i)
i
- position in the row (1 to N)
public float getFloat(int i, float valueIfNull)
i
- position in the row (1 to N)valueIfNull
- the value to return if there's no object at the given position
public double getDouble(int i)
i
- position in the row (1 to N)
public double getDouble(int i, double valueIfNull)
i
- position in the row (1 to N)valueIfNull
- the value to return if there's no object at the given position
public java.util.Date getDate(int i)
i
- position in the row (1 to N)
public java.sql.Date getSqlDate(int i)
i
- position in the row (1 to N)