1) Added missing strings for italic, underline and strike through.
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / model / Entity.java
index 845c751..e4fd8a2 100644 (file)
@@ -1,28 +1,29 @@
 package com.quantum.model;
 
-import com.quantum.IQuantumConstants;
+import java.sql.SQLException;
 
 /**
  * @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;
-    public static final String SEQUENCE_TYPE = IQuantumConstants.Sequence;
+    public static final String TABLE_TYPE = "TABLE";
+    public static final String VIEW_TYPE = "VIEW";
+    public static final String SEQUENCE_TYPE = "SEQUENCE";
     
     public String getName();
     public String getSchema();
     public String getType();
-    public Column[] getColumns();
-    public Index[] getIndexes();
-    public Column getColumn(String columnName);
+       public boolean isSynonym();
+       
+    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<br />
@@ -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;
 }