| /******************************************************************************* |
| * Copyright (c) 2006, 2007 Oracle. 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: |
| * Oracle - initial API and implementation |
| ******************************************************************************/ |
| package org.eclipse.jpt.core.internal.mappings; |
| |
| import org.eclipse.jpt.core.internal.platform.DefaultsContext; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * A representation of the model object '<em><b>IColumn</b></em>'. |
| * <!-- end-user-doc --> |
| * |
| * <p> |
| * The following features are supported: |
| * <ul> |
| * <li>{@link org.eclipse.jpt.core.internal.mappings.IColumn#getLength <em>Length</em>}</li> |
| * <li>{@link org.eclipse.jpt.core.internal.mappings.IColumn#getPrecision <em>Precision</em>}</li> |
| * <li>{@link org.eclipse.jpt.core.internal.mappings.IColumn#getScale <em>Scale</em>}</li> |
| * </ul> |
| * </p> |
| * |
| * @see org.eclipse.jpt.core.internal.mappings.JpaCoreMappingsPackage#getIColumn() |
| * @model kind="class" interface="true" abstract="true" |
| * @generated |
| */ |
| public interface IColumn extends IAbstractColumn |
| { |
| /** |
| * Returns the value of the '<em><b>Length</b></em>' attribute. |
| * The default value is <code>"255"</code>. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Length</em>' attribute isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @return the value of the '<em>Length</em>' attribute. |
| * @see #setLength(int) |
| * @see org.eclipse.jpt.core.internal.mappings.JpaCoreMappingsPackage#getIColumn_Length() |
| * @model default="255" |
| * @generated |
| */ |
| int getLength(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.jpt.core.internal.mappings.IColumn#getLength <em>Length</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Length</em>' attribute. |
| * @see #getLength() |
| * @generated |
| */ |
| void setLength(int value); |
| |
| /** |
| * Returns the value of the '<em><b>Precision</b></em>' attribute. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Precision</em>' attribute isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @return the value of the '<em>Precision</em>' attribute. |
| * @see #setPrecision(int) |
| * @see org.eclipse.jpt.core.internal.mappings.JpaCoreMappingsPackage#getIColumn_Precision() |
| * @model |
| * @generated |
| */ |
| int getPrecision(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.jpt.core.internal.mappings.IColumn#getPrecision <em>Precision</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Precision</em>' attribute. |
| * @see #getPrecision() |
| * @generated |
| */ |
| void setPrecision(int value); |
| |
| /** |
| * Returns the value of the '<em><b>Scale</b></em>' attribute. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Scale</em>' attribute isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @return the value of the '<em>Scale</em>' attribute. |
| * @see #setScale(int) |
| * @see org.eclipse.jpt.core.internal.mappings.JpaCoreMappingsPackage#getIColumn_Scale() |
| * @model |
| * @generated |
| */ |
| int getScale(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.jpt.core.internal.mappings.IColumn#getScale <em>Scale</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Scale</em>' attribute. |
| * @see #getScale() |
| * @generated |
| */ |
| void setScale(int value); |
| |
| void refreshDefaults(DefaultsContext defaultsContext); |
| |
| /** |
| * Return whether the column is found on the datasource |
| */ |
| boolean isResolved(); |
| } |