public int count() throws NamingException { return master.count(); }
public Attributes lookup( BigInteger id ) throws NamingException { return master.get( id ); }
public String getProperty( String propertyName ) throws NamingException { return master.getProperty( propertyName ); }
master = new JdbmMasterTable( recMan ); indices = new HashMap(); sysIndices = new HashMap();
public void setProperty( String propertyName, String propertyValue ) throws NamingException { master.setProperty( propertyName, propertyValue ); }
public void modify( LdapDN dn, ModificationItemImpl[] mods ) throws NamingException { BigInteger id = getEntryId( dn.toString() ); Attributes entry = master.get( id ); for ( int ii = 0; ii < mods.length; ii++ ) { Attribute attrMods = mods[ii].getAttribute(); switch ( mods[ii].getModificationOp() ) { case ( DirContext.ADD_ATTRIBUTE ): add( id, entry, attrMods ); break; case ( DirContext.REMOVE_ATTRIBUTE ): remove( id, entry, attrMods ); break; case ( DirContext.REPLACE_ATTRIBUTE ): replace( id, entry, attrMods ); break; default: throw new NamingException( "Unidentified modification operation" ); } } master.put( entry, id ); if ( cfg.isSynchOnWrite() ) { sync(); } }
master = new JdbmMasterTable( recMan, schemaManager );