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 class
RelationshipInfo.JoinTableDTO
static class
RelationshipInfo.RelationshipType
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
IMPL_TYPE
Default 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.String
getAsXml()
java.lang.String
getDescription()
java.lang.String
getDstEntityId()
java.lang.String
getDstFieldId()
java.lang.String
getFkName()
java.lang.String
getFkSchemaName()
java.lang.String
getGenericType()
java.lang.String
getId()
java.lang.String
getImplType()
RelationshipInfo.JoinTableDTO
getJoinTable()
java.lang.String
getName()
RelationshipInfo.RelationshipType
getRelationshipType()
java.lang.String
getSrcEntityId()
java.lang.String
getSrcFieldId()
java.util.List<PropInfo>
getXAttributes()
java.lang.String
toString()
RelationshipInfo
updateDescription(java.lang.String newDesc)
RelationshipInfo
updateJoinSchemaName(java.lang.String schemaName)
RelationshipInfo
updateName(java.lang.String newName)
RelationshipInfo
updateXAttributes(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:
toString
in classjava.lang.Object
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in 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:
getId
in interfaceItemPersistentInfo
-
getJoinTable
public RelationshipInfo.JoinTableDTO getJoinTable()
-
getName
public java.lang.String getName()
- Specified by:
getName
in 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:
getImplType
in interfaceImplTypeInfo
-
getGenericType
public java.lang.String getGenericType()
- Specified by:
getGenericType
in interfaceItemPersistentInfo
-
getAsXml
public java.lang.String getAsXml()
- Specified by:
getAsXml
in interfaceSchemaItemPersistentInfo
-
getXAttributes
public java.util.List<PropInfo> getXAttributes()
- Specified by:
getXAttributes
in interfaceXAttributesInfo
- Returns:
- all available xatributes
-
-