com.softwareag.tamino.db.api.common
Class TIdentity

java.lang.Object
  extended by com.softwareag.tamino.db.api.common.TIdentity

public class TIdentity
extends java.lang.Object

TIdentity contains the information that identifies the JavaTaminoAPI component. Therefore it keeps the SAG product code and the CVS tag name of this component. This information may also be retrieved via this classes static main() method.

Version:
$Revision: 1.6 $
Author:
Stefan Liebig

Method Summary
static TIdentity getInstance()
          Gets the singleton instance.
 java.lang.String getJavaVersion()
          Get the Java version.
 java.util.Locale getLocale()
          Gets the locale.
 java.lang.String getOSNameAndVersion()
          Get the OS name and version.
 java.lang.String getProductCode()
          Get the Software AG product code.
 java.lang.String getProductVersion()
          Get the CVS tag for the API component.
 boolean isJavaVersionBelow14()
          Check whether the used JDK is below 1.4.
static boolean isJavaVersionBelow14(java.lang.String javaVersion)
          Check whether the used JDK is below 1.4.
 void setLocale(java.util.Locale locale)
          Sets the locale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static TIdentity getInstance()
Gets the singleton instance.


getProductCode

public java.lang.String getProductCode()
Get the Software AG product code.

Returns:
the product code

getProductVersion

public java.lang.String getProductVersion()
Get the CVS tag for the API component.

Returns:
the CVS tag

getJavaVersion

public java.lang.String getJavaVersion()
Get the Java version.

Returns:
the java version

getOSNameAndVersion

public java.lang.String getOSNameAndVersion()
Get the OS name and version.

Returns:
the OS name and version

setLocale

public void setLocale(java.util.Locale locale)
Sets the locale.


getLocale

public java.util.Locale getLocale()
Gets the locale.

Returns:
the locale.

isJavaVersionBelow14

public boolean isJavaVersionBelow14()
Check whether the used JDK is below 1.4.

Returns:
Java below 1.4?

isJavaVersionBelow14

public static boolean isJavaVersionBelow14(java.lang.String javaVersion)
Check whether the used JDK is below 1.4.

Returns:
Java below 1.4?


Copyright (c) 2013 Software AG. All Rights Reserved.