|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.datacrow.core.objects.DcObject
net.datacrow.core.objects.DcMapping
public class DcMapping
A mapping represents a many to many relationship. Mappings are stored in cross reference database tables.
Field Summary | |
---|---|
static int |
_A_PARENT_ID
|
static int |
_B_REFERENCED_ID
|
Fields inherited from class net.datacrow.core.objects.DcObject |
---|
_ID, _SYS_AVAILABLE, _SYS_CONTAINER, _SYS_CREATED, _SYS_DISPLAYVALUE, _SYS_EXTERNAL_REFERENCES, _SYS_FILEHASH, _SYS_FILEHASHTYPE, _SYS_FILENAME, _SYS_FILESIZE, _SYS_LENDBY, _SYS_LOANDUEDATE, _SYS_LOANDURATION, _SYS_LOANENDDATE, _SYS_LOANSTARTDATE, _SYS_LOANSTATUS, _SYS_LOANSTATUSDAYS, _SYS_MODIFIED, _SYS_MODULE, _SYS_SERVICE, _SYS_SERVICEURL, _VALUE, children |
Constructor Summary | |
---|---|
DcMapping(int module)
Creates a new instance. |
Method Summary | |
---|---|
DcObject |
clone()
Clones this objects. |
void |
copy(DcObject dco,
boolean overwrite,
boolean allowDeletes)
Copies all values from the specified Data Crow object. |
void |
destroy()
|
java.lang.String |
getFilename()
The filename to which this module is stored. |
DcImageIcon |
getIcon()
|
java.lang.String |
getParentId()
The object ID of the parent. |
int |
getParentModuleIdx()
The parent module index. |
java.lang.String |
getReferencedID()
The object ID of the referenced item. |
int |
getReferencedModuleIdx()
The referenced module index. |
DcObject |
getReferencedObject()
Retrieves the referenced object. |
boolean |
hasPrimaryKey()
Is this object capable of storing IDs? |
void |
initializeImages()
Loads the actual image / picture information. |
void |
initializeReferences()
Loads the actual reference information. |
void |
setReference(DcObject dco)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int _A_PARENT_ID
public static final int _B_REFERENCED_ID
Constructor Detail |
---|
public DcMapping(int module)
module
- Method Detail |
---|
public java.lang.String getFilename()
getFilename
in class DcObject
public void initializeImages()
DcObject
initializeImages
in class DcObject
public boolean hasPrimaryKey()
DcObject
hasPrimaryKey
in class DcObject
public void initializeReferences()
DcObject
initializeReferences
in class DcObject
public void destroy()
destroy
in class DcObject
public void setReference(DcObject dco)
public DcObject getReferencedObject()
public int getParentModuleIdx()
public int getReferencedModuleIdx()
public java.lang.String getParentId()
public java.lang.String getReferencedID()
public DcImageIcon getIcon()
getIcon
in class DcObject
public java.lang.String toString()
toString
in class DcObject
public DcObject clone()
DcObject
clone
in class DcObject
public void copy(DcObject dco, boolean overwrite, boolean allowDeletes)
DcObject
copy
in class DcObject
dco
- Source item.overwrite
- Indicates whether existing values should be overwritten.allowDeletes
- Allows existing values to be cleared.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |