public abstract class AbstractHibernateI18NDAO<T extends AbstractIdentifierNameDescriptionEntity,S extends AbstractI18NMetadata,H extends AbstractHibernateI18NMetadata> extends Object implements I18NDAO<S>, HibernateI18NDAO<S>
Modifier and Type | Field and Description |
---|---|
private HibernateSessionHolder |
sessionHolder |
Constructor and Description |
---|
AbstractHibernateI18NDAO() |
Modifier and Type | Method and Description |
---|---|
protected abstract H |
createHibernateObject() |
protected Collection<S> |
createSosObject(List<H> hi18ns) |
protected abstract S |
createSosObject(String id) |
protected S |
createSosObject(String id,
List<H> h18ns) |
protected void |
deleteOldValues(String id,
org.hibernate.Session session) |
protected void |
fillHibernateObject(S i18n,
H h18n) |
protected void |
fillSosObject(H h18n,
S i18n) |
Collection<Locale> |
getAvailableLocales() |
Collection<Locale> |
getAvailableLocales(org.hibernate.Session session) |
protected abstract T |
getEntity(String id,
org.hibernate.Session session) |
protected abstract Class<H> |
getHibernateEntityClass() |
Collection<S> |
getMetadata() |
Collection<S> |
getMetadata(Collection<String> id) |
Collection<S> |
getMetadata(Collection<String> id,
Locale locale) |
Collection<S> |
getMetadata(Collection<String> id,
Locale locale,
org.hibernate.Session session) |
Collection<S> |
getMetadata(Collection<String> id,
org.hibernate.Session session) |
Collection<S> |
getMetadata(org.hibernate.Session session) |
S |
getMetadata(String id) |
S |
getMetadata(String id,
Locale locale) |
S |
getMetadata(String id,
Locale locale,
org.hibernate.Session session) |
S |
getMetadata(String id,
org.hibernate.Session session) |
boolean |
isSupported() |
void |
saveMetadata(S i18n) |
void |
saveMetadata(S i18n,
org.hibernate.Session session) |
private final HibernateSessionHolder sessionHolder
public S getMetadata(String id) throws OwsExceptionReport
getMetadata
in interface I18NDAO<S extends AbstractI18NMetadata>
OwsExceptionReport
public Collection<S> getMetadata(Collection<String> id) throws OwsExceptionReport
getMetadata
in interface I18NDAO<S extends AbstractI18NMetadata>
OwsExceptionReport
public S getMetadata(String id, Locale locale) throws OwsExceptionReport
getMetadata
in interface I18NDAO<S extends AbstractI18NMetadata>
OwsExceptionReport
public Collection<S> getMetadata(Collection<String> id, Locale locale) throws OwsExceptionReport
getMetadata
in interface I18NDAO<S extends AbstractI18NMetadata>
OwsExceptionReport
public Collection<S> getMetadata() throws OwsExceptionReport
getMetadata
in interface I18NDAO<S extends AbstractI18NMetadata>
OwsExceptionReport
public void saveMetadata(S i18n) throws OwsExceptionReport
saveMetadata
in interface I18NDAO<S extends AbstractI18NMetadata>
OwsExceptionReport
public Collection<Locale> getAvailableLocales() throws OwsExceptionReport
getAvailableLocales
in interface I18NDAO<S extends AbstractI18NMetadata>
OwsExceptionReport
public Collection<Locale> getAvailableLocales(org.hibernate.Session session) throws OwsExceptionReport
getAvailableLocales
in interface HibernateI18NDAO<S extends AbstractI18NMetadata>
OwsExceptionReport
public S getMetadata(String id, org.hibernate.Session session) throws OwsExceptionReport
getMetadata
in interface HibernateI18NDAO<S extends AbstractI18NMetadata>
OwsExceptionReport
public Collection<S> getMetadata(Collection<String> id, org.hibernate.Session session) throws OwsExceptionReport
getMetadata
in interface HibernateI18NDAO<S extends AbstractI18NMetadata>
OwsExceptionReport
public S getMetadata(String id, Locale locale, org.hibernate.Session session) throws OwsExceptionReport
getMetadata
in interface HibernateI18NDAO<S extends AbstractI18NMetadata>
OwsExceptionReport
public Collection<S> getMetadata(Collection<String> id, Locale locale, org.hibernate.Session session) throws OwsExceptionReport
getMetadata
in interface HibernateI18NDAO<S extends AbstractI18NMetadata>
OwsExceptionReport
public Collection<S> getMetadata(org.hibernate.Session session) throws OwsExceptionReport
getMetadata
in interface HibernateI18NDAO<S extends AbstractI18NMetadata>
OwsExceptionReport
public void saveMetadata(S i18n, org.hibernate.Session session) throws OwsExceptionReport
saveMetadata
in interface HibernateI18NDAO<S extends AbstractI18NMetadata>
OwsExceptionReport
public boolean isSupported()
isSupported
in interface I18NDAO<S extends AbstractI18NMetadata>
protected Collection<S> createSosObject(List<H> hi18ns)
protected void deleteOldValues(String id, org.hibernate.Session session)
protected abstract H createHibernateObject()
Copyright © 2012-2015 52north.org. All Rights Reserved.