製品をチェック

無償トライアル:

無償トライアルへ

製品の情報と無償トライアルへ:

Bullhorn CRM JDBC Driver

Bullhorn CRM データに連携するJava アプリケーションを素早く、簡単に開発できる便利なドライバー。

データ連携でお困りですか?

お問い合わせ

JRuby からBullhorn CRM にデータ連携


リアルタイムBullhorn CRM に連携するシンプルなJRuby アプリケーションを作成します。


bullhorncrm ロゴ画像
jdbc ロゴ画像

JDBC

JRuby ロゴ画像

JRuby はRuby プログラミング言語の高性能で安定した、完全にスレッド化されたJava 実装です。CData JDBC Driver for BullhornCRM を使用すると、JRuby からリアルタイムBullhorn CRM へのデータ連携を簡単に実装できます。ここでは、Bullhorn CRM に接続し、クエリを実行して結果を表示する簡単なJRuby アプリを作成する方法を説明します。

Bullhorn CRM データにJDBC で接続

アプリを作成する前に、JDBC Driver のJAR ファイルのインストール場所をメモします。 (通常はC:\Program Files\CDatat\CData JDBC Driver for BullhornCRM\libにあります。)

JRuby は、JDBC をネイティブにサポートしているため、簡単にBullhorn CRM に接続してSQL クエリを実行できます。java.sql.DriverManager クラスのgetConnection 関数を使用してJDBC 接続を初期化します。

Begin by providing your Bullhorn CRM account credentials in the following:

If you are uncertain about your data center code, codes like CLS2, CLS21, etc. are cluster IDs that are contained in a user's browser URL (address bar) once they are logged in.

Example: https://cls21.bullhornstaffing.com/BullhornSTAFFING/MainFrame.jsp?#no-ba... indicates that the logged in user is on CLS21.

Authenticating with OAuth

Bullhorn CRM uses the OAuth 2.0 authentication standard. To authenticate using OAuth, create and configure a custom OAuth app. See the Help documentation for more information.

ビルトイン接続文字列デザイナー

JDBC URL の構成については、Bullhorn CRM JDBC Driver に組み込まれている接続文字列デザイナーを使用してください。JAR ファイルのダブルクリック、またはコマンドラインからJAR ファイルを実行します。

java -jar cdata.jdbc.bullhorncrm.jar

接続プロパティを入力し、接続文字列をクリップボードにコピーします。

Using the built-in connection string designer to generate a JDBC URL (Salesforce is shown.)

以下はBullhorn CRM の一般的なJDBC 接続文字列です。

jdbc:bullhorncrm:DataCenterCode=CLS33;OAuthClientId=myoauthclientid;OAuthClientSecret=myoauthclientsecret;InitiateOAuth=GETANDREFRESH

Bullhorn CRM データへの接続性を持つJRuby アプリを作成

新しいRuby ファイル(例: BullhornCRMSelect.rb) を作成してテキストエディタで開き、次のコードをファイルにコピーします。

require 'java' require 'rubygems' require 'C:/Program Files/CData/CData JDBC Driver for BullhornCRM 2018/lib/cdata.jdbc.bullhorncrm.jar' url = "jdbc:bullhorncrm:DataCenterCode=CLS33;OAuthClientId=myoauthclientid;OAuthClientSecret=myoauthclientsecret;InitiateOAuth=GETANDREFRESH" conn = java.sql.DriverManager.getConnection(url) stmt = conn.createStatement rs = stmt.executeQuery("SELECT Id, CandidateName FROM Candidate") while (rs.next) do puts rs.getString(1) + ' ' + rs.getString(2) end

ファイルが完成したら、コマンドラインからファイルを実行するだけでJRuby でBullhorn CRM を表示できるようになります。

jruby -S BullhornCRMSelect.rb

SQL-92 クエリをBullhorn CRM に書き込むと、Bullhorn CRM を独自のJRuby アプリケーションに素早く簡単に組み込むことができます。今すぐ無料トライアルをダウンロードしましょう。