Package org.fugerit.java.core.db.daogen
Class SimpleServiceProvider<T>
- java.lang.Object
-
- org.fugerit.java.core.db.daogen.BasicHelper
-
- org.fugerit.java.core.db.daogen.SimpleServiceProvider<T>
-
- All Implemented Interfaces:
Serializable
public abstract class SimpleServiceProvider<T> extends BasicHelper
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
logger
static String
SDF_ISO_FORMAT
-
Fields inherited from class org.fugerit.java.core.db.daogen.BasicHelper
UNSOPPORTED_OPERATION
-
-
Constructor Summary
Constructors Constructor Description SimpleServiceProvider()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
createResponseFromList(SimpleServiceResult<List<T>> result)
javax.ws.rs.core.Response
createResponseFromObject(SimpleServiceResult<T> result)
Object
createResultFromList(SimpleServiceResult<List<T>> result)
Object
createResultFromObject(SimpleServiceResult<T> result)
Date
defaultConvertToUtilDate(String s)
Use same format of XMLGregorianCalendarprotected abstract CloseableDAOContext
newDefaultContext()
static void
throwDAOException(Exception e)
-
Methods inherited from class org.fugerit.java.core.db.daogen.BasicHelper
throwUnsupported
-
-
-
-
Field Detail
-
logger
protected static org.slf4j.Logger logger
-
SDF_ISO_FORMAT
public static final String SDF_ISO_FORMAT
- See Also:
- Constant Field Values
-
-
Method Detail
-
throwDAOException
public static void throwDAOException(Exception e) throws DAOException
- Throws:
DAOException
-
newDefaultContext
protected abstract CloseableDAOContext newDefaultContext() throws DAOException
- Throws:
DAOException
-
createResultFromList
public Object createResultFromList(SimpleServiceResult<List<T>> result)
-
createResultFromObject
public Object createResultFromObject(SimpleServiceResult<T> result)
-
createResponseFromList
public javax.ws.rs.core.Response createResponseFromList(SimpleServiceResult<List<T>> result)
-
createResponseFromObject
public javax.ws.rs.core.Response createResponseFromObject(SimpleServiceResult<T> result)
-
-