Search in sources :

Example 6 with StatementOperationParts

use of org.neo4j.kernel.impl.api.StatementOperationParts in project neo4j by neo4j.

the class GuardIT method includeGuardingOperationLayerOnGuardingParts.

@Test
public void includeGuardingOperationLayerOnGuardingParts() throws Exception {
    GraphDatabaseAPI database = startDataBase();
    DependencyResolver dependencyResolver = database.getDependencyResolver();
    StatementOperationContainer operationParts = dependencyResolver.resolveDependency(StatementOperationContainer.class);
    StatementOperationParts guardedParts = operationParts.guardedParts();
    assertThat(guardedParts.entityReadOperations(), instanceOf(GuardingStatementOperations.class));
    assertThat(guardedParts.entityWriteOperations(), instanceOf(GuardingStatementOperations.class));
}
Also used : GraphDatabaseAPI(org.neo4j.kernel.internal.GraphDatabaseAPI) StatementOperationParts(org.neo4j.kernel.impl.api.StatementOperationParts) GuardingStatementOperations(org.neo4j.kernel.impl.api.GuardingStatementOperations) StatementOperationContainer(org.neo4j.kernel.impl.api.StatementOperationContainer) DependencyResolver(org.neo4j.graphdb.DependencyResolver) Test(org.junit.Test)

Aggregations

StatementOperationParts (org.neo4j.kernel.impl.api.StatementOperationParts)6 Test (org.junit.Test)5 PropertyAccessor (org.neo4j.kernel.api.index.PropertyAccessor)3 KernelStatement (org.neo4j.kernel.impl.api.KernelStatement)3 StatementOperationContainer (org.neo4j.kernel.impl.api.StatementOperationContainer)3 IndexProxy (org.neo4j.kernel.impl.api.index.IndexProxy)3 IndexingService (org.neo4j.kernel.impl.api.index.IndexingService)3 ConstraintIndexCreator (org.neo4j.kernel.impl.api.state.ConstraintIndexCreator)3 DependencyResolver (org.neo4j.graphdb.DependencyResolver)2 GuardingStatementOperations (org.neo4j.kernel.impl.api.GuardingStatementOperations)2 GraphDatabaseAPI (org.neo4j.kernel.internal.GraphDatabaseAPI)2 IndexEntryConflictException (org.neo4j.kernel.api.exceptions.index.IndexEntryConflictException)1 IndexPopulationFailedKernelException (org.neo4j.kernel.api.exceptions.index.IndexPopulationFailedKernelException)1 UniquePropertyValueValidationException (org.neo4j.kernel.api.exceptions.schema.UniquePropertyValueValidationException)1 NewIndexDescriptor (org.neo4j.kernel.api.schema_new.index.NewIndexDescriptor)1 TransactionState (org.neo4j.kernel.api.txstate.TransactionState)1 ConstraintEnforcingEntityOperations (org.neo4j.kernel.impl.api.ConstraintEnforcingEntityOperations)1 DataIntegrityValidatingStatementOperations (org.neo4j.kernel.impl.api.DataIntegrityValidatingStatementOperations)1 LockingStatementOperations (org.neo4j.kernel.impl.api.LockingStatementOperations)1 SchemaStateConcern (org.neo4j.kernel.impl.api.SchemaStateConcern)1