Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 11 java.sql.rowset.jmod - SQL Rowset Module
JDK 11 java.sql.rowset.jmod is the JMOD file for JDK 11 SQL Rowset module.
JDK 11 SQL Rowset module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.sql.rowset.jmod.
JDK 11 SQL Rowset module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 SQL Rowset module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.sql.rowset.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/rowset/internal/InsertRow.java
/* * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.rowset.internal; import com.sun.rowset.JdbcRowSetResourceBundle; import java.sql.*; import javax.sql.*; import java.io.*; import java.util.*; /** * A class used internally to manage a <code>CachedRowSet</code> object's * insert row. This class keeps track of the number of columns in the * insert row and which columns have had a value inserted. It provides * methods for retrieving a column value, setting a column value, and finding * out whether the insert row is complete. */ public class InsertRow extends BaseRow implements Serializable, Cloneable { /** * An internal <code>BitSet</code> object used to keep track of the * columns in this <code>InsertRow</code> object that have had a value * inserted. */ private BitSet colsInserted; /** * The number of columns in this <code>InsertRow</code> object. */ private int cols; private JdbcRowSetResourceBundle resBundle; /** * Creates an <code>InsertRow</code> object initialized with the * given number of columns, an array for keeping track of the * original values in this insert row, and a * <code>BitSet</code> object with the same number of bits as * there are columns. * * @param numCols an <code>int</code> indicating the number of columns * in this <code>InsertRow</code> object */ public InsertRow(int numCols) { origVals = new Object[numCols]; colsInserted = new BitSet(numCols); cols = numCols; try { resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle(); } catch(IOException ioe) { throw new RuntimeException(ioe); } } /** * Sets the bit in this <code>InsertRow</code> object's internal * <code>BitSet</code> object that corresponds to the specified column * in this <code>InsertRow</code> object. Setting a bit indicates * that a value has been set. * * @param col the number of the column to be marked as inserted; * the first column is <code>1</code> */ protected void markColInserted(int col) { colsInserted.set(col); } /** * Indicates whether this <code>InsertRow</code> object has a value * for every column that cannot be null. * @param RowSetMD the <code>RowSetMetaData</code> object for the * <code>CachedRowSet</code> object that maintains this * <code>InsertRow</code> object * @return <code>true</code> if this <code>InsertRow</code> object is * complete; <code>false</code> otherwise * @throws SQLException if there is an error accessing data */ public boolean isCompleteRow(RowSetMetaData RowSetMD) throws SQLException { for (int i = 0; i < cols; i++) { if (colsInserted.get(i) == false && RowSetMD.isNullable(i + 1) == ResultSetMetaData.columnNoNulls) { return false; } } return true; } /** * Clears all the bits in the internal <code>BitSet</code> object * maintained by this <code>InsertRow</code> object. Clearing all the bits * indicates that none of the columns have had a value inserted. */ public void initInsertRow() { for (int i = 0; i < cols; i++) { colsInserted.clear(i); } } /** * Retrieves the value of the designated column in this * <code>InsertRow</code> object. If no value has been inserted * into the designated column, this method throws an * <code>SQLException</code>. * * @param idx the column number of the value to be retrieved; * the first column is <code>1</code> * @throws SQLException if no value has been inserted into * the designated column */ public Object getColumnObject(int idx) throws SQLException { if (colsInserted.get(idx - 1) == false) { throw new SQLException(resBundle.handleGetObject("insertrow.novalue").toString()); } return (origVals[idx - 1]); } /** * Sets the element in this <code>InsertRow</code> object's * internal array of original values that corresponds to the * designated column with the given value. If the third * argument is <code>true</code>, * which means that the cursor is on the insert row, this * <code>InsertRow</code> object's internal <code>BitSet</code> object * is set so that the bit corresponding to the column being set is * turned on. * * @param idx the number of the column in the insert row to be set; * the first column is <code>1</code> * @param val the value to be set */ public void setColumnObject(int idx, Object val) { origVals[idx - 1] = val; markColInserted(idx - 1); } /** * This method re populates the resBundle * during the deserialization process * */ private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { // Default state initialization happens here ois.defaultReadObject(); // Initialization of transient Res Bundle happens here . try { resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle(); } catch(IOException ioe) { throw new RuntimeException(ioe); } } static final long serialVersionUID = 1066099658102869344L; }
⏎ com/sun/rowset/internal/InsertRow.java
Or download all of them as a single archive file:
File name: java.sql.rowset-11.0.1-src.zip File size: 332154 bytes Release date: 2018-11-04 Download
⇒ JDK 11 java.transaction.xa.jmod - Transaction XA Module
2020-08-25, 32804👍, 0💬
Popular Posts:
jlGui is a music player for the Java platform. It is based on Java Sound 1.0 (i.e. JDK 1.3+). It sup...
What Is jaxb-impl-2.1.12.jar? Java Architecture for XML Binding (JAXB) is a Java API that allows Jav...
SLF4J API is a simple API that allows to plug in any desired logging library at deployment time. Her...
Apache Log4j IOStreams is a Log4j API extension that provides numerous classes from java.io that can...
Where to find answers to frequently asked questions on Downloading and Installing ojdbc.jar - JDBC D...