org.enhydra.shark.utilities.dods
Class DODSUtilities

java.lang.Object
  extended byorg.enhydra.shark.utilities.dods.DODSUtilities

public class DODSUtilities
extends java.lang.Object

DODSUtilities represents a toolbox for DODS based modules. There are static methods only in charge of some specific task.

Author:
Zoran Milakovic, Vladimir Puskas, Sasa Bojanic

Field Summary
static java.lang.String ENVIRONMENT_TYPE
           
static java.lang.String NULL_VALUE_FOR_PROCID
           
 
Method Summary
static java.math.BigDecimal getNext(java.lang.String objectName)
          Gets next value for counter named in objectName parameter if counter exists, otherwise new one will be started with value 1.
static void init(java.util.Properties properties)
          DODS runtime initialization.
protected static void setLDBName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL_VALUE_FOR_PROCID

public static final java.lang.String NULL_VALUE_FOR_PROCID
See Also:
Constant Field Values

ENVIRONMENT_TYPE

public static final java.lang.String ENVIRONMENT_TYPE
See Also:
Constant Field Values
Method Detail

getNext

public static java.math.BigDecimal getNext(java.lang.String objectName)
                                    throws java.lang.Exception
Gets next value for counter named in objectName parameter if counter exists, otherwise new one will be started with value 1.

Parameters:
objectName - name of a counter
Returns:
next value available for the counter
Throws:
java.lang.Exception - thrown if counter value cannot be acquired

init

public static void init(java.util.Properties properties)
                 throws java.lang.Exception
DODS runtime initialization.

Parameters:
properties - properites which will be used for init
Throws:
java.lang.Exception

setLDBName

protected static void setLDBName()