/** * This method calls {@link Partition#lookup(org.apache.directory.shared.ldap.name.LdapDN,String[])} * with null <tt>attributeIds</tt> by default. Please override * this method if there is more effective way for your implementation. */ public Attributes lookup( LdapDN name ) throws NamingException { return lookup( name, null ); }
/** * This method calls {@link Partition#lookup(org.apache.directory.shared.ldap.name.LdapDN)} and return <tt>true</tt> * if it returns an entry by default. Please override this method if * there is more effective way for your implementation. */ public boolean hasEntry( LdapDN name ) throws NamingException { try { return lookup( name ) != null; } catch ( NameNotFoundException e ) { return false; } }