/** * Inserts a new record using standard java object serialization. * * @param obj the object for the new record. * @return the rowid for the new record. * @throws IOException when one of the underlying I/O operations fails. */ public long insert( Object obj ) throws IOException { return insert( obj, DefaultSerializer.INSTANCE ); }
/** * Inserts a new record using standard java object serialization. * * @param obj the object for the new record. * @return the rowid for the new record. * @throws IOException when one of the underlying I/O operations fails. */ public long insert( Object obj ) throws IOException { return insert( obj, DefaultSerializer.INSTANCE ); }
/** * Inserts a new record using standard java object serialization. * * @param obj the object for the new record. * @return the rowid for the new record. * @throws IOException when one of the underlying I/O operations fails. */ public long insert( Object obj ) throws IOException { return insert( obj, DefaultSerializer.INSTANCE ); }
/** * Load name directory */ @SuppressWarnings("unchecked") private Map<String,Long> getNameDirectory() throws IOException { // retrieve directory of named hashtable long nameDirectory_recid = getRoot( NAME_DIRECTORY_ROOT ); if ( nameDirectory_recid == 0 ) { _nameDirectory = new HashMap<String,Long>(); nameDirectory_recid = insert( _nameDirectory ); setRoot( NAME_DIRECTORY_ROOT, nameDirectory_recid ); } else { _nameDirectory = (Map<String,Long>) fetch( nameDirectory_recid ); } return _nameDirectory; }
/** * Load name directory */ @SuppressWarnings("unchecked") private Map<String, Long> getNameDirectory() throws IOException { // retrieve directory of named hashtable long nameDirectory_recid = getRoot( NAME_DIRECTORY_ROOT ); if ( nameDirectory_recid == 0 ) { nameDirectory = new HashMap<String, Long>(); nameDirectory_recid = insert( nameDirectory ); setRoot( NAME_DIRECTORY_ROOT, nameDirectory_recid ); } else { nameDirectory = ( Map<String, Long> ) fetch( nameDirectory_recid ); } return nameDirectory; }
/** * Load name directory */ @SuppressWarnings("unchecked") private Map<String, Long> getNameDirectory() throws IOException { // retrieve directory of named hashtable long nameDirectory_recid = getRoot( NAME_DIRECTORY_ROOT ); if ( nameDirectory_recid == 0 ) { nameDirectory = new HashMap<String, Long>(); nameDirectory_recid = insert( nameDirectory ); setRoot( NAME_DIRECTORY_ROOT, nameDirectory_recid ); } else { nameDirectory = ( Map<String, Long> ) fetch( nameDirectory_recid ); } return nameDirectory; }
/** * Load name directory */ @SuppressWarnings("unchecked") private Map<String,Long> getNameDirectory() throws IOException { // retrieve directory of named hashtable long nameDirectory_recid = getRoot( NAME_DIRECTORY_ROOT ); if ( nameDirectory_recid == 0 ) { nameDirectory = new HashMap<String, Long>(); nameDirectory_recid = insert( nameDirectory ); setRoot( NAME_DIRECTORY_ROOT, nameDirectory_recid ); } else { nameDirectory = ( Map<String, Long> ) fetch( nameDirectory_recid ); } return nameDirectory; }