java.lang.Object
org.ahlner.Log4J2DB.beans.LogEventFacadeUtil
- public class LogEventFacadeUtil
- extends java.lang.Object
Utility class for LogEventFacade.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hexServerIP
private static java.lang.String hexServerIP
- Cached per JVM server IP.
seeder
private static final java.security.SecureRandom seeder
LogEventFacadeUtil
public LogEventFacadeUtil()
getHome
public static LogEventFacadeHome getHome()
throws javax.naming.NamingException
- Obtain remote home interface from default initial context
getHome
public static LogEventFacadeHome getHome(java.util.Hashtable environment)
throws javax.naming.NamingException
- Obtain remote home interface from parameterised initial context
generateGUID
public static final java.lang.String generateGUID(java.lang.Object o)
- A 32 byte GUID generator (Globally Unique ID). These artificial keys SHOULD NOT be seen by the user,
not even touched by the DBA but with very rare exceptions, just manipulated by the database and the programs.
Usage: Add an id field (type java.lang.String) to your EJB, and add setId(XXXUtil.generateGUID(this)); to the ejbCreate method.
getInt
private static int getInt(byte[] bytes)
hexFormat
private static java.lang.String hexFormat(int i,
int j)
padHex
private static java.lang.String padHex(java.lang.String s,
int i)