org.apache.directory.server.core.partition.impl.btree
Class BTreeSearchResult

java.lang.Object
  extended by javax.naming.NameClassPair
      extended by javax.naming.Binding
          extended by javax.naming.directory.SearchResult
              extended by org.apache.directory.server.core.partition.impl.btree.BTreeSearchResult
All Implemented Interfaces:
java.io.Serializable

public class BTreeSearchResult
extends javax.naming.directory.SearchResult

A special search result that includes the unique database primary key or 'row id' of the entry in the master table for quick lookup. This speeds up various operations.

Version:
$Rev: 434579 $
Author:
Apache Directory Project
See Also:
Serialized Form

Constructor Summary
BTreeSearchResult(java.math.BigInteger id, java.lang.String name, java.lang.Object obj, javax.naming.directory.Attributes attrs)
          Creates a database search result.
BTreeSearchResult(java.math.BigInteger id, java.lang.String name, java.lang.Object obj, javax.naming.directory.Attributes attrs, boolean isRelative)
          Creates a database search result.
BTreeSearchResult(java.math.BigInteger id, java.lang.String name, java.lang.String className, java.lang.Object obj, javax.naming.directory.Attributes attrs)
          Creates a database search result.
BTreeSearchResult(java.math.BigInteger id, java.lang.String name, java.lang.String className, java.lang.Object obj, javax.naming.directory.Attributes attrs, boolean isRelative)
          Creates a database search result.
 
Method Summary
 java.math.BigInteger getId()
          Gets the unique row id of the entry into the master table.
 
Methods inherited from class javax.naming.directory.SearchResult
getAttributes, setAttributes, toString
 
Methods inherited from class javax.naming.Binding
getClassName, getObject, setObject
 
Methods inherited from class javax.naming.NameClassPair
getName, getNameInNamespace, isRelative, setClassName, setName, setNameInNamespace, setRelative
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BTreeSearchResult

public BTreeSearchResult(java.math.BigInteger id,
                         java.lang.String name,
                         java.lang.Object obj,
                         javax.naming.directory.Attributes attrs)
Creates a database search result.

Parameters:
id - the database id of the entry
name - the user provided relative or distinguished name
obj - the object if any
attrs - the attributes of the entry

BTreeSearchResult

public BTreeSearchResult(java.math.BigInteger id,
                         java.lang.String name,
                         java.lang.Object obj,
                         javax.naming.directory.Attributes attrs,
                         boolean isRelative)
Creates a database search result.

Parameters:
id - the database id of the entry
name - the user provided relative or distinguished name
obj - the object if any
attrs - the attributes of the entry
isRelative - whether or not the name is relative to the base

BTreeSearchResult

public BTreeSearchResult(java.math.BigInteger id,
                         java.lang.String name,
                         java.lang.String className,
                         java.lang.Object obj,
                         javax.naming.directory.Attributes attrs)
Creates a database search result.

Parameters:
id - the database id of the entry
name - the user provided relative or distinguished name
className - the classname of the entry if any
obj - the object if any
attrs - the attributes of the entry

BTreeSearchResult

public BTreeSearchResult(java.math.BigInteger id,
                         java.lang.String name,
                         java.lang.String className,
                         java.lang.Object obj,
                         javax.naming.directory.Attributes attrs,
                         boolean isRelative)
Creates a database search result.

Parameters:
id - the database id of the entry
name - the user provided relative or distinguished name
className - the classname of the entry if any
obj - the object if any
attrs - the attributes of the entry
isRelative - whether or not the name is relative to the base
Method Detail

getId

public java.math.BigInteger getId()
Gets the unique row id of the entry into the master table.

Returns:
Returns the id.