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