public class FlatFile extends AbstractFlatFile
ResultSet
.
FlatFile
extends AbstractFlatFile
to handle text
flat files.
As the file is read, it is split into lines using the
BufferedReader.readLine(boolean)
method. Each line is then split into
tokens using a Tokenizer
. Finally, each token string is
converted into an Object
using a Parser
.
Parser
is an interface defined within this class for converting
a String
into an Object
. Parser
objects for standard types are defined as static members of this class. By
default, for each column its class is used to select one of these predefined
parsers to parse that column.
Modifier and Type | Class and Description |
---|---|
static interface |
FlatFile.Parser
Defines a method that parses a
String into an Object . |
AbstractFlatFile.FlatFileSQLException, AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
Modifier and Type | Field and Description |
---|---|
static FlatFile.Parser |
PARSE_BYTE
Implements a
Parser that converts a String to a
Byte . |
static FlatFile.Parser |
PARSE_DOUBLE
Implements a
Parser that converts a String to a
Double . |
static FlatFile.Parser |
PARSE_FLOAT
Implements a
Parser that converts a String to a
Float . |
static FlatFile.Parser |
PARSE_INTEGER
Implements a
Parser that converts a String to
an Integer . |
static FlatFile.Parser |
PARSE_LONG
Implements a
Parser that converts a String to a
Long . |
static FlatFile.Parser |
PARSE_SHORT
Implements a
Parser that converts a String to a
Short . |
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE
Constructor and Description |
---|
FlatFile(BufferedReader reader)
Creates a
FlatFile with the CSV tokenizer. |
FlatFile(BufferedReader reader,
Tokenizer tokenizer)
Creates a FlatFile from a BufferedReader.
|
FlatFile(String filename)
Creates a FlatFile from a CSV file.
|
FlatFile(String filename,
Tokenizer tokenizer)
Creates a
FlatFile from a file. |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
doGetBytes(int columnIndex)
Gets the value of the designated column in the current row as a
byte array. |
protected boolean |
doNext()
Moves the cursor down one row from its current position.
|
int |
getColumnCount()
Returns the number of columns in this
ResultSet object. |
int |
getHoldability()
Retrieves the holdability of this
ResultSet object. |
Reader |
getNCharacterStream(int columnIndex)
Retrieves the value of the designated column in the current row of this
ResultSet object as a java.io.Reader object. |
Reader |
getNCharacterStream(String columnLabel)
Retrieves the value of the designated column in the current row of this
ResultSet object as a java.io.Reader object. |
NClob |
getNClob(int columnIndex)
Retrieves the value of the designated column in the current row of this
ResultSet object as a NClob object in the Java
programming language. |
NClob |
getNClob(String columnLabel)
Retrieves the value of the designated column in the current row of this
ResultSet object as a NClob object in the Java
programming language. |
String |
getNString(int columnIndex)
Retrieves the value of the designated column in the current row of this
ResultSet object as a String in the Java
programming language. |
String |
getNString(String columnLabel)
Retrieves the value of the designated column in the current row of this
ResultSet object as a String in the Java
programming language. |
Object |
getObject(int columnIndex)
Gets the value of the designated column in the current row of this
ResultSet object as an Object in the Java
programming language. |
RowId |
getRowId(int columnIndex)
Retrieves the value of the designated column in the current row of this
ResultSet object as a java.sql.RowId object in
the Java programming language. |
RowId |
getRowId(String columnLabel)
Retrieves the value of the designated column in the current row of this
ResultSet object as a java.sql.RowId object in
the Java programming language. |
SQLXML |
getSQLXML(int columnIndex)
Retrieves the value of the designated column in the current row of this
ResultSet as a java.sql.SQLXML object in the
Java programming language. |
SQLXML |
getSQLXML(String columnLabel)
Retrieves the value of the designated column in the current row of this
ResultSet as a java.sql.SQLXML object in the
Java programming language. |
boolean |
isClosed()
Retrieves whether this
ResultSet object has been closed. |
boolean |
isWrapperFor(Class<?> iface)
Returns
true if this either implements the interface
argument or is directly or indirectly a wrapper for an object that does. |
protected String |
readLine()
Reads and returns a line from the input.
|
protected void |
setColumnClass(int columnIndex,
Class columnClass)
Sets a column class.
|
protected void |
setColumnParser(int columnIndex,
FlatFile.Parser columnParser)
Sets the Parser for the specified column.
|
protected void |
setDateColumnParser(int columnIndex,
String pattern,
Locale locale)
Creates for a pattern string and sets the Parser for the specified
column.
|
<T> T |
unwrap(Class<T> iface)
Returns an object that implements the given interface to allow access to
non-standard methods, or standard methods not exposed by the proxy.
|
void |
updateAsciiStream(int columnIndex,
InputStream x)
Updates the designated column with an ASCII stream value.
|
void |
updateAsciiStream(int columnIndex,
InputStream x,
int length)
Updates the designated column with an ASCII stream value, which is the
specified number of bytes.
|
void |
updateAsciiStream(int columnIndex,
InputStream x,
long length)
Updates the designated column with an ASCII stream value, which is the
specified number of bytes.
|
void |
updateAsciiStream(String columnLabel,
InputStream x)
Updates the designated column with an ASCII stream value.
|
void |
updateAsciiStream(String columnLabel,
InputStream x,
int length)
Updates the designated column with an ASCII stream value, which is the
specified number of bytes.
|
void |
updateAsciiStream(String columnLabel,
InputStream x,
long length)
Updates the designated column with an ASCII stream value, which is the
specified number of bytes.
|
void |
updateBinaryStream(int columnIndex,
InputStream x)
Updates the designated column with a binary stream value.
|
void |
updateBinaryStream(int columnIndex,
InputStream x,
int length)
Updates the designated column with a binary stream value, which is the
specified number of bytes.
|
void |
updateBinaryStream(int columnIndex,
InputStream x,
long length)
Updates the designated column with a binary stream value, which is the
specified number of bytes.
|
void |
updateBinaryStream(String columnLabel,
InputStream x)
Updates the designated column with a binary stream value.
|
void |
updateBinaryStream(String columnLabel,
InputStream x,
int length)
Updates the designated column with a binary stream value.
|
void |
updateBinaryStream(String columnLabel,
InputStream x,
long length)
Updates the designated column with a binary stream value.
|
void |
updateBlob(int columnIndex,
Blob x)
Updates the designated column with a
java.sql.Blob value. |
void |
updateBlob(int columnIndex,
InputStream inputStream)
Updates the designated column using the given input stream.
|
void |
updateBlob(int columnIndex,
InputStream inputStream,
long length)
Updates the designated column using the given input stream, which is the
specified number of bytes.
|
void |
updateBlob(String columnLabel,
Blob x)
Updates the designated column with a
java.sql.Blob value. |
void |
updateBlob(String columnLabel,
InputStream inputStream)
Updates the designated column using the given input stream.
|
void |
updateBlob(String columnLabel,
InputStream inputStream,
long length)
Updates the designated column using the given input stream, which is the
specified number of bytes.
|
void |
updateCharacterStream(int columnIndex,
Reader x)
Updates the designated column with a character stream value.
|
void |
updateCharacterStream(int columnIndex,
Reader x,
int length)
Updates the designated column with a character stream value, which is the
specified number of bytes.
|
void |
updateCharacterStream(int columnIndex,
Reader x,
long length)
Updates the designated column with a character stream value, which is the
specified number of bytes.
|
void |
updateCharacterStream(String columnLabel,
Reader reader)
Updates the designated column with a character stream value.
|
void |
updateCharacterStream(String columnLabel,
Reader reader,
int length)
Updates the designated column with a character stream value, which is the
specified number of bytes.
|
void |
updateCharacterStream(String columnLabel,
Reader reader,
long length)
Updates the designated column with a character stream value, which is the
specified number of bytes.
|
void |
updateClob(int columnIndex,
Clob x)
Updates the designated column with a
java.sql.Clob value. |
void |
updateClob(int columnIndex,
Reader reader)
Updates the designated column using the given
Reader object. |
void |
updateClob(int columnIndex,
Reader reader,
long length)
Updates the designated column using the given
Reader object,
which is the given number of characters long. |
void |
updateClob(String columnLabel,
Clob x)
Updates the designated column with a
java.sql.Clob value. |
void |
updateClob(String columnLabel,
Reader reader)
Updates the designated column using the given
Reader object. |
void |
updateClob(String columnLabel,
Reader reader,
long length)
Updates the designated column using the given
Reader object,
which is the given number of characters long. |
void |
updateNCharacterStream(int columnIndex,
Reader x)
Updates the designated column with a character stream value.
|
void |
updateNCharacterStream(int columnIndex,
Reader x,
long length)
Updates the designated column with a character stream value, which is the
specified number of bytes.
|
void |
updateNCharacterStream(String columnLabel,
Reader reader)
Updates the designated column with a character stream value.
|
void |
updateNCharacterStream(String columnLabel,
Reader reader,
long length)
Updates the designated column with a character stream value, which is the
specified number of bytes.
|
void |
updateNClob(int columnIndex,
NClob nClob)
Updates the designated column with a
java.sql.NClob value. |
void |
updateNClob(int columnIndex,
Reader reader)
Updates the designated column using the given
Reader . |
void |
updateNClob(int columnIndex,
Reader reader,
long length)
Updates the designated column using the given
Reader object,
which is the given number of characters long. |
void |
updateNClob(String columnLabel,
NClob nClob)
Updates the designated column with a
java.sql.NClob value. |
void |
updateNClob(String columnLabel,
Reader reader)
Updates the designated column using the given
Reader object. |
void |
updateNClob(String columnLabel,
Reader reader,
long length)
Updates the designated column using the given
Reader object,
which is the given number of characters long. |
void |
updateNString(int columnIndex,
String nString)
Updates the designated column with a
String value. |
void |
updateNString(String columnLabel,
String nString)
Updates the designated column with a String value.
|
void |
updateRowId(int columnIndex,
RowId x)
Updates the designated column with a
RowId value. |
void |
updateRowId(String columnLabel,
RowId x)
Updates the designated column with a
RowId value. |
void |
updateSQLXML(int columnIndex,
SQLXML xmlObject)
Updates the designated column with a
java.sql.SQLXML value. |
void |
updateSQLXML(String columnLabel,
SQLXML xmlObject)
Updates the designated column with a
java.sql.SQLXML value. |
absolute, afterLast, beforeFirst, beginGet, cancelRowUpdates, clearWarnings, close, deleteRow, findColumn, findColumnName, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getColumnClass, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getInt, getInt, getLong, getLong, getMetaData, getObject, getObject, getObject, getObject, getObject, getRef, getRef, getRow, getShort, getShort, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, next, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setColumnName, setFetchDirection, setFetchSize, setWarning, updateArray, updateArray, updateBigDecimal, updateBigDecimal, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateShort, updateShort, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, wasNull
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
updateObject, updateObject, updateObject, updateObject
public static final FlatFile.Parser PARSE_BYTE
Parser
that converts a String
to a
Byte
.Byte.valueOf(String)
public static final FlatFile.Parser PARSE_SHORT
Parser
that converts a String
to a
Short
.Short.valueOf(String)
public static final FlatFile.Parser PARSE_INTEGER
Parser
that converts a String
to
an Integer
.Integer.valueOf(String)
public static final FlatFile.Parser PARSE_LONG
Parser
that converts a String
to a
Long
.Long.valueOf(String)
public static final FlatFile.Parser PARSE_FLOAT
Parser
that converts a String
to a
Float
.Float.valueOf(String)
public static final FlatFile.Parser PARSE_DOUBLE
Parser
that converts a String
to a
Double
.Double.valueOf(String)
public FlatFile(BufferedReader reader, Tokenizer tokenizer)
reader
- a BufferedReader
that is the stream to be
readtokenizer
- a Tokenizer
that splits a text line into
tokens, one per columnpublic FlatFile(BufferedReader reader) throws IOException
FlatFile
with the CSV tokenizer.
The CSV tokenizer is for reading comma separated value files.
reader
- a BufferedReader
that is the stream to be
readIOException
public FlatFile(String filename) throws IOException
A CSV file is a comma separated value file.
filename
- a String
that specifies the name of the file
to be readIOException
public FlatFile(String filename, Tokenizer tokenizer) throws IOException
FlatFile
from a file.filename
- a String
that specifies the name of the file
to be readtokenizer
- a Tokenizer
that splits a text line into
tokens, one per columnIOException
public boolean isWrapperFor(Class<?> iface) throws SQLException
true
if this either implements the interface
argument or is directly or indirectly a wrapper for an object that does.
Returns false
otherwise. If this implements the interface
then return true
, else if this is a wrapper then return the
result of recursively calling isWrapperFor
on the wrapped
object. If this does not implement the interface and is not a wrapper,
return false
. This method should be implemented as a low-cost operation
compared to unwrap so that callers can use this method to avoid expensive
unwrap calls that may fail. If this method returns true
then calling
unwrap with the same argument should succeed.iface
- a Class
defining an interfaceboolean
, false
SQLException
- if an error occurs while determining whether this is
a wrapper for an object with the given interfacepublic <T> T unwrap(Class<T> iface) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
unwrap
recursively on the wrapped object or a proxy for that
result. If the receiver is not a wrapper and does not implement the
interface, then an SQLException
is thrown.T
- the argument type to be unwrappediface
- a Class
defining an interface that the result
must implementFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateRowId(int columnIndex, RowId x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
RowId
value.
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.x
- a RowId
that specifies the column valueFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateRowId(String columnLabel, RowId x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
RowId
value.
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnLabel
- a String
that indicates the label for the
column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.x
- a RowId
that specifies the column valueFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public RowId getRowId(int columnIndex) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
ResultSet
object as a java.sql.RowId
object in
the Java programming language.columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.RowId
that is the column value. If the value is a
SQL NULL
the value returned is null
.FlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public RowId getRowId(String columnLabel) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
ResultSet
object as a java.sql.RowId
object in
the Java programming language.columnLabel
- a String
that indicates the label for the
column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.RowId
that is the column value. If the value is a
SQL NULL
the value returned is null
.FlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public int getHoldability() throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
ResultSet
object.int
that is either
ResultSet.HOLD_CURSORS_OVER_COMMIT
or
ResultSet.CLOSE_CURSORS_AT_COMMIT
FlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public boolean isClosed() throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
ResultSet
object has been closed. A
ResultSet
is closed if the method close has been called on
it, or if it is automatically closed.boolean
, true
if this
ResultSet
object is closed, false
if it is
still openFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
java.sql.SQLXML
value.
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.xmlObject
- a SQLXML
object that specifies the value
for the column to be updatedFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public SQLXML getSQLXML(int columnIndex) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
ResultSet
as a java.sql.SQLXML
object in the
Java programming language.columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.SQLXML
object that maps an SQL XML valueFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public SQLXML getSQLXML(String columnLabel) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
ResultSet
as a java.sql.SQLXML
object in the
Java programming language.columnLabel
- an String
that indicates the label for
the column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.SQLXML
object that maps an SQL XML valueFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public NClob getNClob(int columnIndex) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
ResultSet
object as a NClob
object in the Java
programming language.columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.NClob
object representing the SQL
NCLOB
value in the specified columnFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public String getNString(int columnIndex) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
ResultSet
object as a String
in the Java
programming language. It is intended for use when accessing
NCHAR
, NVARCHAR
and LONGNVARCHAR
columns.columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.String
that specifies the column value. If the
value is SQL NULL
, the value returned is null
.FlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public String getNString(String columnLabel) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
ResultSet
object as a String
in the Java
programming language. It is intended for use when accessing
NCHAR
, NVARCHAR
and LONGNVARCHAR
columns.columnLabel
- an String
that indicates the label for
the column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.String
that specifies the column value. If the
value is SQL NULL
, the value returned is null
.FlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public NClob getNClob(String columnLabel) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
ResultSet
object as a NClob
object in the Java
programming language.columnLabel
- an String
that indicates the label for
the column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.NClob
object representing the SQL
NCLOB
value in the specified columnFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLFeatureNotSupportedException
java.sql.SQLXML
value.
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnLabel
- a String
that indicates the label for the
column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.xmlObject
- a SQLXML
object the specifies the column
valueFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedSQLFeatureNotSupportedException
public Reader getNCharacterStream(int columnIndex) throws SQLFeatureNotSupportedException
ResultSet
object as a java.io.Reader
object. It
is intended for use when accessing NCHAR
,
NVARCHAR
and LONGNVARCHAR
columns.columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.java.io.Reader
object that contains the column
value. If the value is SQL NULL
, the value returned is
null
in the Java programming language.FlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedSQLFeatureNotSupportedException
public void updateNString(int columnIndex, String nString) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
String
value. It is
intended for use when updating, NCHAR
, NVARCHAR
and LONGNVARCHAR
columns.
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.nString
- a String
that specifies the value for the
column to be updatedFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateNString(String columnLabel, String nString) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
NCHAR
, NVARCHAR
and
LONGNVARCHAR
columns.
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnLabel
- a String
that indicates the label for the
column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.nString
- a String
that specifies the value for the
column to be updatedFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public Reader getNCharacterStream(String columnLabel) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
ResultSet
object as a java.io.Reader
object. It
is intended for use when accessing NCHAR
,
NVARCHAR
and LONGNVARCHAR
columns.columnLabel
- a String
that indicates the label for the
column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.java.io.Reader
object that contains the column
value. If the value is SQL NULL
, the value returned is
null
in the Java programming language.FlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateAsciiStream(int columnIndex, InputStream x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.x
- a InputStream
that specifies the new column valueFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateAsciiStream(int columnIndex, InputStream x, int length) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
updateAsciiStream
in interface ResultSet
updateAsciiStream
in class AbstractFlatFile
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.x
- a InputStream
that specifies the new column valuelength
- an int
that specifies the length of the streamFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateAsciiStream(int columnIndex, InputStream x, long length) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.x
- a InputStream
that specifies the new column valuelength
- an long
that specifies the length of the
streamFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateAsciiStream(String columnLabel, InputStream x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnLabel
- a String
that indicates the label for the
column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.x
- a InputStream
that specifies the new column valueFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateAsciiStream(String columnLabel, InputStream x, int length) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
updateAsciiStream
in interface ResultSet
updateAsciiStream
in class AbstractFlatFile
columnLabel
- a String
that indicates the label for the
column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.x
- a InputStream
that specifies the new column valuelength
- an int
that specifies the length of the streamFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateAsciiStream(String columnLabel, InputStream x, long length) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnLabel
- a String
that indicates the label for the
column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.x
- a InputStream
that specifies the new column valuelength
- an long
that specifies the length of the
streamFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateBinaryStream(int columnIndex, InputStream x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.x
- a InputStream
that specifies the new column valueFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateBinaryStream(int columnIndex, InputStream x, int length) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
updateBinaryStream
in interface ResultSet
updateBinaryStream
in class AbstractFlatFile
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.x
- a InputStream
that specifies the new column valuelength
- an int
that specifies the length of the streamFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateBinaryStream(int columnIndex, InputStream x, long length) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.x
- a InputStream
that specifies the new column valuelength
- an long
that specifies the length of the
streamFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateBinaryStream(String columnLabel, InputStream x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnLabel
- a String
that indicates the label for the
column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.x
- a InputStream
that specifies the new column valueFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateBinaryStream(String columnLabel, InputStream x, int length) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
updateBinaryStream
in interface ResultSet
updateBinaryStream
in class AbstractFlatFile
columnLabel
- a String
that indicates the label for the
column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.x
- a InputStream
that specifies the new column valuelength
- an int
that specifies the length of the streamFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateBinaryStream(String columnLabel, InputStream x, long length) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnLabel
- a String
that indicates the label for the
column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.x
- a InputStream
that specifies the new column valuelength
- an long
that specifies the length of the
streamFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateBlob(int columnIndex, Blob x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
java.sql.Blob
value.
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
updateBlob
in interface ResultSet
updateBlob
in class AbstractFlatFile
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.x
- a Blob
that specifies the new column valueFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateBlob(int columnIndex, InputStream inputStream) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.inputStream
- an InputStream
that contains the data to
set the parameter value toFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateBlob(int columnIndex, InputStream inputStream, long length) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.inputStream
- an InputStream
that contains the data to
set the parameter value tolength
- an long
that specifies the number of bytes in
the parameter dataFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateBlob(String columnLabel, Blob x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
java.sql.Blob
value.
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
updateBlob
in interface ResultSet
updateBlob
in class AbstractFlatFile
columnLabel
- a String
that indicates the label for the
column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.x
- a Blob
that specifies the new column valueFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateBlob(String columnLabel, InputStream inputStream) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnLabel
- a String
that indicates the label for the
column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.inputStream
- an InputStream
that specifies the new
column valueFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateBlob(String columnLabel, InputStream inputStream, long length) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnLabel
- a String
that indicates the label for the
column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.inputStream
- an InputStream
that specifies the new
column valuelength
- an long
that specifies the number of bytes in
the parameter dataFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateCharacterStream(int columnIndex, Reader x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.x
- a Reader
that specifies the new column valueFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateCharacterStream(int columnIndex, Reader x, int length) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
updateCharacterStream
in interface ResultSet
updateCharacterStream
in class AbstractFlatFile
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.x
- a Reader
that specifies the new column valuelength
- an int
that specifies the length of the
streamFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateCharacterStream(int columnIndex, Reader x, long length) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.x
- a Reader
that specifies the new column valuelength
- an long
that specifies the length of the
streamFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateCharacterStream(String columnLabel, Reader reader) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnLabel
- a String
that indicates the label for the
column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.reader
- a Reader
that specifies the new column valueFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateCharacterStream(String columnLabel, Reader reader, int length) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
updateCharacterStream
in interface ResultSet
updateCharacterStream
in class AbstractFlatFile
columnLabel
- a String
that indicates the label for the
column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.reader
- a Reader
that specifies the new column valuelength
- an int
that specifies the length of the streamFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateCharacterStream(String columnLabel, Reader reader, long length) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnLabel
- a String
that indicates the label for the
column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.reader
- a Reader
that specifies the new column valuelength
- an long
that specifies the length of the
streamFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateClob(int columnIndex, Clob x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
java.sql.Clob
value.
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
updateClob
in interface ResultSet
updateClob
in class AbstractFlatFile
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.x
- a Clob
that specifies the new column valueFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateClob(int columnIndex, Reader reader) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
Reader
object.
The data is read from the stream as needed until end-of-stream is
reached. The JDBC driver does any necessary conversion from UNICODE to
the database char
format.
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.reader
- a Reader
that specifies the new column valueFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateClob(int columnIndex, Reader reader, long length) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
Reader
object,
which is the given number of characters long. When a very large UNICODE
value is input to a LONGVARCHAR
parameter, it may be more
practical to send it via a java.io.Reader
object. The JDBC
driver does any necessary conversion from UNICODE to the database
char
format.
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.reader
- a Reader
that specifies the new column valuelength
- a long
that specifies the number of characters
in the parameter dataFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateClob(String columnLabel, Clob x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
java.sql.Clob
value.
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
updateClob
in interface ResultSet
updateClob
in class AbstractFlatFile
columnLabel
- a String
that indicates the label for the
column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.x
- a Clob
that specifies the new column valueFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateClob(String columnLabel, Reader reader) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
Reader
object.
The data is read from the stream as needed until end-of-stream is
reached. The JDBC driver does any necessary conversion from UNICODE to
the database char
format.
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnLabel
- a String
that indicates the label for the
column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.reader
- a Reader
that specifies the new column valueFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateClob(String columnLabel, Reader reader, long length) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
Reader
object,
which is the given number of characters long. When a very large UNICODE
value is input to a LONGVARCHAR
parameter, it may be more
practical to send it via a java.io.Reader
object. The JDBC
driver does any necessary conversion from UNICODE to the database
char
format.
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnLabel
- a String
that indicates the label for the
column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.reader
- a Reader
that specifies the new column valuelength
- a long
that specifies the number of characters
in the parameter dataFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateNCharacterStream(int columnIndex, Reader x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
NCHAR
, NVARCHAR
and
LONGNVARCHAR
columns.
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.x
- a Reader
that specifies the new column valueFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateNCharacterStream(int columnIndex, Reader x, long length) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
NCHAR
,
NVARCHAR
and LONGNVARCHAR
columns.
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.x
- a Reader
that specifies the new column valuelength
- a long
that specifies the length of the streamFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateNCharacterStream(String columnLabel, Reader reader) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
NCHAR
, NVARCHAR
and
LONGNVARCHAR
columns.
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnLabel
- a String
that indicates the label for the
column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.reader
- a Reader
that specifies the new column valueFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateNCharacterStream(String columnLabel, Reader reader, long length) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
NCHAR
,
NVARCHAR
and LONGNVARCHAR
columns.
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnLabel
- a String
that indicates the label for the
column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.reader
- a Reader
that specifies the new column valuelength
- a long
that specifies the length of the streamFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateNClob(int columnIndex, NClob nClob) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
java.sql.NClob
value.
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.nClob
- an NClob
that specifies the value for the
column to be updatedFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateNClob(int columnIndex, Reader reader) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
Reader
. The
data is read from the stream as needed until end-of-stream is
reached. The JDBC driver does any necessary conversion from UNICODE to
the database char
format.
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.reader
- a Reader
that contains the data to set the
parameter value toFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateNClob(int columnIndex, Reader reader, long length) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
Reader
object,
which is the given number of characters long. When a very large UNICODE
value is input to a LONGVARCHAR
parameter, it may be more
practical to send it via a java.io.Reader
object. The JDBC
driver does any necessary conversion from UNICODE to the database
char
format.
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.reader
- a Reader
that contains the data to set the
parameter value tolength
- a long
that specifies the number of characters
in the parameter dataFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateNClob(String columnLabel, NClob nClob) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
java.sql.NClob
value.
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnLabel
- a String
that indicates the label for the
column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.nClob
- a NClob
that specifies the value for the column
to be updatedFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateNClob(String columnLabel, Reader reader) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
Reader
object.
The data is read from the stream as needed until end-of-stream is
reached. The JDBC driver does any necessary conversion from UNICODE to
the database char format.
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnLabel
- a String
that indicates the label for the
column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.reader
- a Reader
that contains the data to set the
parameter value toFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public void updateNClob(String columnLabel, Reader reader, long length) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException
Reader
object,
which is the given number of characters long. When a very large UNICODE
value is input to a LONGVARCHAR
parameter, it may be more
practical to send it via a java.io.Reader
object. The JDBC
driver does any necessary conversion from UNICODE to the database
char
format.
The updater methods are used to update column values in the current row
or the insert row. The updater methods do not update the underlying
database. Instead the updateRow
or insertRow
methods are called to update the database.
columnLabel
- a String
that indicates the label for the
column specified with the SQL AS
clause. If the SQL
AS
clause was not specified, then the label is the name of
the column.reader
- a Reader
that contains the data to set the
parameter value tolength
- a long
that specifies the number of characters
in the parameter dataFlatFileSQLFeatureNotSupportedException
- this feature has not
been implementedAbstractFlatFile.FlatFileSQLFeatureNotSupportedException
public Object getObject(int columnIndex) throws SQLException
Gets the value of the designated column in the current row of this
ResultSet
object as an Object
in the Java
programming language.
This method returns the value of the given column as a Java object. The type of the Java object is the default Java object type corresponding to the column's SQL type, following the mapping for built-in types specified in the JDBC specification.
This method may also be used to read datatabase-specific abstract data
types.
In the JDBC 2.0 API, the behavior of method getObject
is
extended to materialize data of SQL user-defined types. When a column
contains a structured or distinct value, the behavior of this method is
as if it were a call to: getObject(columnIndex,
this.getStatement().getConnection().getTypeMap())
.
getObject
in interface ResultSet
getObject
in class AbstractFlatFile
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.java.lang.Object
holding the column valueSQLException
- if a database access error occursprotected String readLine() throws IOException
String
that contains a line from the inputIOException
- thrown if an IO exception occursprotected void setColumnClass(int columnIndex, Class columnClass)
setColumnClass
in class AbstractFlatFile
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.columnClass
- a Class
object used to specify the class
of the data in the columnprotected void setColumnParser(int columnIndex, FlatFile.Parser columnParser)
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.columnParser
- a Parser
that is the parser to be used
to parse entries in the specified columnprotected void setDateColumnParser(int columnIndex, String pattern, Locale locale)
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.pattern
- a String
that specifies a pattern used to
construct a java.text.SimpleDateFormat
object used to parse
the columnlocale
- a Locale
that specifies the locale for the
date format parserprotected boolean doNext() throws SQLException
ResultSet
cursor is initially positioned before the first
row, the first call to the method next
makes the first row
the current row, the second call makes the second row the current row,
and so on.doNext
in class AbstractFlatFile
boolean
, true
if the new current row
is valid, false
if there are no more rowsSQLException
- if a database access error occursprotected byte[] doGetBytes(int columnIndex) throws SQLException
byte
array.doGetBytes
in class AbstractFlatFile
columnIndex
- an int
that specifies the column. The
first column is 1, the second 2, and so on.byte
array that contains the column value. If the
value is SQL NULL
, the value returned is null
.SQLException
- if a database access error occurspublic int getColumnCount() throws SQLException
ResultSet
object.getColumnCount
in class AbstractFlatFile
int
that specifies the number of columnsSQLException
- if a database access error occursCopyright © 2020 Rogue Wave Software. All rights reserved.