Package com.im.ijcs.api.ddl.dto
Class RelationshipInfo
- java.lang.Object
-
- com.im.ijcs.api.ddl.dto.RelationshipInfo
-
- All Implemented Interfaces:
ImplTypeInfo,ItemPersistentInfo,SchemaItemPersistentInfo,XAttributesInfo,java.io.Serializable
public final class RelationshipInfo extends java.lang.Object implements SchemaItemPersistentInfo
- Author:
- Martin Adamek
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRelationshipInfo.JoinTableDTOstatic classRelationshipInfo.RelationshipType
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringIMPL_TYPEDefault DB implementation of relationship type constant (see DFItem.getType()).
-
Constructor Summary
Constructors Constructor Description RelationshipInfo()RelationshipInfo(RelationshipInfo info)RelationshipInfo(RelationshipV1Info v1)RelationshipInfo(java.lang.String type, java.lang.String name, java.lang.String id, RelationshipInfo.RelationshipType relationshipType, java.lang.String srcEntityId, java.lang.String srcFieldId, java.lang.String dstEntityId, java.lang.String dstFieldId, java.lang.String fkSchemaName, java.lang.String fkName, RelationshipInfo.JoinTableDTO joinTable, java.lang.String description, java.util.List<PropInfo> props)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAsXml()java.lang.StringgetDescription()java.lang.StringgetDstEntityId()java.lang.StringgetDstFieldId()java.lang.StringgetFkName()java.lang.StringgetFkSchemaName()java.lang.StringgetGenericType()java.lang.StringgetId()java.lang.StringgetImplType()RelationshipInfo.JoinTableDTOgetJoinTable()java.lang.StringgetName()RelationshipInfo.RelationshipTypegetRelationshipType()java.lang.StringgetSrcEntityId()java.lang.StringgetSrcFieldId()java.util.List<PropInfo>getXAttributes()java.lang.StringtoString()RelationshipInfoupdateDescription(java.lang.String newDesc)RelationshipInfoupdateJoinSchemaName(java.lang.String schemaName)RelationshipInfoupdateName(java.lang.String newName)RelationshipInfoupdateXAttributes(java.util.List<PropInfo> props)Creates new EntityInfo with updated properties
-
-
-
Field Detail
-
IMPL_TYPE
public static final java.lang.String IMPL_TYPE
Default DB implementation of relationship type constant (see DFItem.getType()).- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RelationshipInfo
public RelationshipInfo()
-
RelationshipInfo
public RelationshipInfo(java.lang.String type, java.lang.String name, java.lang.String id, RelationshipInfo.RelationshipType relationshipType, java.lang.String srcEntityId, java.lang.String srcFieldId, java.lang.String dstEntityId, java.lang.String dstFieldId, java.lang.String fkSchemaName, java.lang.String fkName, RelationshipInfo.JoinTableDTO joinTable, java.lang.String description, java.util.List<PropInfo> props)
-
RelationshipInfo
public RelationshipInfo(RelationshipV1Info v1)
-
RelationshipInfo
public RelationshipInfo(RelationshipInfo info)
-
-
Method Detail
-
updateName
public RelationshipInfo updateName(java.lang.String newName)
-
updateDescription
public RelationshipInfo updateDescription(java.lang.String newDesc)
-
updateJoinSchemaName
public RelationshipInfo updateJoinSchemaName(java.lang.String schemaName)
-
updateXAttributes
public RelationshipInfo updateXAttributes(java.util.List<PropInfo> props)
Creates new EntityInfo with updated properties- Parameters:
props- The properties- Returns:
- The new instance of EntityInfo
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin interfaceItemPersistentInfo
-
getDstEntityId
public java.lang.String getDstEntityId()
-
getDstFieldId
public java.lang.String getDstFieldId()
-
getFkSchemaName
public java.lang.String getFkSchemaName()
-
getFkName
public java.lang.String getFkName()
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceItemPersistentInfo
-
getJoinTable
public RelationshipInfo.JoinTableDTO getJoinTable()
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceItemPersistentInfo
-
getSrcEntityId
public java.lang.String getSrcEntityId()
-
getSrcFieldId
public java.lang.String getSrcFieldId()
-
getRelationshipType
public RelationshipInfo.RelationshipType getRelationshipType()
-
getImplType
public java.lang.String getImplType()
- Specified by:
getImplTypein interfaceImplTypeInfo
-
getGenericType
public java.lang.String getGenericType()
- Specified by:
getGenericTypein interfaceItemPersistentInfo
-
getAsXml
public java.lang.String getAsXml()
- Specified by:
getAsXmlin interfaceSchemaItemPersistentInfo
-
getXAttributes
public java.util.List<PropInfo> getXAttributes()
- Specified by:
getXAttributesin interfaceXAttributesInfo- Returns:
- all available xatributes
-
-