fr.dyade.aaa.util
Class Operation

java.lang.Object
  extended by fr.dyade.aaa.util.Operation
All Implemented Interfaces:
java.io.Serializable

public class Operation
extends java.lang.Object
implements java.io.Serializable

This class describes an operation in the transaction log.

See Also:
Serialized Form

Field Summary
(package private) static int COMMIT
           
(package private) static int CREATE
           
(package private) static int DELETE
           
(package private)  java.lang.String dirName
          Relative path of the object if any, null otherwise.
(package private) static int END
           
(package private)  int logidx
           
(package private)  int logptr
           
(package private)  java.lang.String name
          Name of the object
(package private) static int NOOP
           
(package private) static Pool pool
           
(package private) static int SAVE
           
private static long serialVersionUID
          define serialVersionUID for interoperability
(package private)  int type
          Type of the operation.
(package private)  byte[] value
          Binary representation of the object (only for create and save operation).
 
Constructor Summary
private Operation(int type, java.lang.String dirName, java.lang.String name, byte[] value)
           
 
Method Summary
(package private) static Operation alloc(int type, java.lang.String dirName, java.lang.String name)
           
(package private) static Operation alloc(int type, java.lang.String dirName, java.lang.String name, byte[] value)
           
(package private)  void free()
           
 java.lang.String toString()
          Returns a string representation for this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
define serialVersionUID for interoperability

See Also:
Constant Field Values

SAVE

static final int SAVE
See Also:
Constant Field Values

CREATE

static final int CREATE
See Also:
Constant Field Values

DELETE

static final int DELETE
See Also:
Constant Field Values

NOOP

static final int NOOP
See Also:
Constant Field Values

COMMIT

static final int COMMIT
See Also:
Constant Field Values

END

static final int END
See Also:
Constant Field Values

type

int type
Type of the operation.


dirName

java.lang.String dirName
Relative path of the object if any, null otherwise.


name

java.lang.String name
Name of the object


value

byte[] value
Binary representation of the object (only for create and save operation).


logidx

int logidx

logptr

int logptr

pool

static Pool pool
Constructor Detail

Operation

private Operation(int type,
                  java.lang.String dirName,
                  java.lang.String name,
                  byte[] value)
Method Detail

toString

public java.lang.String toString()
Returns a string representation for this object.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.

alloc

static Operation alloc(int type,
                       java.lang.String dirName,
                       java.lang.String name)

alloc

static Operation alloc(int type,
                       java.lang.String dirName,
                       java.lang.String name,
                       byte[] value)

free

void free()


Copyright © 2010 ScalAgent D.T.. All Rights Reserved.