public class SchemaStatement extends ReadStatement
| Modifier and Type | Field and Description |
|---|---|
static long |
NO_SUCH_LABEL |
static long |
NO_SUCH_PROPERTY_KEY |
| Modifier and Type | Method and Description |
|---|---|
void |
constraintDrop(UniquenessConstraint constraint) |
org.neo4j.kernel.impl.api.index.IndexDescriptor |
indexCreate(long labelId,
long propertyKeyId)
Creates an index, indexing properties with the given
propertyKeyId for nodes with the given
labelId. |
void |
indexDrop(org.neo4j.kernel.impl.api.index.IndexDescriptor descriptor)
Drops a
IndexDescriptor from the database |
UniquenessConstraint |
uniquenessConstraintCreate(long labelId,
long propertyKeyId) |
close, constraintsGetAll, constraintsGetForLabel, constraintsGetForLabelAndPropertyKey, graphGetAllProperties, graphGetProperty, indexesGetAll, indexesGetForLabel, indexesGetForLabelAndPropertyKey, indexGetFailure, indexGetState, labelGetForName, labelGetName, labelGetOrCreateForName, labelsGetAllTokens, nodeGetAllProperties, nodeGetLabels, nodeGetProperty, nodeHasLabel, nodesGetForLabel, nodesGetFromIndexLookup, propertyKeyGetForName, propertyKeyGetName, propertyKeyGetOrCreateForName, relationshipGetAllProperties, relationshipGetProperty, relationshipTypeGetForName, relationshipTypeGetName, relationshipTypeGetOrCreateForName, schemaStateGetOrCreate, uniqueIndexesGetAll, uniqueIndexesGetForLabelpublic static final long NO_SUCH_LABEL
public static final long NO_SUCH_PROPERTY_KEY
public org.neo4j.kernel.impl.api.index.IndexDescriptor indexCreate(long labelId, long propertyKeyId) throws AddIndexFailureException, AlreadyIndexedException, AlreadyConstrainedException
propertyKeyId for nodes with the given
labelId.public void indexDrop(org.neo4j.kernel.impl.api.index.IndexDescriptor descriptor) throws DropIndexFailureException
IndexDescriptor from the databaseDropIndexFailureExceptionpublic UniquenessConstraint uniquenessConstraintCreate(long labelId, long propertyKeyId) throws CreateConstraintFailureException, AlreadyConstrainedException, AlreadyIndexedException
public void constraintDrop(UniquenessConstraint constraint) throws DropConstraintFailureException
DropConstraintFailureExceptionCopyright © 2002–2013 The Neo4j Graph Database Project. All rights reserved.