Package jetbrains.buildServer.xstream
Class JdbcDriver
- java.lang.Object
-
- jetbrains.buildServer.xstream.JdbcDriver
-
- All Implemented Interfaces:
Iterable<JdbcDriverFile>
@ThreadSafe public final class JdbcDriver extends Object implements Iterable<JdbcDriverFile>
JDBC driver descriptor.
- Since:
- 2018.1
- Author:
- Andrey Shcheglov <mailto:andrey.shcheglov@jetbrains.com>
-
-
Constructor Summary
Constructors Constructor Description JdbcDriver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDriverNote()
Returns a note to show before download button.int
getFileCount()
Returns the number of files this JDBC driver consists of.String
getLicenseUrl()
Returns the URL of the license, ornull
if none is available.String
getName()
Returns the name of this driver.Version
getVersion()
Returns the version of this driver.boolean
isEmpty()
Returnstrue
if the list of JDBC driver files is empty.Iterator<JdbcDriverFile>
iterator()
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getName
@Nullable public String getName()
Returns the name of this driver.
- Returns:
- the name of this driver.
-
getVersion
@Nullable public Version getVersion()
Returns the version of this driver.
- Returns:
- the version of this driver.
-
getLicenseUrl
@Nullable public String getLicenseUrl()
Returns the URL of the license, or
null
if none is available.- Returns:
- the URL of the license, or
null
if none is available.
-
getDriverNote
@Nullable public String getDriverNote()
Returns a note to show before download button.
- Returns:
- see above
-
isEmpty
public boolean isEmpty()
Returns
true
if the list of JDBC driver files is empty.- Returns:
true
if the list of JDBC driver files is empty.
-
getFileCount
@Nonnegative public int getFileCount()
Returns the number of files this JDBC driver consists of.
- Returns:
- the number of files this JDBC driver consists of.
-
iterator
@NotNull public Iterator<JdbcDriverFile> iterator()
- Specified by:
iterator
in interfaceIterable<JdbcDriverFile>
- See Also:
Iterable.iterator()
-
toString
@NotNull public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
-