public interface SchemaElement
Modifier and Type | Interface and Description |
---|---|
static class |
SchemaElement.SchemaElementType |
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<SchemaElement> |
NAME_COMPARATOR
Comparator used to sort
Describable name. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
elementKeyspace()
Returns the CQL name of the keyspace to which this schema element belong.
|
default java.lang.String |
elementKeyspaceQuotedIfNeeded() |
java.lang.String |
elementName()
Returns the CQL name of this schema element.
|
default java.lang.String |
elementNameQuotedIfNeeded() |
SchemaElement.SchemaElementType |
elementType()
Return the schema element type
|
java.lang.String |
toCqlString(boolean withInternals,
boolean ifNotExists)
Returns a CQL representation of this element
|
static final java.util.Comparator<SchemaElement> NAME_COMPARATOR
Describable
name.SchemaElement.SchemaElementType elementType()
java.lang.String elementKeyspace()
java.lang.String elementName()
default java.lang.String elementNameQuotedIfNeeded()
default java.lang.String elementKeyspaceQuotedIfNeeded()
java.lang.String toCqlString(boolean withInternals, boolean ifNotExists)
withInternals
- if the internals part of the CQL should be exposed.ifNotExists
- if "IF NOT EXISTS" should be included.Copyright © 2009- The Apache Software Foundation