public abstract class AuditorBase extends Object
Modifier and Type | Field and Description |
---|---|
private ConnectionFactory |
cf_ |
private EntityManager |
em_ |
private org.slf4j.Logger |
log_ |
private boolean |
publishJMS_ |
private Topic |
topic_ |
Constructor and Description |
---|
AuditorBase() |
Modifier and Type | Method and Description |
---|---|
int |
audit(String message) |
protected void |
close(Connection conn,
Session session) |
protected void |
close(Context jndi) |
protected AuditRecord |
persistRecord(AuditRecord rec) |
protected void |
publishRecord(AuditRecord rec) |
void |
setConnectionFactory(ConnectionFactory cf) |
void |
setEntityManager(EntityManager em) |
void |
setLog(org.slf4j.Logger log) |
void |
setPublishJMS(boolean publishJMS) |
void |
setTopic(Topic topic) |
private org.slf4j.Logger log_
private boolean publishJMS_
private EntityManager em_
private ConnectionFactory cf_
private Topic topic_
public void setLog(org.slf4j.Logger log)
public void setEntityManager(EntityManager em)
public void setConnectionFactory(ConnectionFactory cf)
public void setTopic(Topic topic)
public void setPublishJMS(boolean publishJMS)
public int audit(String message)
protected AuditRecord persistRecord(AuditRecord rec)
protected void publishRecord(AuditRecord rec)
protected void close(Connection conn, Session session)
protected void close(Context jndi)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.