|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.datacrow.core.modules.DcModule
net.datacrow.core.modules.MappingModule
public class MappingModule
A mapping module creates a link between two modules. Used for many to many relationships.
Field Summary |
---|
Fields inherited from class net.datacrow.core.modules.DcModule |
---|
_TYPE_ASSOCIATE_MODULE, _TYPE_EXTERNALREFERENCE_MODULE, _TYPE_MAPPING_MODULE, _TYPE_MEDIA_MODULE, _TYPE_MODULE, _TYPE_PROPERTY_MODULE, _TYPE_TEMPLATE_MODULE, insertView, searchView |
Constructor Summary | |
---|---|
MappingModule(DcModule parentMod,
DcModule referencedMod,
int fieldIdx)
Creates a new mapping module to link the specified modules. |
Method Summary | |
---|---|
DcObject |
createItem()
Creates a new instance of a mapping item. |
boolean |
equals(java.lang.Object o)
|
java.util.Collection<DcObject> |
getDefaultData()
A mapping module does not have any default data. |
int[] |
getMinimalFields(java.util.Collection<java.lang.Integer> include)
|
int |
getParentModIdx()
The parent module index. |
int |
getReferencedModIdx()
The referenced module index. |
boolean |
hasInsertView()
A mapping module does not have any views. |
boolean |
hasSearchView()
A mapping module does not have any views. |
protected void |
initializeFields()
Creates the default fields. |
protected void |
initializeUI()
This module does not have any views and therefore this method has not having to do. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MappingModule(DcModule parentMod, DcModule referencedMod, int fieldIdx)
parentMod
- The parent module.referencedMod
- The child/referenced module.Method Detail |
---|
public DcObject createItem()
createItem
in class DcModule
DcMapping
public int getReferencedModIdx()
protected void initializeUI()
initializeUI
in class DcModule
public int getParentModIdx()
public int[] getMinimalFields(java.util.Collection<java.lang.Integer> include)
getMinimalFields
in class DcModule
public boolean hasInsertView()
hasInsertView
in class DcModule
public boolean hasSearchView()
hasSearchView
in class DcModule
protected void initializeFields()
initializeFields
in class DcModule
public boolean equals(java.lang.Object o)
equals
in class DcModule
public java.util.Collection<DcObject> getDefaultData() throws java.lang.Exception
getDefaultData
in class DcModule
java.lang.Exception
DcModule.getDefaultData()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |