Package org.jruby.pg.internal

Examples of org.jruby.pg.internal.ConnectionState.ordinal()


    @JRubyMethod(alias = "reset_poll")
    public IRubyObject connect_poll(ThreadContext context) {
      try {
        ConnectionState state = postgresqlConnection.connectPoll();
        return context.runtime.newFixnum(state.ordinal());
      } catch (Exception e) {
        throw newPgError(context, e.getLocalizedMessage(), null, getClientEncodingAsJavaEncoding(context));
      }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.