/** * Stringify this Version. * * @return String representation of this Version. */ public String toString() { return DD_Version.majorToString(majorVersionNumber); }
/** * Stringify this Version. * * @return String representation of this Version. */ public String toString() { return DD_Version.majorToString(majorVersionNumber); }
/** * Stringify this Version. * * @return String representation of this Version. */ public String toString() { return DD_Version.majorToString(majorVersionNumber); }
/** Check to see if a database has been upgraded to the required level in order to use a language feature. @param requiredMajorVersion Data Dictionary major version @param feature Non-null to throw an error, null to return the state of the version match. @return True if the database has been upgraded to the required level, false otherwise. */ boolean checkVersion(int requiredMajorVersion, String feature) throws StandardException { if (majorVersionNumber < requiredMajorVersion) { if (feature != null) throw StandardException.newException(SQLState.LANG_STATEMENT_UPGRADE_REQUIRED, feature, DD_Version.majorToString(majorVersionNumber), DD_Version.majorToString(requiredMajorVersion)); return false; } return true; }
/** Check to see if a database has been upgraded to the required level in order to use a language feature. @param requiredMajorVersion Data Dictionary major version @param feature Non-null to throw an error, null to return the state of the version match. @return True if the database has been upgraded to the required level, false otherwise. */ boolean checkVersion(int requiredMajorVersion, String feature) throws StandardException { if (majorVersionNumber < requiredMajorVersion) { if (feature != null) throw StandardException.newException(SQLState.LANG_STATEMENT_UPGRADE_REQUIRED, feature, DD_Version.majorToString(majorVersionNumber), DD_Version.majorToString(requiredMajorVersion)); return false; } return true; }
/** Check to see if a database has been upgraded to the required level in order to use a language feature. @param requiredMajorVersion Data Dictionary major version @param feature Non-null to throw an error, null to return the state of the version match. @return True if the database has been upgraded to the required level, false otherwise. */ boolean checkVersion(int requiredMajorVersion, String feature) throws StandardException { if (majorVersionNumber < requiredMajorVersion) { if (feature != null) throw StandardException.newException(SQLState.LANG_STATEMENT_UPGRADE_REQUIRED, feature, DD_Version.majorToString(majorVersionNumber), DD_Version.majorToString(requiredMajorVersion)); return false; } return true; }
DD_Version.majorToString(fromMajorVersionNumber), this);
DD_Version.majorToString(fromMajorVersionNumber), this);
DD_Version.majorToString(fromMajorVersionNumber), this);