package de.tu_berlin.dima.oligos.db.oracle;

import java.sql.SQLException;

import de.tu_berlin.dima.oligos.db.JdbcConnector;
import de.tu_berlin.dima.oligos.db.TableConnector;

public class OracleTableConnector implements TableConnector {

	public OracleTableConnector(JdbcConnector jdbcConnector) {
		// TODO Auto-generated constructor stub
	}

	@Override
	public long getCardinality(String schema, String table) throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

}

@@ -38,16 +38,45 @@
 racle;%0A%0A
+import java.math.BigDecimal;%0A
 import j
@@ -263,16 +263,189 @@
 ctor %7B%0A%0A
+  private final static String QUERY =%0A          %22SELECT table_name, num_rows FROM all_tables WHERE owner = ? AND table_name = ?%22;%0A%0A  private final JdbcConnector connector;%0A%0A
 %09public 
@@ -483,13 +483,9 @@
 tor 
-jdbcC
+c
 onne
@@ -496,49 +496,39 @@
 ) %7B%0A
-%09%09// TODO Auto-generated constructor stub
+    this.connector = connector;
 %0A%09%7D%0A
@@ -622,55 +622,103 @@
 n %7B%0A
-%09%09// TODO Auto-generated method stub%0A%09%09return 0
+    return connector.%3CBigDecimal%3EscalarQuery(QUERY, %22NUM_ROWS%22, schema, table).longValueExact()
 ;%0A%09%7D

Implement TableConnector for Oracle.