Package org.hsqldb

Examples of org.hsqldb.HsqlException$HsqlRuntimeMemoryError


        try {
            dataFile.seek((long) pos * cacheFileScale);

            return dataFile.readInt();
        } catch (IOException e) {
            throw new HsqlException(e.getMessage(), "", 0);
        } finally {
            writeLock.unlock();
        }
    }
View Full Code Here


            rowIn.resetRow(pos, size);
            dataFile.read(rowIn.getBuffer(), 4, size - 4);

            return rowIn;
        } catch (IOException e) {
            throw new HsqlException(e.getMessage(), "", 0);
        } finally {
            writeLock.unlock();
        }
    }
View Full Code Here

                rows[i] = null;
            }
        } catch (HsqlException e) {
            database.logger.appLog.logContext(e, null);

            throw new HsqlException(e, "", 0);
        } catch (Throwable e) {
            database.logger.appLog.logContext(e, null);

            throw new HsqlException(e.toString(), "", 0);
        } finally {
            initBuffers();
            writeLock.unlock();
        }
    }
View Full Code Here

            row.write(rowOut);
            dataFile.seek((long) row.getPos() * cacheFileScale);
            dataFile.write(rowOut.getOutputStream().getBuffer(), 0,
                           rowOut.getOutputStream().size());
        } catch (IOException e) {
            throw new HsqlException(e.getMessage(), "", 0);
        }
    }
View Full Code Here

                                     FileArchiver.COMPRESSION_ZIP);
            }
        } catch (IOException e) {
            database.logger.appLog.logContext(e, null);

            throw new HsqlException(e.getMessage(), "", 0);
        } finally {
            writeLock.unlock();
        }
    }
View Full Code Here

            dfd.updateTableIndexRoots();
            dfd.updateTransactionRowIDs();
        } catch (Throwable e) {
            database.logger.appLog.logContext(e, null);

            throw new HsqlException(
                e, Trace.getMessage(Trace.GENERAL_IO_ERROR),
                Trace.GENERAL_IO_ERROR);
        }

        database.logger.appLog.logContext(SimpleLog.LOG_NORMAL, "end");
View Full Code Here

            try {
                writeHeader(header);

                this.header = header;
            } catch (IOException e) {
                throw new HsqlException(
                    e, Trace.getMessage(Trace.GENERAL_IO_ERROR),
                    Trace.GENERAL_IO_ERROR);
            }

            return;
View Full Code Here

            try {
                writeHeader(header);

                this.header = header;
            } catch (IOException e) {
                throw new HsqlException(
                    e, Trace.getMessage(Trace.GENERAL_IO_ERROR),
                    Trace.GENERAL_IO_ERROR);
            }

            return;
View Full Code Here

                deleteOrResetFreePos(database, fileName);
                appLog.sendLine(SimpleLog.LOG_NORMAL,
                                "DataFileCache.postClose() : delete file");
            }
        } catch (IOException e) {
            throw new HsqlException(
                e, Trace.getMessage(Trace.GENERAL_IO_ERROR),
                Trace.GENERAL_IO_ERROR);
        }
    }
View Full Code Here

            Trace.printSystemOut("opened cache");
        } catch (Throwable e) {
            database.logger.appLog.logContext(e);
            e.printStackTrace();

            throw new HsqlException(
                e, Trace.getMessage(Trace.GENERAL_IO_ERROR),
                Trace.GENERAL_IO_ERROR);
        }
    }
View Full Code Here

TOP

Related Classes of org.hsqldb.HsqlException$HsqlRuntimeMemoryError

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.