Title: [933] trunk/activerecord-jdbc/src/java/jdbc_adapter/ JdbcAdapterInternalService.java: Fix up a few names and other annotation parameters
Revision
933
Author
nicksieger
Date
2008-03-08 00:15:27 -0500 (Sat, 08 Mar 2008)

Log Message

Fix up a few names and other annotation parameters

Modified Paths


Diff

Modified: trunk/activerecord-jdbc/src/java/jdbc_adapter/JdbcAdapterInternalService.java (932 => 933)


--- trunk/activerecord-jdbc/src/java/jdbc_adapter/JdbcAdapterInternalService.java	2008-03-08 05:15:21 UTC (rev 932)
+++ trunk/activerecord-jdbc/src/java/jdbc_adapter/JdbcAdapterInternalService.java	2008-03-08 05:15:27 UTC (rev 933)
@@ -102,7 +102,7 @@
         return p;
     }
 
-    @JRubyMethod(name = "insert?", required = 1)
+    @JRubyMethod(name = "insert?", required = 1, meta = true)
     public static IRubyObject insert_p(IRubyObject recv, IRubyObject _sql) {
         ByteList bl = rubyApi.convertToRubyString(_sql).getByteList();
 
@@ -141,7 +141,7 @@
         return recv.getRuntime().getFalse();
     }
 
-    @JRubyMethod(name = "select?", required = 1)
+    @JRubyMethod(name = "select?", required = 1, meta = true)
     public static IRubyObject select_p(IRubyObject recv, IRubyObject _sql) {
         ByteList bl = rubyApi.convertToRubyString(_sql).getByteList();
 
@@ -206,13 +206,13 @@
         return rubyApi.getInstanceVariable(recv, "@connection");
     }
 
-    @JRubyMethod(name = "disconnect")
+    @JRubyMethod(name = "disconnect!")
     public static IRubyObject disconnect(IRubyObject recv) {
         setConnection(recv, null);
         return recv;
     }
 
-    @JRubyMethod(name = "reconnect")
+    @JRubyMethod(name = "reconnect!")
     public static IRubyObject reconnect(IRubyObject recv) {
         setConnection(recv, getConnectionFactory(recv).newConnection());
         return recv;
@@ -401,7 +401,7 @@
         }
     }
 
-    @JRubyMethod(name = {"columns", "columns_internal"})
+    @JRubyMethod(name = {"columns", "columns_internal"}, required = 1, optional = 2)
     public static IRubyObject columns_internal(final IRubyObject recv, final IRubyObject[] args) throws SQLException, IOException {
         return withConnectionAndRetry(recv, new SQLBlock() {
             public IRubyObject call(Connection c) throws SQLException {
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel

Reply via email to