Class Engines
The server engines a database URL can name: their schemes, canonical names and default ports.
Nothing here opens a connection or decides which engines an application
carries -- that is whichever engine classes it names (see
ServerSession.Connector). This class knows every engine's URL scheme all
the same, so that a URL naming an engine is recognised as one rather than
opened as a SQLite file called "postgres:".
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringThe canonical name of an engine as the build property spells it, or null for a name that is none of them.static intdefaultPort(String engine) The port an engine listens on when the URL gives none.static StringThe engine whose scheme the URL opens with, or null when it has none of them and is therefore a SQLite path.
-
Field Details
-
SQLITE
-
POSTGRES
- See Also:
-
MYSQL
MySQL and MariaDB, which share a protocol and one client.- See Also:
-
SQLSERVER
- See Also:
-
ORACLE
- See Also:
-
-
Method Details
-
named
The engine whose scheme the URL opens with, or null when it has none of them and is therefore a SQLite path.
RFC 3986 makes a scheme case insensitive. regionMatches rather than toLowerCase: String.toLowerCase is locale sensitive and this runtime has no Locale to ask for the root one, so on a Turkish host the I of a scheme folds to a dotless i and stops matching.
-
defaultPort
The port an engine listens on when the URL gives none. -
canonical
-