org.objectweb.perseus.persistence.api

Class WorkingSetLifeCycle


public class WorkingSetLifeCycle
extends java.lang.Object

Author:
S.Chassande-Barrioz

Field Summary

static byte
ACTIVE_ACTION
static byte
BEGIN_TX_ACTION
static byte
CLOSE_ACTION
static byte
COMMIT_ACTION
static byte
PREPARE_ACTION
static byte
PREPARE_FAIL_ACTION
static byte
PREPARE_OK_ACTION
static byte
ROLLBACK_ACTION

Method Summary

static String
actionToString(byte action)
static byte
getNextStatus(byte status, byte action)
static String
statusToString(byte status)

Field Details

ACTIVE_ACTION

public static final byte ACTIVE_ACTION

Field Value:
1


BEGIN_TX_ACTION

public static final byte BEGIN_TX_ACTION

Field Value:
2


CLOSE_ACTION

public static final byte CLOSE_ACTION

Field Value:
5


COMMIT_ACTION

public static final byte COMMIT_ACTION

Field Value:
3


PREPARE_ACTION

public static final byte PREPARE_ACTION

Field Value:
6


PREPARE_FAIL_ACTION

public static final byte PREPARE_FAIL_ACTION

Field Value:
8


PREPARE_OK_ACTION

public static final byte PREPARE_OK_ACTION

Field Value:
7


ROLLBACK_ACTION

public static final byte ROLLBACK_ACTION

Field Value:
4

Method Details

actionToString

public static final String actionToString(byte action)


getNextStatus

public static byte getNextStatus(byte status,
                                 byte action)
            throws PersistenceException


statusToString

public static final String statusToString(byte status)


Copyright © 2000-2002 France Telecom S.A., INRIA, IMAG-LSR All Rights Reserved.