com.netscape.certsrv.dbs
Class Modification

java.lang.Object
  extended by com.netscape.certsrv.dbs.Modification

public class Modification
extends java.lang.Object

A class represents a modification. This is used by the database (dbs) framework for modification operations. It specifices the modification type and values.

Version:
$Revision: 1211 $, $Date: 2010-08-18 10:15:37 -0700 (Wed, 18 Aug 2010) $

Field Summary
static int MOD_ADD
          Add new value.
static int MOD_DELETE
          Deletes old value.
static int MOD_REPLACE
          Replace old value.
 
Constructor Summary
Modification(java.lang.String name, int op, java.lang.Object value)
          Constructs a role modification.
 
Method Summary
 java.lang.String getName()
          Retrieves attribute name.
 int getOp()
          Retrieves modification operation type.
 java.lang.Object getValue()
          Retrieves attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MOD_ADD

public static final int MOD_ADD
Add new value.

See Also:
Constant Field Values

MOD_DELETE

public static final int MOD_DELETE
Deletes old value.

See Also:
Constant Field Values

MOD_REPLACE

public static final int MOD_REPLACE
Replace old value.

See Also:
Constant Field Values
Constructor Detail

Modification

public Modification(java.lang.String name,
                    int op,
                    java.lang.Object value)
Constructs a role modification.

Parameters:
name - attribute name
op - attribute operation (i.e. MOD_ADD, MOD_DELETE, or MOD_REPLACE)
value - attribute value
Method Detail

getName

public java.lang.String getName()
Retrieves attribute name.

Returns:
attribute name

getOp

public int getOp()
Retrieves modification operation type.

Returns:
modification type

getValue

public java.lang.Object getValue()
Retrieves attribute value.

Returns:
attribute value