public class PollenServiceSupport extends Object implements PollenService
Modifier and Type | Field and Description |
---|---|
protected PollenServiceContext |
serviceContext |
Constructor and Description |
---|
PollenServiceSupport() |
Modifier and Type | Method and Description |
---|---|
protected void |
commitTransaction(String errorMessage) |
protected <T extends org.nuiton.topia.persistence.TopiaEntity,D extends org.nuiton.topia.persistence.TopiaDAO<? super T>> |
create(D dao) |
protected <T extends org.nuiton.topia.persistence.TopiaEntity,D extends org.nuiton.topia.persistence.TopiaDAO<? super T>> |
createWithProperties(D dao,
Object... properties) |
String |
decorateDate(Date date) |
String |
decorateDateTime(Date date) |
protected <T extends org.nuiton.topia.persistence.TopiaEntity,D extends org.nuiton.topia.persistence.TopiaDAO<? super T>> |
delete(D dao,
T entity) |
protected void |
flushTransaction() |
protected PollenConfiguration |
getConfiguration() |
<T extends org.nuiton.topia.persistence.TopiaEntity,D extends org.nuiton.topia.persistence.TopiaDAO<? super T>> |
getDAO(Class<T> entityType) |
String |
getDatePattern() |
String |
getDateTimePattern() |
<E extends org.nuiton.topia.persistence.TopiaEntity> |
getEntities(Class<E> entityType) |
<E extends org.nuiton.topia.persistence.TopiaEntity> |
getEntities(PollenDAOHelper.PollenEntityEnum entityType) |
<E extends org.nuiton.topia.persistence.TopiaEntity> |
getEntityById(Class<E> entityType,
String id) |
protected Locale |
getLocale() |
protected org.nuiton.topia.TopiaContext |
getTransaction() |
protected <T extends org.nuiton.topia.persistence.TopiaEntity,D extends org.nuiton.topia.persistence.TopiaDAO<? super T>> |
newInstance(D dao) |
<E extends PollenService> |
newService(Class<E> serviceClass) |
void |
setServiceContext(PollenServiceContext serviceContext) |
protected <T extends org.nuiton.topia.persistence.TopiaEntity,D extends org.nuiton.topia.persistence.TopiaDAO<? super T>> |
update(D dao,
T entity) |
protected PollenServiceContext serviceContext
public void setServiceContext(PollenServiceContext serviceContext)
setServiceContext
in interface PollenService
public <E extends org.nuiton.topia.persistence.TopiaEntity> List<E> getEntities(PollenDAOHelper.PollenEntityEnum entityType)
public <E extends org.nuiton.topia.persistence.TopiaEntity> List<E> getEntities(Class<E> entityType)
public <E extends org.nuiton.topia.persistence.TopiaEntity> E getEntityById(Class<E> entityType, String id)
public <T extends org.nuiton.topia.persistence.TopiaEntity,D extends org.nuiton.topia.persistence.TopiaDAO<? super T>> D getDAO(Class<T> entityType)
public String getDateTimePattern()
public String getDatePattern()
public <E extends PollenService> E newService(Class<E> serviceClass)
protected <T extends org.nuiton.topia.persistence.TopiaEntity,D extends org.nuiton.topia.persistence.TopiaDAO<? super T>> T newInstance(D dao)
protected <T extends org.nuiton.topia.persistence.TopiaEntity,D extends org.nuiton.topia.persistence.TopiaDAO<? super T>> void delete(D dao, T entity)
protected <T extends org.nuiton.topia.persistence.TopiaEntity,D extends org.nuiton.topia.persistence.TopiaDAO<? super T>> T create(D dao)
protected <T extends org.nuiton.topia.persistence.TopiaEntity,D extends org.nuiton.topia.persistence.TopiaDAO<? super T>> T createWithProperties(D dao, Object... properties)
protected <T extends org.nuiton.topia.persistence.TopiaEntity,D extends org.nuiton.topia.persistence.TopiaDAO<? super T>> T update(D dao, T entity)
protected org.nuiton.topia.TopiaContext getTransaction()
protected Locale getLocale()
protected PollenConfiguration getConfiguration()
protected void commitTransaction(String errorMessage)
protected void flushTransaction() throws org.nuiton.topia.TopiaException
org.nuiton.topia.TopiaException
Copyright © 2009–2014 CodeLutin. All rights reserved.