Class VersionDAO
java.lang.Object
net.flectone.pulse.data.database.dao.VersionDAO
- All Implemented Interfaces:
BaseDAO<VersionSQL>
Data Access Object for version data in FlectonePulse.
Handles storage and retrieval of plugin version information in the database.
- Since:
- 1.6.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondatabase()Gets the database instance associated with this DAO.find()Finds the stored version name.voidinsertOrUpdate(@NonNull String name) Inserts or updates the version name.Class<? extends VersionSQL> sqlClass()Gets the SQL interface class for this DAO.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BaseDAO
getSQL, inTransaction, useCustomTransaction, useHandle, useTransaction, withHandle
-
Constructor Details
-
VersionDAO
-
-
Method Details
-
database
Description copied from interface:BaseDAOGets the database instance associated with this DAO.- Specified by:
databasein interfaceBaseDAO<VersionSQL>- Returns:
- the database instance
-
sqlClass
Description copied from interface:BaseDAOGets the SQL interface class for this DAO.- Specified by:
sqlClassin interfaceBaseDAO<VersionSQL>- Returns:
- the SQL interface class
-
find
-
insertOrUpdate
Inserts or updates the version name.- Parameters:
name- the version name
-