/******************************************************************************* * Copyright (c) 2007 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.util.List; import org.eclipse.jst.javaee.core.Description; import org.eclipse.jst.javaee.core.JavaEEObject; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>CMP Field</b></em>'. * <!-- end-user-doc --> * * <!-- begin-model-doc --> * * * The cmp-fieldType describes a container-managed field. The * cmp-fieldType contains an optional description of the field, * and the name of the field. * * @since Java EE 5, EJB 3.0 * * <!-- end-model-doc --> * * <p> * The following features are supported: * <ul> * <li>{@link org.eclipse.jst.javaee.ejb.CMPField#getDescriptions <em>Descriptions</em>}</li> * <li>{@link org.eclipse.jst.javaee.ejb.CMPField#getFieldName <em>Field Name</em>}</li> * <li>{@link org.eclipse.jst.javaee.ejb.CMPField#getId <em>Id</em>}</li> * </ul> * </p> * * @see org.eclipse.jst.javaee.ejb.internal.metadata.EjbPackage#getCMPField() * @extends JavaEEObject * @generated */ public interface CMPField extends JavaEEObject { /** * Returns the value of the '<em><b>Descriptions</b></em>' containment reference list. * The list contents are of type {@link org.eclipse.jst.javaee.core.Description}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Descriptions</em>' containment reference list isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Descriptions</em>' containment reference list. * @see org.eclipse.jst.javaee.ejb.internal.metadata.EjbPackage#getCMPField_Descriptions() * @generated */ List<Description> getDescriptions(); /** * Returns the value of the '<em><b>Field Name</b></em>' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * * * The field-name element specifies the name of a * container managed field. * * The name of the cmp-field of an entity bean with * cmp-version 2.x must begin with a lowercase * letter. This field is accessed by methods whose * names consists of the name of the field specified by * field-name in which the first letter is uppercased, * prefixed by "get" or "set". * * The name of the cmp-field of an entity bean with * cmp-version 1.x must denote a public field of the * enterprise bean class or one of its superclasses. * * Support for entity beans is optional as of EJB 3.2. * * @since Java EE 5, EJB 3.0 * * <!-- end-model-doc --> * @return the value of the '<em>Field Name</em>' attribute. * @see #setFieldName(String) * @see org.eclipse.jst.javaee.ejb.internal.metadata.EjbPackage#getCMPField_FieldName() * @generated */ String getFieldName(); /** * Sets the value of the '{@link org.eclipse.jst.javaee.ejb.CMPField#getFieldName <em>Field Name</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Field Name</em>' attribute. * @see #getFieldName() * @generated */ void setFieldName(String value); /** * 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#getCMPField_Id() * @generated */ String getId(); /** * Sets the value of the '{@link org.eclipse.jst.javaee.ejb.CMPField#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); } // CMPField