View Javadoc

1   /***
2    * License Agreement.
3    * 
4    * JSPA (POJO-SP)
5    * 
6    * Copyright (C) 2009 HRX Pty Ltd
7    * 
8    * This file is part of JSPA.
9    * 
10   * JSPA is free software: you can redistribute it and/or modify it under the
11   * terms of the GNU Lesser General Public License version 3 as published by the
12   * Free Software Foundation.
13   * 
14   * JSPA is distributed in the hope that it will be useful, but WITHOUT ANY
15   * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16   * A PARTICULAR PURPOSE. See the Lesser General Public License for more details.
17   * 
18   * You should have received a copy of the GNU Lesser General Public License
19   * along with JSPA. If not, see <http://www.gnu.org/licenses/>.
20   */
21  package com.hrx.rasp.util.dao.annotations;
22  
23  import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
24  import static java.lang.annotation.ElementType.FIELD;
25  
26  import java.lang.annotation.Retention;
27  import java.lang.annotation.RetentionPolicy;
28  import java.lang.annotation.Target;
29  
30  import com.hrx.rasp.util.dao.DefaultResultSetProcessor;
31  import com.hrx.rasp.util.dao.operation.OperationType;
32  
33  /***
34   * @author dan.stoica <dan.stoica@acslink.net.au>
35   * 
36   */
37  @Target(
38  {
39  		ANNOTATION_TYPE, FIELD
40  })
41  @Retention(RetentionPolicy.RUNTIME)
42  public @interface INOUT 
43  {
44  	int index() default -1;
45  
46  	/***
47  	 * Defines the java.sql.Types of the Stored Procedures (or Functions) OUT
48  	 * parameters.
49  	 */
50  	int sqlType() default 0;
51  
52  	String sqlArrayName() default "N/A";
53  
54  	Class<?> collectionType() default Class.class;
55  
56  	Class<?> resultSetProcessor() default DefaultResultSetProcessor.class;
57  
58  	OperationType[] operation() default OperationType.ALL;
59  }