public final class SqlTableType extends CompoundType
| Constructor and Description |
|---|
SqlTableType(AstLocation location,
Package pkg,
java.lang.String name,
java.util.List<TemplateParameter> templateParameters,
java.lang.String sqlUsingId,
java.util.List<Field> fields,
SqlConstraint sqlConstraint,
boolean sqlWithoutRowId,
java.util.List<DocComment> docComments)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ZserioAstVisitor visitor)
Accept zserio visitor.
|
java.lang.String |
getInstantiationName()
Gets the unique instantiation name.
|
java.util.ArrayDeque<TypeReference> |
getInstantiationReferenceStack()
Gets stack of instantiations leading to this instantiation.
|
java.util.List<ZserioTemplatableType> |
getInstantiations()
Gets all template's instantiations.
|
java.util.ArrayDeque<TypeReference> |
getReversedInstantiationReferenceStack()
Gets reversed stack of instantiations leading to this instantiation.
|
SqlConstraint |
getSqlConstraint()
Gets SQL constraint defined in this SQL table.
|
ZserioTemplatableType |
getTemplate()
Gets original template used for instantiation.
|
java.util.List<TemplateParameter> |
getTemplateParameters()
Gets list of template parameters.
|
java.lang.String |
getVirtualTableUsingString()
Gets 'using' specification for SQL virtual tables.
|
boolean |
isFieldPrimaryKey(Field field)
Checks if given field is primary key in the table.
|
boolean |
isWithoutRowId()
Checks if the table has without rowid optimization.
|
boolean |
needsTypesInSchema()
Checks if this SQL table needs types specification in schema.
|
void |
visitChildren(ZserioAstVisitor visitor)
Visit children of the current AST node using given visitor.
|
checkNonSqlTableFields, checkSqlSymbolNames, checkSqlTableFields, checkSymbolNames, containsExtendedField, getFields, getFunctions, getName, getPackage, getScope, getTypeParameters, hasBranchWithoutImplicitArray, hasEmptyBranch, hasFieldBranchWithoutImplicitArray, hasFieldEmptyBranch, hasPackableField, isPackable, needsChildrenInitialization, trackExtendedField, trackImplicitArraygetDocCommentsgetLocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLocationpublic SqlTableType(AstLocation location, Package pkg, java.lang.String name, java.util.List<TemplateParameter> templateParameters, java.lang.String sqlUsingId, java.util.List<Field> fields, SqlConstraint sqlConstraint, boolean sqlWithoutRowId, java.util.List<DocComment> docComments)
location - AST node location.pkg - Package to which belongs the SQL table type.name - Name of the SQL table type.templateParameters - List of template parameters.sqlUsingId - SQL using id associated to the SQL table type.fields - List of all fields of to the SQL table type.sqlConstraint - SQL constraint of the SQL table type.sqlWithoutRowId - SQL without row id associated to the SQL table type.docComments - List of documentation comments belonging to this node.public void accept(ZserioAstVisitor visitor)
AstNodevisitor - Visitor to accept.public void visitChildren(ZserioAstVisitor visitor)
AstNodevisitChildren in interface AstNodevisitChildren in class CompoundTypevisitor - Visitor to use.public java.lang.String getVirtualTableUsingString()
public boolean needsTypesInSchema()
public SqlConstraint getSqlConstraint()
public boolean isFieldPrimaryKey(Field field)
field - Field to check.public boolean isWithoutRowId()
public java.util.List<TemplateParameter> getTemplateParameters()
ZserioTemplatableTypegetTemplateParameters in interface ZserioTemplatableTypepublic java.util.List<ZserioTemplatableType> getInstantiations()
ZserioTemplatableTypegetInstantiations in interface ZserioTemplatableTypepublic ZserioTemplatableType getTemplate()
ZserioTemplatableTypegetTemplate in interface ZserioTemplatableTypepublic java.util.ArrayDeque<TypeReference> getInstantiationReferenceStack()
ZserioTemplatableTypegetInstantiationReferenceStack in interface ZserioTemplatableTypepublic java.util.ArrayDeque<TypeReference> getReversedInstantiationReferenceStack()
ZserioTemplatableTypegetReversedInstantiationReferenceStack in interface ZserioTemplatableTypepublic java.lang.String getInstantiationName()
ZserioTemplatableTypegetInstantiationName in interface ZserioTemplatableTypeLast updated 2024-10-29 12:56:13