Interface SchemaHistoryDao
-
- All Known Subinterfaces:
SchemaHistoryH2Dao,SchemaHistoryMariaDBDao,SchemaHistoryMySQLDao,SchemaHistoryPostgreSQLDao,SchemaHistorySQLiteDao
public interface SchemaHistoryDao
-
-
Field Summary
Fields Modifier and Type Field Description static StringQUERY_COUNT_VERSIONSstatic StringQUERY_DROPstatic StringQUERY_HIGHER_VERSIONstatic StringQUERY_INSERT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcountVersions()Count how many scripts are saved in the tablevoidcreate()Create the tablevoiddrop()Drop the tableinthigherVersion()Get the higher version in the tablevoidinsert(int version, String description, String script, long install)Insert a new script into the table
-
-
-
Field Detail
-
QUERY_DROP
static final String QUERY_DROP
- See Also:
- Constant Field Values
-
QUERY_INSERT
static final String QUERY_INSERT
- See Also:
- Constant Field Values
-
QUERY_HIGHER_VERSION
static final String QUERY_HIGHER_VERSION
- See Also:
- Constant Field Values
-
QUERY_COUNT_VERSIONS
static final String QUERY_COUNT_VERSIONS
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
void create()
Create the table
-
drop
void drop()
Drop the table
-
insert
void insert(int version, String description, String script, long install)Insert a new script into the table- Parameters:
version- the versiondescription- the descriptionscript- the script file nameinstall- the unix timestamp of the install date
-
higherVersion
int higherVersion()
Get the higher version in the table- Returns:
- the higher version
-
countVersions
int countVersions()
Count how many scripts are saved in the table- Returns:
- the number of scripts
-
-