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.operation.OperationType;
31  
32  /***
33   * @author dan.stoica <dan.stoica@acslink.net.au>
34   * 
35   */
36  @Target(
37  {
38  		ANNOTATION_TYPE, FIELD
39  })
40  @Retention(RetentionPolicy.RUNTIME)
41  public @interface IN
42  {
43  	int index() default -1;
44  
45  	String sqlArrayName() default "N/A";
46  
47  	OperationType[] operation() default OperationType.ALL;
48  }