org.duraspace.fcrepo.cloudsync.service.dao
Class TaskLogDao

java.lang.Object
  extended by 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)
           
 
Method Summary
 void deleteTaskLog(String id)
           
 Date finish(String id, String resultType)
           
 PrintWriter getContentWriter(String id)
           
 TaskLog getTaskLog(String id)
           
 InputStream getTaskLogContent(String id)
           
 void initDb()
           
protected  String insert(String sql, Object... values)
           
 List<TaskLog> listTaskLogs()
           
 String start(String taskId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

db

protected final org.springframework.jdbc.core.JdbcTemplate db
Constructor Detail

TaskLogDao

public TaskLogDao(org.springframework.jdbc.core.JdbcTemplate db)
Method Detail

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.