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