public static void tryCreateCurrenVersion() { Version v = getCurrentVersion(); if (v == null || v.getMajorVersion() < 2) { DbUtils.save(Version.fromString("2.0.2")); } }
public Version(Version version) { this(version.getMajorVersion(), version.getMinorVersion()); }
private void validateVersion() throws SQLException { if (version.getMajorVersion() != 1 || version.getMinorVersion() < 5) throw new SQLException("Unsupported Neo4j version:" + version); }