Interface DatabaseMetaData
- All Known Implementing Classes:
DBMetaMariaDB,DBMetaMSSQL,DBMetaMySQL
public interface DatabaseMetaData
Defines meta information for database types, such as JDBC urls, the syntax and how parameters are processed.
- Version:
- 1.0.0
- Author:
- Julian Weinelt
-
Method Summary
Modifier and TypeMethodDescriptionGet the default parameters of this database type.intGet the default port of this databaseThe engine name of this database, e.g.Gets the part of the jdbc url after jdbc:[String]://jdbcURL()Gets the JDBC URL as aStringobject containing all needed placeholders.parameters(Map<String, String> parameters) Define how parameters are added to the JDBC URL.syntax()Gets how this database's syntax is defined.
-
Method Details
-
jdbcString
String jdbcString()Gets the part of the jdbc url after jdbc:[String]://- Returns:
- The JDBC String
-
jdbcURL
String jdbcURL()Gets the JDBC URL as aStringobject containing all needed placeholders.- Returns:
- A full JDBC URL with placeholders
-
syntax
DatabaseSyntax syntax()Gets how this database's syntax is defined.- Returns:
- A
DatabaseSyntaxobject defining the syntax
-
engineName
String engineName()The engine name of this database, e.g. "mysql"- Returns:
- The engine's name, often the same as
jdbcString()
-
parameters
Define how parameters are added to the JDBC URL. -
defaultParameters
ADatabase.ParameterBuilder defaultParameters()Get the default parameters of this database type.- Returns:
- A
ADatabase.ParameterBuilderobject containing all default parameters.
-
defaultPort
int defaultPort()Get the default port of this database- Returns:
- An integer of the port that is used by default
-