| 1 16 17 package org.pentaho.core.connection; 18 19 import java.util.List ; 20 import java.util.Properties ; 21 22 32 public interface IPentahoConnection { 33 36 public static final String CLASSNAME_KEY = "className"; 41 public static final String JNDI_NAME_KEY = "jndiName"; 46 public static final String DRIVER_KEY = "driver"; 51 public static final String LOCATION_KEY = "location"; 56 public static final String USERNAME_KEY = "userName"; 61 public static final String PASSWORD_KEY = "password"; 66 public static final String QUERY_KEY = "query"; 70 public static final String [] KEYS = new String [] { CLASSNAME_KEY, JNDI_NAME_KEY, DRIVER_KEY, LOCATION_KEY, USERNAME_KEY, PASSWORD_KEY, QUERY_KEY }; 71 72 75 void close(); 76 77 80 String getLastQuery(); 81 82 87 IPentahoResultSet executeQuery(String query) throws Exception ; 88 89 95 IPentahoResultSet prepareAndExecuteQuery(String query, List parameters) throws Exception ; 96 97 100 boolean preparedQueriesSupported(); 101 102 105 IPentahoResultSet getResultSet(); 106 107 110 boolean isClosed(); 111 112 117 boolean isReadOnly(); 118 119 122 void clearWarnings(); 123 124 129 boolean connect(Properties props); 130 131 135 void setMaxRows(int maxRows); 136 137 142 void setFetchSize(int fetchSize); 143 144 147 public boolean initialized(); 148 } 149 | Popular Tags |