Sha256: a5fab3f5b035b1fd0b79fabd47a7698d8c87907e99ad0edec51f43262384ea22
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package jdbc_adapter; import org.jruby.Ruby; import org.jruby.RubyClass; import org.jruby.runtime.ObjectAllocator; import org.jruby.runtime.builtin.IRubyObject; /** * * @author enebo */ public class PostgresRubyJdbcConnection extends RubyJdbcConnection { protected PostgresRubyJdbcConnection(Ruby runtime, RubyClass metaClass) { super(runtime, metaClass); } public static RubyClass createPostgresJdbcConnectionClass(Ruby runtime, RubyClass jdbcConnection) { RubyClass clazz = RubyJdbcConnection.getConnectionAdapters(runtime).defineClassUnder("PostgresJdbcConnection", jdbcConnection, POSTGRES_JDBCCONNECTION_ALLOCATOR); clazz.defineAnnotatedMethods(PostgresRubyJdbcConnection.class); return clazz; } private static ObjectAllocator POSTGRES_JDBCCONNECTION_ALLOCATOR = new ObjectAllocator() { public IRubyObject allocate(Ruby runtime, RubyClass klass) { return new PostgresRubyJdbcConnection(runtime, klass); } }; }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activerecord-jdbc-adapter-0.9.1 | src/java/jdbc_adapter/PostgresRubyJdbcConnection.java |