public class DataProtectGenerationStore extends JdbcAbstractStore
JdbcAbstractStore.Creator<T>, JdbcAbstractStore.DataType, JdbcAbstractStore.EntityPopulator<T>, JdbcAbstractStore.SqlOperation<R>, JdbcAbstractStore.StatementValues<T>
Modifier and Type | Field and Description |
---|---|
static JdbcAbstractStore.Creator<PartGeneration> |
CREATOR |
datasource, logger
Constructor and Description |
---|
DataProtectGenerationStore(javax.sql.DataSource dataSource) |
Modifier and Type | Method and Description |
---|---|
java.util.List<DataProtectGeneration> |
getGenerations() |
PartGeneration |
last(java.lang.String tag,
java.lang.String serverAddress) |
java.util.List<PartGeneration> |
listParts(java.lang.String tag,
java.lang.String serverAddress) |
DataProtectGeneration |
newGeneration(int id,
java.util.Date startTime,
VersionInfo vi) |
DataProtectGeneration |
newGeneration(VersionInfo version) |
int |
newPart(int genId,
java.lang.String tag,
java.lang.String serverAddress,
java.lang.String datatype) |
protected long |
nextSeqValue() |
void |
rewriteGenerations(java.util.List<DataProtectGeneration> generations) |
void |
updatePart(PartGeneration part) |
batchInsert, batchInsert, delete, delete, delete, doOrContinue, doOrFail, getConnection, insert, insert, insert, insert, insertAndReturn, insertWithSerial, lastInsertId, select, select, select, unique, unique, unique, unique, unique, update, update, update, update, update
public static JdbcAbstractStore.Creator<PartGeneration> CREATOR
public DataProtectGenerationStore(javax.sql.DataSource dataSource)
public DataProtectGeneration newGeneration(VersionInfo version) throws java.sql.SQLException
java.sql.SQLException
public DataProtectGeneration newGeneration(int id, java.util.Date startTime, VersionInfo vi) throws java.sql.SQLException
java.sql.SQLException
public int newPart(int genId, java.lang.String tag, java.lang.String serverAddress, java.lang.String datatype) throws java.sql.SQLException
java.sql.SQLException
public void updatePart(PartGeneration part) throws java.sql.SQLException
java.sql.SQLException
public void rewriteGenerations(java.util.List<DataProtectGeneration> generations) throws ServerFault
ServerFault
public java.util.List<PartGeneration> listParts(java.lang.String tag, java.lang.String serverAddress) throws java.sql.SQLException
java.sql.SQLException
public PartGeneration last(java.lang.String tag, java.lang.String serverAddress) throws java.sql.SQLException
java.sql.SQLException
protected long nextSeqValue() throws java.sql.SQLException
java.sql.SQLException
public java.util.List<DataProtectGeneration> getGenerations() throws java.sql.SQLException
java.sql.SQLException
Copyright © 2021. All Rights Reserved.