/******************************************************************************* * Copyright (c) 2009 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.jst.javaee.ejb; import java.math.BigInteger; import org.eclipse.jst.javaee.core.JavaEEObject; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Access Timeout Type</b></em>'. * <!-- end-user-doc --> * * <!-- begin-model-doc --> * * * The access-timeoutType represents the maximum amount of * time (in a given time unit) that the container should wait for * a concurrency lock before throwing a timeout exception to the * client. * * A timeout value of 0 means concurrent access is not permitted. * * A timeout value of -1 means wait indefinitely to acquire a lock. * * @since Java EE 6, EJB 3.1 * * <!-- end-model-doc --> * * <p> * The following features are supported: * <ul> * <li>{@link org.eclipse.jst.javaee.ejb.AccessTimeoutType#getTimeout <em>Timeout</em>}</li> * <li>{@link org.eclipse.jst.javaee.ejb.AccessTimeoutType#getUnit <em>Unit</em>}</li> * <li>{@link org.eclipse.jst.javaee.ejb.AccessTimeoutType#getId <em>Id</em>}</li> * </ul> * </p> * * @see org.eclipse.jst.javaee.ejb.internal.metadata.EjbPackage#getAccessTimeoutType() * @extends JavaEEObject * @generated */ public interface AccessTimeoutType extends JavaEEObject { /** * Returns the value of the '<em><b>Timeout</b></em>' attribute. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Timeout</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Timeout</em>' attribute. * @see #setTimeout(BigInteger) * @see org.eclipse.jst.javaee.ejb.internal.metadata.EjbPackage#getAccessTimeoutType_Timeout() * @generated */ BigInteger getTimeout(); /** * Sets the value of the '{@link org.eclipse.jst.javaee.ejb.AccessTimeoutType#getTimeout <em>Timeout</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Timeout</em>' attribute. * @see #getTimeout() * @generated */ void setTimeout(BigInteger value); /** * Returns the value of the '<em><b>Unit</b></em>' attribute. * The literals are from the enumeration {@link org.eclipse.jst.javaee.ejb.TimeUnitTypeType}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Unit</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Unit</em>' attribute. * @see org.eclipse.jst.javaee.ejb.TimeUnitTypeType * @see #isSetUnit() * @see #unsetUnit() * @see #setUnit(TimeUnitTypeType) * @see org.eclipse.jst.javaee.ejb.internal.metadata.EjbPackage#getAccessTimeoutType_Unit() * @generated */ TimeUnitTypeType getUnit(); /** * Sets the value of the '{@link org.eclipse.jst.javaee.ejb.AccessTimeoutType#getUnit <em>Unit</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Unit</em>' attribute. * @see org.eclipse.jst.javaee.ejb.TimeUnitTypeType * @see #isSetUnit() * @see #unsetUnit() * @see #getUnit() * @generated */ void setUnit(TimeUnitTypeType value); /** * Unsets the value of the '{@link org.eclipse.jst.javaee.ejb.AccessTimeoutType#getUnit <em>Unit</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #isSetUnit() * @see #getUnit() * @see #setUnit(TimeUnitTypeType) * @generated */ void unsetUnit(); /** * Returns whether the value of the '{@link org.eclipse.jst.javaee.ejb.AccessTimeoutType#getUnit <em>Unit</em>}' attribute is set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return whether the value of the '<em>Unit</em>' attribute is set. * @see #unsetUnit() * @see #getUnit() * @see #setUnit(TimeUnitTypeType) * @generated */ boolean isSetUnit(); /** * Returns the value of the '<em><b>Id</b></em>' attribute. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Id</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Id</em>' attribute. * @see #setId(String) * @see org.eclipse.jst.javaee.ejb.internal.metadata.EjbPackage#getAccessTimeoutType_Id() * @generated */ String getId(); /** * Sets the value of the '{@link org.eclipse.jst.javaee.ejb.AccessTimeoutType#getId <em>Id</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Id</em>' attribute. * @see #getId() * @generated */ void setId(String value); } // AccessTimeoutType