-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
499 additions
and
81 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
...y/cobeine/sqlava/connection/Callback.java → ...e/cobeine/sqlava/connection/Callback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...cobeine/sqlava/connection/Connection.java → ...cobeine/sqlava/connection/Connection.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...e/sqlava/connection/ConnectionResult.java → ...e/sqlava/connection/ConnectionResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package my.cobeine.sqlava.connection; | ||
package me.cobeine.sqlava.connection; | ||
|
||
/** | ||
* The enum Connection result. | ||
|
4 changes: 2 additions & 2 deletions
4
...nection/auth/AuthenticatedConnection.java → ...nection/auth/AuthenticatedConnection.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/main/java/me/cobeine/sqlava/connection/auth/BasicMySQLCredentials.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package me.cobeine.sqlava.connection.auth; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
/** | ||
* @Author <a href="https://github.com/Cobeine">Cobeine</a> | ||
*/ | ||
@AllArgsConstructor | ||
@Getter | ||
public enum BasicMySQLCredentials implements CredentialsKey { | ||
HOST("serverName", String.class,true), | ||
PORT("port", Integer.class,true), | ||
DATABASE("databaseName", String.class,true), | ||
USERNAME("user", String.class,true), | ||
PASSWORD("password", String.class,true), | ||
MAX_LIFETIME("maximumLifetime", Integer.class,true), | ||
DATASOURCE_CLASS_NAME("dataSourceClassName", String.class,false), | ||
POOL_SIZE("poolSize", Integer.class,false), | ||
JDBC_URL("jdbcUrl",String.class,false); | ||
|
||
private final String key; | ||
private final Class<?> dataType; | ||
private final boolean property; | ||
|
||
@Override | ||
public CredentialsKey[] array() { | ||
return values(); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...qlava/connection/auth/CredentialsKey.java → ...qlava/connection/auth/CredentialsKey.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.