View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements.  See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to You under the Apache License, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License.  You may obtain a copy of the License at
8    *
9    *     http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  
18  package org.apache.shardingsphere.driver.jdbc.unsupported;
19  
20  import java.io.InputStream;
21  import java.io.Reader;
22  import java.sql.Array;
23  import java.sql.Blob;
24  import java.sql.Clob;
25  import java.sql.Date;
26  import java.sql.SQLException;
27  import java.sql.SQLFeatureNotSupportedException;
28  import java.sql.SQLWarning;
29  import java.sql.SQLXML;
30  import java.sql.Time;
31  import java.sql.Timestamp;
32  import java.util.Calendar;
33  
34  /**
35   * Unsupported Database meta data result set.
36   */
37  public abstract class AbstractUnsupportedDatabaseMetaDataResultSet extends AbstractUnsupportedOperationResultSet {
38      
39      @Override
40      public final InputStream getAsciiStream(final int columnIndex) throws SQLException {
41          throw new SQLFeatureNotSupportedException("getAsciiStream");
42      }
43      
44      @Override
45      public final InputStream getAsciiStream(final String columnLabel) throws SQLException {
46          throw new SQLFeatureNotSupportedException("getAsciiStream");
47      }
48      
49      @Override
50      public final InputStream getUnicodeStream(final int columnIndex) throws SQLException {
51          throw new SQLFeatureNotSupportedException("getUnicodeStream");
52      }
53      
54      @Override
55      public final InputStream getUnicodeStream(final String columnLabel) throws SQLException {
56          throw new SQLFeatureNotSupportedException("getUnicodeStream");
57      }
58      
59      @Override
60      public final InputStream getBinaryStream(final int columnIndex) throws SQLException {
61          throw new SQLFeatureNotSupportedException("getBinaryStream");
62      }
63      
64      @Override
65      public final InputStream getBinaryStream(final String columnLabel) throws SQLException {
66          throw new SQLFeatureNotSupportedException("getBinaryStream");
67      }
68      
69      @Override
70      public final SQLWarning getWarnings() throws SQLException {
71          throw new SQLFeatureNotSupportedException("getWarnings");
72      }
73      
74      @Override
75      public final void clearWarnings() throws SQLException {
76          throw new SQLFeatureNotSupportedException("clearWarnings");
77      }
78      
79      @Override
80      public final Reader getCharacterStream(final int columnIndex) throws SQLException {
81          throw new SQLFeatureNotSupportedException("getCharacterStream");
82      }
83      
84      @Override
85      public final Reader getCharacterStream(final String columnLabel) throws SQLException {
86          throw new SQLFeatureNotSupportedException("getCharacterStream");
87      }
88      
89      @Override
90      public final Array getArray(final int columnIndex) throws SQLException {
91          throw new SQLFeatureNotSupportedException("getArray");
92      }
93      
94      @Override
95      public final Array getArray(final String columnLabel) throws SQLException {
96          throw new SQLFeatureNotSupportedException("getArray");
97      }
98      
99      @Override
100     public final Blob getBlob(final int columnIndex) throws SQLException {
101         throw new SQLFeatureNotSupportedException("getBlob");
102     }
103     
104     @Override
105     public final Blob getBlob(final String columnLabel) throws SQLException {
106         throw new SQLFeatureNotSupportedException("getBlob");
107     }
108     
109     @Override
110     public final Clob getClob(final int columnIndex) throws SQLException {
111         throw new SQLFeatureNotSupportedException("getClob");
112     }
113     
114     @Override
115     public final Clob getClob(final String columnLabel) throws SQLException {
116         throw new SQLFeatureNotSupportedException("getClob");
117     }
118     
119     @Override
120     public final Date getDate(final int columnIndex, final Calendar cal) throws SQLException {
121         throw new SQLFeatureNotSupportedException("getDate(int columnIndex, Calendar cal)");
122     }
123     
124     @Override
125     public final Date getDate(final String columnLabel, final Calendar cal) throws SQLException {
126         throw new SQLFeatureNotSupportedException("getDate(String columnLabel, Calendar cal)");
127     }
128     
129     @Override
130     public final Time getTime(final int columnIndex, final Calendar cal) throws SQLException {
131         throw new SQLFeatureNotSupportedException("getTime(int columnIndex, Calendar cal)");
132     }
133     
134     @Override
135     public final Time getTime(final String columnLabel, final Calendar cal) throws SQLException {
136         throw new SQLFeatureNotSupportedException("getTime(String columnLabel, Calendar cal)");
137     }
138     
139     @Override
140     public final Timestamp getTimestamp(final int columnIndex, final Calendar cal) throws SQLException {
141         throw new SQLFeatureNotSupportedException("getTime(int columnIndex, Calendar cal)");
142     }
143     
144     @Override
145     public final Timestamp getTimestamp(final String columnLabel, final Calendar cal) throws SQLException {
146         throw new SQLFeatureNotSupportedException("getTime(String columnLabel, Calendar cal)");
147     }
148     
149     @Override
150     public final SQLXML getSQLXML(final int columnIndex) throws SQLException {
151         throw new SQLFeatureNotSupportedException("getSQLXML");
152     }
153     
154     @Override
155     public final SQLXML getSQLXML(final String columnLabel) throws SQLException {
156         throw new SQLFeatureNotSupportedException("getSQLXML");
157     }
158 }