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.
試みる/企てる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.
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.
試みる/企てる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 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.
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.