Skip to main content

Table 2 Example of API methods intercepted

From: Testing data-centric services using poor quality data: from relational to NoSQL document databases

JDBC API MongoDB API CouchDB API
java.sql.ResultSe org.bson.BasicBSONObject org.lightcouch.View
String getString(String columnLabel) String getString(String key) String queryForString()
long getLong(String columnLabel) long getLong (String key) long queryForLong()
int getInt(String columnLabel) int getInt (String key) int queryForInt()
boolean getBoolean(String columnLabel) boolean getBoolean(String key) boolean queryForBoolean()
Date getDate(String columnLabel) Date getDate(String field)
T getObject(String columnLabel, Class<T> type) Object org.bson.BSONObject.get(String key) List<T>query(Class<T> classOfT)
... ... ...