X-Git-Url: http://git.phpeclipse.com diff --git a/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/model/Entity.java b/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/model/Entity.java index 845c751..c911730 100644 --- a/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/model/Entity.java +++ b/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/model/Entity.java @@ -1,11 +1,13 @@ package com.quantum.model; +import java.sql.SQLException; + import com.quantum.IQuantumConstants; /** * @author BC */ -public interface Entity extends BookmarkHolder { +public interface Entity extends BookmarkHolder, Comparable { public static final String TABLE_TYPE = IQuantumConstants.Table; public static final String VIEW_TYPE = IQuantumConstants.View; @@ -14,15 +16,14 @@ public interface Entity extends BookmarkHolder { public String getName(); public String getSchema(); public String getType(); - public Column[] getColumns(); - public Index[] getIndexes(); - public Column getColumn(String columnName); + public Column[] getColumns() throws NotConnectedException, SQLException; + public Index[] getIndexes() throws NotConnectedException, SQLException; + public Column getColumn(String columnName) throws NotConnectedException, SQLException; /** - * Returns a String with the qualified name of the Entity. - * That is, "schema.name". The difference with getQualifiedName() - * is that the schema may be absent if it's not defined in the bookmark + * Returns a String with the qualified name of the Entity in the + * format "schema.name". */ - public String getCondQualifiedName(); + public String getQualifiedName(); /** * @return - TRUE if the entity exists in the database
@@ -37,4 +38,7 @@ public interface Entity extends BookmarkHolder { * @return */ public String getQuotedTableName(); + public ForeignKey[] getExportedKeys() throws NotConnectedException, SQLException; + public ForeignKey[] getImportedKeys() throws NotConnectedException, SQLException; + public ForeignKey[] getReferences() throws NotConnectedException, SQLException; }