|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Inherited @Retention(value=RUNTIME) @Target(value=METHOD) public static @interface JdbcControl.SQL
Method-level annotation for methods in a jcx which wish to access a database instance.
Required Element Summary | |
---|---|
String |
statement
The SQL statement to send to the database. |
Optional Element Summary | |
---|---|
int |
arrayMaxLength
Maximum array length. |
boolean |
batchUpdate
Execute the SQL statement as a batch update. |
JdbcControl.FetchDirection |
fetchDirection
Specify the fetch direction for the ResultSEt. |
int |
fetchSize
Specify the fetch size for the ResultSet. |
int[] |
generatedKeyColumnIndexes
Specify generated key columns by column number to return when the getGeneratedKeys element is true. |
String[] |
generatedKeyColumnNames
Specify generated key columns by column names to return when the getGeneratedKeys element is true. |
boolean |
getGeneratedKeys
Return the generated key values generated by the SQL statement. |
Class |
iteratorElementType
Specify the type of element to be interated over when the method's return type is java.util.Iterator. |
int |
maxRows
Max number of ResultSet rows to return. |
JdbcControl.HoldabilityType |
resultSetHoldabilityOverride
Specify the holdability type for the annotated method. |
Class |
resultSetMapper
Specify a custom result set mapper for the ResultSet generated by the SQL statement. |
JdbcControl.ScrollType |
scrollableResultSet
Specify that the ResultSet returned by the method is scrollable. |
JdbcControl.TypeMapper[] |
typeMappersOverride
Specifies type mappings for SQL user defined types (UDTs). |
Element Detail |
---|
public abstract String statement
public abstract int arrayMaxLength
arrayMaxLength's default value is 1024, but may be set to zero to specify that there is no size limit for the array generated from the ResultSet. Since the generated array is stored in-memory, care should be taken when dealing with very large ResultSets when the value of this element is set to zero.
public abstract int maxRows
public abstract boolean batchUpdate
public abstract int fetchSize
public abstract JdbcControl.FetchDirection fetchDirection
public abstract boolean getGeneratedKeys
public abstract String[] generatedKeyColumnNames
public abstract int[] generatedKeyColumnIndexes
public abstract JdbcControl.HoldabilityType resultSetHoldabilityOverride
public abstract JdbcControl.TypeMapper[] typeMappersOverride
public abstract Class iteratorElementType
public abstract Class resultSetMapper
public abstract JdbcControl.ScrollType scrollableResultSet
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |