Skip to content

Commit 194e3c0

Browse files
author
Stefan Plantikow
committed
Merge pull request #84 from boggle/driver-v1
Driver versioning and renaming
2 parents a0fdd32 + 1a54da0 commit 194e3c0

File tree

187 files changed

+824
-845
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

187 files changed

+824
-845
lines changed

driver/src/main/java/org/neo4j/driver/Config.java renamed to driver/src/main/java/org/neo4j/driver/v1/Config.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
* See the License for the specific language governing permissions and
1717
* limitations under the License.
1818
*/
19-
package org.neo4j.driver;
19+
package org.neo4j.driver.v1;
2020

2121
import java.io.File;
2222
import java.util.logging.Level;
2323

24-
import org.neo4j.driver.internal.logging.JULogging;
25-
import org.neo4j.driver.internal.spi.Logging;
24+
import org.neo4j.driver.v1.internal.logging.JULogging;
25+
import org.neo4j.driver.v1.internal.spi.Logging;
2626

27-
import static org.neo4j.driver.Config.TlsAuthenticationConfig.*;
27+
import static org.neo4j.driver.v1.Config.TlsAuthenticationConfig.*;
2828

2929
/**
3030
* A configuration class to config driver properties.

driver/src/main/java/org/neo4j/driver/Directed.java renamed to driver/src/main/java/org/neo4j/driver/v1/Directed.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* See the License for the specific language governing permissions and
1717
* limitations under the License.
1818
*/
19-
package org.neo4j.driver;
19+
package org.neo4j.driver.v1;
2020

2121
/**
2222
* An item that can be considered to have <em>direction</em>.

driver/src/main/java/org/neo4j/driver/Driver.java renamed to driver/src/main/java/org/neo4j/driver/v1/Driver.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
* See the License for the specific language governing permissions and
1717
* limitations under the License.
1818
*/
19-
package org.neo4j.driver;
19+
package org.neo4j.driver.v1;
2020

2121
import java.net.URI;
2222

23-
import org.neo4j.driver.internal.StandardSession;
24-
import org.neo4j.driver.internal.pool.StandardConnectionPool;
25-
import org.neo4j.driver.internal.spi.ConnectionPool;
23+
import org.neo4j.driver.v1.internal.StandardSession;
24+
import org.neo4j.driver.v1.internal.pool.StandardConnectionPool;
25+
import org.neo4j.driver.v1.internal.spi.ConnectionPool;
2626

2727
/**
2828
* A Neo4j database driver, through which you can create {@link Session sessions} to run statements against the database.
@@ -40,7 +40,7 @@
4040
* session.run( "CREATE (n {name:'Bob'})" );
4141
*
4242
* // Or, run multiple statements together in an atomic transaction:
43-
* try( Transaction tx = session.newTransaction() )
43+
* try( Transaction tx = session.beginTransaction() )
4444
* {
4545
* tx.run( "CREATE (n {name:'Alice'})" );
4646
* tx.run( "CREATE (n {name:'Tina'})" );
@@ -84,7 +84,7 @@ public Driver( URI url, Config config )
8484
/**
8585
* Establish a session
8686
* @return a session that could be used to run {@link Session#run(String) a statement} or
87-
* {@link Session#newTransaction() a transaction }.
87+
* {@link Session#beginTransaction() a transaction }.
8888
*/
8989
public Session session()
9090
{

driver/src/main/java/org/neo4j/driver/Entity.java renamed to driver/src/main/java/org/neo4j/driver/v1/Entity.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
* See the License for the specific language governing permissions and
1717
* limitations under the License.
1818
*/
19-
package org.neo4j.driver;
19+
package org.neo4j.driver.v1;
2020

2121
/**
2222
* A uniquely identifiable property container that can form part of a Neo4j graph.
2323
*/
2424
public interface Entity
2525
{
2626
/**
27-
* A unique {@link org.neo4j.driver.Identity identity} for this Entity. Identities are guaranteed
27+
* A unique {@link Identity identity} for this Entity. Identities are guaranteed
2828
* to remain stable for the duration of the session they were found in, but may be re-used for other
2929
* entities after that. As such, if you want a public identity to use for your entities, attaching
3030
* an explicit 'id' property or similar persistent and unique identifier is a better choice.
@@ -48,7 +48,7 @@ public interface Entity
4848
int propertyCount();
4949

5050
/**
51-
* Return a specific property {@link org.neo4j.driver.Value}. If no value could be found with the specified key,
51+
* Return a specific property {@link Value}. If no value could be found with the specified key,
5252
* null will be returned.
5353
*
5454
* @param key a property key

driver/src/main/java/org/neo4j/driver/Function.java renamed to driver/src/main/java/org/neo4j/driver/v1/Function.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* See the License for the specific language governing permissions and
1717
* limitations under the License.
1818
*/
19-
package org.neo4j.driver;
19+
package org.neo4j.driver.v1;
2020

2121
/**
2222
* Same as {@link java.util.function.Function}, but defined here to work in versions older than java 8.

driver/src/main/java/org/neo4j/driver/GraphDatabase.java renamed to driver/src/main/java/org/neo4j/driver/v1/GraphDatabase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* See the License for the specific language governing permissions and
1717
* limitations under the License.
1818
*/
19-
package org.neo4j.driver;
19+
package org.neo4j.driver.v1;
2020

2121
import java.net.URI;
2222

driver/src/main/java/org/neo4j/driver/Identity.java renamed to driver/src/main/java/org/neo4j/driver/v1/Identity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
* See the License for the specific language governing permissions and
1717
* limitations under the License.
1818
*/
19-
package org.neo4j.driver;
19+
package org.neo4j.driver.v1;
2020

2121
/**
22-
* A unique identifier for an {@link org.neo4j.driver.Entity}.
22+
* A unique identifier for an {@link Entity}.
2323
* <p>
2424
* The identity can be used to correlate entities in one response with entities received earlier. The identity of an
2525
* entity is guaranteed to be stable within the scope of a session. Beyond that, the identity may change. If you want

driver/src/main/java/org/neo4j/driver/InputPosition.java renamed to driver/src/main/java/org/neo4j/driver/v1/InputPosition.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* See the License for the specific language governing permissions and
1717
* limitations under the License.
1818
*/
19-
package org.neo4j.driver;
19+
package org.neo4j.driver.v1;
2020

2121
/**
2222
* An input position refers to a specific character in a statement.

driver/src/main/java/org/neo4j/driver/Node.java renamed to driver/src/main/java/org/neo4j/driver/v1/Node.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* See the License for the specific language governing permissions and
1717
* limitations under the License.
1818
*/
19-
package org.neo4j.driver;
19+
package org.neo4j.driver.v1;
2020

2121
/**
2222
* The <strong>Node</strong> interface describes the characteristics of a node from a Neo4j graph.
@@ -29,5 +29,4 @@ public interface Node extends Entity
2929
* @return a label Collection
3030
*/
3131
Iterable<String> labels();
32-
3332
}

driver/src/main/java/org/neo4j/driver/Notification.java renamed to driver/src/main/java/org/neo4j/driver/v1/Notification.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* See the License for the specific language governing permissions and
1717
* limitations under the License.
1818
*/
19-
package org.neo4j.driver;
19+
package org.neo4j.driver.v1;
2020

2121
/**
2222
* Representation for notifications found when executing a statement.

0 commit comments

Comments
 (0)