Package com.sleepycat.bdb.util

Examples of com.sleepycat.bdb.util.IOExceptionWrapper


    public void testIOWrapper()
        throws Exception {

        try {
            throw new IOExceptionWrapper(new RuntimeException("msg"));
        } catch (IOException e) {
            Exception ee = ExceptionUnwrapper.unwrap(e);
            assertTrue(ee instanceof RuntimeException);
            assertEquals("msg", ee.getMessage());
View Full Code Here


        // first it sets the transient key fields from the stored key.
        MarshalledTupleData obj;
        try {
            obj = (MarshalledTupleData) cls.newInstance();
        } catch (IllegalAccessException e) {
            throw new IOExceptionWrapper(e);
        } catch (InstantiationException e) {
            throw new IOExceptionWrapper(e);
        }
        if (valueInput != null) { // may be null if used by key extractor
            obj.unmarshalData(valueInput);
        }
        MarshalledTupleKeyEntity entity = (MarshalledTupleKeyEntity) obj;
View Full Code Here

            classCatalog);

        try {
            object = jin.readObject();
        } catch (ClassNotFoundException e) {
            throw new IOExceptionWrapper(e);
        }

        data.setDataFormation(object);
        return object;
    }
View Full Code Here

            MarshalledTupleData obj =
                (MarshalledTupleData) cls.newInstance();
            obj.unmarshalData(input);
            return obj;
        } catch (IllegalAccessException e) {
            throw new IOExceptionWrapper(e);
        } catch (InstantiationException e) {
            throw new IOExceptionWrapper(e);
        }
    }
View Full Code Here

                nameToIdMap.put(className, id);
                nameToDescMap.put(className, desc);
            }
            return id;
        } catch (ClassNotFoundException e) {
            throw new IOExceptionWrapper(e);
        }
    }
View Full Code Here

            if (db != null) {
                db.close();
                db = null;
            }
        } catch (DbException e) {
            throw new IOExceptionWrapper(e);
        }
        db = null;
        formatMap = null;
        classMap = null;
    }
View Full Code Here

        try {
            ClassInfo classInfo = getClassInfo(className);
            return classInfo.getClassID();
        } catch (DbException e) {
            throw new IOExceptionWrapper(e);
        }
    }
View Full Code Here

        try {
            ClassInfo classInfo = getClassInfo(className);
            return classInfo.getClassFormat();
        } catch (DbException e) {
            throw new IOExceptionWrapper(e);
        }
    }
View Full Code Here

        throws IOException, ClassNotFoundException {

        try {
            return getClassFormat(classID, newDbt());
        } catch (DbException e) {
            throw new IOExceptionWrapper(e);
        }
    }
View Full Code Here

            try {
                MarshalledKey key = (MarshalledKey) keyClass.newInstance();
                key.unmarshalKey(input);
                return key;
            } catch (IllegalAccessException e) {
                throw new IOExceptionWrapper(e);
            } catch (InstantiationException e) {
                throw new IOExceptionWrapper(e);
            }
        }
View Full Code Here

TOP

Related Classes of com.sleepycat.bdb.util.IOExceptionWrapper

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.