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

java.lang.Object
  extended by org.duraspace.fcrepo.cloudsync.service.dao.ObjectSetDao

public class ObjectSetDao
extends Object


Field Summary
protected  org.springframework.jdbc.core.JdbcTemplate db
           
 
Constructor Summary
ObjectSetDao(org.springframework.jdbc.core.JdbcTemplate db)
           
 
Method Summary
 ObjectSet createObjectSet(ObjectSet objectSet)
           
 void deleteObjectSet(String id)
           
 ObjectSet getObjectSet(String id)
           
 void initDb()
           
protected  String insert(String sql, Object... values)
           
 List<ObjectSet> listObjectSets()
           
 ObjectSet updateObjectSet(String id, ObjectSet set)
           
 
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

ObjectSetDao

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

initDb

public void initDb()

createObjectSet

public ObjectSet createObjectSet(ObjectSet objectSet)
                          throws org.springframework.dao.DuplicateKeyException
Throws:
org.springframework.dao.DuplicateKeyException

listObjectSets

public List<ObjectSet> listObjectSets()

getObjectSet

public ObjectSet getObjectSet(String id)

updateObjectSet

public ObjectSet updateObjectSet(String id,
                                 ObjectSet set)
                          throws org.springframework.dao.DuplicateKeyException
Throws:
org.springframework.dao.DuplicateKeyException

deleteObjectSet

public void deleteObjectSet(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.