Package de.chojo.sqlutil.datasource
Class DbConfig
java.lang.Object
de.chojo.sqlutil.datasource.DbConfig
Class which provides basic data for a database
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(Properties properties) Apply the settings to a property
-
Constructor Details
-
DbConfig
public DbConfig(@Nullable @Nullable String address, @Nullable @Nullable String port, @Nullable @Nullable String user, @Nullable @Nullable String password, @Nullable @Nullable String database) Create a new DbConfiguration.Values which are null will be ignored
- Parameters:
address- addressport- portuser- userpassword- passworddatabase- database
-
-
Method Details
-
apply
Apply the settings to a property- Parameters:
properties- properties to apply the settings on
-