このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


Interface XDriver
Language

The 解放する/自由な and Open 生産性 控訴
解放(する)d: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: 星/主役にする :: sdbc ::

interface XDriver
Description
is the interface that every driver class must 器具/実施する.

Each driver should 供給(する) a service that 器具/実施するs the Driver interface.

The DriverManager will try to 負担 as many drivers as it can find, and then for any given 関係 request, it will ask each driver in turn to try to connect to the 的 URL.

It is 堅固に recommended that each Driver 反対する should be small and standalone so that the Driver 反対する can be 負担d and queried without bringing in 広大な 量s of supporting code.

See also
XDriverManager, XConnection

Methods' 要約
connect 試みる/企てるs to make a database 関係 to the given URL. The driver should return NULL if it realizes it is the wrong 肉親,親類d of driver to connect to the given URL. This will be ありふれた, as when the driver 経営者/支配人 is asked to connect to a given URL it passes the URL to each 負担d driver in turn.  
acceptsURL returns true if the driver thinks that it can open a 関係 to the given URL. Typically drivers will return true if they understand the subprotocol 明示するd in the URL and 誤った if they do not.  
getPropertyInfo gets (警察などへの)密告,告訴(状) about the possible 所有物/資産/財産s for this driver.  
getMajorVersion gets the driver's major 見解/翻訳/版 number. 最初 this should be 1.  
getMinorVersion gets the driver's minor 見解/翻訳/版 number. 最初 this should be 0.  
Methods' 詳細(に述べる)s
connect
XConnection
connect( [in] string  url,
[in] sequence< ::com::sun::星/主役にする::beans::PropertyValue >  info )
raises( SQLException );

Description
試みる/企てるs to make a database 関係 to the given URL. The driver should return NULL if it realizes it is the wrong 肉親,親類d of driver to connect to the given URL. This will be ありふれた, as when the driver 経営者/支配人 is asked to connect to a given URL it passes the URL to each 負担d driver in turn.

The driver should raise a SQLException if it is the 権利 driver to connect to the given URL, but has trouble connecting to the database.

The info argument can be used to pass 独断的な string tag/value pairs as 関係 arguments. 普通は at least "使用者" and "password" 所有物/資産/財産s should be 含むd in the 所有物/資産/財産s. For a JDBC driver also the Java class must be 供給(する)d in the 所有物/資産/財産 指名するd JavaDriverClass, and a class path (a space-separated 名簿(に載せる)/表(にあげる) of URLs) needed to 位置を示す that class can optionally be 供給(する)d in a 所有物/資産/財産 指名するd JavaDriverClassPath. Possible 所有物/資産/財産 value 指名するs are when supported by the driver:

Parameter url
is the URL of the database to which to connect.
Parameter info
a 名簿(に載せる)/表(にあげる) of 独断的な string tag/value pairs as 関係 arguments. 普通は at least a "使用者" and "password" 所有物/資産/財産 should be 含むd.
Returns
a 関係 反対する that 代表するs a 関係 to the URL
Throws
SQLException if a database 接近 error occurs
See also
ConnectionProperties
See also
ConnectionProperties

acceptsURL
boolean
acceptsURL( [in] string  url )
raises( SQLException );

Description
returns true if the driver thinks that it can open a 関係 to the given URL. Typically drivers will return true if they understand the subprotocol 明示するd in the URL and 誤った if they do not.
Parameter url
is the URL of the database to which to connect.
Returns
true if this driver can connect to the given URL.
Throws
SQLException if a database 接近 error occurs.
getPropertyInfo
sequence< DriverPropertyInfo >
getPropertyInfo( [in] string  url,
[in] sequence< ::com::sun::星/主役にする::beans::PropertyValue >  info )
raises( SQLException );

Description
gets (警察などへの)密告,告訴(状) about the possible 所有物/資産/財産s for this driver.

The getPropertyInfo method is ーするつもりであるd to 許す a generic GUI 道具 to discover what 所有物/資産/財産s it should 誘発する a human for ーするために get enough (警察などへの)密告,告訴(状) to connect to a database. 公式文書,認める that depending on the values the human has 供給(する)d so far, 付加 values may become necessary, so it may be necessary to iterate though several calls to getPropertyInfo.

Parameter url
is the URL of the database to which to connect.
Parameter info
is a 提案するd 名簿(に載せる)/表(にあげる) of tag/value pairs that will be sent on connect open.
Returns
an array of DriverPropertyInfo 反対するs 述べるing possible 所有物/資産/財産s. This array may be an empty array if no 所有物/資産/財産s are 要求するd.
Throws
SQLException if a database 接近 error occurs.
getMajorVersion
long
getMajorVersion();

Description
gets the driver's major 見解/翻訳/版 number. 最初 this should be 1.
Returns
this driver's major 見解/翻訳/版 number
getMinorVersion
long
getMinorVersion();

Description
gets the driver's minor 見解/翻訳/版 number. 最初 this should be 0.
Returns
this driver's minor 見解/翻訳/版 number.
最高の,を越す of Page

Apache Software Foundation

Copyright & License | Privacy | 接触する Us | 寄付する | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are 登録(する)d trademarks of The Apache ソフトウェア 創立/基礎. The Apache feather logo is a trademark of The Apache ソフトウェア 創立/基礎. Other 指名するs appearing on the 場所/位置 may be trademarks of their 各々の owners.