ozeigermann 2004/07/12 07:28:37 Modified: transaction/src/java/org/apache/commons/transaction/util/xa AbstractTransactionalResource.java Log: Rather make methods you should implement in sub classes abstract Revision Changes Path 1.2 +7 -16 jakarta-commons-sandbox/transaction/src/java/org/apache/commons/transaction/util/xa/AbstractTransactionalResource.java Index: AbstractTransactionalResource.java =================================================================== RCS file: /home/cvs/jakarta-commons-sandbox/transaction/src/java/org/apache/commons/transaction/util/xa/AbstractTransactionalResource.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- AbstractTransactionalResource.java 12 Jul 2004 14:22:27 -0000 1.1 +++ AbstractTransactionalResource.java 12 Jul 2004 14:28:37 -0000 1.2 @@ -41,19 +41,10 @@ status = STATUS_ACTIVE; } - public void commit() throws XAException { - } - - public void rollback() throws XAException { - } - - public int prepare() throws XAException { - // no check possible - return XAResource.XA_OK; - } - - public void close() throws XAException { - } + public abstract void commit() throws XAException; + public abstract void rollback() throws XAException; + public abstract int prepare() throws XAException; + public abstract void close() throws XAException; public int getStatus() { return status;
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]