public class FileHostingStore extends JdbcAbstractStore
JdbcAbstractStore.Creator<T>, JdbcAbstractStore.DataType, JdbcAbstractStore.EntityPopulator<T>, JdbcAbstractStore.SqlOperation<R>, JdbcAbstractStore.StatementValues<T>
datasource
Constructor and Description |
---|
FileHostingStore(javax.sql.DataSource dataSource) |
Modifier and Type | Method and Description |
---|---|
void |
create(FileHostingEntity value) |
void |
create(FileHostingEntityInfo value) |
void |
delete(java.lang.String uid) |
java.util.List<FileHostingEntityInfo> |
deleteExpiredFiles(int retentionTimeInDays,
java.lang.String domainUid) |
java.util.List<FileHostingEntity> |
getActiveSharedFiles() |
java.util.List<FileHostingEntity> |
getByOwner(java.lang.String owner) |
FileHostingEntity |
getByPath(java.lang.String path) |
FileHostingEntity |
getByUid(java.lang.String uid) |
java.lang.Long |
getExpirationDate(java.lang.String uid) |
java.util.List<FileHostingEntityInfo> |
getExpiredFiles(int retentionTime) |
void |
update(FileHostingEntity value) |
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 void create(FileHostingEntityInfo value) throws ServerFault
ServerFault
public java.util.List<FileHostingEntityInfo> getExpiredFiles(int retentionTime) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<FileHostingEntity> getActiveSharedFiles() throws java.sql.SQLException
java.sql.SQLException
public void create(FileHostingEntity value) throws ServerFault
ServerFault
public void delete(java.lang.String uid)
public FileHostingEntity getByPath(java.lang.String path) throws ServerFault
ServerFault
public FileHostingEntity getByUid(java.lang.String uid) throws ServerFault
ServerFault
public java.util.List<FileHostingEntity> getByOwner(java.lang.String owner) throws java.sql.SQLException
java.sql.SQLException
public void update(FileHostingEntity value) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<FileHostingEntityInfo> deleteExpiredFiles(int retentionTimeInDays, java.lang.String domainUid) throws java.sql.SQLException
java.sql.SQLException
public java.lang.Long getExpirationDate(java.lang.String uid) throws ServerFault
ServerFault
Copyright © 2021. All Rights Reserved.