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

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

public class ObjectStoreDao
extends Object


Field Summary
protected  org.springframework.jdbc.core.JdbcTemplate db
           
 
Constructor Summary
ObjectStoreDao(org.springframework.jdbc.core.JdbcTemplate db)
           
 
Method Summary
 ObjectStore createObjectStore(ObjectStore objectStore)
           
 void deleteObjectStore(String id)
           
 ObjectStore getObjectStore(String id)
           
 void initDb()
           
protected  String insert(String sql, Object... values)
           
 List<ObjectStore> listObjectStores()
           
 
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

ObjectStoreDao

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

initDb

public void initDb()

createObjectStore

public ObjectStore createObjectStore(ObjectStore objectStore)
                              throws org.springframework.dao.DuplicateKeyException
Throws:
org.springframework.dao.DuplicateKeyException

listObjectStores

public List<ObjectStore> listObjectStores()

getObjectStore

public ObjectStore getObjectStore(String id)

deleteObjectStore

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