Search in sources :

Example 11 with ResultMetaData

use of org.hsqldb_voltpatches.result.ResultMetaData in project voltdb by VoltDB.

the class LobManager method createClob.

public long createClob(long length) {
    long lobID = getNewLobID(sysLobSession);
    ResultMetaData meta = createLob.getParametersMetaData();
    Object[] params = new Object[meta.getColumnCount()];
    params[0] = Long.valueOf(lobID);
    params[1] = Long.valueOf(length);
    params[2] = Long.valueOf(1);
    params[3] = Integer.valueOf(Types.SQL_CLOB);
    Result result = sysLobSession.executeCompiledStatement(createLob, params);
    return lobID;
}
Also used : ResultMetaData(org.hsqldb_voltpatches.result.ResultMetaData) Result(org.hsqldb_voltpatches.result.Result)

Aggregations

Result (org.hsqldb_voltpatches.result.Result)11 ResultMetaData (org.hsqldb_voltpatches.result.ResultMetaData)11 RowSetNavigator (org.hsqldb_voltpatches.navigator.RowSetNavigator)2 Session (org.hsqldb_voltpatches.Session)1