javax.transaction.xa

Interface XAResource

public interface XAResource

Field Summary

static int
TMENDRSCAN
static int
TMFAIL
static int
TMJOIN
static int
TMNOFLAGS
static int
TMONEPHASE
static int
TMRESUME
static int
TMSTARTRSCAN
static int
TMSUCCESS
static int
TMSUSPEND
static int
XA_OK
static int
XA_RDONLY

Method Summary

void
commit(Xid xid, boolean onePhase)
void
end(Xid xid, int flags)
void
forget(Xid xid)
int
getTransactionTimeout()
boolean
isSameRM(XAResource xares)
int
prepare(Xid xid)
Xid[]
recover(int flag)
void
rollback(Xid xid)
boolean
setTransactionTimeout(int seconds)
void
start(Xid xid, int flags)

Field Details

TMENDRSCAN

public static final int TMENDRSCAN

Field Value:
8388608


TMFAIL

public static final int TMFAIL

Field Value:
536870912


TMJOIN

public static final int TMJOIN

Field Value:
2097152


TMNOFLAGS

public static final int TMNOFLAGS

Field Value:
0


TMONEPHASE

public static final int TMONEPHASE

Field Value:
1073741824


TMRESUME

public static final int TMRESUME

Field Value:
134217728


TMSTARTRSCAN

public static final int TMSTARTRSCAN

Field Value:
16777216


TMSUCCESS

public static final int TMSUCCESS

Field Value:
67108864


TMSUSPEND

public static final int TMSUSPEND

Field Value:
33554432


XA_OK

public static final int XA_OK

Field Value:
0


XA_RDONLY

public static final int XA_RDONLY

Field Value:
3

Method Details

commit

public void commit(Xid xid,
                   boolean onePhase)
            throws XAException


end

public void end(Xid xid,
                int flags)
            throws XAException


forget

public void forget(Xid xid)
            throws XAException


getTransactionTimeout

public int getTransactionTimeout()
            throws XAException


isSameRM

public boolean isSameRM(XAResource xares)
            throws XAException


prepare

public int prepare(Xid xid)
            throws XAException


recover

public Xid[] recover(int flag)
            throws XAException


rollback

public void rollback(Xid xid)
            throws XAException


setTransactionTimeout

public boolean setTransactionTimeout(int seconds)
            throws XAException


start

public void start(Xid xid,
                  int flags)
            throws XAException


XAResource.java -- Copyright (C) 2001, 2002, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.