cern::laser::test::HashCodeKeyMaker Class Reference

List of all members.

Static Public Member Functions

static int makeKey (String key)
static int makeUUID () throws Exception
static void main (String args[]) throws Exception

Static Private Member Functions

static int getInt (byte bytes[])
static String hexFormat (int i, int j)
static String padHex (String s, int i)

Detailed Description

This class is used to generate primary keys as hash code and to generate UUID for EJB

Author:
Bartlomiej Pawlowski <Bartlomiej.Pawlowski@cern.ch>

Member Function Documentation

static int cern::laser::test::HashCodeKeyMaker::getInt ( byte  bytes[]  )  [inline, static, private]

Referenced by makeUUID().

static String cern::laser::test::HashCodeKeyMaker::hexFormat ( int  i,
int  j 
) [inline, static, private]

References padHex().

Referenced by makeUUID().

static void cern::laser::test::HashCodeKeyMaker::main ( String  args[]  )  throws Exception [inline, static]
static int cern::laser::test::HashCodeKeyMaker::makeKey ( String  key  )  [inline, static]

Creates a new instance of HashCodeKeyMaked

Parameters:
key 
static int cern::laser::test::HashCodeKeyMaker::makeUUID (  )  throws Exception [inline, static]

Generates UUID for EJB's

Returns:
UUID

References getInt(), and hexFormat().

static String cern::laser::test::HashCodeKeyMaker::padHex ( String  s,
int  i 
) [inline, static, private]

Referenced by hexFormat().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2