Mercurial > hg > monetdb-java
comparison src/main/java/nl/cwi/monetdb/jdbc/MonetConnection.java @ 89:a6608e9581c1
Moved content of ChangeLog to ChangeLog-Archive.
Added information on released jars to the ChangeLog-Archive, so it becomes clear which releases contain which fixes.
Corrected order of some entries in ChangeLog-Archive (sorted by desc date).
Updated documentation regarding createBlob() and createClob(), which are implemented and thus no longer throw SQLFeatureNotSupportedException.
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Thu, 05 Jan 2017 14:43:11 +0100 (2017-01-05) |
parents | 83aee4f60649 |
children | b9b35ca2eec2 |
comparison
equal
deleted
inserted
replaced
79:010ca5664218 | 89:a6608e9581c1 |
---|---|
1100 * array map to. The typeName is a database-specific name | 1100 * array map to. The typeName is a database-specific name |
1101 * which may be the name of a built-in type, a user-defined | 1101 * which may be the name of a built-in type, a user-defined |
1102 * type or a standard SQL type supported by this database. | 1102 * type or a standard SQL type supported by this database. |
1103 * This is the value returned by Array.getBaseTypeName | 1103 * This is the value returned by Array.getBaseTypeName |
1104 * @return an Array object whose elements map to the specified SQL type | 1104 * @return an Array object whose elements map to the specified SQL type |
1105 * @throws SQLException if a database error occurs, the JDBC type | 1105 * @throws SQLException - if a database error occurs, the JDBC type is not appropriate for the typeName and |
1106 * is not appropriate for the typeName and the conversion is | 1106 * the conversion is not supported, the typeName is null or this method is called on a closed connection |
1107 * not supported, the typeName is null or this method is | 1107 * @throws SQLFeatureNotSupportedException - if the JDBC driver does not support this data type |
1108 * called on a closed connection | |
1109 * @throws SQLFeatureNotSupportedException the JDBC driver does | |
1110 * not support this data type | |
1111 * @since 1.6 | 1108 * @since 1.6 |
1112 */ | 1109 */ |
1113 @Override | 1110 @Override |
1114 public java.sql.Array createArrayOf(String typeName, Object[] elements) throws SQLException { | 1111 public java.sql.Array createArrayOf(String typeName, Object[] elements) throws SQLException { |
1115 throw new SQLFeatureNotSupportedException("createArrayOf() not supported", "0A000"); | 1112 throw new SQLFeatureNotSupportedException("createArrayOf() not supported", "0A000"); |
1121 * object returned initially contains no data. The setAsciiStream, | 1118 * object returned initially contains no data. The setAsciiStream, |
1122 * setCharacterStream and setString methods of the Clob interface | 1119 * setCharacterStream and setString methods of the Clob interface |
1123 * may be used to add data to the Clob. | 1120 * may be used to add data to the Clob. |
1124 * | 1121 * |
1125 * @return a MonetClob instance | 1122 * @return a MonetClob instance |
1126 * @throws SQLFeatureNotSupportedException the JDBC driver does | 1123 * @throws SQLException - if an object that implements the Clob interface can not be constructed, |
1127 * not support MonetClob objects that can be filled in | 1124 * this method is called on a closed connection or a database access error occurs. |
1128 * @since 1.6 | 1125 * @since 1.6 |
1129 */ | 1126 */ |
1130 @Override | 1127 @Override |
1131 public java.sql.Clob createClob() throws SQLException { | 1128 public java.sql.Clob createClob() throws SQLException { |
1132 return new MonetClob(""); | 1129 return new MonetClob(""); |
1137 * object returned initially contains no data. The setBinaryStream | 1134 * object returned initially contains no data. The setBinaryStream |
1138 * and setBytes methods of the Blob interface may be used to add | 1135 * and setBytes methods of the Blob interface may be used to add |
1139 * data to the Blob. | 1136 * data to the Blob. |
1140 * | 1137 * |
1141 * @return a MonetBlob instance | 1138 * @return a MonetBlob instance |
1142 * @throws SQLFeatureNotSupportedException the JDBC driver does | 1139 * @throws SQLException - if an object that implements the Blob interface can not be constructed, |
1143 * not support MonetBlob objects that can be filled in | 1140 * this method is called on a closed connection or a database access error occurs. |
1144 * @since 1.6 | 1141 * @since 1.6 |
1145 */ | 1142 */ |
1146 @Override | 1143 @Override |
1147 public java.sql.Blob createBlob() throws SQLException { | 1144 public java.sql.Blob createBlob() throws SQLException { |
1148 byte[] buf = new byte[1]; | 1145 byte[] buf = new byte[1]; |
1154 * object returned initially contains no data. The setAsciiStream, | 1151 * object returned initially contains no data. The setAsciiStream, |
1155 * setCharacterStream and setString methods of the NClob interface | 1152 * setCharacterStream and setString methods of the NClob interface |
1156 * may be used to add data to the NClob. | 1153 * may be used to add data to the NClob. |
1157 * | 1154 * |
1158 * @return an NClob instance | 1155 * @return an NClob instance |
1159 * @throws SQLFeatureNotSupportedException the JDBC driver does | 1156 * @throws SQLException - if an object that implements the NClob interface can not be constructed, |
1160 * not support MonetNClob objects that can be filled in | 1157 * this method is called on a closed connection or a database access error occurs. |
1158 * @throws SQLFeatureNotSupportedException - if the JDBC driver does not support this data type | |
1161 * @since 1.6 | 1159 * @since 1.6 |
1162 */ | 1160 */ |
1163 @Override | 1161 @Override |
1164 public java.sql.NClob createNClob() throws SQLException { | 1162 public java.sql.NClob createNClob() throws SQLException { |
1165 throw new SQLFeatureNotSupportedException("createNClob() not supported", "0A000"); | 1163 throw new SQLFeatureNotSupportedException("createNClob() not supported", "0A000"); |
1173 * user-defined type that has been defined for this database. | 1171 * user-defined type that has been defined for this database. |
1174 * It is the value returned by Struct.getSQLTypeName. | 1172 * It is the value returned by Struct.getSQLTypeName. |
1175 * @param attributes the attributes that populate the returned object | 1173 * @param attributes the attributes that populate the returned object |
1176 * @return a Struct object that maps to the given SQL type and is | 1174 * @return a Struct object that maps to the given SQL type and is |
1177 * populated with the given attributes | 1175 * populated with the given attributes |
1178 * @throws SQLException if a database error occurs, the typeName | 1176 * @throws SQLException - if an object that implements the Struct interface can not be constructed, |
1179 * is null or this method is called on a closed connection | 1177 * this method is called on a closed connection or a database access error occurs. |
1180 * @throws SQLFeatureNotSupportedException the JDBC driver does | 1178 * @throws SQLFeatureNotSupportedException - if the JDBC driver does not support this data type |
1181 * not support this data type | |
1182 * @since 1.6 | 1179 * @since 1.6 |
1183 */ | 1180 */ |
1184 @Override | 1181 @Override |
1185 public java.sql.Struct createStruct(String typeName, Object[] attributes) throws SQLException { | 1182 public java.sql.Struct createStruct(String typeName, Object[] attributes) throws SQLException { |
1186 throw new SQLFeatureNotSupportedException("createStruct() not supported", "0A000"); | 1183 throw new SQLFeatureNotSupportedException("createStruct() not supported", "0A000"); |
1191 * object returned initially contains no data. The | 1188 * object returned initially contains no data. The |
1192 * createXmlStreamWriter object and setString method of the SQLXML | 1189 * createXmlStreamWriter object and setString method of the SQLXML |
1193 * interface may be used to add data to the SQLXML object. | 1190 * interface may be used to add data to the SQLXML object. |
1194 * | 1191 * |
1195 * @return An object that implements the SQLXML interface | 1192 * @return An object that implements the SQLXML interface |
1196 * @throws SQLFeatureNotSupportedException the JDBC driver does | 1193 * @throws SQLException - if an object that implements the SQLXML interface can not be constructed, |
1197 * not support this data type | 1194 * this method is called on a closed connection or a database access error occurs. |
1195 * @throws SQLFeatureNotSupportedException - if the JDBC driver does not support this data type | |
1198 * @since 1.6 | 1196 * @since 1.6 |
1199 */ | 1197 */ |
1200 @Override | 1198 @Override |
1201 public java.sql.SQLXML createSQLXML() throws SQLException { | 1199 public java.sql.SQLXML createSQLXML() throws SQLException { |
1202 throw new SQLFeatureNotSupportedException("createSQLXML() not supported", "0A000"); | 1200 throw new SQLFeatureNotSupportedException("createSQLXML() not supported", "0A000"); |