Package fi.evident.dalesbred

Examples of fi.evident.dalesbred.DatabaseSQLException


                } finally {
                    reader.close();
                }
            } catch (SQLException e) {
                throw new DatabaseSQLException(e);
            } catch (IOException e) {
                throw new DatabaseException("failed to convert Clob to String", e);
            }
        }
View Full Code Here


                } finally {
                    in.close();
                }
            } catch (SQLException e) {
                throw new DatabaseSQLException(e);
            } catch (IOException e) {
                throw new DatabaseException("failed to convert Blob to byte-array", e);
            }
        }
View Full Code Here

        @Override
        public InputStream convert(@NotNull Blob value) {
            try {
                return value.getBinaryStream();
            } catch (SQLException e) {
                throw new DatabaseSQLException(e);
            }
        }
View Full Code Here

        @Override
        public Reader convert(@NotNull Clob value) {
            try {
                return value.getCharacterStream();
            } catch (SQLException e) {
                throw new DatabaseSQLException(e);
            }
        }
View Full Code Here

        @Override
        public Document convert(@NotNull SQLXML value) {
            try {
                return (Document) value.getSource(DOMSource.class).getNode();
            } catch (SQLException e) {
                throw new DatabaseSQLException(e);
            }
        }
View Full Code Here

TOP

Related Classes of fi.evident.dalesbred.DatabaseSQLException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.