adding plug-in provider xdebug.core and xdebug.ui to fix ticket #640
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / model / EntityFactory.java
index de48c0f..f10fd2d 100644 (file)
@@ -17,17 +17,17 @@ public class EntityFactory {
         return EntityFactory.instance;
     }
     
-    public Entity create(Bookmark bookmark, String schema, String name, String type) {
+    public Entity create(Bookmark bookmark, String schema, String name, String type, boolean isSynonym) {
         if (type != null) {
             type = type.toUpperCase().trim();
         }
         
         if (Entity.TABLE_TYPE.equals(type)) {
-            return new TableImpl(bookmark, schema, name);
+            return new TableImpl(bookmark, schema, name, isSynonym);
         } else if (Entity.VIEW_TYPE.equals(type)) {
-            return new ViewImpl(bookmark, schema, name);
+            return new ViewImpl(bookmark, schema, name, isSynonym);
         } else if (Entity.SEQUENCE_TYPE.equals(type)) {
-            return new SequenceImpl(bookmark, schema, name);
+            return new SequenceImpl(bookmark, schema, name, isSynonym);
         } else {
             return null;
 //            throw new IllegalArgumentException("Unknown type: " + type);