Examples of defineFastMethod()


Examples of org.jruby.RubyModule.defineFastMethod()

public class JDBCMySQLSpec {
    public static void load(Ruby runtime, RubyModule jdbcSpec) {
        RubyModule mysql = jdbcSpec.defineModuleUnder("MySQL");
        CallbackFactory cf = runtime.callbackFactory(JDBCMySQLSpec.class);
        mysql.defineFastMethod("quote_string",cf.getFastSingletonMethod("quote_string",IRubyObject.class));
    }

    private final static ByteList ZERO = new ByteList(new byte[]{'\\','0'});
    private final static ByteList NEWLINE = new ByteList(new byte[]{'\\','n'});
    private final static ByteList CARRIAGE = new ByteList(new byte[]{'\\','r'});
View Full Code Here

Examples of org.jruby.RubyModule.defineFastMethod()

public class JDBCDerbySpec {
    public static void load(Ruby runtime, RubyModule jdbcSpec) {
        RubyModule derby = jdbcSpec.defineModuleUnder("Derby");
        CallbackFactory cf = runtime.callbackFactory(JDBCDerbySpec.class);
        derby.defineFastMethod("quote_string",cf.getFastSingletonMethod("quote_string",IRubyObject.class));
        derby.defineFastMethod("quote",cf.getFastOptSingletonMethod("quote"));
        derby.defineFastMethod("_execute",cf.getFastOptSingletonMethod("_execute"));
        derby.defineFastMethod("add_limit_offset!",cf.getFastSingletonMethod("add_limit_offset", IRubyObject.class, IRubyObject.class));
        derby.defineFastMethod("select_all",cf.getFastOptSingletonMethod("select_all"));
        derby.defineFastMethod("select_one",cf.getFastOptSingletonMethod("select_one"));
View Full Code Here

Examples of org.jruby.RubyModule.defineFastMethod()

public class JDBCDerbySpec {
    public static void load(Ruby runtime, RubyModule jdbcSpec) {
        RubyModule derby = jdbcSpec.defineModuleUnder("Derby");
        CallbackFactory cf = runtime.callbackFactory(JDBCDerbySpec.class);
        derby.defineFastMethod("quote_string",cf.getFastSingletonMethod("quote_string",IRubyObject.class));
        derby.defineFastMethod("quote",cf.getFastOptSingletonMethod("quote"));
        derby.defineFastMethod("_execute",cf.getFastOptSingletonMethod("_execute"));
        derby.defineFastMethod("add_limit_offset!",cf.getFastSingletonMethod("add_limit_offset", IRubyObject.class, IRubyObject.class));
        derby.defineFastMethod("select_all",cf.getFastOptSingletonMethod("select_all"));
        derby.defineFastMethod("select_one",cf.getFastOptSingletonMethod("select_one"));
        RubyModule col = derby.defineModuleUnder("Column");
View Full Code Here

Examples of org.jruby.RubyModule.defineFastMethod()

    public static void load(Ruby runtime, RubyModule jdbcSpec) {
        RubyModule derby = jdbcSpec.defineModuleUnder("Derby");
        CallbackFactory cf = runtime.callbackFactory(JDBCDerbySpec.class);
        derby.defineFastMethod("quote_string",cf.getFastSingletonMethod("quote_string",IRubyObject.class));
        derby.defineFastMethod("quote",cf.getFastOptSingletonMethod("quote"));
        derby.defineFastMethod("_execute",cf.getFastOptSingletonMethod("_execute"));
        derby.defineFastMethod("add_limit_offset!",cf.getFastSingletonMethod("add_limit_offset", IRubyObject.class, IRubyObject.class));
        derby.defineFastMethod("select_all",cf.getFastOptSingletonMethod("select_all"));
        derby.defineFastMethod("select_one",cf.getFastOptSingletonMethod("select_one"));
        RubyModule col = derby.defineModuleUnder("Column");
        col.defineFastMethod("type_cast",cf.getFastSingletonMethod("type_cast", IRubyObject.class));
View Full Code Here

Examples of org.jruby.RubyModule.defineFastMethod()

        RubyModule derby = jdbcSpec.defineModuleUnder("Derby");
        CallbackFactory cf = runtime.callbackFactory(JDBCDerbySpec.class);
        derby.defineFastMethod("quote_string",cf.getFastSingletonMethod("quote_string",IRubyObject.class));
        derby.defineFastMethod("quote",cf.getFastOptSingletonMethod("quote"));
        derby.defineFastMethod("_execute",cf.getFastOptSingletonMethod("_execute"));
        derby.defineFastMethod("add_limit_offset!",cf.getFastSingletonMethod("add_limit_offset", IRubyObject.class, IRubyObject.class));
        derby.defineFastMethod("select_all",cf.getFastOptSingletonMethod("select_all"));
        derby.defineFastMethod("select_one",cf.getFastOptSingletonMethod("select_one"));
        RubyModule col = derby.defineModuleUnder("Column");
        col.defineFastMethod("type_cast",cf.getFastSingletonMethod("type_cast", IRubyObject.class));
    }
View Full Code Here

Examples of org.jruby.RubyModule.defineFastMethod()

        CallbackFactory cf = runtime.callbackFactory(JDBCDerbySpec.class);
        derby.defineFastMethod("quote_string",cf.getFastSingletonMethod("quote_string",IRubyObject.class));
        derby.defineFastMethod("quote",cf.getFastOptSingletonMethod("quote"));
        derby.defineFastMethod("_execute",cf.getFastOptSingletonMethod("_execute"));
        derby.defineFastMethod("add_limit_offset!",cf.getFastSingletonMethod("add_limit_offset", IRubyObject.class, IRubyObject.class));
        derby.defineFastMethod("select_all",cf.getFastOptSingletonMethod("select_all"));
        derby.defineFastMethod("select_one",cf.getFastOptSingletonMethod("select_one"));
        RubyModule col = derby.defineModuleUnder("Column");
        col.defineFastMethod("type_cast",cf.getFastSingletonMethod("type_cast", IRubyObject.class));
    }
View Full Code Here

Examples of org.jruby.RubyModule.defineFastMethod()

        derby.defineFastMethod("quote_string",cf.getFastSingletonMethod("quote_string",IRubyObject.class));
        derby.defineFastMethod("quote",cf.getFastOptSingletonMethod("quote"));
        derby.defineFastMethod("_execute",cf.getFastOptSingletonMethod("_execute"));
        derby.defineFastMethod("add_limit_offset!",cf.getFastSingletonMethod("add_limit_offset", IRubyObject.class, IRubyObject.class));
        derby.defineFastMethod("select_all",cf.getFastOptSingletonMethod("select_all"));
        derby.defineFastMethod("select_one",cf.getFastOptSingletonMethod("select_one"));
        RubyModule col = derby.defineModuleUnder("Column");
        col.defineFastMethod("type_cast",cf.getFastSingletonMethod("type_cast", IRubyObject.class));
    }

    /*
 
View Full Code Here

Examples of org.jruby.RubyModule.defineFastMethod()

        derby.defineFastMethod("_execute",cf.getFastOptSingletonMethod("_execute"));
        derby.defineFastMethod("add_limit_offset!",cf.getFastSingletonMethod("add_limit_offset", IRubyObject.class, IRubyObject.class));
        derby.defineFastMethod("select_all",cf.getFastOptSingletonMethod("select_all"));
        derby.defineFastMethod("select_one",cf.getFastOptSingletonMethod("select_one"));
        RubyModule col = derby.defineModuleUnder("Column");
        col.defineFastMethod("type_cast",cf.getFastSingletonMethod("type_cast", IRubyObject.class));
    }

    /*
     * JdbcSpec::Derby::Column.type_cast(value)
     */
 
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.