public interface BackingStorage extends Storage
Storage
should be implemented by classes that
interact directly with a form of storage (e.g. a database).
This interface contains methods which provide capabilities we do not want to
expose directly to clients. Clients should instead prepare statements using
Storage.prepareStatement(StatementDescriptor)
. The methods in this
interface then provide the mechanisms to execute the prepared statement, and
should only be used by the prepared statement implementations.Modifier and Type | Method and Description |
---|---|
<T extends Pojo> |
createAdd(Category<T> category) |
<T extends Pojo> |
createAggregateQuery(AggregateQuery.AggregateFunction function,
Category<T> category) |
<T extends Pojo> |
createQuery(Category<T> category) |
<T extends Pojo> |
createRemove(Category<T> category) |
<T extends Pojo> |
createReplace(Category<T> category) |
<T extends Pojo> |
createUpdate(Category<T> category) |
getConnection, loadFile, prepareStatement, purge, registerCategory, saveFile, shutdown
<T extends Pojo> Query<T> createAggregateQuery(AggregateQuery.AggregateFunction function, Category<T> category)
Copyright © 2016. All rights reserved.