Kereta Yarsi Indonesia
|
Public Member Functions | |
DatabaseConnector () | |
Static Public Member Functions | |
static Connection | getConnect () |
static DatabaseConnector | getInstance () |
Static Public Attributes | |
static Connection | con |
static DatabaseConnector | instance |
static Statement | st |
static ResultSet | rs |
static PreparedStatement | ps |
Static Protected Attributes | |
static final String | DELIMITER = ":" |
static final int | ITERATION_COUNT = 65536 |
static final int | KEY_LENGTH = 256 |
Manages the connection and operations with the MySQL database.
This class provides methods to interact with the database, such as executing queries, inserting data, hashing passwords, and managing database connections.
|
inline |
Constructs a DatabaseConnector object and initializes the database connection.
It also registers the MySQL JDBC driver and attempts to establish a connection to the specified database.
|
inlinestatic |
Returns the current database connection instance.
|
inlinestatic |
Returns the singleton instance of the DatabaseConnector class.
|
static |
|
staticprotected |
|
static |
|
staticprotected |
|
staticprotected |
|
static |
|
static |
|
static |