Document Details

CommendableLightYear

Uploaded by CommendableLightYear

Tata Consultancy Services

Tags

data structures collections framework java programming computer science

Summary

This document seems to be a study guide or textbook on Java Collections Framework. It includes information about different collection types (List, Deque, Queue, Set) and their respective implementations. It contains method signatures, descriptions, and examples.

Full Transcript

# Collections1 ## Interface Implementations | Interface | Implementations | |---|---| | Collection | add(E e) clear() addAll(Collection c) contains(E e) containsAll(Collection c) removeRange() | | List | add(int I, E e) addAll(Collection c) get(int I) indexOf(E e) lastIndexOf(E e) lis...

# Collections1 ## Interface Implementations | Interface | Implementations | |---|---| | Collection | add(E e) clear() addAll(Collection c) contains(E e) containsAll(Collection c) removeRange() | | List | add(int I, E e) addAll(Collection c) get(int I) indexOf(E e) lastIndexOf(E e) listIterator() listIterator(int I) remove(int I) replaceAll(UnaryOperator op) sort() subList | | Deque | offerFirst(E e) offerLast(E e) peekFirst() peekLast() pollFirst() pollLast() pop() push(E e) removeFirst() removeFirstOccurrence(E e) removeLast() removeLastOccurrence(E e) addFirst(E e) addLast(E e) descendingIterator() element() getFirst() getLast() | | Queue | element() offer() peek() poll() remove() | | Set | offerFirst(e, time, unit), offerLast(e, time , unit) pollFirst(time, unit), pollLast(time, unit) | | Blocking | takeFirst(), takeLast() putFirst(E e), putLast(E e) offerFirst(e, time, unit), offerLast(e, time , unit) pollFirst(time, unit), pollLast(time, unit) | | Blocking | take() put(E e) offer(e, time, unit) poll(time, unit) | | Navigable Set | ceiling(E e) comparator() descendingIterator() descendingSet() floor(E e) headSet(E e, boolean inclusive) headSet(E e) higher(E e) lower(E e) pollFirst() pollLast() subSet(E e, boolean inclusive, E e, boolean inclusive) subSet(E e, E e) tailSet(E e, boolean inclusive) tailSet(E e) | | Sorted Set | comparator() first() headSet(E e) last() spliterator() subSet(E e, E e) tailSet( E e) | ## List Implementations - **AbstractList**: Skeletal List implementation - **AbstractSequentialList**: Skeletal LinkedList Implementation - **ArrayList**: A resizable array of objects - **AttributeList**: List of values of an Mbean - **CopyOnWriteArrayList**: A thread-safe arraylist in which all mutative operations generate a new copy of the underlying array - **LinkedList**: A doubly linked implementation of List an Deque - **RoleList**: A list of Role objects for use with relation functions – setRole(Role role); - **RoleUnresolvedList**: A list of RoleUnresolved objects. Roles not retrieved from a relation due to problems in relation operation - **Vector**: A resizable array of objects ## Queue Implementations - **Abstract Queue**: Skeletal Queue implementation - **ArrayBlockingQueue**: Bounded blocking queue - **ArrayDeque**: Resizable array implementation of deque interface - **ConcurrentLinkedDeque**: Unbound concurrent implementation of Deque - **ConcurrentLinkedQueue**: Unbound concurrent implementation of Queue - **DelayQueue**: Unbound blocking queue of delayed elements that must remain in queue until delay expired - **LinkedBlockingQueue**: An optionally-bounded blocking deque based on a linked nodes - **LinkedBlockingDeque**: An optionally-bounded blocking queue based on linked nodes - **LinkedTransferQueue**: An unbounded transfer queue based on linked nodes - **PriorityBlockingQueue**: An unbounded blocking queue that orders like PriorityQueue - **PriorityQueue**: An unbounded priority queue based on the priority heap - **SynchronousQueue**: A blocking queue in which each insert operation must wait on a corresponding remove operation by another thread, and vice versa. ## Set Implementations - **AbstractSet**: Skeletal implementation of the set interface - **ConcurrentHashMap.KeySetView**: A concurrent HashMap as a set of Keys - **ConcurrentSkipListSet**: A scalable concurrent navigable set - **CopyOnWriteArraySet**: A thread-safe arraylist in which all mutative operations generate a new copy of the underlying array - **EnumSet**: A specialized set implementation for use with Enums - **HashSet**: Implements set interface, backed by hash table - **JobStateReasons**: Printing attribute class that describes the print job’s current state - **LinkedHashSet**: LinkedList implementation of the set interface; maintain order without using a TreeSet - **TreeSet**: A navigable set implementation based on TreeMap ## Synchronize | Backing | Permits Null | Synchronize d | RAD such as an array | Sequential Access Data Store | Resizable Array | ArrayList<Obj ect> | List and Deque | ArrayList<Rol e> | ArrayList<Rol eUnresolved > | Growable Array | Queue | Array | Array | Nodes | Nodes | BlockingQue ue | Nodes | |---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---| | Array | Y | N | Y | N | Y | Y | Y | N | Y | Y | N | Y | N | N | Y | N | Y | | List and Deque | Y | N | Y | N | Y | Y | Y | Y | N | Y | N | Y | N | N | Y | N | N | | ArrayList<Rol e> | Y | N | Y | Y | N | Y | N | N | N | Y | N | Y | N | N | Y | N | N | | ArrayList<Rol eUnresolved > | Y | N | Y | Y | N | Y | N | N | Y | Y | Y | N | Y | N | N | Y | N | N | | Growable Array | Y | Y | Y | N | N | Y | N | N | N | Y | Y | N | N | N | Y | Y | N | N | | BlockingQue ue | N | N | N | N | N | Y | N | N | N | N | N | N | Y | N | N | N | N | # JDBC ## ResultSet ### Constants | Constant | Description | |---|---| | CLOSE_CURSORS_AT_COMMIT | The constant indicating that open ResultSet objects with this holdability will be closed when the current transaction is committed. | | CONCUR_READ_ONLY | The constant indicating the concurrency mode for a ResultSet object that may NOT be updated. | | CONCUR_UPDATABLE | The constant indicating the concurrency mode for a ResultSet object that may be updated. | | FETCH_FORWARD | The constant indicating that the rows in a result set will be processed in a forward direction; first-to-last. | | FETCH_REVERSE | The constant indicating that the rows in a result set will be processed in a reverse direction; last-to-first. | | FETCH_UNKNOWN | The constant indicating that the order in which rows in a result set will be processed is unknown. | | HOLD_CURSORS_OVER_COMMIT | The constant indicating that open ResultSet objects with this holdability will remain open when the current transaction is committed. | | TYPE_FORWARD_ONLY | The constant indicating the type for a ResultSet object whose cursor may move only forward. | | TYPE_SCROLL_INSENSITIVE | The constant indicating the type for a ResultSet object that is scrollable but generally not sensitive to changes to the data that underlies the ResultSet. | | TYPE_SCROLL_SENSITIVE | The constant indicating the type for a ResultSet object that is scrollable and generally sensitive to changes to the data that underlies the ResultSet. | ### Methods | Method Signature | Description | |---|---| | afterLast() | Moves the cursor to the end of this ResultSet object, just after the last row. | | beforeFirstRow() | Moves the cursor to the front of this ResultSet object, just before the first row. | | cancelRowUpdates() | Cancels the updates made to the current row in this ResultSet object. | | clearWarnings() | Clears all warnings reported on this ResultSet object. | | close() | Releases this ResultSet object's database and JDBC resources immediately instead of waiting for this to happen when it is automatically closed. | | deleteRow() | Deletes the current row from this ResultSet object and from the underlying database. | | findColumn(String columnName) | Maps the given ResultSet column label to its ResultSet column index. | | first() | Moves the cursor to the first row in this ResultSet object. | | getConcurrency() | Retrieves the concurrency mode of this ResultSet object. | | getCursorName() | Retrieves the name of the SQL cursor used by this ResultSet object. | | `getFetchDirection()` | Retrieves the fetch direction for this ResultSet object. | | `getFetchSize()` | Retrieves the fetch size for this ResultSet object. | | `getHoldability()` | Retrieves the holdability of this ResultSet object. | | getMetaData() | Retrieves the number, types and properties of this ResultSet object's columns. | | getRow() | Retrieves the current row number. | | getType() | Retrieves the type of this ResultSet object. | | absolute(int row) | Moves the cursor to the given row number in this ResultSet object. | | `getArray( int columnIndex )` | Retrieves the value of the designated column in the current row of this ResultSet object as an Array object in the Java programming language. | | `getArray( String columnLabel )` | Retrieves the value of the designated column in the current row of this ResultSet object as an Array object in the Java programming language. | | `getBigDecimal( int columnIndex, int scale )` | Deprecated. Use getBigDecimal(int columnIndex) or getBigDecimal(String columnLabel) | | `getBigDecimal( int columnIndex )` | Retrieves the value of the designated column in the current row of this ResultSet object as a java.math.BigDecimal with full precision. | | `getBigDecimal( String columnLabel, int scale )` | Deprecated. Use getBigDecimal(int columnIndex) or getBigDecimal(String columnLabel) | | `getBigDecimal( String columnLabel )` | Retrieves the value of the designated column in the current row of this ResultSet object as a java.math.BigDecimal with full precision. | | `getBinaryStream( int columnIndex )` | Retrieves the value of the designated column in the current row of this ResultSet object as a stream of uninterpreted bytes. | | `getBinaryStream( String columnLabel )` | Retrieves the value of the designated column in the current row of this ResultSet object as a stream of uninterpreted bytes. | | `getBlob( int columnIndex )` | Retrieves the value of the designated column in the current row of this ResultSet object as a Blob object in the Java programming language. | | `getBlob( String columnLabel )` | Retrieves the value of the designated column in the current row of this ResultSet object as a Blob object in the Java programming language. | | `getBoolean( int columnIndex )` | Retrieves the value of the designated column in the current row of this ResultSet object as a boolean in the Java programming language. | | `getBoolean( String columnLabel )` | Retrieves the value of the designated column in the current row of this ResultSet object as a boolean in the Java programming language. | | `getByte( int columnIndex )` | Retrieves the value of the designated column in the current row of this ResultSet object as a byte in the Java programming language. | | `getByte( String columnLabel )` | Retrieves the value of the designated column in the current row of this ResultSet object as a byte in the Java programming language. | | `getBytes( int columnIndex )` | Retrieves the value of the designated column in the current row of this ResultSet object as a byte array in the Java programming language. | | `getBytes( String columnLabel )` | Retrieves the value of the designated column in the current row of this ResultSet object as a byte array in the Java programming language. | | `getClob( int columnIndex )` | Retrieves the value of the designated column in the current row of this ResultSet object as a Clob object in the Java programming language. | | `getClob( String columnLabel )` | Retrieves the value of the designated column in the current row of this ResultSet object as a Clob object in the Java programming language. | | `getCharacterStream( int columnIndex )` | Retrieves the value of the designated column in the current row of this ResultSet object as a java.io.Reader object. | | `getCharacterStream( String columnLabel )` | Retrieves the value of the designated column in the current row of this ResultSet object as a java.io.Reader object. | | `getDate( int columnIndex, Calendar cal )` | Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language. | | `getDate( int columnIndex )` | Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language. | | `getDate( String columnLabel, Calendar cal )` | Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language. | | `getDate( String columnLabel )` | Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language. | | `getDouble( int columnIndex )` | Retrieves the value of the designated column in the current row of this ResultSet object as a double in the Java programming language. | | `getDouble( String columnLabel )` | Retrieves the value of the designated column in the current row of this ResultSet object as a double in the Java programming language. | | `getFloat( int columnIndex )` | Retrieves the value of the designated column in the current row of this ResultSet object as a float in the Java programming language. | | `getFloat( String columnLabel )` | Retrieves the value of the designated column in the current row of this ResultSet object as a float in the Java programming language. | | `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. | | `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. | | `getNCharacterStream( int columnIndex )` | Retrieves the value of the designated column in the current row of this ResultSet object as a java.io.Reader object. | | `getNCharacterStream( String columnLabel )` | Retrieves the value of the designated column in the current row of this ResultSet object as a java.io.Reader object. | | `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. | | `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. | | `getObject( int columnIndex, Map< String, Class<? > > map )` | Gets the value of the designated column in the current row of this ResultSet object as an Object in the Java programming language. | | `getObject( int columnIndex, Class< T > type )` | Retrieves the value of the designated column in the current row of this ResultSet object and will convert from the SQL type of the column to the requested Java data type, if the conversion is supported. | | `getObject( String columnLabel )` | Gets the value of the designated column in the current row of this ResultSet object as an Object in the Java programming language. | | `getObject( String columnLabel, Map< String, Class<? > > map )` | Retrieves the value of the designated column in the current row of this ResultSet object as an Object in the Java programming language. | | `getObject( String columnLabel, Class< T > type )` | Retrieves the value of the designated column in the current row of this ResultSet object and will convert from the SQL type of the column to the requested Java data type, if the conversion is supported. | | `getLong( int columnIndex )` | Retrieves the value of the designated column in the current row of this ResultSet object as a long in the Java programming language. | | `getLong( String columnLabel )` | Retrieves the value of the designated column in the current row of this ResultSet object as a long in the Java programming language. | | `getRef( int columnIndex )` | Retrieves the value of the designated column in the current row of this ResultSet object as a Ref object in the Java programming language. | | `getRef( String columnLabel )` | Retrieves the value of the designated column in the current row of this ResultSet object as a Ref object in the Java programming language. | | `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. | | `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. | | `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. | | `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. | | `getShort( int columnIndex )` | Retrieves the value of the designated column in the current row of this ResultSet object as a short in the Java programming language. | | `getShort( String columnLabel )` | Retrieves the value of the designated column in the current row of this ResultSet object as a short in the Java programming language. | | `getStatement()` | Retrieves the Statement object that produced this ResultSet object. | | `getString( 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. | | `getString( 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. | | `getTime( int columnIndex, Calendar cal )` | Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language. | | `getTime( int columnIndex )` | Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language. | | `getTime( String columnLabel, Calendar cal )` | Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language. | | `getTime( String columnLabel )` | Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language. | | `getTimestamp( int columnIndex, Calendar cal )` | Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language. | | `getTimestamp( int columnIndex )` | Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language. | | `getTimestamp( String columnLabel, Calendar cal )` | Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language. | | `getTimestamp( String columnLabel )` | Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language. | | `getUnicodeStream( int columnIndex )` | Deprecated. Use getCharacterStream in place of getUnicodeStream | | `getUnicodeStream( String columnLabel )` | Deprecated. Use getCharacterStream instead | | `getURL( int columnIndex )` | Retrieves the value of the designated column in the current row of this ResultSet object as a java.net.URL object in the Java programming language. | | `getURL( String columnLabel )` | Retrieves the value of the designated column in the current row of this ResultSet object as a java.net.URL object in the Java programming language. | | `isAfterLast()` | Retrieves whether the cursor is after the last row in this ResultSet object. | | `isBeforeFirst()` | Retrieves whether the cursor is before the first row in this ResultSet object. | | `isClosed()` | Retrieves whether this ResultSet object has been closed. | | `isFirst()` | Retrieves whether the cursor is on the first row of this ResultSet object. | | `isLast()` | Retrieves whether the cursor is on the last row of this ResultSet object. | | `last()` | Moves the cursor to the last row in this ResultSet object. | | `next()` | Moves the cursor forward one row from its current position. | | `previous()` | Moves the cursor to the previous row in this ResultSet object. | | `refreshRow()` | Refreshes the current row with its most recent value in the database. | | `relative( int rows )` | Moves the cursor a relative number of rows, either positive or negative. | | `rowDeleted()` | Retrieves whether a row has been deleted. | | `rowInserted()` | Retrieves whether the current row has had an insertion. | | `rowUpdated()` | Retrieves whether the current row has been updated. | | `wasNull()` | Reports whether the last column read had a value of SQL NULL. | | `updateArray( int columnIndex, Array x )` | Updates the designated column with a java.sql.Array value. | | `updateArray( String columnLabel, Array x )` | Updates the designated column with a java.sql.Array value. | | `updateAsciiStream( int columnIndex, InputStream x, int length )` | Updates the designated column with an ascii stream value, which will have the specified number of bytes. | | `updateAsciiStream( int columnIndex, InputStream x, long length )` | Updates the designated column with an ascii stream value, which will have the specified number of bytes. | | `updateAsciiStream( int columnIndex, InputStream x )` | Updates the designated column with an ascii stream value. | | `updateAsciiStream( String columnLabel, InputStream x, int length )` | Updates the designated column with an ascii stream value, which will have the specified number of bytes. | | `updateAsciiStream( String columnLabel, InputStream x, long length )` | Updates the designated column with an ascii stream value, which will have the specified number of bytes. | | `updateAsciiStream( String columnLabel, InputStream x )` | Updates the designated column with an ascii stream value. | | `updateBigDecimal( int columnIndex, BigDecimal x )` | Updates the designated column with a java.math.BigDecimal value. | | `updateBigDecimal( String columnLabel, BigDecimal x )` | Updates the designated column with a java.math.BigDecimal value. | | `updateBinaryStream( int columnIndex, InputStream x, int length )` | Updates the designated column with a binary stream value, which will have the specified number of bytes. | | `updateBinaryStream( int columnIndex, InputStream x, long length )` | Updates the designated column with a binary stream value, which will have the specified number of bytes. | | `updateBinaryStream( int columnIndex, InputStream x )` | Updates the designated column with a binary stream value. | | `updateBinaryStream( String columnLabel, InputStream x, int length )` | Updates the designated column with a binary stream value, which will have the specified number of bytes. | | `updateBinaryStream( String columnLabel, InputStream x, long length )` | Updates the designated column with a binary stream value, which will have the specified number of bytes. | | `updateBinaryStream( String columnLabel, InputStream x )` | Updates the designated column with a binary stream value. | | `updateBlob( int columnIndex, Blob x )` | Updates the designated column with a java.sql.Blob value. | | `updateBlob( int columnIndex, InputStream inputStream, long length )` | Updates the designated column using the given input stream, which will have the specified number of bytes. | | `updateBlob( int columnIndex, InputStream inputStream )` | Updates the designated column using the given input stream. | | `updateBlob( String columnLabel, Blob x )` | Updates the designated column with a java.sql.Blob value. | | `updateBlob( String columnLabel, InputStream inputStream, long length )` | Updates the designated column using the given input stream, which will have the specified number of bytes. | | `updateBlob( String columnLabel, InputStream inputStream )` | Updates the designated column using the given input stream. | | `updateBoolean( int columnIndex, boolean x )` | Updates the designated column with a boolean value. | | `updateBoolean( String columnLabel, boolean x )` | Updates the designated column with a boolean value. | | `updateByte( int columnIndex, byte x )` | Updates the designated column with a byte value. | | `updateByte( String columnLabel, byte x )` | Updates the designated column with a byte value. | | `updateBytes( int columnIndex, byte[] x )` | Updates the designated column with a byte array value. | | `updateBytes( String columnLabel, byte[] x )` | Updates the designated column with a byte array value. | | `updateCharacterStream( int columnIndex, Reader x, int length )` | Updates the designated column with a character stream value, which will have the specified number of bytes. | | `updateCharacterStream( int columnIndex, Reader x, long length )` | Updates the designated column with a character stream value, which will have the specified number of bytes. | | `updateCharacterStream( int columnIndex, Reader x )` | Updates the designated column with a character stream value. | | `updateCharacterStream( String columnLabel, Reader reader, int length )` | Updates the designated column with a character stream value, which will have the specified number of bytes. | | `updateCharacterStream( String columnLabel, Reader reader, long length )` | Updates the designated column with a character stream value, which will have the specified number of bytes. | | `updateCharacterStream( String columnLabel, Reader reader )` | Updates the designated column with a character stream value. | | `updateClob( int columnIndex, Clob x )` | Updates the designated column with a java.sql.Clob value. | | `updateClob( int columnIndex, Reader reader, long length )` | Updates the designated column using the given Reader object, which is the given number of characters long. | | `updateClob( int columnIndex, Reader reader )` | Updates the designated column using the given Reader object. | | `updateClob( String columnLabel, Clob x )` | Updates the designated column with a java.sql.Clob value. | | `updateClob( String columnLabel, Reader reader, long length )` | Updates the designated column using the given Reader object, which is the given number of characters long. | | `updateClob( String columnLabel, Reader reader )` | Updates the designated column using the given Reader object. | | `updateDate( int columnIndex, Date x )` | Updates the designated column with a java.sql.Date value. | | `updateDate( String columnLabel, Date x )` | Updates the designated column with a java.sql.Date value. | | `updateDouble( int columnIndex, double x )` | Updates the designated column with a double value. | | `updateDouble( String columnLabel, double x )` | Updates the designated column with a double value. | | `updateFloat( int columnIndex, float x )` | Updates the designated column with a float value. | | `updateFloat( String columnLabel, float x )` | Updates the designated column with a float value. | | `updateInt( int columnIndex, int x )` | Updates the designated column with an int value. | | `updateInt( String columnLabel, int x )` | Updates the designated column with an int value. | | `updateLong( int columnIndex, long x )` | Updates the designated column with a long value. | | `updateLong( String columnLabel, long x )` | Updates the designated column with a long value. | | `updateNCharacterStream( int columnIndex, Reader x, int length )` | Updates the designated column with a character stream value, which will have the specified number of bytes. | | `updateNCharacterStream( int columnIndex, Reader x, long length )` | Updates the designated column with a character stream value, which will have the specified number of bytes. | | `updateNCharacterStream( int columnIndex, Reader x )` | Updates the designated column with a character stream value. | | `updateNCharacterStream( String columnLabel, Reader reader, int length )` | Updates the designated column with a character stream value, which will have the specified number of bytes. | | `updateNCharacterStream( String columnLabel, Reader reader, long length )` | Updates the designated column with a character stream value, which will have the specified number of bytes. | | `updateNCharacterStream( String columnLabel, Reader reader )` | Updates the designated column with a character stream value. | | `updateNClob( int columnIndex, NClob nClob )` | Updates the designated column with a java.sql.NClob value. | | `updateNClob( int columnIndex, Reader reader, long length )` | Updates the designated column using the given Reader object, which is the given number of characters long. | | `updateNClob( int columnIndex, Reader reader )` | Updates the designated column using the given Reader The data will be read from the stream as needed until end-of-stream is reached. | | `updateNClob( String columnLabel, NClob nClob )` | Updates the designated column with a java.sql.NClob value. | | `updateNClob( String columnLabel, Reader reader, long length )` | Updates the designated column using the given Reader object, which is the given number of characters long. | | `updateNClob( String columnLabel, Reader reader )` | Updates the designated column using the given Reader object. | | `updateNString( int columnIndex, String nString )` | Updates the designated column with a String value. | | `updateNString( String columnLabel, String nString )` | Updates the designated column with a String value. | | `updateNull( int columnIndex )` | Updates the designated column with a null value. | | `updateNull( String columnLabel )` | Updates the designated column with a null value. | | `updateObject( int columnIndex, Object x, int scaleOrLength )` | Updates the designated column with an Object value. | | `updateObject( int columnIndex, Object x, SQLType targetSqlType )` | Updates the designated column with an Object value. | | `updateObject( int columnIndex, Object x, SQLType targetSqlType, int scaleOrLength )` | Updates the designated column with an Object value. | | `updateObject( int columnIndex, Object x )` | Updates the designated column with an Object value. | | `updateObject( String columnLabel, Object x, int scaleOrLength )` | Updates the designated column with an Object value. | | `updateObject( String columnLabel, Object x, SQLType targetSqlType )` | Updates the designated column with an Object value. | | `updateObject( String columnLabel, Object x, SQLType targetSqlType, int scaleOrLength )` | Updates the designated column with an Object value. | | `updateObject( String columnLabel, Object x )` | Updates the designated column with an Object value. | | `updateRef( int columnIndex, Ref x )` | Updates the designated column with a java.sql.Ref value. | | `updateRef( String columnLabel, Ref x )` | Updates the designated column with a java.sql.Ref value. | | `updateRowId( int columnIndex, RowId x )` | Updates the designated column with a RowId value. | | `updateRowId( String columnLabel, RowId x )` | Updates the designated column with a RowId value. | | `updateRow()` | Updates the underlying database with the new contents of the current row of this ResultSet object. | | `updateShort( int columnIndex, short x )` | Updates the designated column with a short value. | | `updateShort( String columnLabel, short x )` | Updates the designated column with a short value. | | `updateSQLXML( int columnIndex, SQLXML xmlObject )` | Updates the designated column with a java.sql.SQLXML value. | | `updateSQLXML( String columnLabel, SQLXML xmlObject )` | Updates the designated column with a java.sql.SQLXML value. | | `updateString( int columnIndex, String x )` | Updates the designated column with a String value. | | `updateString( String columnLabel, String x )` | Updates the designated column with a String value. | | `updateTime( int columnIndex, Time x )` | Updates the designated column with a java.sql.Time value. | | `updateTime( String columnLabel, Time x )` | Updates the designated column with a java.sql.Time value. | | `updateTimestamp( int columnIndex, Timestamp x )` | Updates the designated column with a java.sql.Timestamp value. | | `updateTimestamp( String columnLabel, Timestamp x )` | Updates the designated column with a java.sql.Timestamp value. | | `updateBlob( int columnIndex, InputStream inputStream )` | Updates the designated column using the given input stream. | | `updateBlob( int columnIndex, InputStream inputStream, long length )` | Updates the

Use Quizgecko on...
Browser
Browser