public class RelationFieldInfo
extends java.lang.Object
Constructor and Description |
---|
RelationFieldInfo(java.lang.String fieldName, java.lang.String type, java.lang.String relatedDSName, java.lang.String relatedFieldName, boolean objectEncapsulated, boolean multiple) Creates information about relation field. |
Modifier and Type | Method and Description |
---|---|
java.lang.String | getFieldName() Returns field name as declared in data source. |
java.lang.String | getRelatedDSName() Returns related data source name. |
java.lang.String | getRelatedFieldName() Returns field name in related data source. |
java.lang.String | getType() Returns field type as declared in data source. |
boolean | isMultiple() Returns true if field holds list of objects or list of primary keys of related objects; flase if field holds realted object or primary key of related object. |
boolean | isObjectEncapsulated() Returns true if field encapsulates object or list of objects; flase if field holds primary key of related object or list of primary keys of related objects. |
public RelationFieldInfo(java.lang.String fieldName, java.lang.String type, java.lang.String relatedDSName, java.lang.String relatedFieldName, boolean objectEncapsulated, boolean multiple)
fieldName
- String
Field name.type
- String
Field type.relatedDSName
- String
Related data source name.relatedFieldName
- String
Field name in related data source.objectEncapsulated
- boolean
Should field encapsulate object or hold primary key reference.multiple
- boolean
Should field contain list of related objects or refers to single object.public java.lang.String getFieldName()
String
Field name.public java.lang.String getType()
String
Field type.public java.lang.String getRelatedDSName()
String
Related data source name.public java.lang.String getRelatedFieldName()
String
Field name in related data source.public boolean isObjectEncapsulated()
true
if field encapsulates object or list of objects; flase
if field holds primary key of related object or list of primary keys of related objects.boolean
true
if field encapsulates object or list of objects; flase
if field holds primary key of related object or list of primary keys of related objects.public boolean isMultiple()
true
if field holds list of objects or list of primary keys of related objects; flase
if field holds realted object or primary key of related object.boolean
true
if field holds list of objects or list of primary keys of related objects; flase
if field holds realted object or primary key of related object.