|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectibrokerkit.iservicestore.store.impl.db.DatabaseStore
public class DatabaseStore
Hibernate-based implementation of the Store interface.
| Constructor Summary | |
|---|---|
DatabaseStore(java.util.Properties properties)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the Store. |
Authentication |
createAuthentication()
Create a new Authentication i-service. |
Contact |
createContact()
Create a new Contact i-service. |
Forwarding |
createForwarding()
Create a new Forwarding i-service. |
Locator |
createLocator()
Create a new Locator i-service. |
void |
deleteAllIServices(java.lang.String qxri)
Deletes all i-services associated with a given QXRI field. |
void |
deleteObject(java.lang.Object object)
Deletes an object from the database. |
Authentication |
findAuthentication(java.lang.String qxri)
Find a single, enabled Authentication i-service with a given QXRI field. |
Authentication[] |
findAuthentications(java.lang.String qxri)
Find all Authentication i-services with a given QXRI field. |
Contact |
findContact(java.lang.String qxri)
Find a single, enabled Contact i-service with a given QXRI field. |
Contact[] |
findContacts(java.lang.String qxri)
Find all Contact i-services with a given QXRI field. |
Forwarding |
findForwarding(java.lang.String qxri)
Find a single, enabled Forwarding i-service with a given QXRI field. |
Forwarding[] |
findForwardings(java.lang.String qxri)
Find all Forwarding i-services with a given QXRI field. |
Locator |
findLocator(java.lang.String qxri)
Find a single, enabled Locator i-service with a given QXRI field. |
Locator[] |
findLocators(java.lang.String qxri)
Find all Locator i-services with a given QXRI field. |
Authentication |
getAuthentication(java.lang.Long id)
Get an Authentication i-service with a given ID. |
Contact |
getContact(java.lang.Long id)
Get a Contact i-service with a given ID. |
Forwarding |
getForwarding(java.lang.Long id)
Get an Forwarding i-service with a given ID. |
Locator |
getLocator(java.lang.Long id)
Get an Locator i-service with a given ID. |
org.hibernate.SessionFactory |
getSessionFactory()
Checks if the database connection is still alive; if not, try to reconnect, then throw exception. |
void |
init()
Initializes the Store. |
boolean |
isClosed()
True, if the Store has been initialized. |
boolean |
isInitialized()
True, if the Store has been initialized. |
Authentication[] |
listAuthentications()
List all Authentication i-services in the Store. |
Authentication[] |
listAuthenticationsByIndex(java.lang.String indx)
List all Authentication i-services with a given INDX field. |
Contact[] |
listContacts()
List all Contact i-services in the Store. |
Contact[] |
listContactsByIndex(java.lang.String indx)
List all Contact i-services with a given INDX field. |
Forwarding[] |
listForwardings()
List all Forwarding i-services in the Store. |
Forwarding[] |
listForwardingsByIndex(java.lang.String indx)
List all Forwarding i-services with a given INDX field. |
Locator[] |
listLocators()
List all Locator i-services in the Store. |
Locator[] |
listLocatorsByIndex(java.lang.String indx)
List all Locator i-services with a given INDX field. |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory)
Allow the connection to be changed externally. |
void |
updateObject(java.lang.Object object)
Updates an object in the database after modifications have been made. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DatabaseStore(java.util.Properties properties)
| Method Detail |
|---|
public void init()
throws StoreException
Store
init in interface StoreStoreExceptionpublic boolean isInitialized()
Store
isInitialized in interface Storepublic void close()
Store
close in interface Storepublic boolean isClosed()
Store
isClosed in interface Store
public org.hibernate.SessionFactory getSessionFactory()
throws StoreException
StoreExceptionpublic void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
sessionFactory -
public void updateObject(java.lang.Object object)
throws StoreException
Store
updateObject in interface StoreStoreException
public void deleteObject(java.lang.Object object)
throws StoreException
Store
deleteObject in interface StoreStoreException
public void deleteAllIServices(java.lang.String qxri)
throws StoreException
Store
deleteAllIServices in interface StoreStoreException
public Authentication createAuthentication()
throws StoreException
Store
createAuthentication in interface StoreStoreException
public Authentication getAuthentication(java.lang.Long id)
throws StoreException
Store
getAuthentication in interface StoreStoreException
public Authentication[] listAuthentications()
throws StoreException
Store
listAuthentications in interface StoreStoreException
public Authentication[] listAuthenticationsByIndex(java.lang.String indx)
throws StoreException
Store
listAuthenticationsByIndex in interface StoreStoreException
public Authentication findAuthentication(java.lang.String qxri)
throws StoreException
Store
findAuthentication in interface StoreStoreException
public Authentication[] findAuthentications(java.lang.String qxri)
throws StoreException
Store
findAuthentications in interface StoreStoreException
public Contact createContact()
throws StoreException
Store
createContact in interface StoreStoreException
public Contact getContact(java.lang.Long id)
throws StoreException
Store
getContact in interface StoreStoreException
public Contact[] listContacts()
throws StoreException
Store
listContacts in interface StoreStoreException
public Contact[] listContactsByIndex(java.lang.String indx)
throws StoreException
Store
listContactsByIndex in interface StoreStoreException
public Contact findContact(java.lang.String qxri)
throws StoreException
Store
findContact in interface StoreStoreException
public Contact[] findContacts(java.lang.String qxri)
throws StoreException
Store
findContacts in interface StoreStoreException
public Forwarding createForwarding()
throws StoreException
Store
createForwarding in interface StoreStoreException
public Forwarding getForwarding(java.lang.Long id)
throws StoreException
Store
getForwarding in interface StoreStoreException
public Forwarding[] listForwardings()
throws StoreException
Store
listForwardings in interface StoreStoreException
public Forwarding[] listForwardingsByIndex(java.lang.String indx)
throws StoreException
Store
listForwardingsByIndex in interface StoreStoreException
public Forwarding findForwarding(java.lang.String qxri)
throws StoreException
Store
findForwarding in interface StoreStoreException
public Forwarding[] findForwardings(java.lang.String qxri)
throws StoreException
Store
findForwardings in interface StoreStoreException
public Locator createLocator()
throws StoreException
Store
createLocator in interface StoreStoreException
public Locator getLocator(java.lang.Long id)
throws StoreException
Store
getLocator in interface StoreStoreException
public Locator[] listLocators()
throws StoreException
Store
listLocators in interface StoreStoreException
public Locator[] listLocatorsByIndex(java.lang.String indx)
throws StoreException
Store
listLocatorsByIndex in interface StoreStoreException
public Locator findLocator(java.lang.String qxri)
throws StoreException
Store
findLocator in interface StoreStoreException
public Locator[] findLocators(java.lang.String qxri)
throws StoreException
Store
findLocators in interface StoreStoreException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||