org.duraspace.fcrepo.cloudsync.service.dao
Class ObjectStoreDao
java.lang.Object
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)
|
| 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
ObjectStoreDao
public ObjectStoreDao(org.springframework.jdbc.core.JdbcTemplate db)
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.