Modifier and Type | Field and Description |
---|---|
private Properties |
emfProperties |
private static org.apache.commons.logging.Log |
log |
private EntityManager |
pc |
private String |
puName |
Constructor and Description |
---|
JPAFilter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
private void |
doDump(int level,
StringBuilder text,
Context context,
String name) |
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain) |
private void |
dump(Context context,
String name) |
private EntityManager |
getEntityManager() |
private Properties |
getEntityManagerFactoryProperties() |
private Properties |
getInitialContextProperties() |
protected String |
getPad(int level) |
void |
init(FilterConfig config) |
protected boolean |
isContext(String className) |
private static org.apache.commons.logging.Log log
private String puName
private Properties emfProperties
private EntityManager pc
public void init(FilterConfig config) throws ServletException
init
in interface Filter
ServletException
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
doFilter
in interface Filter
IOException
ServletException
private EntityManager getEntityManager() throws ServletException
ServletException
private Properties getInitialContextProperties()
private Properties getEntityManagerFactoryProperties()
private void doDump(int level, StringBuilder text, Context context, String name) throws NamingException
NamingException
protected boolean isContext(String className)
protected String getPad(int level)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.