Esempio n. 1
0
 /** @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);
   }
 }
Esempio n. 2
0
 /** @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);
   }
 }