mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-25 04:47:53 +00:00
6984044: RowSet source needs to rebrand vendor references
Reviewed-by: darcy, ohair
This commit is contained in:
parent
07ebbaac23
commit
11bbc5d5bc
@ -248,7 +248,7 @@ public class WebRowSetXmlWriter implements XmlWriter, Serializable {
|
||||
String strProvider = strProviderInstance.substring(0, (caller.getSyncProvider()).toString().indexOf("@"));
|
||||
|
||||
propString("sync-provider-name", strProvider);
|
||||
propString("sync-provider-vendor", "Sun Microsystems Inc.");
|
||||
propString("sync-provider-vendor", "Oracle Corporation");
|
||||
propString("sync-provider-version", "1.0");
|
||||
propInteger("sync-provider-grade", caller.getSyncProvider().getProviderGrade());
|
||||
propInteger("data-source-lock", caller.getSyncProvider().getDataSourceLock());
|
||||
|
||||
@ -93,14 +93,14 @@ public final class RIOptimisticProvider extends SyncProvider implements Serializ
|
||||
private CachedRowSetWriter writer;
|
||||
|
||||
/**
|
||||
* The unique provider indentifier.
|
||||
* The unique provider identifier.
|
||||
*/
|
||||
private String providerID = "com.sun.rowset.providers.RIOptimisticProvider";
|
||||
|
||||
/**
|
||||
* The vendor name of this SyncProvider implementation
|
||||
*/
|
||||
private String vendorName = "Sun Microsystems Inc.";
|
||||
private String vendorName = "Oracle Corporation";
|
||||
|
||||
/**
|
||||
* The version number of this SyncProvider implementation
|
||||
@ -236,8 +236,8 @@ public final class RIOptimisticProvider extends SyncProvider implements Serializ
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the vendor name of the Reference Implemntation Optimistic
|
||||
* Syncchronication Provider
|
||||
* Returns the vendor name of the Reference Implementation Optimistic
|
||||
* Synchronization Provider
|
||||
*
|
||||
* @return the <code>String</code> detailing the vendor name of this
|
||||
* SyncProvider
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -85,7 +85,7 @@ public final class RIXMLProvider extends SyncProvider {
|
||||
/**
|
||||
* The vendor name of this SyncProvider implementation.
|
||||
*/
|
||||
private String vendorName = "Sun Microsystems Inc.";
|
||||
private String vendorName = "Oracle Corporation";
|
||||
|
||||
/**
|
||||
* The version number of this SyncProvider implementation.
|
||||
|
||||
@ -39,7 +39,7 @@ import javax.sql.rowset.spi.*;
|
||||
* <code>CachedRowSet</code> must implement.
|
||||
* <P>
|
||||
* The reference implementation of the <code>CachedRowSet</code> interface provided
|
||||
* by Sun Microsystems is a standard implementation. Developers may use this implementation
|
||||
* by Oracle Corporation is a standard implementation. Developers may use this implementation
|
||||
* just as it is, they may extend it, or they may choose to write their own implementations
|
||||
* of this interface.
|
||||
* <P>
|
||||
@ -1623,4 +1623,3 @@ public interface CachedRowSet extends RowSet, Joinable {
|
||||
public boolean previousPage() throws SQLException;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -115,7 +115,7 @@ import org.xml.sax.*;
|
||||
* <<font color=red>url</font>>jdbc:thin:oracle<<font color=red>/url</font>>
|
||||
* <<font color=red>sync-provider</font>>
|
||||
* <<font color=red>sync-provider-name</font>>.com.rowset.provider.RIOptimisticProvider<<font color=red>/sync-provider-name</font>>
|
||||
* <<font color=red>sync-provider-vendor</font>>Sun Microsystems<<font color=red>/sync-provider-vendor</font>>
|
||||
* <<font color=red>sync-provider-vendor</font>>Oracle Corporation<<font color=red>/sync-provider-vendor</font>>
|
||||
* <<font color=red>sync-provider-version</font>>1.0<<font color=red>/sync-provider-name</font>>
|
||||
* <<font color=red>sync-provider-grade</font>>LOW<<font color=red>/sync-provider-grade</font>>
|
||||
* <<font color=red>data-source-lock</font>>NONE<<font color=red>/data-source-lock</font>>
|
||||
@ -489,7 +489,7 @@ public interface WebRowSet extends CachedRowSet {
|
||||
* tags and their valid values for a <code>WebRowSet</code> implementation.
|
||||
*/
|
||||
public static String PUBLIC_XML_SCHEMA =
|
||||
"--//Sun Microsystems, Inc.//XSD Schema//EN";
|
||||
"--//Oracle Corporation//XSD Schema//EN";
|
||||
|
||||
/**
|
||||
* The URL for the XML Schema definition file that defines the XML tags and
|
||||
|
||||
@ -3,10 +3,10 @@
|
||||
|
||||
# Optimistic synchonriztaion provider
|
||||
rowset.provider.classname.0=com.sun.rowset.providers.RIOptimisticProvider
|
||||
rowset.provider.vendor.0=Sun Microsystems Inc
|
||||
rowset.provider.vendor.0=Oracle Corporation
|
||||
rowset.provider.version.0=1.0
|
||||
|
||||
# XML Provider using standard XML schema
|
||||
rowset.provider.classname.1=com.sun.rowset.providers.RIXMLProvider
|
||||
rowset.provider.vendor.1=Sun Microsystems Inc.
|
||||
rowset.provider.vendor.1=Oracle Corporation
|
||||
rowset.provider.version.1=1.0
|
||||
|
||||
@ -125,12 +125,12 @@ import javax.naming.*;
|
||||
*
|
||||
* # Optimistic synchronization provider
|
||||
* rowset.provider.classname.0=com.sun.rowset.providers.RIOptimisticProvider
|
||||
* rowset.provider.vendor.0=Sun Microsystems Inc
|
||||
* rowset.provider.vendor.0=Oracle Corporation
|
||||
* rowset.provider.version.0=1.0
|
||||
*
|
||||
* # XML Provider using standard XML schema
|
||||
* rowset.provider.classname.1=com.sun.rowset.providers.RIXMLProvider
|
||||
* rowset.provider.vendor.1=Sun Microsystems Inc.
|
||||
* rowset.provider.vendor.1=Oracle Corporation
|
||||
* rowset.provider.version.1=1.0
|
||||
* </PRE>
|
||||
* The <code>SyncFactory</code> checks this file and registers the
|
||||
@ -369,7 +369,7 @@ public class SyncFactory {
|
||||
try {
|
||||
|
||||
// check if user is supplying his Synchronisation Provider
|
||||
// Implementation if not use Sun's implementation.
|
||||
// Implementation if not using Oracle's implementation.
|
||||
// properties.load(new FileInputStream(ROWSET_PROPERTIES));
|
||||
|
||||
// The rowset.properties needs to be in jdk/jre/lib when
|
||||
|
||||
@ -91,8 +91,8 @@ import javax.sql.*;
|
||||
* </pre>
|
||||
* <p>
|
||||
* A vendor can register a <code>SyncProvider</code> implementation class name
|
||||
* with Sun Microsystems, Inc. by sending email to jdbc@sun.com.
|
||||
* Sun will maintain a database listing the
|
||||
* with Oracle Corporation by sending email to jdbc@sun.com.
|
||||
* Oracle will maintain a database listing the
|
||||
* available <code>SyncProvider</code> implementations for use with compliant
|
||||
* <code>RowSet</code> implementations. This database will be similar to the
|
||||
* one already maintained to list available JDBC drivers.
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
<meta name="GENERATOR"
|
||||
content="Mozilla/4.79 [en] (Windows NT 5.0; U) [Netscape]">
|
||||
<!--
|
||||
Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
This code is free software; you can redistribute it and/or modify it
|
||||
@ -199,7 +199,7 @@ specification for further details.
|
||||
Vendors may develop a <tt>SyncProvider</tt> implementation with any one of the possible
|
||||
levels of synchronization, thus giving <code>RowSet</code> objects a choice of
|
||||
synchronization mechanisms. A vendor can make its implementation available by
|
||||
registering the fully qualified class name with Sun Microsystems at
|
||||
registering the fully qualified class name with Oracle Corporation at
|
||||
<code>jdbc@sun.com</code>. This process is discussed in further detail below.
|
||||
<P>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user