Package pt.opensoft.dbaccess

Examples of pt.opensoft.dbaccess.View


* User: Ricardo Caetano
*/
public abstract class OracleSequence {
 
    public long nextValue(DBConnect dbc) throws SQLException {
      Record view = new View().getRecord(dbc, "SELECT " + getName() + ".NEXTVAL FROM DUAL");
      return view.getLongValue("NEXTVAL");
    }
View Full Code Here


      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");
   
View Full Code Here

TOP

Related Classes of pt.opensoft.dbaccess.View

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.