|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jdbcimporter.ColumnValue
The ColumnValue class represents a column value. There are three types of column values:
Field Summary | |
protected byte[] |
bytes
The bytes representing the value. |
protected static int |
BYTES_TYPE
Indicates that the column value is a set of bytes |
protected java.io.InputStream |
inputStream
The input stream representing the value. |
protected int |
inputStreamLength
The length of the input stream. |
protected int |
inputType
The type of the value (must be one of STRING_TYPE, BYTES_TYPE, STREAM_TYPE, OBJECT_TYPE). |
protected java.lang.Object |
object
The object representing the value. |
protected static int |
OBJECT_TYPE
Indicates that the column value is an object |
protected static int |
STREAM_TYPE
Indicates that the column value is an input stream |
protected java.lang.String |
string
The string representing the value. |
protected static int |
STRING_TYPE
Indicates that the column value is a String |
Constructor Summary | |
ColumnValue()
|
Method Summary | |
byte[] |
getBytes()
Returns the column value as an array of bytes. |
java.io.InputStream |
getInputStream()
Returns the column value as an input stream. |
int |
getInputStreamLength()
Returns the length of the input stream. |
java.lang.Object |
getObject()
Returns the column value as an object. |
java.lang.String |
getString()
Returns the column value as a String. |
boolean |
isBytes()
Returns true if the column value is an array of bytes. |
boolean |
isInputStream()
Returns true if the column value is an input stream. |
boolean |
isObject()
Returns true if the column value is an object. |
boolean |
isString()
Returns true if the column value is a String. |
void |
setBytes(byte[] newBytes)
Sets the column value as an array of bytes. |
void |
setInputStream(java.io.InputStream newStream)
Sets the column value as an input stream. |
void |
setInputStream(java.io.InputStream newStream,
int length)
Sets the column value as an input stream. |
void |
setObject(java.lang.Object newObject)
Sets the column value as an object. |
void |
setString(java.lang.String value)
Sets the column value as a String. |
java.lang.String |
toString()
Overrides Object.toString() |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final int STRING_TYPE
protected static final int BYTES_TYPE
protected static final int STREAM_TYPE
protected static final int OBJECT_TYPE
protected java.io.InputStream inputStream
protected int inputStreamLength
protected java.lang.String string
protected byte[] bytes
protected java.lang.Object object
protected int inputType
Constructor Detail |
public ColumnValue()
Method Detail |
public java.io.InputStream getInputStream()
public int getInputStreamLength()
public void setInputStream(java.io.InputStream newStream)
newStream
- input streampublic void setInputStream(java.io.InputStream newStream, int length)
newStream
- input streamlength
- length of the input streampublic boolean isInputStream()
public java.lang.String getString()
public void setString(java.lang.String value)
value
- new column valuepublic boolean isString()
public byte[] getBytes()
public void setBytes(byte[] newBytes)
newBytes
- new column valuepublic boolean isBytes()
public java.lang.Object getObject()
public void setObject(java.lang.Object newObject)
newObject
- new column valuepublic boolean isObject()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |