Examples of IOExceptionWrapper


Examples of com.sleepycat.bdb.util.IOExceptionWrapper

        // 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

Examples of com.sleepycat.bdb.util.IOExceptionWrapper

            classCatalog);

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

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

Examples of com.sleepycat.bdb.util.IOExceptionWrapper

            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

Examples of com.sleepycat.bdb.util.IOExceptionWrapper

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

Examples of com.sleepycat.bdb.util.IOExceptionWrapper

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

Examples of com.sleepycat.bdb.util.IOExceptionWrapper

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

Examples of com.sleepycat.bdb.util.IOExceptionWrapper

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

Examples of com.sleepycat.bdb.util.IOExceptionWrapper

        throws IOException, ClassNotFoundException {

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

Examples of com.sleepycat.bdb.util.IOExceptionWrapper

            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

Examples of com.sleepycat.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
TOP
Copyright © 2018 www.massapi.com. 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.