/** @return a new instance */ public LogEntry getNewInstance() throws DatabaseException { try { return (LogEntry) logClass.newInstance(); } catch (InstantiationException e) { throw new DatabaseException(e); } catch (IllegalAccessException e) { throw new DatabaseException(e); } }
/** @see LogEntry#readEntry */ public void readEntry( ByteBuffer entryBuffer, int entrySize, byte entryTypeVersion, boolean readFullItem) throws DatabaseException { try { item = (LogReadable) logClass.newInstance(); item.readFromLog(entryBuffer, entryTypeVersion); } catch (IllegalAccessException e) { throw new DatabaseException(e); } catch (InstantiationException e) { throw new DatabaseException(e); } }