//Object prepStmnt = xConnection.prepareStatement("SELECT * FROM t1 WHERE t1.c1 = ?");
Object prepStmnt = xConnection.prepareStatement("SELECT * FROM i90114 WHERE i90114.c1 = ?");
((XParameters) UnoRuntime.queryInterface(XParameters.class, prepStmnt)).clearParameters();
((XParameters) UnoRuntime.queryInterface(XParameters.class, prepStmnt)).setInt(1, 1);
XResultSet xResultSet = ((XPreparedStatement) prepStmnt).executeQuery();
XRow xRow = (XRow) UnoRuntime.queryInterface(XRow.class, xResultSet);
XResultSetMetaDataSupplier xRsMetaSup = (XResultSetMetaDataSupplier) UnoRuntime.queryInterface(XResultSetMetaDataSupplier.class, xResultSet);
XResultSetMetaData xRsMetaData = xRsMetaSup.getMetaData();
int nColumnCount = xRsMetaData.getColumnCount();
System.out.println("== MetaData ==");
for (int i = 1; i <= nColumnCount; ++i)
{
System.out.println("Name: " + xRsMetaData.getColumnName(i) + " Type: " +
xRsMetaData.getColumnType(i));
}
System.out.println("== Result ==");
while (xResultSet.next())
{
String str = "not set";
XClob xClob = null;
xClob = xRow.getClob(2);
if (xClob != null)
{
System.out.println("xClob != null");
int len = (int) xClob.length();
str = xClob.getSubString(1, len);
}
else
{
System.out.println("xClob == null");
}
System.out.println("c1 (Int): " + xRow.getInt(1) + " c2 (String): " + xRow.getString(2) + " c3 (Clob): " + str);
}
xConnection.close();
}
catch (java.lang.Exception e)