public class EntityRelationshipDef extends SchemaPart implements Cloneable, SchemaProblemsSupplier
internalId, internalName, log, TIMESTAMP_FORMAT
SERIALIZED_CLASS_NAME, TYPE
XML_SERIALIZED_CLASS_NAME
Constructor and Description |
---|
EntityRelationshipDef() |
EntityRelationshipDef(String name) |
getSchemaName, getSchemaPartContainerName, getSchemaPartContainerType
addExceptionProperties, assertValid, 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, 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 EntityRelationshipDef()
public EntityRelationshipDef(String name)
public void getSchemaProblems(List<SchemaProblem> problems, boolean includeChildren)
getSchemaProblems
in interface SchemaProblemsSupplier
public EntityRelationshipDef clone()
clone
in class FoundationObject
public void generateJavaCode(JavaCodeBuilder code)
generateJavaCode
in interface JavaCodeGenerator
public SchemaDef getSchemaDef()
getSchemaDef
in class SchemaPart
protected EntityRelationshipDef setSchemaDef(SchemaDef schemaDef)
public SchemaPart getSchemaPartContainer()
getSchemaPartContainer
in class SchemaPart
public SchemaPartType getSchemaPartType()
getSchemaPartType
in class SchemaPart
public String getSchemaPartName()
getSchemaPartName
in class SchemaPart
public String getName()
public EntityRelationshipDef setName(String name)
public String getQualifiedName()
public String getDescription()
public EntityRelationshipDef setDescription(String description)
public RelationshipCardinality getCardinality()
public EntityRelationshipDef setCardinality(RelationshipCardinality cardinality)
public String getPrimaryEntityName()
public EntityRelationshipDef setPrimaryEntityName(String primaryEntityName)
public EntityDef getPrimaryEntity()
public String getForeignEntityName()
public EntityRelationshipDef setForeignEntityName(String foreignEntityName)
public EntityDef getForeignEntity()
public boolean containsForeignKeyFieldName(String name)
public EntityRelationshipDef setForeignKeyFieldNames(List<String> foreignKeyFieldNames)
public EntityRelationshipDef setForeignKeyFieldNames(String... foreignKeyFieldNames)
public EntityRelationshipDef addForeignKeyFieldNames(String foreignKeyFieldName)
public ForeignKeyAction getOnUpdateAction()
public EntityRelationshipDef setOnUpdateAction(ForeignKeyAction onUpdateAction)
public ForeignKeyAction getOnDeleteAction()
public EntityRelationshipDef setOnDeleteAction(ForeignKeyAction onDeleteAction)
public int indexOfForeignKeyFieldName(String name)
public Attributes getAttributes()
public EntityRelationshipDef setAttributes(Attributes attributes)
public Tags getTags()
public EntityRelationshipDef setTags(Tags tags)
public Element toXmlElement(Document document)
toXmlElement
in interface XmlSerializable
public EntityRelationshipDef fromXmlElement(Element entityRelationShipDefElement)
fromXmlElement
in interface XmlSerializable
public Record toRecord()
toRecord
in interface RecordSerializable
toRecord
in class Bean
public EntityRelationshipDef 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.