org.apache.directory.api.ldap.model.message.controls
Class EntryChangeImpl

java.lang.Object
  extended by org.apache.directory.api.ldap.model.message.controls.AbstractControl
      extended by org.apache.directory.api.ldap.model.message.controls.EntryChangeImpl
All Implemented Interfaces:
Control, EntryChange

public class EntryChangeImpl
extends AbstractControl
implements EntryChange

A simple implementation of the EntryChange response control.

Author:
Apache Directory Project

Field Summary
 
Fields inherited from interface org.apache.directory.api.ldap.model.message.controls.EntryChange
OID, UNDEFINED_CHANGE_NUMBER
 
Constructor Summary
EntryChangeImpl()
          Creates a new instance of EntryChangeControl.
 
Method Summary
 boolean equals(Object o)
          
 long getChangeNumber()
           
 ChangeType getChangeType()
           
 Dn getPreviousDn()
           
 int hashCode()
           
 void setChangeNumber(long changeNumber)
           
 void setChangeType(ChangeType changeType)
          Set the ChangeType
 void setPreviousDn(Dn previousDn)
           
 String toString()
          Return a String representing this EntryChangeControl.
 
Methods inherited from class org.apache.directory.api.ldap.model.message.controls.AbstractControl
getOid, isCritical, setCritical
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.directory.api.ldap.model.message.Control
getOid, isCritical, setCritical
 

Constructor Detail

EntryChangeImpl

public EntryChangeImpl()
Creates a new instance of EntryChangeControl.

Method Detail

getChangeType

public ChangeType getChangeType()
Specified by:
getChangeType in interface EntryChange
Returns:
The ChangeType

setChangeType

public void setChangeType(ChangeType changeType)
Description copied from interface: EntryChange
Set the ChangeType

Specified by:
setChangeType in interface EntryChange
Parameters:
changeType - Add, Delete; Modify or ModifyDN

getPreviousDn

public Dn getPreviousDn()
Specified by:
getPreviousDn in interface EntryChange

setPreviousDn

public void setPreviousDn(Dn previousDn)
Specified by:
setPreviousDn in interface EntryChange

getChangeNumber

public long getChangeNumber()
Specified by:
getChangeNumber in interface EntryChange

setChangeNumber

public void setChangeNumber(long changeNumber)
Specified by:
setChangeNumber in interface EntryChange

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractControl
See Also:
Object.hashCode()

equals

public boolean equals(Object o)

Overrides:
equals in class AbstractControl
See Also:
Object.equals(Object)

toString

public String toString()
Return a String representing this EntryChangeControl.

Overrides:
toString in class AbstractControl


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.