Mercurial > hg > monetdb-java
comparison src/main/java/nl/cwi/monetdb/jdbc/MonetDatabaseMetaData.java @ 376:ffdc7b0e102d
Updated JDBC driver to comply with JDBC 4.2 interface now we compile for Java 8. This includes:
- adding 8 methods to MonetCallableStatement
- adding 2 methods to MonetDatabaseMetaData
- adding 3 methods to MonetPreparedStatement
- adding 4 methods to MonetResultSet
- adding 8 methods to MonetStatement
Some methods needs some more work, for instance getLargeUpdateCount(). This will be done in a separate checkin.
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Wed, 23 Sep 2020 18:55:33 +0200 (2020-09-23) |
parents | a229ac4e275c |
children | d7661075ebf7 |
comparison
equal
deleted
inserted
replaced
375:a229ac4e275c | 376:ffdc7b0e102d |
---|---|
20 /** | 20 /** |
21 * A DatabaseMetaData object suitable for the MonetDB database. | 21 * A DatabaseMetaData object suitable for the MonetDB database. |
22 * | 22 * |
23 * @author Fabian Groffen | 23 * @author Fabian Groffen |
24 * @author Martin van Dinther | 24 * @author Martin van Dinther |
25 * @version 0.9 | 25 * @version 1.0 |
26 */ | 26 */ |
27 public class MonetDatabaseMetaData | 27 public class MonetDatabaseMetaData |
28 extends MonetWrapper | 28 extends MonetWrapper |
29 implements DatabaseMetaData | 29 implements DatabaseMetaData |
30 { | 30 { |
4021 @Override | 4021 @Override |
4022 public boolean generatedKeyAlwaysReturned() throws SQLException { | 4022 public boolean generatedKeyAlwaysReturned() throws SQLException { |
4023 return true; | 4023 return true; |
4024 } | 4024 } |
4025 | 4025 |
4026 //== 1.8 methods (JDBC 4.2) | 4026 //== Java 1.8 methods (JDBC 4.2) |
4027 | 4027 |
4028 /** | 4028 /** |
4029 * Retrieves the maximum number of bytes this database allows for the logical size for a LOB. | 4029 * Retrieves the maximum number of bytes this database allows for the logical size for a LOB. |
4030 * The default implementation will return 0 | 4030 * The default implementation will return 0 |
4031 * @return the maximum number of bytes | 4031 * @return the maximum number of bytes allowed; a result of zero means that there is no limit or the limit is not known |
4032 */ | 4032 */ |
4033 @Override | 4033 @Override |
4034 public long getMaxLogicalLobSize() { | 4034 public long getMaxLogicalLobSize() { |
4035 return 0; | 4035 return 0; |
4036 } | 4036 } |
4037 | 4037 |
4038 /** | 4038 /** |
4039 * Retrieves whether this database supports REF CURSOR. | 4039 * Retrieves whether this database supports REF CURSOR. |
4040 * The default implementation will return false | 4040 * The default implementation will return false |
4041 * @return true if so, false otherwise | 4041 * @return true if this database supports REF CURSOR; false otherwise |
4042 */ | 4042 */ |
4043 @Override | 4043 @Override |
4044 public boolean supportsRefCursors() { | 4044 public boolean supportsRefCursors() { |
4045 return false; | 4045 return false; |
4046 } | 4046 } |