Interface SchemaHistoryPostgreSQLDao
-
- All Superinterfaces:
SchemaHistoryDao
public interface SchemaHistoryPostgreSQLDao extends SchemaHistoryDao
-
-
Field Summary
Fields Modifier and Type Field Description static StringQUERY_COUNT_VERSIONSstatic StringQUERY_CREATEstatic 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_CREATE
static final String QUERY_CREATE
- See Also:
- Constant Field Values
-
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()
Description copied from interface:SchemaHistoryDaoCreate the table- Specified by:
createin interfaceSchemaHistoryDao
-
drop
void drop()
Description copied from interface:SchemaHistoryDaoDrop the table- Specified by:
dropin interfaceSchemaHistoryDao
-
insert
void insert(int version, String description, String script, long install)Description copied from interface:SchemaHistoryDaoInsert a new script into the table- Specified by:
insertin interfaceSchemaHistoryDao- Parameters:
version- the versiondescription- the descriptionscript- the script file nameinstall- the unix timestamp of the install date
-
higherVersion
int higherVersion()
Description copied from interface:SchemaHistoryDaoGet the higher version in the table- Specified by:
higherVersionin interfaceSchemaHistoryDao- Returns:
- the higher version
-
countVersions
int countVersions()
Description copied from interface:SchemaHistoryDaoCount how many scripts are saved in the table- Specified by:
countVersionsin interfaceSchemaHistoryDao- Returns:
- the number of scripts
-
-