diff options
author | kmoore | 2008-02-25 16:20:08 +0000 |
---|---|---|
committer | kmoore | 2008-02-25 16:20:08 +0000 |
commit | 799475ec15f7f5d8838fef3d8397d38fde082111 (patch) | |
tree | 45e8be97e6d1f3db423baf767a669e8955790b84 /jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/TableGenerator.java | |
parent | b7f9a0cb92fdf23807be30cb6ca97b579f7a7a8b (diff) | |
download | webtools.dali-799475ec15f7f5d8838fef3d8397d38fde082111.tar.gz webtools.dali-799475ec15f7f5d8838fef3d8397d38fde082111.tar.xz webtools.dali-799475ec15f7f5d8838fef3d8397d38fde082111.zip |
Refactored packages into public API, renamed interfaces
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/TableGenerator.java')
-rw-r--r-- | jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/TableGenerator.java | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/TableGenerator.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/TableGenerator.java new file mode 100644 index 0000000000..5a95870eb3 --- /dev/null +++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/TableGenerator.java @@ -0,0 +1,112 @@ +/******************************************************************************* + * Copyright (c) 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.context; + +import org.eclipse.jpt.db.internal.Schema; +import org.eclipse.jpt.db.internal.Table; + + +public interface TableGenerator extends Generator +{ + Integer DEFAULT_INITIAL_VALUE = Integer.valueOf(0); + + String getTable(); + + String getDefaultTable(); + String DEFAULT_TABLE_PROPERTY = "defaultTableProperty"; + String getSpecifiedTable(); + void setSpecifiedTable(String value); + String SPECIFIED_TABLE_PROPERTY = "specifiedTableProperty"; + + + + String getCatalog(); + + String getDefaultCatalog(); + String DEFAULT_CATALOG_PROPERTY = "defaultCatalogProperty"; + + String getSpecifiedCatalog(); + void setSpecifiedCatalog(String value); + String SPECIFIED_CATALOG_PROPERTY = "specifiedCatalogProperty"; + + + + String getSchema(); + + String getDefaultSchema(); + String DEFAULT_SCHEMA_PROPERTY = "defaultSchemaProperty"; + + String getSpecifiedSchema(); + void setSpecifiedSchema(String value); + String SPECIFIED_SCHEMA_PROPERTY = "specifiedSchemaProperty"; + + + + String getPkColumnName(); + + String getDefaultPkColumnName(); + String DEFAULT_PK_COLUMN_NAME_PROPERTY = "defaultPkColumnNameProperty"; + + String getSpecifiedPkColumnName(); + void setSpecifiedPkColumnName(String value); + String SPECIFIED_PK_COLUMN_NAME_PROPERTY = "specifiedPkColumnNameProperty"; + + + String getValueColumnName(); + + String getDefaultValueColumnName(); + String DEFAULT_VALUE_COLUMN_NAME_PROPERTY = "defaultValueColumnNameProperty"; + + String getSpecifiedValueColumnName(); + void setSpecifiedValueColumnName(String value); + String SPECIFIED_VALUE_COLUMN_NAME_PROPERTY = "specifiedValueColumnNameProperty"; + + + String getPkColumnValue(); + + String getDefaultPkColumnValue(); + String DEFAULT_PK_COLUMN_VALUE_PROPERTY = "defaultPkColummValueProperty"; + + String getSpecifiedPkColumnValue(); + void setSpecifiedPkColumnValue(String value); + String SPECIFIED_PK_COLUMN_VALUE_PROPERTY = "specifiedPkColummValueProperty"; + + +// EList<IUniqueConstraint> getUniqueConstraints(); + +// IUniqueConstraint createUniqueConstraint(int index); + + /** + * Return a db Schema object with the specified/default schema name. + * This can return null if no Schema exists on the database with that name. + */ + Schema dbSchema(); + + /** + * Return a db Table object with the specified/default table name. + * This can return null if no Table exists on the database with that name. + */ + Table dbTable(); + + +// class UniqueConstraintOwner implements IUniqueConstraint.Owner +// { +// private final ITableGenerator tableGenerator; +// +// public UniqueConstraintOwner(ITableGenerator tableGenerator) { +// super(); +// this.tableGenerator = tableGenerator; +// } +// +// public Iterator<String> candidateUniqueConstraintColumnNames() { +// return this.tableGenerator.dbTable().columnNames(); +// } +// } +} |