Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DIALECT_NAME
Default dialect name.
|
static ElapsedTime |
DEFAULT_RESPONDER_KEEP
Default responder keep time.
|
static int |
DEFAULT_SELECT_STATEMENTS_LIMIT
Default select statements limit.
|
static String |
DIALECT_CLASS_PROPERTY
Names the class to use for the database specific SQL dialect.
|
static ClassDef |
GENERIC_DIALECT
Generic dialect (used if the default dialect is unknown).
|
static String |
RESPONDER_KEEP_PROPERTY
Responder keep property.
|
static String |
SQL_CONNECTION_PROPERTIES
Properties group used to configure the JDBC connection.
|
static String |
SQL_CREATE_PROPERTY
The database table will be created if necessary.
|
static String |
STATEMENTS_PROPERTY
Statements property.
|
Constructor and Description |
---|
SQLBackEnd() |
Modifier and Type | Method and Description |
---|---|
void |
beginUpdates()
Begins updates.
|
void |
close()
Closes.
|
void |
commit()
Commits.
|
StoreValues |
createResponse(StoreValuesQuery query,
Optional<Identity> identity)
Creates store values for a store query.
|
int |
delete(VersionedValue versionedValue)
Deletes a point value.
|
void |
endUpdates()
Ends updates.
|
void |
open()
Opens.
|
int |
purge(UUID[] pointUUIDs,
TimeInterval timeInterval)
Purges points values.
|
void |
rollback()
Rolls back.
|
boolean |
setUp(TheStoreServiceAppImpl theStoreAppImpl)
Sets up the back end.
|
boolean |
supportsCount()
Asks if the back end supports count.
|
boolean |
supportsPurge()
Asks if the back end supports purge.
|
void |
tearDown()
Tears down what has been set up.
|
void |
update(VersionedValue versionedValue)
Updates a point value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newArchiver
public static final String DEFAULT_DIALECT_NAME
public static final ElapsedTime DEFAULT_RESPONDER_KEEP
public static final int DEFAULT_SELECT_STATEMENTS_LIMIT
public static final String DIALECT_CLASS_PROPERTY
public static final ClassDef GENERIC_DIALECT
public static final String RESPONDER_KEEP_PROPERTY
public static final String SQL_CONNECTION_PROPERTIES
public static final String SQL_CREATE_PROPERTY
public static final String STATEMENTS_PROPERTY
public void beginUpdates()
beginUpdates
in interface BackEnd
public StoreValues createResponse(StoreValuesQuery query, Optional<Identity> identity)
createResponse
in interface BackEnd
query
- The store query.identity
- The optional requesting identity.public int delete(VersionedValue versionedValue)
public void endUpdates()
endUpdates
in interface BackEnd
public void open() throws ServiceNotAvailableException
open
in interface BackEnd
ServiceNotAvailableException
- On failure.public int purge(UUID[] pointUUIDs, TimeInterval timeInterval)
public boolean setUp(TheStoreServiceAppImpl theStoreAppImpl)
public boolean supportsCount()
supportsCount
in interface BackEnd
public boolean supportsPurge()
supportsPurge
in interface BackEnd
public void tearDown()
public void update(VersionedValue versionedValue)
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.