Package openGql.grammar
Class CreateGraphTypeStatement
- java.lang.Object
-
- openGql.grammar.CreateGraphTypeStatement
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CreateGraphTypeStatement>
public class CreateGraphTypeStatement extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<CreateGraphTypeStatement>
A GQL create graph type statement- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateGraphTypeStatement.BuilderA fluent builder forCreateGraphTypeStatement.
-
Field Summary
Fields Modifier and Type Field Description static NameCREATE_OPTIONName of theopenGql.grammar.CreateGraphTypeStatement.createOptionfield.CreateGraphTypeOptioncreateOptionstatic NamePARENT_AND_NAMEName of theopenGql.grammar.CreateGraphTypeStatement.parentAndNamefield.CatalogGraphTypeParentAndNameparentAndNameGraphTypeSourcesourcestatic NameSOURCEName of theopenGql.grammar.CreateGraphTypeStatement.sourcefield.static NameTYPE_Name of theopenGql.grammar.CreateGraphTypeStatementtype.
-
Constructor Summary
Constructors Constructor Description CreateGraphTypeStatement(CreateGraphTypeOption createOption, CatalogGraphTypeParentAndName parentAndName, GraphTypeSource source)Constructs an immutableCreateGraphTypeStatement.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateGraphTypeStatement.Builderbuilder()Creates a new fluent builder forCreateGraphTypeStatement.intcompareTo(CreateGraphTypeStatement other)booleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()CreateGraphTypeStatementwithCreateOption(CreateGraphTypeOption createOption)Returns a copy of thisCreateGraphTypeStatementwithcreateOptionreplaced.CreateGraphTypeStatementwithParentAndName(CatalogGraphTypeParentAndName parentAndName)Returns a copy of thisCreateGraphTypeStatementwithparentAndNamereplaced.CreateGraphTypeStatementwithSource(GraphTypeSource source)Returns a copy of thisCreateGraphTypeStatementwithsourcereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.CreateGraphTypeStatementtype.
-
CREATE_OPTION
public static final Name CREATE_OPTION
Name of theopenGql.grammar.CreateGraphTypeStatement.createOptionfield.
-
PARENT_AND_NAME
public static final Name PARENT_AND_NAME
Name of theopenGql.grammar.CreateGraphTypeStatement.parentAndNamefield.
-
SOURCE
public static final Name SOURCE
Name of theopenGql.grammar.CreateGraphTypeStatement.sourcefield.
-
createOption
public final CreateGraphTypeOption createOption
-
parentAndName
public final CatalogGraphTypeParentAndName parentAndName
-
source
public final GraphTypeSource source
-
-
Constructor Detail
-
CreateGraphTypeStatement
public CreateGraphTypeStatement(CreateGraphTypeOption createOption, CatalogGraphTypeParentAndName parentAndName, GraphTypeSource source)
Constructs an immutableCreateGraphTypeStatement.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(CreateGraphTypeStatement other)
- Specified by:
compareToin interfacejava.lang.Comparable<CreateGraphTypeStatement>
-
withCreateOption
public CreateGraphTypeStatement withCreateOption(CreateGraphTypeOption createOption)
Returns a copy of thisCreateGraphTypeStatementwithcreateOptionreplaced.
-
withParentAndName
public CreateGraphTypeStatement withParentAndName(CatalogGraphTypeParentAndName parentAndName)
Returns a copy of thisCreateGraphTypeStatementwithparentAndNamereplaced.
-
withSource
public CreateGraphTypeStatement withSource(GraphTypeSource source)
Returns a copy of thisCreateGraphTypeStatementwithsourcereplaced.
-
builder
public static CreateGraphTypeStatement.Builder builder()
Creates a new fluent builder forCreateGraphTypeStatement.
-
-