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.CONSTRUCTOR; 24 import static java.lang.annotation.RetentionPolicy.RUNTIME; 25 26 import java.lang.annotation.Documented; 27 import java.lang.annotation.Retention; 28 import java.lang.annotation.Target; 29 30 import com.hrx.rasp.util.dao.operation.OperationType; 31 32 /*** 33 * Identify the DAO class constructor to be used to instantiate a Data Access 34 * Object for Operations that returns a ResultSet. For example Select operation. 35 * 36 * @author dan.stoica <dan.stoica@acslink.net.au> 37 * 38 */ 39 @Target(CONSTRUCTOR) 40 @Retention(RUNTIME) 41 @Documented 42 public @interface DAOConstructor 43 { 44 /*** 45 * Identify the constructors to be used for Select Operations. Default is 46 * ALL. 47 * 48 * @return 49 */ 50 OperationType[] operation() default OperationType.ALL; 51 }