Interface DBConnection
- All Superinterfaces:
Connection
,com.deiser.jira.profields.impl.connection.wrapper.Connection
,com.deiser.jira.profields.validation.validate.connection.TargetConnection
,com.deiser.jira.profields.validation.TargetValidate
,com.deiser.jira.profields.impl.Wrapper
public interface DBConnection
extends Connection, com.deiser.jira.profields.impl.connection.wrapper.Connection
Database connection
-
Method Summary
Modifier and TypeMethodDescriptionGet the connection string for database connectionGet the type of the database (MySql, Sql Server, Postgres, Oracle, Hsql)void
Set the database url.void
setDatabaseType
(DatabaseType type) Set the type of the database (MySql, Sql Server, Postgres, Oracle, Hsql)Methods inherited from interface com.deiser.jira.profields.impl.connection.wrapper.Connection
getDescription, getEntity, getId, getModel, getName, getType, isUsed, setDescription, setName
-
Method Details
-
getConnectionString
String getConnectionString()Get the connection string for database connection- Returns:
- the database url
-
setConnectionString
Set the database url.- Parameters:
url
- the database url
-
getDatabaseType
DatabaseType getDatabaseType()Get the type of the database (MySql, Sql Server, Postgres, Oracle, Hsql)- Returns:
- the database type
-
setDatabaseType
Set the type of the database (MySql, Sql Server, Postgres, Oracle, Hsql)- Parameters:
type
- the database type
-