I am using the JDBC driver from CData(cdata.com) to access a QuickBooks instance. The code below is right off the CData website(with the exception of qbConnString). The getConnection call works fine, but an exception is thrown when the query is executed.
connection = DriverManager.getConnection(qbConnString);
String cmd = "INSERT INTO Customers (LastName) VALUES (?)";
QuickBooksPreparedStatement pstmt =
(QuickBooksPreparedStatement) connection.prepareStatement(cmd,
Statement.RETURN_GENERATED_KEYS);
pstmt.setString(1, "Hook");
int count = pstmt.executeUpdate();
System.out.println(count + " rows are affected");
ResultSet rs = pstmt.getGeneratedKeys();
while (rs.next()) {
System.out.println(rs.getString("ListId"));
}
connection.close();
Here is the stack trace that is generated when executeUpdate is called:
XcoreXquickbooksX160X6254.ymc: The attribute name is required by RSBOperation.
at XcoreXquickbooksX160X6254.qi.executeUpdate(Unknown Source)
at app.JDBCConnect.qbConnect(JDBCConnect.java:49)
at app.JDBCConnect.<init>(JDBCConnect.java:34)
at app.JDBCConnect.main(JDBCConnect.java:25)
So my question is: what is a RSBOperation and where can I find documentation concerning the missing requirement?