Skip to content

Commit

Permalink
JDBC-618 Rename package org.firebirdsql.jca to org.firebirdsql.jaybir…
Browse files Browse the repository at this point in the history
…d.xca
  • Loading branch information
mrotteveel committed Mar 15, 2020
1 parent e7471bf commit 5a945a8
Show file tree
Hide file tree
Showing 45 changed files with 111 additions and 133 deletions.
Expand Up @@ -31,7 +31,7 @@

import org.firebirdsql.gds.impl.GDSFactory;
import org.firebirdsql.gds.impl.GDSType;
import org.firebirdsql.jca.FBManagedConnectionFactory;
import org.firebirdsql.jaybird.xca.FBManagedConnectionFactory;
import org.firebirdsql.jdbc.FBDataSource;
import org.firebirdsql.jdbc.FBSQLException;

Expand Down
2 changes: 1 addition & 1 deletion src/main/org/firebirdsql/ds/FBSimpleDataSource.java
Expand Up @@ -22,7 +22,7 @@
import org.firebirdsql.gds.TransactionParameterBuffer;
import org.firebirdsql.gds.impl.GDSFactory;
import org.firebirdsql.gds.impl.GDSType;
import org.firebirdsql.jca.FBManagedConnectionFactory;
import org.firebirdsql.jaybird.xca.FBManagedConnectionFactory;
import org.firebirdsql.jdbc.FBDataSource;
import org.firebirdsql.jdbc.FirebirdConnectionProperties;

Expand Down
2 changes: 1 addition & 1 deletion src/main/org/firebirdsql/ds/FBXAConnection.java
Expand Up @@ -25,7 +25,7 @@
import javax.sql.XAConnection;
import javax.transaction.xa.XAResource;

import org.firebirdsql.jca.FBManagedConnection;
import org.firebirdsql.jaybird.xca.FBManagedConnection;
import org.firebirdsql.jdbc.FBConnection;
import org.firebirdsql.jdbc.FBSQLException;
import org.firebirdsql.jdbc.SQLStateConstants;
Expand Down
4 changes: 2 additions & 2 deletions src/main/org/firebirdsql/ds/FBXADataSource.java
Expand Up @@ -35,8 +35,8 @@

import org.firebirdsql.gds.impl.GDSFactory;
import org.firebirdsql.gds.impl.GDSType;
import org.firebirdsql.jca.FBManagedConnection;
import org.firebirdsql.jca.FBManagedConnectionFactory;
import org.firebirdsql.jaybird.xca.FBManagedConnection;
import org.firebirdsql.jaybird.xca.FBManagedConnectionFactory;
import org.firebirdsql.jdbc.FBConnection;
import org.firebirdsql.jdbc.FBDataSource;
import org.firebirdsql.jdbc.FBSQLException;
Expand Down
Expand Up @@ -16,7 +16,7 @@
*
* All rights reserved.
*/
package org.firebirdsql.jca;
package org.firebirdsql.jaybird.xca;

import org.firebirdsql.encodings.Encoding;
import org.firebirdsql.gds.DatabaseParameterBuffer;
Expand Down
@@ -1,5 +1,5 @@
/*
* Firebird Open Source J2ee connector - jdbc driver
* Firebird Open Source JavaEE Connector - JDBC Driver
*
* Distributable under LGPL license.
* You may obtain a copy of the License at http://www.gnu.org/copyleft/lgpl.html
Expand All @@ -12,11 +12,11 @@
* This file was created by members of the firebird development team.
* All individual contributions remain the Copyright (C) of those
* individuals. Contributors to this file are either listed here or
* can be obtained from a CVS history command.
* can be obtained from a source control history command.
*
* All rights reserved.
*/
package org.firebirdsql.jca;
package org.firebirdsql.jaybird.xca;

/**
* This error is thrown when message read from the RDB$TRANSACTIONS table does
Expand Down
Expand Up @@ -16,7 +16,7 @@
*
* All rights reserved.
*/
package org.firebirdsql.jca;
package org.firebirdsql.jaybird.xca;

import org.firebirdsql.jdbc.FBConnection;
import org.firebirdsql.jdbc.SQLStateConstants;
Expand Down
Expand Up @@ -16,7 +16,7 @@
*
* All rights reserved.
*/
package org.firebirdsql.jca;
package org.firebirdsql.jaybird.xca;

import org.firebirdsql.gds.*;
import org.firebirdsql.gds.impl.DatabaseParameterBufferExtension;
Expand Down
Expand Up @@ -16,7 +16,7 @@
*
* All rights reserved.
*/
package org.firebirdsql.jca;
package org.firebirdsql.jaybird.xca;

import org.firebirdsql.gds.DatabaseParameterBuffer;
import org.firebirdsql.gds.GDSException;
Expand Down
@@ -1,6 +1,4 @@
/*
* $Id$
*
* Firebird Open Source JavaEE Connector - JDBC Driver
*
* Distributable under LGPL license.
Expand All @@ -18,7 +16,7 @@
*
* All rights reserved.
*/
package org.firebirdsql.jca;
package org.firebirdsql.jaybird.xca;

import javax.resource.spi.ManagedConnectionMetaData;
import javax.resource.ResourceException;
Expand Down
Expand Up @@ -16,7 +16,7 @@
*
* All rights reserved.
*/
package org.firebirdsql.jca;
package org.firebirdsql.jaybird.xca;

import org.firebirdsql.jdbc.SQLStateConstants;

Expand Down
Expand Up @@ -16,7 +16,7 @@
*
* All rights reserved.
*/
package org.firebirdsql.jca;
package org.firebirdsql.jaybird.xca;

/**
* Exception represents transaction error in resource.
Expand Down
Expand Up @@ -16,7 +16,7 @@
*
* All rights reserved.
*/
package org.firebirdsql.jca;
package org.firebirdsql.jaybird.xca;

import java.io.Serializable;

Expand Down
@@ -1,7 +1,5 @@
/*
* $Id$
*
* Firebird Open Source J2ee connector - jdbc driver
* Firebird Open Source JavaEE Connector - JDBC Driver
*
* Distributable under LGPL license.
* You may obtain a copy of the License at http://www.gnu.org/copyleft/lgpl.html
Expand All @@ -14,12 +12,12 @@
* This file was created by members of the firebird development team.
* All individual contributions remain the Copyright (C) of those
* individuals. Contributors to this file are either listed here or
* can be obtained from a CVS history command.
* can be obtained from a source control history command.
*
* All rights reserved.
*/

package org.firebirdsql.jca;
package org.firebirdsql.jaybird.xca;

import java.io.Serializable;

Expand Down
@@ -1,5 +1,5 @@
/*
* Firebird Open Source J2ee connector - jdbc driver
* Firebird Open Source JavaEE Connector - JDBC Driver
*
* Distributable under LGPL license.
* You may obtain a copy of the License at http://www.gnu.org/copyleft/lgpl.html
Expand All @@ -12,11 +12,11 @@
* This file was created by members of the firebird development team.
* All individual contributions remain the Copyright (C) of those
* individuals. Contributors to this file are either listed here or
* can be obtained from a CVS history command.
* can be obtained from a source control history command.
*
* All rights reserved.
*/
package org.firebirdsql.jca;
package org.firebirdsql.jaybird.xca;

import java.io.PrintStream;
import java.io.PrintWriter;
Expand Down
@@ -1,6 +1,4 @@
/*
* $Id$
*
* Firebird Open Source JavaEE Connector - JDBC Driver
*
* Distributable under LGPL license.
Expand All @@ -18,7 +16,7 @@
*
* All rights reserved.
*/
package org.firebirdsql.jca;
package org.firebirdsql.jaybird.xca;

import javax.resource.ResourceException;
import javax.transaction.xa.Xid;
Expand Down
@@ -1,5 +1,5 @@
/*
* Firebird Open Source J2ee connector - jdbc driver
* Firebird Open Source JavaEE Connector - JDBC Driver
*
* Distributable under LGPL license.
* You may obtain a copy of the License at http://www.gnu.org/copyleft/lgpl.html
Expand All @@ -12,11 +12,11 @@
* This file was created by members of the firebird development team.
* All individual contributions remain the Copyright (C) of those
* individuals. Contributors to this file are either listed here or
* can be obtained from a CVS history command.
* can be obtained from a source control history command.
*
* All rights reserved.
*/
package org.firebirdsql.jca;
package org.firebirdsql.jaybird.xca;

import java.sql.SQLException;
import java.util.Arrays;
Expand Down
50 changes: 50 additions & 0 deletions src/main/org/firebirdsql/jaybird/xca/FirebirdLocalTransaction.java
@@ -0,0 +1,50 @@
/*
* Firebird Open Source JavaEE Connector - JDBC Driver
*
* Distributable under LGPL license.
* You may obtain a copy of the License at http://www.gnu.org/copyleft/lgpl.html
*
* This program 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
* LGPL License for more details.
*
* This file was created by members of the firebird development team.
* All individual contributions remain the Copyright (C) of those
* individuals. Contributors to this file are either listed here or
* can be obtained from a source control history command.
*
* All rights reserved.
*/
package org.firebirdsql.jaybird.xca;

import javax.resource.ResourceException;
import javax.resource.spi.LocalTransaction;
import javax.transaction.xa.Xid;


/**
* Extention of the {@link javax.resource.spi.LocalTransaction} interface
* to tell whether the underlying managed connection is currently participating
* in some transaction or not and to obtain the associated Xid.
*/
public interface FirebirdLocalTransaction extends LocalTransaction {

/**
* Check if managed connection is currently participating in transaction.
*
* @return <code>true</code> if managed connection is participating in
* transaction.
*
* @throws ResourceException if operation cannot be completed.
*/
boolean inTransaction() throws ResourceException;

/**
* Get the associated Xid.
*
* @return instance of {@link Xid} representing a transaction ID that is
* managed by this local transaction.
*/
Xid getXid();
}
57 changes: 0 additions & 57 deletions src/main/org/firebirdsql/jca/FirebirdLocalTransaction.java

This file was deleted.

8 changes: 4 additions & 4 deletions src/main/org/firebirdsql/jdbc/FBConnection.java
Expand Up @@ -26,10 +26,10 @@
import org.firebirdsql.gds.impl.GDSHelper;
import org.firebirdsql.gds.ng.FbDatabase;
import org.firebirdsql.gds.ng.FbExceptionBuilder;
import org.firebirdsql.jca.FBConnectionRequestInfo;
import org.firebirdsql.jca.FBLocalTransaction;
import org.firebirdsql.jca.FBManagedConnection;
import org.firebirdsql.jca.FirebirdLocalTransaction;
import org.firebirdsql.jaybird.xca.FBConnectionRequestInfo;
import org.firebirdsql.jaybird.xca.FBLocalTransaction;
import org.firebirdsql.jaybird.xca.FBManagedConnection;
import org.firebirdsql.jaybird.xca.FirebirdLocalTransaction;
import org.firebirdsql.jdbc.escape.FBEscapedParser;
import org.firebirdsql.logging.Logger;
import org.firebirdsql.logging.LoggerFactory;
Expand Down
2 changes: 1 addition & 1 deletion src/main/org/firebirdsql/jdbc/FBConnectionProperties.java
Expand Up @@ -24,7 +24,7 @@
import org.firebirdsql.gds.ParameterBufferHelper;
import org.firebirdsql.gds.TransactionParameterBuffer;
import org.firebirdsql.gds.impl.DatabaseParameterBufferImp;
import org.firebirdsql.jca.FBResourceException;
import org.firebirdsql.jaybird.xca.FBResourceException;

import java.io.Serializable;
import java.sql.Connection;
Expand Down
4 changes: 2 additions & 2 deletions src/main/org/firebirdsql/jdbc/FBDataSource.java
Expand Up @@ -19,8 +19,8 @@
package org.firebirdsql.jdbc;

import org.firebirdsql.ds.RootCommonDataSource;
import org.firebirdsql.jca.FBConnectionRequestInfo;
import org.firebirdsql.jca.FBManagedConnectionFactory;
import org.firebirdsql.jaybird.xca.FBConnectionRequestInfo;
import org.firebirdsql.jaybird.xca.FBManagedConnectionFactory;

import javax.naming.Reference;
import javax.resource.Referenceable;
Expand Down
2 changes: 1 addition & 1 deletion src/main/org/firebirdsql/jdbc/FBDatabaseMetaData.java
Expand Up @@ -29,7 +29,7 @@
import org.firebirdsql.gds.ng.fields.RowValue;
import org.firebirdsql.gds.ng.fields.RowValueBuilder;
import org.firebirdsql.jaybird.Version;
import org.firebirdsql.jca.FBManagedConnectionFactory;
import org.firebirdsql.jaybird.xca.FBManagedConnectionFactory;
import org.firebirdsql.jdbc.escape.FBEscapedFunctionHelper;
import org.firebirdsql.jdbc.metadata.*;
import org.firebirdsql.logging.Logger;
Expand Down
2 changes: 1 addition & 1 deletion src/main/org/firebirdsql/jdbc/FBDriver.java
Expand Up @@ -24,7 +24,7 @@
import org.firebirdsql.gds.impl.GDSType;
import org.firebirdsql.gds.ng.FbExceptionBuilder;
import org.firebirdsql.jaybird.Version;
import org.firebirdsql.jca.FBManagedConnectionFactory;
import org.firebirdsql.jaybird.xca.FBManagedConnectionFactory;
import org.firebirdsql.logging.Logger;
import org.firebirdsql.logging.LoggerFactory;

Expand Down
4 changes: 2 additions & 2 deletions src/main/org/firebirdsql/jdbc/FBSQLException.java
Expand Up @@ -23,8 +23,8 @@
import javax.resource.ResourceException;

import org.firebirdsql.gds.GDSException;
import org.firebirdsql.jca.FBResourceException;
import org.firebirdsql.jca.FBXAException;
import org.firebirdsql.jaybird.xca.FBResourceException;
import org.firebirdsql.jaybird.xca.FBXAException;

public class FBSQLException extends SQLException {

Expand Down

0 comments on commit 5a945a8

Please sign in to comment.