Indicates a method that creates an
Array instance for use with SQL array types.
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:
DomaNullPointerExceptionif any of the method parameters arenullJdbcExceptionif a JDBC related error occurs
-
Required Element Summary
Required Elements
-
Element Details
-
typeName
String typeNameThe SQL name of the type the elements of the array map to.The value is passed as the first argument to
Connection.createArrayOf(String, Object[]).- Returns:
- the type name
-