public long position(SessionInterface session, String searchstr,
long start) {
ResultLob resultOut = ResultLob.newLobGetCharPatternPositionRequest(id,
searchstr.toCharArray(), start);
Result resultIn = session.execute(resultOut);
if (resultIn.isError()) {
throw resultIn.getException();
}
return ((ResultLob) resultIn).getOffset();
}