提交 bfeeb3b8 编写于 作者: L lancea

6984044: RowSet source needs to rebrand vendor references

Reviewed-by: darcy, ohair
上级 82d31a26
...@@ -248,7 +248,7 @@ public class WebRowSetXmlWriter implements XmlWriter, Serializable { ...@@ -248,7 +248,7 @@ public class WebRowSetXmlWriter implements XmlWriter, Serializable {
String strProvider = strProviderInstance.substring(0, (caller.getSyncProvider()).toString().indexOf("@")); String strProvider = strProviderInstance.substring(0, (caller.getSyncProvider()).toString().indexOf("@"));
propString("sync-provider-name", strProvider); propString("sync-provider-name", strProvider);
propString("sync-provider-vendor", "Sun Microsystems Inc."); propString("sync-provider-vendor", "Oracle Corporation");
propString("sync-provider-version", "1.0"); propString("sync-provider-version", "1.0");
propInteger("sync-provider-grade", caller.getSyncProvider().getProviderGrade()); propInteger("sync-provider-grade", caller.getSyncProvider().getProviderGrade());
propInteger("data-source-lock", caller.getSyncProvider().getDataSourceLock()); propInteger("data-source-lock", caller.getSyncProvider().getDataSourceLock());
......
...@@ -93,14 +93,14 @@ public final class RIOptimisticProvider extends SyncProvider implements Serializ ...@@ -93,14 +93,14 @@ public final class RIOptimisticProvider extends SyncProvider implements Serializ
private CachedRowSetWriter writer; private CachedRowSetWriter writer;
/** /**
* The unique provider indentifier. * The unique provider identifier.
*/ */
private String providerID = "com.sun.rowset.providers.RIOptimisticProvider"; private String providerID = "com.sun.rowset.providers.RIOptimisticProvider";
/** /**
* The vendor name of this SyncProvider implementation * 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 * The version number of this SyncProvider implementation
...@@ -236,8 +236,8 @@ public final class RIOptimisticProvider extends SyncProvider implements Serializ ...@@ -236,8 +236,8 @@ public final class RIOptimisticProvider extends SyncProvider implements Serializ
} }
/** /**
* Returns the vendor name of the Reference Implemntation Optimistic * Returns the vendor name of the Reference Implementation Optimistic
* Syncchronication Provider * Synchronization Provider
* *
* @return the <code>String</code> detailing the vendor name of this * @return the <code>String</code> detailing the vendor name of this
* SyncProvider * SyncProvider
......
/* /*
* 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -85,7 +85,7 @@ public final class RIXMLProvider extends SyncProvider { ...@@ -85,7 +85,7 @@ public final class RIXMLProvider extends SyncProvider {
/** /**
* The vendor name of this SyncProvider implementation. * 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. * The version number of this SyncProvider implementation.
......
...@@ -39,7 +39,7 @@ import javax.sql.rowset.spi.*; ...@@ -39,7 +39,7 @@ import javax.sql.rowset.spi.*;
* <code>CachedRowSet</code> must implement. * <code>CachedRowSet</code> must implement.
* <P> * <P>
* The reference implementation of the <code>CachedRowSet</code> interface provided * 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 * just as it is, they may extend it, or they may choose to write their own implementations
* of this interface. * of this interface.
* <P> * <P>
...@@ -1623,4 +1623,3 @@ public interface CachedRowSet extends RowSet, Joinable { ...@@ -1623,4 +1623,3 @@ public interface CachedRowSet extends RowSet, Joinable {
public boolean previousPage() throws SQLException; public boolean previousPage() throws SQLException;
} }
/* /*
* 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. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -115,7 +115,7 @@ import org.xml.sax.*; ...@@ -115,7 +115,7 @@ import org.xml.sax.*;
* &lt;<font color=red>url</font>&gt;jdbc:thin:oracle&lt;<font color=red>/url</font>&gt; * &lt;<font color=red>url</font>&gt;jdbc:thin:oracle&lt;<font color=red>/url</font>&gt;
* &lt;<font color=red>sync-provider</font>&gt; * &lt;<font color=red>sync-provider</font>&gt;
* &lt;<font color=red>sync-provider-name</font>&gt;.com.rowset.provider.RIOptimisticProvider&lt;<font color=red>/sync-provider-name</font>&gt; * &lt;<font color=red>sync-provider-name</font>&gt;.com.rowset.provider.RIOptimisticProvider&lt;<font color=red>/sync-provider-name</font>&gt;
* &lt;<font color=red>sync-provider-vendor</font>&gt;Sun Microsystems&lt;<font color=red>/sync-provider-vendor</font>&gt; * &lt;<font color=red>sync-provider-vendor</font>&gt;Oracle Corporation&lt;<font color=red>/sync-provider-vendor</font>&gt;
* &lt;<font color=red>sync-provider-version</font>&gt;1.0&lt;<font color=red>/sync-provider-name</font>&gt; * &lt;<font color=red>sync-provider-version</font>&gt;1.0&lt;<font color=red>/sync-provider-name</font>&gt;
* &lt;<font color=red>sync-provider-grade</font>&gt;LOW&lt;<font color=red>/sync-provider-grade</font>&gt; * &lt;<font color=red>sync-provider-grade</font>&gt;LOW&lt;<font color=red>/sync-provider-grade</font>&gt;
* &lt;<font color=red>data-source-lock</font>&gt;NONE&lt;<font color=red>/data-source-lock</font>&gt; * &lt;<font color=red>data-source-lock</font>&gt;NONE&lt;<font color=red>/data-source-lock</font>&gt;
...@@ -489,7 +489,7 @@ public interface WebRowSet extends CachedRowSet { ...@@ -489,7 +489,7 @@ public interface WebRowSet extends CachedRowSet {
* tags and their valid values for a <code>WebRowSet</code> implementation. * tags and their valid values for a <code>WebRowSet</code> implementation.
*/ */
public static String PUBLIC_XML_SCHEMA = 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 * The URL for the XML Schema definition file that defines the XML tags and
......
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
# Optimistic synchonriztaion provider # Optimistic synchonriztaion provider
rowset.provider.classname.0=com.sun.rowset.providers.RIOptimisticProvider 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 rowset.provider.version.0=1.0
# XML Provider using standard XML schema # XML Provider using standard XML schema
rowset.provider.classname.1=com.sun.rowset.providers.RIXMLProvider 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 rowset.provider.version.1=1.0
...@@ -125,12 +125,12 @@ import javax.naming.*; ...@@ -125,12 +125,12 @@ import javax.naming.*;
* *
* # Optimistic synchronization provider * # Optimistic synchronization provider
* rowset.provider.classname.0=com.sun.rowset.providers.RIOptimisticProvider * 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 * rowset.provider.version.0=1.0
* *
* # XML Provider using standard XML schema * # XML Provider using standard XML schema
* rowset.provider.classname.1=com.sun.rowset.providers.RIXMLProvider * 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 * rowset.provider.version.1=1.0
* </PRE> * </PRE>
* The <code>SyncFactory</code> checks this file and registers the * The <code>SyncFactory</code> checks this file and registers the
...@@ -369,7 +369,7 @@ public class SyncFactory { ...@@ -369,7 +369,7 @@ public class SyncFactory {
try { try {
// check if user is supplying his Synchronisation Provider // 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)); // properties.load(new FileInputStream(ROWSET_PROPERTIES));
// The rowset.properties needs to be in jdk/jre/lib when // The rowset.properties needs to be in jdk/jre/lib when
......
...@@ -91,8 +91,8 @@ import javax.sql.*; ...@@ -91,8 +91,8 @@ import javax.sql.*;
* </pre> * </pre>
* <p> * <p>
* A vendor can register a <code>SyncProvider</code> implementation class name * A vendor can register a <code>SyncProvider</code> implementation class name
* with Sun Microsystems, Inc. by sending email to jdbc@sun.com. * with Oracle Corporation by sending email to jdbc@sun.com.
* Sun will maintain a database listing the * Oracle will maintain a database listing the
* available <code>SyncProvider</code> implementations for use with compliant * available <code>SyncProvider</code> implementations for use with compliant
* <code>RowSet</code> implementations. This database will be similar to the * <code>RowSet</code> implementations. This database will be similar to the
* one already maintained to list available JDBC drivers. * one already maintained to list available JDBC drivers.
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<meta name="GENERATOR" <meta name="GENERATOR"
content="Mozilla/4.79 [en] (Windows NT 5.0; U) [Netscape]"> 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. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it This code is free software; you can redistribute it and/or modify it
...@@ -199,7 +199,7 @@ specification for further details. ...@@ -199,7 +199,7 @@ specification for further details.
Vendors may develop a <tt>SyncProvider</tt> implementation with any one of the possible 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 levels of synchronization, thus giving <code>RowSet</code> objects a choice of
synchronization mechanisms. A vendor can make its implementation available by 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. <code>jdbc@sun.com</code>. This process is discussed in further detail below.
<P> <P>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册