You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by aa...@apache.org on 2010/03/28 20:45:49 UTC
svn commit: r928473 - in
/cayenne/main/trunk/build-tools/cayenne-test-utilities/src/main/java/org/apache/cayenne/test:
DBHelper.java TableHelper.java
Author: aadamchik
Date: Sun Mar 28 18:45:48 2010
New Revision: 928473
URL: http://svn.apache.org/viewvc?rev=928473&view=rev
Log:
expanding TableHelper with wrappers for DbHelper methods pertainaing to the current table
Modified:
cayenne/main/trunk/build-tools/cayenne-test-utilities/src/main/java/org/apache/cayenne/test/DBHelper.java
cayenne/main/trunk/build-tools/cayenne-test-utilities/src/main/java/org/apache/cayenne/test/TableHelper.java
Modified: cayenne/main/trunk/build-tools/cayenne-test-utilities/src/main/java/org/apache/cayenne/test/DBHelper.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/build-tools/cayenne-test-utilities/src/main/java/org/apache/cayenne/test/DBHelper.java?rev=928473&r1=928472&r2=928473&view=diff
==============================================================================
--- cayenne/main/trunk/build-tools/cayenne-test-utilities/src/main/java/org/apache/cayenne/test/DBHelper.java (original)
+++ cayenne/main/trunk/build-tools/cayenne-test-utilities/src/main/java/org/apache/cayenne/test/DBHelper.java Sun Mar 28 18:45:48 2010
@@ -30,7 +30,7 @@ import java.sql.Timestamp;
import javax.sql.DataSource;
/**
- * JDBC utilities class for setting up and analyzing the DB data sets. DBHelper
+ * JDBC utility class for setting up and analyzing the DB data sets. DBHelper
* intentionally bypasses Cayenne stack.
*/
public class DBHelper {
Modified: cayenne/main/trunk/build-tools/cayenne-test-utilities/src/main/java/org/apache/cayenne/test/TableHelper.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/build-tools/cayenne-test-utilities/src/main/java/org/apache/cayenne/test/TableHelper.java?rev=928473&r1=928472&r2=928473&view=diff
==============================================================================
--- cayenne/main/trunk/build-tools/cayenne-test-utilities/src/main/java/org/apache/cayenne/test/TableHelper.java (original)
+++ cayenne/main/trunk/build-tools/cayenne-test-utilities/src/main/java/org/apache/cayenne/test/TableHelper.java Sun Mar 28 18:45:48 2010
@@ -23,7 +23,7 @@ import java.sql.Time;
import java.sql.Timestamp;
/**
- * JDBC utilities class for setting up and analyzing the DB data sets for a single table.
+ * JDBC utility class for setting up and analyzing the DB data sets for a single table.
* TableHelper intentionally bypasses Cayenne stack.
*/
public class TableHelper {
@@ -70,48 +70,47 @@ public class TableHelper {
return dbHelper.getRowCount(tableName);
}
- public Object getObject(String table, String column) throws SQLException {
+ public Object getObject(String column) throws SQLException {
return dbHelper.getObject(tableName, column);
}
- public byte getByte(String table, String column) throws SQLException {
+ public byte getByte(String column) throws SQLException {
return dbHelper.getByte(tableName, column);
}
- public byte[] getBytes(String table, String column) throws SQLException {
+ public byte[] getBytes(String column) throws SQLException {
return dbHelper.getBytes(tableName, column);
}
- public int getInt(String table, String column) throws SQLException {
+ public int getInt(String column) throws SQLException {
return dbHelper.getInt(tableName, column);
}
- public long getLong(String table, String column) throws SQLException {
+ public long getLong(String column) throws SQLException {
return dbHelper.getLong(tableName, column);
}
- public double getDouble(String table, String column) throws SQLException {
+ public double getDouble(String column) throws SQLException {
return dbHelper.getDouble(tableName, column);
}
- public boolean getBoolean(String table, String column) throws SQLException {
+ public boolean getBoolean(String column) throws SQLException {
return dbHelper.getBoolean(tableName, column);
}
- public java.util.Date getUtilDate(String table, String column) throws SQLException {
+ public java.util.Date getUtilDate(String column) throws SQLException {
return dbHelper.getUtilDate(tableName, column);
}
- public java.sql.Date getSqlDate(String table, String column) throws SQLException {
+ public java.sql.Date getSqlDate(String column) throws SQLException {
return dbHelper.getSqlDate(tableName, column);
}
- public Time getTime(String table, String column) throws SQLException {
+ public Time getTime(String column) throws SQLException {
return dbHelper.getTime(tableName, column);
}
- public Timestamp getTimestamp(String table, String column) throws SQLException {
+ public Timestamp getTimestamp(String column) throws SQLException {
return dbHelper.getTimestamp(tableName, column);
}
-
}