public class IndexFieldDef extends SchemaPart implements Cloneable, SchemaProblemsSupplier, JavaCodeGenerator
internalId, internalName, log, TIMESTAMP_FORMATSERIALIZED_CLASS_NAME, TYPEXML_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, getSchemaPartContainerTypeaddExceptionProperties, assertValid, exception, exception, exception, getInternalId, getInternalName, resetInternalIdfinalize, getClass, notify, notifyAll, wait, wait, waitgetSchemaProblems, getSchemaProblemsfromArrayValue, fromArrayValue, fromArrayValue, fromJson, fromJson, newInstanceFromRecord, newInstanceFromRecord, toArrayValue, toJson, toJson, toRecordnewInstanceFromJsonforEachGrandChildElement, fromXml, fromXml, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getChildElement, getChildElements, newInstanceFromXml, newInstanceFromXml, setAttribute, toXml, toXml, toXml, toXml, toXml, writeXml, writeXmladdExceptionProperties, contributeExceptionProperties, contributeExceptionPropertiespublic IndexFieldDef()
public IndexFieldDef(String fieldName, boolean ascending)
public IndexFieldDef(String fieldName)
public void getSchemaProblems(List<SchemaProblem> problems, boolean includeChildren)
getSchemaProblems in interface SchemaProblemsSupplierpublic void generateJavaCode(JavaCodeBuilder code)
generateJavaCode in interface JavaCodeGeneratorpublic IndexFieldDef clone()
clone in class FoundationObjectpublic IndexFieldDef assertValid()
assertValid in class FoundationObjectpublic 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 SchemaPartpublic SchemaPart getSchemaPartContainer()
getSchemaPartContainer in class SchemaPartpublic SchemaPartType getSchemaPartType()
getSchemaPartType in class SchemaPartpublic String getSchemaPartName()
getSchemaPartName in class SchemaPartpublic boolean isAscending()
public IndexFieldDef setAscending(boolean ascending)
public int getIndexInIndexDef()
IndexDef.public String toJson()
toJson in interface JsonSerializabletoJson in interface RecordSerializablepublic Element toXmlElement(Document document)
toXmlElement in interface XmlSerializablepublic IndexFieldDef fromXmlElement(Element fieldDefElement)
fromXmlElement in interface XmlSerializablepublic Record toRecord()
toRecord in interface RecordSerializabletoRecord in class Beanpublic IndexFieldDef fromRecord(Record source)
RecordSerializablethis (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 RecordSerializablefromRecord in class BeanCopyright (c) 2006-2025 North Concepts Inc. All Rights Reserved.