View Javadoc

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