public class IndexFieldDef extends SchemaPart implements Cloneable, SchemaProblemsSupplier, JavaCodeGenerator
internalId, internalName, log, TIMESTAMP_FORMAT
SERIALIZED_CLASS_NAME, TYPE
XML_SERIALIZED_CLASS_NAME
Constructor and Description |
---|
IndexFieldDef() |
IndexFieldDef(String fieldName) |
IndexFieldDef(String fieldName,
boolean ascending) |
Modifier and Type | Method and Description |
---|---|
IndexFieldDef |
assertValid() |
IndexFieldDef |
clone() |
boolean |
equals(Object obj) |
IndexFieldDef |
fromRecord(Record source)
Loads this instance's state from a record and returns
this (for fluid API call chaining). |
IndexFieldDef |
fromXmlElement(Element fieldDefElement) |
void |
generateJavaCode(JavaCodeBuilder code) |
String |
getFieldName() |
IndexDef |
getIndexDef() |
int |
getIndexInIndexDef()
Returns the zero-based index of this index field in
IndexDef . |
String |
getIndexQualifiedName()
Returns a qualified name that includes the name of this index field and the
IndexDef above it separated by period. |
String |
getQualifiedName()
Returns the fully qualified name that includes the name of this index field and all names in its hierarchy separated by period.
|
SchemaDef |
getSchemaDef()
The schema of the parent entity containing this field.
|
SchemaDef |
getSchemaDef(boolean throwException) |
SchemaPart |
getSchemaPartContainer() |
String |
getSchemaPartName() |
SchemaPartType |
getSchemaPartType() |
void |
getSchemaProblems(List<SchemaProblem> problems,
boolean includeChildren) |
int |
hashCode() |
boolean |
isAscending() |
IndexFieldDef |
setAscending(boolean ascending) |
IndexFieldDef |
setFieldName(String fieldName) |
protected IndexFieldDef |
setIndexDef(IndexDef indexDef) |
String |
toJson() |
Record |
toRecord() |
Element |
toXmlElement(Document document) |
getSchemaName, getSchemaPartContainerName, getSchemaPartContainerType
addExceptionProperties, assertValid, exception, exception, exception, getInternalId, getInternalName, resetInternalId
finalize, getClass, notify, notifyAll, wait, wait, wait
getSchemaProblems, getSchemaProblems
fromArrayValue, fromArrayValue, fromArrayValue, fromJson, fromJson, newInstanceFromRecord, newInstanceFromRecord, toArrayValue, toJson, toJson, toRecord
newInstanceFromJson
forEachGrandChildElement, fromXml, fromXml, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getChildElement, getChildElements, newInstanceFromXml, newInstanceFromXml, setAttribute, toXml, toXml, toXml, toXml, toXml, writeXml, writeXml
addExceptionProperties, contributeExceptionProperties, contributeExceptionProperties
public IndexFieldDef()
public IndexFieldDef(String fieldName, boolean ascending)
public IndexFieldDef(String fieldName)
public void getSchemaProblems(List<SchemaProblem> problems, boolean includeChildren)
getSchemaProblems
in interface SchemaProblemsSupplier
public void generateJavaCode(JavaCodeBuilder code)
generateJavaCode
in interface JavaCodeGenerator
public IndexFieldDef clone()
clone
in class FoundationObject
public IndexFieldDef assertValid()
assertValid
in class FoundationObject
public IndexDef getIndexDef()
protected IndexFieldDef setIndexDef(IndexDef indexDef)
public String getFieldName()
public IndexFieldDef setFieldName(String fieldName)
public String getQualifiedName()
public String getIndexQualifiedName()
IndexDef
above it separated by period.public SchemaDef getSchemaDef(boolean throwException)
public SchemaDef getSchemaDef()
getSchemaDef
in class SchemaPart
public SchemaPart getSchemaPartContainer()
getSchemaPartContainer
in class SchemaPart
public SchemaPartType getSchemaPartType()
getSchemaPartType
in class SchemaPart
public String getSchemaPartName()
getSchemaPartName
in class SchemaPart
public boolean isAscending()
public IndexFieldDef setAscending(boolean ascending)
public int getIndexInIndexDef()
IndexDef
.public String toJson()
toJson
in interface JsonSerializable
toJson
in interface RecordSerializable
public Element toXmlElement(Document document)
toXmlElement
in interface XmlSerializable
public IndexFieldDef fromXmlElement(Element fieldDefElement)
fromXmlElement
in interface XmlSerializable
public Record toRecord()
toRecord
in interface RecordSerializable
toRecord
in class Bean
public IndexFieldDef fromRecord(Record source)
RecordSerializable
this
(for fluid API call chaining).
For fluid API call chaining, the overridden method should change the declared return type to its class.fromRecord
in interface RecordSerializable
fromRecord
in class Bean
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.