public class ShotgunSequenceDAO extends HibernateRepository<ShotgunSequence>
Modifier and Type | Field and Description |
---|---|
static String |
SHOTGUN_SEQUENCES_DIR |
Constructor and Description |
---|
ShotgunSequenceDAO() |
Modifier and Type | Method and Description |
---|---|
ShotgunSequence |
create(String fileName,
String depositor,
Entry entry,
String fileUUID,
Date date) |
void |
delete(Path dir,
ShotgunSequence shotgunSequence) |
ShotgunSequence |
get(long id) |
List<ShotgunSequence> |
getByEntry(Entry entry) |
ShotgunSequence |
getByFileId(String fileId) |
File |
getFile(String fileId) |
int |
getShotgunSequenceCount(Entry entry) |
void |
writeSequenceFileToDisk(String fileName,
InputStream inputStream) |
create, currentSession, delete, get, getBuilder, update
public static final String SHOTGUN_SEQUENCES_DIR
public ShotgunSequence create(String fileName, String depositor, Entry entry, String fileUUID, Date date)
public void writeSequenceFileToDisk(String fileName, InputStream inputStream) throws IOException
IOException
public List<ShotgunSequence> getByEntry(Entry entry)
public ShotgunSequence getByFileId(String fileId)
public int getShotgunSequenceCount(Entry entry)
public void delete(Path dir, ShotgunSequence shotgunSequence)
public ShotgunSequence get(long id)
Copyright © 2017. All rights reserved.