org.apache.beehive.controls.system.jdbc
Annotation Type JdbcControl.ConnectionDriver


@Inherited
@Retention(value=RUNTIME)
@Target(value={TYPE,FIELD})
public static @interface JdbcControl.ConnectionDriver

Class-level annotation for making a ConnectionDriver available for use with the Jdbc Control. Either this annotation or the ConnectionDataSource annotation must be set for a jcx which extends the JdbcControl interface. See java.sql.DatabaseConnection for additional information about the elements of this annotation.


Required Element Summary
 String databaseDriverClass
          A String containing the fully qualified name of the database driver class.
 String databaseURL
          A String containing the database URL to connect to.
 
Optional Element Summary
 String password
          A String containing the password associated with userName.
 String properties
          A String containing a semicolon seperated list of name/value pairs for the DatabaseConnection.
 String userName
          A String containing the user name to connect to the database as.
 

Element Detail

databaseDriverClass

public abstract String databaseDriverClass
A String containing the fully qualified name of the database driver class. Required element.


databaseURL

public abstract String databaseURL
A String containing the database URL to connect to. Required element.

userName

public abstract String userName
A String containing the user name to connect to the database as. Optional element.

Default:
""

password

public abstract String password
A String containing the password associated with userName. Optional element.

Default:
""

properties

public abstract String properties
A String containing a semicolon seperated list of name/value pairs for the DatabaseConnection. The string must have the format of propertyName=propertyValue;propertyName=propertyValue;... The properties will only be used if the userName and password elements of this annotation are NOT set. Optional element.

Default:
""