1 package net.sourceforge.phpdt.sql.adapters;
4 public class OracleAdapter extends DatabaseAdapter {
5 public String getShowTableQuery(DatabaseInfo info) {
6 return "SELECT TABLE_NAME FROM USER_TABLES";
8 public String getShowViewQuery(DatabaseInfo info) {
9 return "SELECT VIEW_NAME FROM USER_VIEWS";
11 public String getShowSequenceQuery(DatabaseInfo info) {
12 return "SELECT SEQUENCE_NAME FROM USER_SEQUENCES";
14 public String getNextValue(String sequence) {
15 return "SELECT LAST_NUMBER FROM USER_SEQUENCES WHERE SEQUENCE_NAME = '" + sequence + "'";
17 public DatabaseAdapter getInstance() {
18 return new OracleAdapter();