Package com.arcadedb.query.sql.parser
Class CreateTypeAbstractStatement
- java.lang.Object
-
- com.arcadedb.query.sql.parser.SimpleNode
-
- com.arcadedb.query.sql.parser.Statement
-
- com.arcadedb.query.sql.parser.DDLStatement
-
- com.arcadedb.query.sql.parser.CreateTypeAbstractStatement
-
- All Implemented Interfaces:
Node
- Direct Known Subclasses:
CreateDocumentTypeStatement
,CreateEdgeTypeStatement
,CreateVertexTypeStatement
public abstract class CreateTypeAbstractStatement extends DDLStatement
-
-
Field Summary
Fields Modifier and Type Field Description protected List<BucketIdentifier>
buckets
Cluster IDs for this classboolean
ifNotExists
Identifier
name
Class nameprotected List<Identifier>
supertypes
Direct superclasses for this classprotected PInteger
totalBucketNo
Total number clusters for this class-
Fields inherited from class com.arcadedb.query.sql.parser.Statement
CUSTOM_STRICT_SQL, limit, originalStatement, timeout
-
Fields inherited from class com.arcadedb.query.sql.parser.SimpleNode
children, firstToken, id, lastToken, parent, parser, value
-
-
Constructor Summary
Constructors Constructor Description CreateTypeAbstractStatement(int id)
CreateTypeAbstractStatement(SqlParser p, int id)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
checkSuperTypes(Schema schema, CommandContext ctx)
protected abstract String
commandType()
protected CreateTypeAbstractStatement
copy(CreateTypeAbstractStatement result)
protected abstract DocumentType
createType(Schema schema)
boolean
equals(Object o)
ResultSet
executeDDL(CommandContext ctx)
List<Identifier>
getSupertypes()
protected DocumentType[]
getSuperTypes(Schema schema)
int
hashCode()
void
toString(Map<String,Object> params, StringBuilder builder)
-
Methods inherited from class com.arcadedb.query.sql.parser.DDLStatement
createExecutionPlan, execute, execute
-
Methods inherited from class com.arcadedb.query.sql.parser.Statement
copy, createExecutionPlan, createExecutionPlanNoCache, deserialize, deserializeFromOResult, execute, execute, execute, execute, execute, execute, executionPlanCanBeCached, getLimit, getOriginalStatement, getTimeout, isDDL, isIdempotent, refersToParent, serialize, setLimit, setOriginalStatement, setTimeout, toString, validate
-
Methods inherited from class com.arcadedb.query.sql.parser.SimpleNode
childrenAccept, dump, getValue, jjtAccept, jjtAddChild, jjtClose, jjtGetChild, jjtGetFirstToken, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, jjtSetValue, toString
-
-
-
-
Field Detail
-
name
public Identifier name
Class name
-
ifNotExists
public boolean ifNotExists
-
supertypes
protected List<Identifier> supertypes
Direct superclasses for this class
-
buckets
protected List<BucketIdentifier> buckets
Cluster IDs for this class
-
totalBucketNo
protected PInteger totalBucketNo
Total number clusters for this class
-
-
Constructor Detail
-
CreateTypeAbstractStatement
public CreateTypeAbstractStatement(int id)
-
CreateTypeAbstractStatement
public CreateTypeAbstractStatement(SqlParser p, int id)
-
-
Method Detail
-
commandType
protected abstract String commandType()
-
createType
protected abstract DocumentType createType(Schema schema)
-
executeDDL
public ResultSet executeDDL(CommandContext ctx)
- Specified by:
executeDDL
in classDDLStatement
-
getSuperTypes
protected DocumentType[] getSuperTypes(Schema schema)
-
checkSuperTypes
protected void checkSuperTypes(Schema schema, CommandContext ctx)
-
toString
public void toString(Map<String,Object> params, StringBuilder builder)
-
copy
protected CreateTypeAbstractStatement copy(CreateTypeAbstractStatement result)
-
getSupertypes
public List<Identifier> getSupertypes()
-
-