RowSetFactory implementation that can be used to create different
types of RowSet implementations.
Example:
RowSetFactory aFactory = RowSetProvider.newFactory();
CachedRowSet crs = aFactory.createCachedRowSet();
...
RowSetFactory rsf = RowSetProvider.newFactory("com.sun.rowset.RowSetFactoryImpl", null);
WebRowSet wrs = rsf.createWebRowSet();
Tracing of this class may be enabled by setting the System property
javax.sql.rowset.RowSetFactory.debug to any value but false.
| Modifier and Type | Field and Description |
|---|---|
| private static boolean | debug
Internal debug flag. |
| private static final String | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private static RowSetFactory | |
| private static ClassLoader | |
| private static Class | Returns: The class which was loadedAttempt to load a class using the class loader supplied. |
| private static RowSetFactory | Returns: default RowSetFactory ImplementationUse the ServiceLoader mechanism to load the default RowSetFactory |
| public static RowSetFactory | Returns: New instance of aRowSetFactoryCreates a new instance of a |
| public static RowSetFactory | Returns: New instance of aRowSetFactoryfully qualified factory class name that
provides an implementation of factoryClassName, ClassLoader javax.sql.rowset.RowSetFactory.ClassLoader used to load the factory
class. If null current Thread's context
classLoader is used to load the factory class.Creates a new instance of a |
| private static void |
| debug | back to summary |
|---|---|
| private static boolean debug Internal debug flag. | |
| ROWSET_DEBUG_PROPERTY | back to summary |
|---|---|
| private static final String ROWSET_DEBUG_PROPERTY | |
| ROWSET_FACTORY_IMPL | back to summary |
|---|---|
| private static final String ROWSET_FACTORY_IMPL | |
| ROWSET_FACTORY_NAME | back to summary |
|---|---|
| private static final String ROWSET_FACTORY_NAME | |
| RowSetProvider | back to summary |
|---|---|
| protected RowSetProvider() RowSetProvider constructor | |
| defaultRowSetFactory | back to summary |
|---|---|
| private static RowSetFactory defaultRowSetFactory() | |
| getContextClassLoader | back to summary |
|---|---|
| private static ClassLoader getContextClassLoader() | |
| getFactoryClass | back to summary |
|---|---|
| private static Class Attempt to load a class using the class loader supplied. If that fails
and fall back is enabled, the current (i.e. bootstrap) class loader is
tried.
If the class loader supplied is
| |
| loadViaServiceLoader | back to summary |
|---|---|
| private static RowSetFactory loadViaServiceLoader() throws SQLException Use the ServiceLoader mechanism to load the default RowSetFactory
| |
| newFactory | back to summary |
|---|---|
| public static RowSetFactory newFactory() throws SQLException Creates a new instance of a
Once an application has obtained a reference to a
| |
| newFactory | back to summary |
|---|---|
| public static RowSetFactory newFactory(String factoryClassName, ClassLoader cl) throws SQLException Creates a new instance of a Once an application has obtained a reference to a
| |
| trace | back to summary |
|---|---|
| private static void trace(String msg) Debug routine which will output tracing if the System Property -Djavax.sql.rowset.RowSetFactory.debug is set
| |