Mercurial > hg > monetdb-java
comparison src/main/java/org/monetdb/jdbc/MonetConnection.java @ 539:5d524783f7b0 onclient
Move {get/set}{Down/Up}loadHander further down the file
author | Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com> |
---|---|
date | Thu, 02 Sep 2021 13:46:11 +0200 (2021-09-02) |
parents | c9d88af06d35 |
children | d3a96675969e |
comparison
equal
deleted
inserted
replaced
538:4c2bf747f61f | 539:5d524783f7b0 |
---|---|
1196 public void setTypeMap(final Map<String, Class<?>> map) { | 1196 public void setTypeMap(final Map<String, Class<?>> map) { |
1197 typeMap = map; | 1197 typeMap = map; |
1198 } | 1198 } |
1199 | 1199 |
1200 /** | 1200 /** |
1201 * Registers a {@link MonetUploadHandler} to support for example COPY ON CLIENT | |
1202 * | |
1203 * @param uploadHandler the handler to register, or null to deregister | |
1204 */ | |
1205 public void setUploadHandler(MonetUploadHandler uploadHandler) { | |
1206 this.uploadHandler = uploadHandler; | |
1207 } | |
1208 | |
1209 /** | |
1210 * Returns the currently registerered {@link MonetUploadHandler}, or null | |
1211 */ | |
1212 public MonetUploadHandler getUploadHandler() { | |
1213 return uploadHandler; | |
1214 } | |
1215 /** | |
1216 * Registers a {@link MonetDownloadHandler} to support for example COPY ON CLIENT | |
1217 * | |
1218 * @param downloadHandler the handler to register, or null to deregister | |
1219 */ | |
1220 public void setDownloadHandler(MonetDownloadHandler downloadHandler) { | |
1221 this.downloadHandler = downloadHandler; | |
1222 } | |
1223 | |
1224 /** | |
1225 * Returns the currently registerered {@link MonetDownloadHandler} handler, or null | |
1226 */ | |
1227 public MonetDownloadHandler getDownloadHandler() { | |
1228 return downloadHandler; | |
1229 } | |
1230 | |
1231 /** | |
1232 * Returns a string identifying this Connection to the MonetDB server. | 1201 * Returns a string identifying this Connection to the MonetDB server. |
1233 * | 1202 * |
1234 * @return a String representing this Object | 1203 * @return a String representing this Object |
1235 */ | 1204 */ |
1236 @Override | 1205 @Override |
1703 throw new SQLNonTransientConnectionException(e.getMessage(), "08000"); | 1672 throw new SQLNonTransientConnectionException(e.getMessage(), "08000"); |
1704 } | 1673 } |
1705 } | 1674 } |
1706 | 1675 |
1707 //== end methods of interface java.sql.Connection | 1676 //== end methods of interface java.sql.Connection |
1677 | |
1678 /** | |
1679 * Registers a {@link MonetUploadHandler} to support for example COPY ON CLIENT | |
1680 * | |
1681 * @param uploadHandler the handler to register, or null to deregister | |
1682 */ | |
1683 public void setUploadHandler(MonetUploadHandler uploadHandler) { | |
1684 this.uploadHandler = uploadHandler; | |
1685 } | |
1686 | |
1687 /** | |
1688 * Returns the currently registerered {@link MonetUploadHandler}, or null | |
1689 */ | |
1690 public MonetUploadHandler getUploadHandler() { | |
1691 return uploadHandler; | |
1692 } | |
1693 /** | |
1694 * Registers a {@link MonetDownloadHandler} to support for example COPY ON CLIENT | |
1695 * | |
1696 * @param downloadHandler the handler to register, or null to deregister | |
1697 */ | |
1698 public void setDownloadHandler(MonetDownloadHandler downloadHandler) { | |
1699 this.downloadHandler = downloadHandler; | |
1700 } | |
1701 | |
1702 /** | |
1703 * Returns the currently registerered {@link MonetDownloadHandler} handler, or null | |
1704 */ | |
1705 public MonetDownloadHandler getDownloadHandler() { | |
1706 return downloadHandler; | |
1707 } | |
1708 | 1708 |
1709 | 1709 |
1710 //== internal helper methods which do not belong to the JDBC interface | 1710 //== internal helper methods which do not belong to the JDBC interface |
1711 | 1711 |
1712 /** | 1712 /** |