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


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

Class level annotation used to set options on the JDBC connnection.


Optional Element Summary
 boolean readOnly
          If set to true, database connection will optimize for read only queries, writes still permitted.
 JdbcControl.HoldabilityType resultSetHoldability
          Specifies ResultSet holdability for the connection.
 JdbcControl.TypeMapper[] typeMappers
          Specifies type mappings for SQL user defined types (UDTs).
 

readOnly

public abstract boolean readOnly
If set to true, database connection will optimize for read only queries, writes still permitted. Optional, defaults to false.

Default:
false

resultSetHoldability

public abstract JdbcControl.HoldabilityType resultSetHoldability
Specifies ResultSet holdability for the connection. May be overridden at method level. Optional, defaults to jdbc driver's default setting.

Default:
DRIVER_DEFAULT

typeMappers

public abstract JdbcControl.TypeMapper[] typeMappers
Specifies type mappings for SQL user defined types (UDTs). Any type mappings set here will be used by the underlying JDBC Connection for UDT type mappings. These mappings can be overridden by using the SQL annotations methodTypeMappers element. Optional element.

Default:
{}