ca.cbc.sportwire.xmldbms
Class ESPNKeyGenerator

java.lang.Object
  |
  +--ca.cbc.sportwire.xmldbms.ESPNKeyGenerator
All Implemented Interfaces:
de.tudarmstadt.ito.xmldbms.KeyGenerator

public class ESPNKeyGenerator
extends java.lang.Object
implements de.tudarmstadt.ito.xmldbms.KeyGenerator

ESPNKeyGenerator.java: Simple date-stamp key generator; should be elaborated later but will do for now.

Created: Tue Nov 20 15:36:58 2001
 $Log: ESPNKeyGenerator.java,v $
 Revision 1.2  2001/11/21 05:35:35  garym
 Fixed race conditions in singletons; implement different Map hack

 Revision 1.1  2001/11/20 21:35:17  garym
 Initial DOMtoDBMS connection using test tables and OLDTEXT


 

Version:
$Id: ESPNKeyGenerator.java,v 1.2 2001/11/21 05:35:35 garym Exp $
Author:
Gary Lawrence Murphy

Field Summary
private static ESPNKeyGenerator generator
           
 
Constructor Summary
private ESPNKeyGenerator()
           
 
Method Summary
 void close()
          close: does nothing
 java.lang.Object[] generateKey()
          generateKey: returns the current ms timer.
static ESPNKeyGenerator getInstance()
          getInstance: return the generator instance, synchronized to protect against concurrent calls.
 void initialize(java.util.Properties props)
          initialize: does nothing
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

generator

private static ESPNKeyGenerator generator
Constructor Detail

ESPNKeyGenerator

private ESPNKeyGenerator()
Method Detail

getInstance

public static ESPNKeyGenerator getInstance()
getInstance: return the generator instance, synchronized to protect against concurrent calls.
Returns:
an ESPNKeyGenerator value

close

public void close()
close: does nothing

generateKey

public java.lang.Object[] generateKey()
                               throws de.tudarmstadt.ito.xmldbms.KeyException
generateKey: returns the current ms timer.
Specified by:
generateKey in interface de.tudarmstadt.ito.xmldbms.KeyGenerator
Returns:
an Object[] value
Throws:
de.tudarmstadt.ito.xmldbms.KeyException - if an error occurs

initialize

public void initialize(java.util.Properties props)
initialize: does nothing
Parameters:
props - a Properties value