public class Release
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.String> |
allProductInfo |
static java.lang.String |
build
patch Build
|
static java.lang.String |
DBBuild
DB Build
|
static boolean |
dbConnection |
static java.lang.String |
hfDBBuild
Hotfix DB build
|
static java.lang.String |
hotfix
Hotfix number
|
static java.lang.String |
lastReleaseDBbuilds
last release database build number, it is not final on purpose to prevent upatedb class keeps the variable
in its class by the compiler.
|
static java.lang.String |
majorVersion
Major version name
|
static java.lang.String |
minorVersion
Minor version
|
static java.lang.String |
modLevel
Build number
|
static java.lang.String |
patch |
static java.lang.String |
productName
Name of the product
|
static java.lang.String |
propdir
properties file directory
|
static java.lang.String |
versionStr |
Constructor and Description |
---|
Release() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkAndSetMaxVarInDB(java.lang.String dbmaxvarname,
java.lang.String dbBuild,
java.sql.Connection con)
Check if maxvar is there in database or not.
|
static java.lang.String |
getBaseProductName()
returns the base product name string
|
static java.sql.Connection |
getConnection() |
static java.util.Map<java.lang.String,java.lang.String> |
getProductInfoFromXMLStream(java.util.HashMap<java.lang.String,java.io.InputStream> xmlMap,
java.sql.Connection con)
Loop through all product xml inputstream and returns version information.
|
static java.lang.String[] |
getRelDBBuildStrings(java.lang.String previousDBBuilds)
returns the last s' database build strings and the new release string in an array in
the their relase orders.
|
java.util.HashMap<java.lang.String,java.io.InputStream> |
getStreamFromBundle(java.lang.String productDir) |
java.util.HashMap<java.lang.String,java.io.InputStream> |
getStreamfromDirectory(java.lang.String productDir)
Gets maximo Input Stream from XML files in directory structure
|
java.util.HashMap<java.lang.String,java.io.InputStream> |
getStreamFromJar(java.lang.String productDir)
Get product xml stream from jar
|
static java.lang.String |
getString()
Return the version label
|
java.util.HashMap<java.lang.String,java.io.InputStream> |
getXMLInputStream()
Gets maximo Input Stream from XML files
|
static void |
main(java.lang.String[] argv)
Print out the version of the product to the console
|
public static final java.lang.String productName
public static final java.lang.String majorVersion
public static final java.lang.String minorVersion
public static final java.lang.String modLevel
public static final java.lang.String patch
public static final java.lang.String DBBuild
public static final java.lang.String build
public static java.lang.String lastReleaseDBbuilds
public static final java.lang.String hotfix
public static final java.lang.String hfDBBuild
public static java.lang.String versionStr
public static java.lang.String propdir
public static boolean dbConnection
public static java.util.Map<java.lang.String,java.lang.String> allProductInfo
public static java.lang.String getString()
public static java.sql.Connection getConnection()
public java.util.HashMap<java.lang.String,java.io.InputStream> getXMLInputStream() throws java.lang.Exception
java.lang.Exception
public java.util.HashMap<java.lang.String,java.io.InputStream> getStreamFromBundle(java.lang.String productDir) throws java.lang.Exception
java.lang.Exception
public java.util.HashMap<java.lang.String,java.io.InputStream> getStreamFromJar(java.lang.String productDir) throws java.lang.Exception
productDir
- java.lang.Exception
public java.util.HashMap<java.lang.String,java.io.InputStream> getStreamfromDirectory(java.lang.String productDir) throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] argv)
public static java.util.Map<java.lang.String,java.lang.String> getProductInfoFromXMLStream(java.util.HashMap<java.lang.String,java.io.InputStream> xmlMap, java.sql.Connection con) throws java.lang.Exception
Hashmap(productname,inputstream)
- java.lang.Exception
public static boolean checkAndSetMaxVarInDB(java.lang.String dbmaxvarname, java.lang.String dbBuild, java.sql.Connection con)
dbmaxvarname
- con
- public static java.lang.String getBaseProductName()
public static java.lang.String[] getRelDBBuildStrings(java.lang.String previousDBBuilds)