X-Git-Url: http://git.phpeclipse.com diff --git a/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/adapters/DatabaseAdapter.java b/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/adapters/DatabaseAdapter.java index 12bde71..1917e9f 100644 --- a/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/adapters/DatabaseAdapter.java +++ b/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/adapters/DatabaseAdapter.java @@ -1,8 +1,11 @@ package com.quantum.adapters; +import java.util.HashMap; +import java.util.Map; + import com.quantum.Messages; -import com.quantum.sql.SQLHelper; import com.quantum.util.StringUtil; +import com.quantum.util.sql.TypesHelper; /** * Abstract base class for all the adapter classes. Most functions can be redefined in @@ -127,7 +130,7 @@ public abstract class DatabaseAdapter { * @return */ protected boolean isTextType(int type, String typeString) { - return SQLHelper.isText(type); + return TypesHelper.isText(type); } @@ -212,4 +215,12 @@ public abstract class DatabaseAdapter { public String getType() { return this.type; } + + protected String getQualifiedName(String schema, String name) { + return (schema != null && schema.length() > 0) ? schema + "." + name : name; + } + + public Map getDefaultConnectionParameters() { + return new HashMap(); + } } \ No newline at end of file