/** * <copyright> * </copyright> * * $Id: TableGenerator.java,v 1.5 2011/10/25 13:21:26 mtaal Exp $ */ package org.eclipse.emf.texo.orm.annotations.model.orm; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.texo.orm.annotator.BaseOrmAnnotation; /** * <!-- begin-user-doc --> A representation of the model object '<em><b>Table Generator</b></em>'. <!-- end-user-doc --> * * <!-- begin-model-doc --> * * * @Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME) * public @interface TableGenerator { * String name(); * String table() default ""; * String catalog() default ""; * String schema() default ""; * String pkColumnName() default ""; * String valueColumnName() default ""; * String pkColumnValue() default ""; * int initialValue() default 0; * int allocationSize() default 50; * UniqueConstraint[] uniqueConstraints() default {}; * } * * * <!-- end-model-doc --> * * <p> * The following features are supported: * <ul> * <li>{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getDescription <em>Description</em>}</li> * <li>{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getUniqueConstraint <em>Unique Constraint</em>}</li> * <li>{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getAllocationSize <em>Allocation Size</em>}</li> * <li>{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getCatalog <em>Catalog</em>}</li> * <li>{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getCreationSuffix <em>Creation Suffix</em>}</li> * <li>{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getInitialValue <em>Initial Value</em>}</li> * <li>{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getName <em>Name</em>}</li> * <li>{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getPkColumnName <em>Pk Column Name</em>}</li> * <li>{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getPkColumnValue <em>Pk Column Value</em>}</li> * <li>{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getSchema <em>Schema</em>}</li> * <li>{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getTable <em>Table</em>}</li> * <li>{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getValueColumnName <em>Value Column Name</em>}</li> * </ul> * </p> * * @see org.eclipse.emf.texo.orm.annotations.model.orm.OrmPackage#getTableGenerator() * @model extendedMetaData="name='table-generator' kind='elementOnly'" * @extends BaseOrmAnnotation * @generated */ public interface TableGenerator extends BaseOrmAnnotation { /** * Returns the value of the '<em><b>Description</b></em>' attribute. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Description</em>' attribute isn't clear, there really should be more of a description * here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Description</em>' attribute. * @see #setDescription(String) * @see org.eclipse.emf.texo.orm.annotations.model.orm.OrmPackage#getTableGenerator_Description() * @model dataType="org.eclipse.emf.ecore.xml.type.String" * extendedMetaData="kind='element' name='description' namespace='##targetNamespace'" * @generated */ String getDescription(); /** * Sets the value of the '{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getDescription <em>Description</em>}' attribute. * <!-- begin-user-doc --> <!-- end-user-doc --> * @param value the new value of the '<em>Description</em>' attribute. * @see #getDescription() * @generated */ void setDescription(String value); /** * Returns the value of the '<em><b>Unique Constraint</b></em>' containment reference list. * The list contents are of type {@link org.eclipse.emf.texo.orm.annotations.model.orm.UniqueConstraint}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Unique Constraint</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>Unique Constraint</em>' containment reference list. * @see org.eclipse.emf.texo.orm.annotations.model.orm.OrmPackage#getTableGenerator_UniqueConstraint() * @model containment="true" * extendedMetaData="kind='element' name='unique-constraint' namespace='##targetNamespace'" * @generated */ EList<UniqueConstraint> getUniqueConstraint(); /** * Returns the value of the '<em><b>Allocation Size</b></em>' attribute. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Allocation Size</em>' attribute isn't clear, there really should be more of a * description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Allocation Size</em>' attribute. * @see #isSetAllocationSize() * @see #unsetAllocationSize() * @see #setAllocationSize(int) * @see org.eclipse.emf.texo.orm.annotations.model.orm.OrmPackage#getTableGenerator_AllocationSize() * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Int" * extendedMetaData="kind='attribute' name='allocation-size'" * @generated */ int getAllocationSize(); /** * Sets the value of the '{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getAllocationSize <em>Allocation Size</em>}' attribute. * <!-- begin-user-doc --> <!-- end-user-doc --> * @param value the new value of the '<em>Allocation Size</em>' attribute. * @see #isSetAllocationSize() * @see #unsetAllocationSize() * @see #getAllocationSize() * @generated */ void setAllocationSize(int value); /** * Unsets the value of the '{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getAllocationSize <em>Allocation Size</em>}' attribute. * <!-- begin-user-doc --> <!-- end-user-doc --> * @see #isSetAllocationSize() * @see #getAllocationSize() * @see #setAllocationSize(int) * @generated */ void unsetAllocationSize(); /** * Returns whether the value of the '{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getAllocationSize <em>Allocation Size</em>}' attribute is set. * <!-- begin-user-doc --> <!-- end-user-doc --> * @return whether the value of the '<em>Allocation Size</em>' attribute is set. * @see #unsetAllocationSize() * @see #getAllocationSize() * @see #setAllocationSize(int) * @generated */ boolean isSetAllocationSize(); /** * Returns the value of the '<em><b>Catalog</b></em>' attribute. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Catalog</em>' attribute isn't clear, there really should be more of a description * here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Catalog</em>' attribute. * @see #setCatalog(String) * @see org.eclipse.emf.texo.orm.annotations.model.orm.OrmPackage#getTableGenerator_Catalog() * @model dataType="org.eclipse.emf.ecore.xml.type.String" * extendedMetaData="kind='attribute' name='catalog'" * @generated */ String getCatalog(); /** * Sets the value of the '{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getCatalog <em>Catalog</em>}' attribute. * <!-- begin-user-doc --> <!-- end-user-doc --> * @param value the new value of the '<em>Catalog</em>' attribute. * @see #getCatalog() * @generated */ void setCatalog(String value); /** * Returns the value of the '<em><b>Creation Suffix</b></em>' attribute. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Creation Suffix</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Creation Suffix</em>' attribute. * @see #isSetCreationSuffix() * @see #unsetCreationSuffix() * @see #setCreationSuffix(String) * @see org.eclipse.emf.texo.orm.annotations.model.orm.OrmPackage#getTableGenerator_CreationSuffix() * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String" * extendedMetaData="kind='attribute' name='creation-suffix'" * @generated */ String getCreationSuffix(); /** * Sets the value of the '{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getCreationSuffix <em>Creation Suffix</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Creation Suffix</em>' attribute. * @see #isSetCreationSuffix() * @see #unsetCreationSuffix() * @see #getCreationSuffix() * @generated */ void setCreationSuffix(String value); /** * Unsets the value of the '{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getCreationSuffix <em>Creation Suffix</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #isSetCreationSuffix() * @see #getCreationSuffix() * @see #setCreationSuffix(String) * @generated */ void unsetCreationSuffix(); /** * Returns whether the value of the '{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getCreationSuffix <em>Creation Suffix</em>}' attribute is set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return whether the value of the '<em>Creation Suffix</em>' attribute is set. * @see #unsetCreationSuffix() * @see #getCreationSuffix() * @see #setCreationSuffix(String) * @generated */ boolean isSetCreationSuffix(); /** * Returns the value of the '<em><b>Initial Value</b></em>' attribute. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Initial Value</em>' attribute isn't clear, there really should be more of a description * here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Initial Value</em>' attribute. * @see #isSetInitialValue() * @see #unsetInitialValue() * @see #setInitialValue(int) * @see org.eclipse.emf.texo.orm.annotations.model.orm.OrmPackage#getTableGenerator_InitialValue() * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Int" * extendedMetaData="kind='attribute' name='initial-value'" * @generated */ int getInitialValue(); /** * Sets the value of the '{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getInitialValue <em>Initial Value</em>}' attribute. * <!-- begin-user-doc --> <!-- end-user-doc --> * @param value the new value of the '<em>Initial Value</em>' attribute. * @see #isSetInitialValue() * @see #unsetInitialValue() * @see #getInitialValue() * @generated */ void setInitialValue(int value); /** * Unsets the value of the '{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getInitialValue <em>Initial Value</em>}' attribute. * <!-- begin-user-doc --> <!-- end-user-doc --> * @see #isSetInitialValue() * @see #getInitialValue() * @see #setInitialValue(int) * @generated */ void unsetInitialValue(); /** * Returns whether the value of the '{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getInitialValue <em>Initial Value</em>}' attribute is set. * <!-- begin-user-doc --> <!-- end-user-doc --> * @return whether the value of the '<em>Initial Value</em>' attribute is set. * @see #unsetInitialValue() * @see #getInitialValue() * @see #setInitialValue(int) * @generated */ boolean isSetInitialValue(); /** * Returns the value of the '<em><b>Name</b></em>' attribute. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Name</em>' attribute. * @see #setName(String) * @see org.eclipse.emf.texo.orm.annotations.model.orm.OrmPackage#getTableGenerator_Name() * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" * extendedMetaData="kind='attribute' name='name'" * @generated */ String getName(); /** * Sets the value of the '{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getName <em>Name</em>}' attribute. * <!-- begin-user-doc --> <!-- end-user-doc --> * @param value the new value of the '<em>Name</em>' attribute. * @see #getName() * @generated */ void setName(String value); /** * Returns the value of the '<em><b>Pk Column Name</b></em>' attribute. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Pk Column Name</em>' attribute isn't clear, there really should be more of a description * here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Pk Column Name</em>' attribute. * @see #setPkColumnName(String) * @see org.eclipse.emf.texo.orm.annotations.model.orm.OrmPackage#getTableGenerator_PkColumnName() * @model dataType="org.eclipse.emf.ecore.xml.type.String" * extendedMetaData="kind='attribute' name='pk-column-name'" * @generated */ String getPkColumnName(); /** * Sets the value of the '{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getPkColumnName <em>Pk Column Name</em>}' attribute. * <!-- begin-user-doc --> <!-- end-user-doc --> * @param value the new value of the '<em>Pk Column Name</em>' attribute. * @see #getPkColumnName() * @generated */ void setPkColumnName(String value); /** * Returns the value of the '<em><b>Pk Column Value</b></em>' attribute. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Pk Column Value</em>' attribute isn't clear, there really should be more of a * description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Pk Column Value</em>' attribute. * @see #setPkColumnValue(String) * @see org.eclipse.emf.texo.orm.annotations.model.orm.OrmPackage#getTableGenerator_PkColumnValue() * @model dataType="org.eclipse.emf.ecore.xml.type.String" * extendedMetaData="kind='attribute' name='pk-column-value'" * @generated */ String getPkColumnValue(); /** * Sets the value of the '{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getPkColumnValue <em>Pk Column Value</em>}' attribute. * <!-- begin-user-doc --> <!-- end-user-doc --> * @param value the new value of the '<em>Pk Column Value</em>' attribute. * @see #getPkColumnValue() * @generated */ void setPkColumnValue(String value); /** * Returns the value of the '<em><b>Schema</b></em>' attribute. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Schema</em>' attribute isn't clear, there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Schema</em>' attribute. * @see #setSchema(String) * @see org.eclipse.emf.texo.orm.annotations.model.orm.OrmPackage#getTableGenerator_Schema() * @model dataType="org.eclipse.emf.ecore.xml.type.String" * extendedMetaData="kind='attribute' name='schema'" * @generated */ String getSchema(); /** * Sets the value of the '{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getSchema <em>Schema</em>}' attribute. * <!-- begin-user-doc --> <!-- end-user-doc --> * @param value the new value of the '<em>Schema</em>' attribute. * @see #getSchema() * @generated */ void setSchema(String value); /** * Returns the value of the '<em><b>Table</b></em>' attribute. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Table</em>' attribute isn't clear, there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Table</em>' attribute. * @see #setTable(String) * @see org.eclipse.emf.texo.orm.annotations.model.orm.OrmPackage#getTableGenerator_Table() * @model dataType="org.eclipse.emf.ecore.xml.type.String" * extendedMetaData="kind='attribute' name='table'" * @generated */ String getTable(); /** * Sets the value of the '{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getTable <em>Table</em>}' attribute. * <!-- begin-user-doc --> <!-- end-user-doc --> * @param value the new value of the '<em>Table</em>' attribute. * @see #getTable() * @generated */ void setTable(String value); /** * Returns the value of the '<em><b>Value Column Name</b></em>' attribute. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Value Column Name</em>' attribute isn't clear, there really should be more of a * description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Value Column Name</em>' attribute. * @see #setValueColumnName(String) * @see org.eclipse.emf.texo.orm.annotations.model.orm.OrmPackage#getTableGenerator_ValueColumnName() * @model dataType="org.eclipse.emf.ecore.xml.type.String" * extendedMetaData="kind='attribute' name='value-column-name'" * @generated */ String getValueColumnName(); /** * Sets the value of the '{@link org.eclipse.emf.texo.orm.annotations.model.orm.TableGenerator#getValueColumnName <em>Value Column Name</em>}' attribute. * <!-- begin-user-doc --> <!-- end-user-doc --> * @param value the new value of the '<em>Value Column Name</em>' attribute. * @see #getValueColumnName() * @generated */ void setValueColumnName(String value); } // TableGenerator