@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface ArrayFactory
Array instance.
The annotated method must be a member of a Dao annotated interface.
@Dao
public interface EmployeeDao {
@ArrayFactory(typeName = "integer")
Array createIntegerArray(Integer[] elements);
}
The method may throw following exceptions:
DomaNullPointerException if any of the method parameters are null
JdbcException if a JDBC related error occurs
Connection.createArrayOf(String, Object[])| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
typeName
The SQL name of the type the elements of the array map to.
|