|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.core.data.DataObject
org.opensubsystems.core.data.BasicDataObject
org.opensubsystems.core.data.ModifiableDataObject
org.opensubsystems.patterns.mappeddata.data.MappedData
public class MappedData
Mapped data object represents relationship between two data objects by identifying the two data objects in the relationship, the type of relationship as well as storing any additional data connected with this relationship..
| Field Summary | |
|---|---|
static int[] |
ALL_MAPPEDDATA_COLUMNS
Static variable for array of all columns codes. |
static int |
COL_MAPPEDDATA_CREATION_DATE
Code for table column. |
static int |
COL_MAPPEDDATA_CUSTOM_DATA
Code for table column. |
static java.lang.Integer |
COL_MAPPEDDATA_CUSTOM_DATA_OBJ
Object code for table column. |
static int |
COL_MAPPEDDATA_ID
Code for table column. |
static java.lang.Integer |
COL_MAPPEDDATA_ID_OBJ
Object code for table column. |
static int |
COL_MAPPEDDATA_ID1
Code for table column. |
static java.lang.Integer |
COL_MAPPEDDATA_ID1_OBJ
Object code for table column. |
static int |
COL_MAPPEDDATA_ID2
Code for table column. |
static java.lang.Integer |
COL_MAPPEDDATA_ID2_OBJ
Object code for table column. |
static java.lang.Integer |
COL_MAPPEDDATA_MAPPED_TYPE_OBJ
Object code for table column. |
static int |
COL_MAPPEDDATA_MAPPING_TYPE
Code for table column. |
static int |
COL_MAPPEDDATA_MODIFICATION_DATE
Code for table column. |
static int[] |
DEFAULT_LIST_COLUMNS
List of columns which should be retrieved from persistence store by default. |
protected int |
m_iMappedId1
Id of the first data object in the relation. |
protected int |
m_iMappedId2
Id of the second data object in the relation. |
protected int |
m_iMappingType
Mapping type. |
protected java.lang.String |
m_strCustomData
Custom data to store together with the relation. |
static int |
MAPPING_TYPE_SELFREG
Mapping type of domain-survey schema that identify selfregistration data. |
protected static int |
s_iCustomDataMaxLength
Maximal length of the custom data field. |
| Fields inherited from class org.opensubsystems.core.data.ModifiableDataObject |
|---|
m_modificationTimestamp |
| Fields inherited from class org.opensubsystems.core.data.BasicDataObject |
|---|
m_creationTimestamp, m_iDomainId |
| Fields inherited from class org.opensubsystems.core.data.DataObject |
|---|
NEW_ID, NEW_ID_OBJ, NEW_ID_STR |
| Constructor Summary | |
|---|---|
MappedData()
Empty mapped data initialized to default parameters Note: We do not allow to specify domain id because mapped data doesn't exist in domain. |
|
MappedData(int iId,
int iMappedId1,
int iMappedId2,
int iMappedType,
java.lang.String strCustomData,
java.sql.Timestamp creationTimestamp,
java.sql.Timestamp modificationTimestamp)
Create mapped data from a given parameters. |
|
| Method Summary | |
|---|---|
java.lang.String |
getCustomData()
|
int |
getCustomDataMaxLength()
|
static int |
getCustomDataMaxLengthStatic()
|
int |
getMappedId1()
|
int |
getMappedId2()
|
int |
getMappingType()
|
boolean |
isSame(java.lang.Object oObject)
|
void |
setCustomData(java.lang.String customData)
|
static void |
setCustomDataMaxLength(int iCustomData)
Maximal length for custom data. |
void |
setMappedId1(int mappedId1)
|
void |
setMappedId2(int mappedId2)
|
void |
setMappingType(int mappingType)
|
| Methods inherited from class org.opensubsystems.core.data.ModifiableDataObject |
|---|
equals, getModificationTimestamp, hashCode, restore, setModificationTimestamp |
| Methods inherited from class org.opensubsystems.core.data.BasicDataObject |
|---|
getCreationTimestamp, getDomainId, getId, getIdAsObject, restore, setCreationTimestamp, setId |
| Methods inherited from class org.opensubsystems.core.data.DataObject |
|---|
isFromPersistenceStore, setFromPersistenceStore |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int COL_MAPPEDDATA_ID
public static final java.lang.Integer COL_MAPPEDDATA_ID_OBJ
public static final int COL_MAPPEDDATA_ID1
public static final java.lang.Integer COL_MAPPEDDATA_ID1_OBJ
public static final int COL_MAPPEDDATA_ID2
public static final java.lang.Integer COL_MAPPEDDATA_ID2_OBJ
public static final int COL_MAPPEDDATA_MAPPING_TYPE
public static final java.lang.Integer COL_MAPPEDDATA_MAPPED_TYPE_OBJ
public static final int COL_MAPPEDDATA_CUSTOM_DATA
public static final java.lang.Integer COL_MAPPEDDATA_CUSTOM_DATA_OBJ
public static final int COL_MAPPEDDATA_CREATION_DATE
public static final int COL_MAPPEDDATA_MODIFICATION_DATE
public static final int[] ALL_MAPPEDDATA_COLUMNS
public static final int[] DEFAULT_LIST_COLUMNS
public static final int MAPPING_TYPE_SELFREG
protected static int s_iCustomDataMaxLength
protected int m_iMappedId1
protected int m_iMappedId2
protected int m_iMappingType
protected java.lang.String m_strCustomData
| Constructor Detail |
|---|
public MappedData()
public MappedData(int iId,
int iMappedId1,
int iMappedId2,
int iMappedType,
java.lang.String strCustomData,
java.sql.Timestamp creationTimestamp,
java.sql.Timestamp modificationTimestamp)
iId - - Unique ID identifying this mapped data.iMappedId1 - - Mapped ID 1.iMappedId2 - - Mapped ID 2.iMappedType - - Mapped type.strCustomData - - Custom data.creationTimestamp - - Timestamp when the mapped data was createdmodificationTimestamp - - Timestamp when the mapped data was last time modified| Method Detail |
|---|
public int getMappedId1()
public void setMappedId1(int mappedId1)
mappedId1 - - new mapped ID 1public int getMappedId2()
public void setMappedId2(int mappedId2)
mappedId2 - - new mapped ID 2public int getMappingType()
public void setMappingType(int mappingType)
mappingType - - new mapped typepublic java.lang.String getCustomData()
public void setCustomData(java.lang.String customData)
customData - - new cutom data for mapped tablepublic int getCustomDataMaxLength()
public static int getCustomDataMaxLengthStatic()
public static void setCustomDataMaxLength(int iCustomData)
iCustomData - - maximal length of the custom data in the persistence
storepublic boolean isSame(java.lang.Object oObject)
isSame in class org.opensubsystems.core.data.DataObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||