java.lang.Object
org.firebirdsql.gds.impl.BaseGDSFactoryPlugin
- All Implemented Interfaces:
GDSFactoryPlugin
- Direct Known Subclasses:
WireGDSFactoryPlugin
Base class for
GDSFactoryPlugin
implementations.
Handles commonalities across existing implementations.
- Since:
- 3.0
- Author:
- Mark Rotteveel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Class<?>
Class used for connection.getDatabasePath
(String jdbcUrl) getDatabasePath
(String server, Integer port, String path) The default protocol prefix for this type (for example, for PURE_JAVA, it's"jdbc:firebirdsql:"
.final int
hashCode()
protected static void
requirePath
(String path) Checks ifpath
is notnull
.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.firebirdsql.gds.impl.GDSFactoryPlugin
getDatabaseFactory, getDatabasePath, getPluginName, getSupportedProtocolList, getSupportedProtocols, getTypeAliases, getTypeAliasList, getTypeName
-
Constructor Details
-
BaseGDSFactoryPlugin
public BaseGDSFactoryPlugin()
-
-
Method Details
-
getConnectionClass
Description copied from interface:GDSFactoryPlugin
Class used for connection.The class must define a one-arg constructor accepting
FBManagedConnection
. Currently, the Jaybird implementation also requires that the class isFBConnection
or a subclass. This may change in the future.- Specified by:
getConnectionClass
in interfaceGDSFactoryPlugin
- Returns:
- class for connection
-
getDefaultProtocol
Description copied from interface:GDSFactoryPlugin
The default protocol prefix for this type (for example, for PURE_JAVA, it's"jdbc:firebirdsql:"
.The protocol prefix must be distinct from other plugins.
- Specified by:
getDefaultProtocol
in interfaceGDSFactoryPlugin
- Returns:
- default protocol name
-
getDatabasePath
- Specified by:
getDatabasePath
in interfaceGDSFactoryPlugin
- Throws:
SQLException
-
requirePath
Checks ifpath
is notnull
.- Parameters:
path
- path to check- Throws:
SQLException
- ifpath
isnull
- Since:
- 6
-
getDatabasePath
- Specified by:
getDatabasePath
in interfaceGDSFactoryPlugin
- Throws:
SQLException
-
hashCode
public final int hashCode() -
equals
-