fixed Bug 1024299
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / adapters / OracleAdapter.java
index a7fc544..78d2cce 100644 (file)
@@ -1,20 +1,22 @@
 package com.quantum.adapters;
 
 import com.quantum.Messages;
-import com.quantum.sql.SQLHelper;
 import com.quantum.util.QuantumUtil;
 
 
 
 public class OracleAdapter extends DatabaseAdapter {
-       public String getShowSequenceQuery(String qualifier, boolean isDefault) {
+       protected OracleAdapter() {
+               super(AdapterFactory.ORACLE);
+       }
+       public String getShowSequenceQuery(String qualifier) {
         return "SELECT SEQUENCE_OWNER, SEQUENCE_NAME FROM ALL_SEQUENCES WHERE SEQUENCE_OWNER = '" + qualifier + "'"; //$NON-NLS-1$
        }
        public String getPrevValue(String sequence, String owner) {
        return "SELECT LAST_NUMBER FROM ALL_SEQUENCES WHERE SEQUENCE_OWNER = '" + owner + "' AND SEQUENCE_NAME = '" + sequence + "'"; //$NON-NLS-1$ //$NON-NLS-2$
-       }       
+       }
        public String getNextValue(String sequence, String owner) {
-               return "SELECT " + SQLHelper.getQualifiedName(owner, sequence) + ".NEXTVAL FROM DUAL";
+               return "SELECT " + getQualifiedName(owner, sequence) + ".NEXTVAL FROM DUAL";
        }
        public String getCommentsQuery(String tableName, String column) {
                String query = "SELECT COMMENTS FROM ALL_COL_COMMENTS WHERE TABLE_NAME = '";