IM-ERP Real Connect

jp.co.intra_mart.foundation.sap.common.auth
クラス SapClient

java.lang.Object
  上位を拡張 jp.co.intra_mart.foundation.sap.common.auth.SapClient
すべての実装されたインタフェース:
Serializable
直系の既知のサブクラス:
SapClientNoLoadBalancing, SapClientPool, SapClientWithLoadBalancing

public abstract class SapClient
extends Object
implements Serializable

SAPクライアント抽象クラス。
機能は以下の通り。

導入されたバージョン:
6.1
バージョン:
8.0
関連項目:
直列化された形式

入れ子のクラスの概要
protected static class SapClient.MyDestinationDataProvider
          宛先データのプロバイダーに関する内部クラスです。
 
フィールドの概要
protected  com.sap.conn.jco.JCoDestination connection
          JCOコネクション
 
コンストラクタの概要
protected SapClient(String serverType, String client, String user, String passwd, String lang)
          引数にて受け取った接続情報を属性にセットします。
 
メソッドの概要
protected  com.sap.conn.jco.JCoDestination createClient()
          JCOコネクションの生成を行います。
 boolean getAutoCommit()
          現在の自動コミットの状態を取得します。
 String getClient()
          クライアントを取得します。
protected abstract  String getDataDestinationName()
          接続先名を取得します。
protected abstract  Properties getDesiinationProperties()
          接続先情報プロパティを取得します。
 SapClient.MyDestinationDataProvider getDestinationDataProvider()
           
abstract  String getHost()
          接続先IPアドレスを取得する為の抽象メソッド

 String getIdentifier()
          コネクションの識別子を取得します。
 com.sap.conn.jco.JCoDestination getJCOClient()
          JCOコネクションの取得を行います。
 String getLang()
          言語を取得します。
 String getPasswd()
          パスワードを取得します。
 String getServerType()
          設定されているサーバータイプを取得します。
 String getUser()
          ユーザーを取得します。
 void release()
          JCOコネクションの開放を行います。
protected abstract  void releaseConnection()
          JCOコネクションの開放をを行う為の抽象メソッドです。
 void setAutoCommit(boolean autoCommit)
          この接続の自動コミットモードを設定します。
 void setClient(String client)
          クライアントを設定します。
 void setLang(String lang)
          言語を設定します。
 void setPasswd(String passwd)
          パスワードを設定します。
 void setUser(String user)
          ユーザーを設定します。
 String toString()
          デバッグ用のメソッドです。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

connection

protected com.sap.conn.jco.JCoDestination connection
JCOコネクション

コンストラクタの詳細

SapClient

protected SapClient(String serverType,
                    String client,
                    String user,
                    String passwd,
                    String lang)
引数にて受け取った接続情報を属性にセットします。

パラメータ:
serverType - サーバータイプ
client - クライアント
user - ユーザー
passwd - パスワード
lang - 言語
メソッドの詳細

createClient

protected com.sap.conn.jco.JCoDestination createClient()
                                                throws com.sap.conn.jco.JCoException
JCOコネクションの生成を行います。

コネクションを生成する際に DestinationProperties を更新します。 この処理は内部で直列化されます。

戻り値:
JCOコネクション
例外:
com.sap.conn.jco.JCoException - JCO例外

getDataDestinationName

protected abstract String getDataDestinationName()
接続先名を取得します。

戻り値:
接続先名

getDesiinationProperties

protected abstract Properties getDesiinationProperties()
接続先情報プロパティを取得します。

戻り値:
接続先情報

releaseConnection

protected abstract void releaseConnection()
                                   throws com.sap.conn.jco.JCoException
JCOコネクションの開放をを行う為の抽象メソッドです。

例外:
com.sap.conn.jco.JCoException - JCO例外

release

public void release()
             throws SAPAuthSystemException
JCOコネクションの開放を行います。

例外:
SAPAuthSystemException - 認証系システム例外

getJCOClient

public com.sap.conn.jco.JCoDestination getJCOClient()
                                             throws SAPAuthSystemException
JCOコネクションの取得を行います。

戻り値:
JCO.Client JCOコネクション
例外:
SAPAuthSystemException - 認証系システム例外

getLang

public String getLang()
言語を取得します。

戻り値:
lang 設定した言語

setLang

public void setLang(String lang)
言語を設定します。

パラメータ:
lang - 設定する言語

getPasswd

public String getPasswd()
パスワードを取得します。

戻り値:
passwd 設定したパスワード

setPasswd

public void setPasswd(String passwd)
パスワードを設定します。

パラメータ:
passwd - 設定するパスワード

getUser

public String getUser()
ユーザーを取得します。

戻り値:
user 設定したユーザー

setUser

public void setUser(String user)
ユーザーを設定します。

パラメータ:
user - 設定するユーザー

getClient

public String getClient()
クライアントを取得します。

戻り値:
client 設定したクライアント

setClient

public void setClient(String client)
クライアントを設定します。

パラメータ:
client - 設定するクライアント

getHost

public abstract String getHost()
接続先IPアドレスを取得する為の抽象メソッド

戻り値:
String 接続先IPアドレス

getIdentifier

public String getIdentifier()
コネクションの識別子を取得します。

戻り値:
identifier コネクションの識別子

getServerType

public String getServerType()
設定されているサーバータイプを取得します。

戻り値:
serverType サーバータイプ

getAutoCommit

public boolean getAutoCommit()
現在の自動コミットの状態を取得します。

戻り値:
現在の自動コミットモードの状態

setAutoCommit

public void setAutoCommit(boolean autoCommit)
この接続の自動コミットモードを設定します。
[注意] 本メソッドは、ConnectionManager意外から利用してはいけません。

パラメータ:
autoCommit - 自動コミットの状態

getDestinationDataProvider

public SapClient.MyDestinationDataProvider getDestinationDataProvider()

toString

public String toString()
デバッグ用のメソッドです。

オーバーライド:
クラス Object 内の toString
戻り値:
value すべての属性の値

IM-ERP Real Connect

Copyright (c) 2013 NTT DATA INTRAMART CORPORATION.