Annotation Interface ArrayFactory


@Target(METHOD) @Retention(RUNTIME) public @interface ArrayFactory
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:
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The SQL name of the type the elements of the array map to.