public static String getFullVersionString() { if( getVersionProperties().isEmpty() ) return "[dev]"; return createReleaseVersion( getReleaseFull(), getReleaseBuild() ); }
public static String getVersionString() { return getFullVersionString(); }
@Override protected DriverVersion createDriverVersion() { return new DriverVersion( Version.getName(), Version.getVersionString(), Version.getProductName(), Version.getProductVersion(), true, Version.getMajorVersion(), Version.getMinorVersion(), 1, 0 ); }
public static String getReleaseFull() { String releaseFull; if( getReleaseMinor() == null || getReleaseMinor().isEmpty() ) releaseFull = getReleaseMajor(); else releaseFull = String.format( "%s.%s", getReleaseMajor(), getReleaseMinor() ); return releaseFull; }
public static boolean hasAllVersionInfo() { return !cascading.util.Util.isEmpty( getReleaseBuild() ) && hasMajorMinorVersionInfo(); }
/** * Instantiates a new Lingual flow factory. * * @param platformBroker the platform broker * @param name the name * @param tail */ public LingualFlowFactory( PlatformBroker platformBroker, LingualConnection lingualConnection, String name, Pipe tail ) { super( new Properties( platformBroker.getProperties() ), name ); this.platformBroker = platformBroker; this.catalog = platformBroker.getCatalogManager(); this.lingualConnection = lingualConnection; this.tail = tail; AppProps.addApplicationFramework( getProperties(), Version.getName() + ":" + Version.getVersionString() ); AppProps.addApplicationTag( getProperties(), getProperties().getProperty( Driver.TAGS_PROP ) ); }
public static int getMinorVersion() { String version = getReleaseMajor(); if( version == null ) return 0; return Integer.parseInt( version.split( "\\." )[ 1 ] ); }
@Override public String getDatabaseProductName() throws SQLException { PlatformBroker platformBroker = connection.getPlatformBroker(); PlatformInfo platformInfo = platformBroker.getPlatformInfo(); return String.format( "%s [%s %s]", Version.getProductName(), platformInfo.name, platformInfo.vendor ); }
@Override public String getDatabaseProductVersion() throws SQLException { PlatformBroker platformBroker = connection.getPlatformBroker(); PlatformInfo platformInfo = platformBroker.getPlatformInfo(); return String.format( "%s [%s]", Version.getProductVersion(), platformInfo.version ); }
public static String getProductVersion() { return createReleaseVersion( cascading.util.Version.getReleaseFull(), cascading.util.Version.getReleaseBuild() ); }
public static boolean hasMajorMinorVersionInfo() { return !cascading.util.Util.isEmpty( getReleaseMinor() ) && !cascading.util.Util.isEmpty( getReleaseMajor() ); }
public static int getMajorVersion() { String version = getReleaseMajor(); if( version == null ) return 1; return Integer.parseInt( version.split( "\\." )[ 0 ] ); }
public static String getBannerVersionString() { return String.format( "Concurrent, Inc - %s %s", LINGUAL, getFullVersionString() ); }