001/* 002 * Copyright (c) 2008, 2009, 2011 Oracle, Inc. All rights reserved. 003 * 004 * This program and the accompanying materials are made available under the 005 * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0 006 * which accompanies this distribution. The Eclipse Public License is available 007 * at http://www.eclipse.org/legal/epl-v10.html and the Eclipse Distribution License 008 * is available at http://www.eclipse.org/org/documents/edl-v10.php. 009 */ 010package javax.persistence; 011 012/** 013 * Specifies the mode of a parameter of a stored procedure query. 014 * 015 * @see StoredProcedureQuery 016 * @see StoredProcedureParameter 017 * @since Java Persistence 2.1 018 */ 019public enum ParameterMode { 020 /** 021 * Stored procedure input parameter 022 */ 023 IN, 024 /** 025 * Stored procedure input/output parameter 026 */ 027 INOUT, 028 /** 029 * Stored procedure output parameter 030 */ 031 OUT, 032 /** 033 * Stored procedure reference cursor parameter. 034 */ 035 REF_CURSOR 036}