Top Description Methods
jakarta.resource.spi

public @Interface ConnectionDefinition

extends Annotation
Annotations
@Documented
@Retention:RUNTIME
@Target:TYPE
@Repeatable:ConnectionDefinitions
Imports
java.lang.annotation.Target, .Retention, .Documented, .Repeatable

Defines a set of connection interfaces and classes pertaining to a particular connection type. This annotation can be placed only on a JavaBean that implements the ManagedConnectionFactory interface.
Since
1.6

Method Summary

Modifier and TypeMethod and Description
public Class<T>

Returns:

the Connection interface
connection
()

Specifies the Connection interface supported by the resource adapter.

public Class<T>

Returns:

the ConnectionFactory interface
connectionFactory
()

Specifies the ConnectionFactory interface supported by the resource adapter.

public Class<T>

Returns:

the implementation class of the ConnectionFactory interface
connectionFactoryImpl
()

Specifies the Class provided by the resource adapter that implements the resource adapter specific ConnectionFactory interface.

public Class<T>

Returns:

the implementation class of the Connection interface
connectionImpl
()

Specifies the class provided by the resource adapter that implements the resource adapter specific Connection interface.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

connectionback to summary
public Class<T> connection()

Specifies the Connection interface supported by the resource adapter. Example: jakarta.resource.cci.Connection or com.wombat.Connection

Returns:Class<T>

the Connection interface

connectionFactoryback to summary
public Class<T> connectionFactory()

Specifies the ConnectionFactory interface supported by the resource adapter. Example: jakarta.resource.cci.ConnectionFactory or com.wombat.ConnectionFactory

Returns:Class<T>

the ConnectionFactory interface

connectionFactoryImplback to summary
public Class<T> connectionFactoryImpl()

Specifies the Class provided by the resource adapter that implements the resource adapter specific ConnectionFactory interface. Example: com.wombat.ConnectionFactoryImpl

Returns:Class<T>

the implementation class of the ConnectionFactory interface

connectionImplback to summary
public Class<T> connectionImpl()

Specifies the class provided by the resource adapter that implements the resource adapter specific Connection interface. Example: com.wombat.ConnectionImpl

Returns:Class<T>

the implementation class of the Connection interface