Record view = new View().getRecord(dbc, "SELECT " + getName() + ".NEXTVAL FROM DUAL");
return view.getLongValue("NEXTVAL");
}
public long currValue(DBConnect dbc) throws SQLException {
Record view = new View().getRecord(dbc, "SELECT " + getName() + ".CURRVAL FROM DUAL");
return view.getLongValue("CURRVAL");
}