Class LoginDatabase
java.lang.Object
br.net.dd.netherwingcore.database.common.GenericDatabase<LoginDatabaseStatements>
br.net.dd.netherwingcore.database.implementation.LoginDatabase
LoginDatabase is a singleton class that extends GenericDatabase to handle
database operations specific to the login database.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classData class representing account information retrieved from the database. -
Method Summary
Modifier and TypeMethodDescriptionprotected final booleanasyncExecute(LoginDatabaseStatements statement, Map<Integer, Object>... params) Asynchronous execution of a database statement.protected final ResultSetasyncQuery(LoginDatabaseStatements statement, Map<Integer, Object>... params) Asynchronous query execution.final booleanexecute(LoginDatabaseStatements statement, Map<Integer, Object>... params) Executes a database statement with the provided parameters.static LoginDatabase.AccountInfogetAccountByEmail(String email) Retrieves account information from the database based on the provided email.static LoginDatabaseRetrieves the singleton instance of LoginDatabase.final ResultSetquery(LoginDatabaseStatements statement, Map<Integer, Object>... params) Executes a query and returns the result set.protected final booleansyncExecute(LoginDatabaseStatements statement, Map<Integer, Object>... params) Synchronous execution of a database statement.protected final ResultSetsyncQuery(LoginDatabaseStatements statement, Map<Integer, Object>... params) Synchronous query execution.Methods inherited from class GenericDatabase
connect, disconnect, getConnection, getConnectionInfos, getPreparedStatement, paramCount
-
Method Details
-
getInstance
Retrieves the singleton instance of LoginDatabase.- Returns:
- The single instance of LoginDatabase.
-
execute
@SafeVarargs public final boolean execute(LoginDatabaseStatements statement, Map<Integer, Object>... params) Executes a database statement with the provided parameters.- Specified by:
executein classGenericDatabase<LoginDatabaseStatements>- Parameters:
statement- The database statement to execute.params- The parameters to bind to the statement.- Returns:
- true if the execution was successful, false otherwise.
- See Also:
-
syncExecute
@SafeVarargs protected final boolean syncExecute(LoginDatabaseStatements statement, Map<Integer, Object>... params) Synchronous execution of a database statement.- Specified by:
syncExecutein classGenericDatabase<LoginDatabaseStatements>- Parameters:
statement- The database statement to execute.params- The parameters to bind to the statement.- Returns:
- true if the execution was successful, false otherwise.
- See Also:
-
asyncExecute
@SafeVarargs protected final boolean asyncExecute(LoginDatabaseStatements statement, Map<Integer, Object>... params) Asynchronous execution of a database statement.- Specified by:
asyncExecutein classGenericDatabase<LoginDatabaseStatements>- Parameters:
statement- The database statement to execute.params- The parameters to bind to the statement.- Returns:
- true if the execution was successful, false otherwise.
- See Also:
-
query
@SafeVarargs public final ResultSet query(LoginDatabaseStatements statement, Map<Integer, Object>... params) Executes a query and returns the result set.- Specified by:
queryin classGenericDatabase<LoginDatabaseStatements>- Parameters:
statement- The database statement to query.params- The parameters to bind to the statement.- Returns:
- A ResultSet containing the results of the query.
- See Also:
-
syncQuery
@SafeVarargs protected final ResultSet syncQuery(LoginDatabaseStatements statement, Map<Integer, Object>... params) Synchronous query execution.- Specified by:
syncQueryin classGenericDatabase<LoginDatabaseStatements>- Parameters:
statement- The database statement to query.params- The parameters to bind to the statement.- Returns:
- A ResultSet containing the results of the query.
- See Also:
-
asyncQuery
@SafeVarargs protected final ResultSet asyncQuery(LoginDatabaseStatements statement, Map<Integer, Object>... params) Asynchronous query execution.- Specified by:
asyncQueryin classGenericDatabase<LoginDatabaseStatements>- Parameters:
statement- The database statement to query.params- The parameters to bind to the statement.- Returns:
- A ResultSet containing the results of the query.
- See Also:
-
getAccountByEmail
Retrieves account information from the database based on the provided email.- Parameters:
email- The email address associated with the account to retrieve.- Returns:
- An AccountInfo object containing the account details, or null if no account is found.
-