org.duraspace.fcrepo.cloudsync.service.dao
Class TaskLogDao
java.lang.Object
org.duraspace.fcrepo.cloudsync.service.dao.TaskLogDao
public class TaskLogDao
- extends Object
|
Field Summary |
protected org.springframework.jdbc.core.JdbcTemplate |
db
|
|
Constructor Summary |
TaskLogDao(org.springframework.jdbc.core.JdbcTemplate db)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
db
protected final org.springframework.jdbc.core.JdbcTemplate db
TaskLogDao
public TaskLogDao(org.springframework.jdbc.core.JdbcTemplate db)
initDb
public void initDb()
start
public String start(String taskId)
getContentWriter
public PrintWriter getContentWriter(String id)
finish
public Date finish(String id,
String resultType)
listTaskLogs
public List<TaskLog> listTaskLogs()
getTaskLog
public TaskLog getTaskLog(String id)
getTaskLogContent
public InputStream getTaskLogContent(String id)
throws FileNotFoundException
- Throws:
FileNotFoundException
deleteTaskLog
public void deleteTaskLog(String id)
insert
protected String insert(String sql,
Object... values)
throws org.springframework.dao.DuplicateKeyException
- Throws:
org.springframework.dao.DuplicateKeyException
Copyright © 2012 DuraSpace. All Rights Reserved.