Path: blob/master/test/jdk/javax/sql/testng/util/StubSyncProvider.java
41153 views
/*1* Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*/22package util;2324import javax.sql.RowSetReader;25import javax.sql.RowSetWriter;26import javax.sql.rowset.spi.SyncProvider;27import javax.sql.rowset.spi.SyncProviderException;2829public class StubSyncProvider extends SyncProvider {3031/**32* The unique provider identifier.33*/34private String providerID = "util.StubSyncProvider";3536/**37* The vendor name of this SyncProvider implementation38*/39private String vendorName = "Oracle Corporation";4041/**42* The version number of this SyncProvider implementation43*/44private String versionNumber = "1.0";4546@Override47public String getProviderID() {48return providerID;49}5051@Override52public RowSetReader getRowSetReader() {53return null;54}5556@Override57public RowSetWriter getRowSetWriter() {58return null;59}6061@Override62public int getProviderGrade() {63throw new UnsupportedOperationException("Not supported yet.");64}6566@Override67public void setDataSourceLock(int datasource_lock) throws SyncProviderException {68throw new UnsupportedOperationException("Not supported yet.");69}7071@Override72public int getDataSourceLock() throws SyncProviderException {73throw new UnsupportedOperationException("Not supported yet.");74}7576@Override77public int supportsUpdatableView() {78throw new UnsupportedOperationException("Not supported yet.");79}8081@Override82public String getVersion() {83return versionNumber;84}8586@Override87public String getVendor() {88return vendorName;89}9091}929394