|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.wpi.cs.DSRG.xmldb.DTDMObjects.DTDM_ItemWrapper
DTDM_ItemWrapper.java representing object - Item in ALL_DTDS_DTDM_ITEM table. API: DTDM_ItemWrapper(JDBCClient, String) - Get all member variables setting based on given Item_Name and statement of opened connection. DTDM_ItemWrapper(JDBCClient, int) - Get all member variables setting based on given Item_ID and statement of opened connection. For Example:
Statement stmt = this.Conn.createStatement(); DTDM_ItemWrapper Item = new DTDM_ItemWrapper(client, "person");
Statement stmt = this.Conn.createStatement(); DTDM_ItemWrapper Item = new DTDM_ItemWrapper(client, 4);member variables: miItemID - ID of current Item msItemName - Name of current Item msItemType - Type of current Item CurrDTDMId - Id of current DTDM member functions: Load() - load the member variables based on give item name. Insert() - Insert current Item into DTDM_ITEM Table. Delete() - Delete current Item from DTDM_ITEM Tabel. Update() - Update current Item in DTDM_ITEM Table based on member variables setting. Get_All_Parent() - return all parent items of current item. Get_All_Children() - return all children items of current item. Get_All_Parent_Nestings() - return all nestings related with the parents of current item. Get_All_Child_Nestings() - return all nestings related with the children of current item. SetItemID(int) - set member variable miItemID. SetItemName(String) - set member variable msItemName. SetItemType(String) - set member variable msItemType. GetItemID() - get value of member variable miItemID. GetItemName() - get value of member variable msItemName. GetItemType() - get value of member variable msItemType. Reset() - reset all the member variables of object - Item.
Field Summary | |
(package private) JDBCClient |
client
Global Statement of opened connection |
(package private) java.lang.String |
CurrDTDMId
|
(package private) int |
miItemID
|
(package private) java.lang.String |
msItemName
Initialize the class |
(package private) java.lang.String |
msItemType
|
Constructor Summary | |
DTDM_ItemWrapper(JDBCClient client,
int Item_ID,
java.lang.String currDTDM_ID)
DTDM_ItemWrapper API 2 - load all member variables based on Item ID |
|
DTDM_ItemWrapper(JDBCClient client,
java.lang.String Item_Name,
java.lang.String CurrDTDM_ID)
DTDM_ItemWrapper API 1 - load all member variables based on Item Name |
Method Summary | |
boolean |
Delete()
Delete current Item from ALL_DTDS_DTDM_ITEM table. |
java.util.Vector |
Get_All_Child_Nestings()
return vector that contains all the objects - Nestings that are the relationships between all children Items and the current Item. |
java.util.Vector |
Get_All_Children()
return vector that contains all the objects - Items that are the children of the current Item. |
java.util.Vector |
Get_All_Parent_Nestings()
return vector that contains all the objects - Nestings that are the relationships between all parent Items and the current Item. |
java.util.Vector |
Get_All_Parent()
return Vector that constains all objects - Items that are the parents of the current Item. |
java.lang.String |
GetDTDMId()
return current DTDM Id |
int |
GetItemID()
return ID of current Item |
java.lang.String |
GetItemName()
return Name of current Item |
java.lang.String |
GetItemType()
return Type of current Item |
boolean |
Insert()
Insert current Item into ALL_DTDS_DTDM_ITEM table |
boolean |
Load()
Load member variables miItemID, msItemType based on give Item Name. |
void |
Reset()
reset all member variables of object - Item |
void |
SetItemID(int iNewItemID)
set member variable - miItemID |
void |
SetItemName(java.lang.String sNewItemName)
set member variable - msItemName |
void |
SetItemType(java.lang.String sNewItemType)
set member variable - msItemType |
boolean |
Update()
Update current Item in ALL_DTDS_DTDM_ITEM table based on member variables setting. |
Methods inherited from class java.lang.Object |
|
Field Detail |
java.lang.String msItemName
java.lang.String msItemType
int miItemID
java.lang.String CurrDTDMId
JDBCClient client
Constructor Detail |
public DTDM_ItemWrapper(JDBCClient client, java.lang.String Item_Name, java.lang.String CurrDTDM_ID)
public DTDM_ItemWrapper(JDBCClient client, int Item_ID, java.lang.String currDTDM_ID)
Method Detail |
public boolean Load()
public boolean Insert()
public boolean Delete()
public boolean Update()
public java.util.Vector Get_All_Parent()
public java.util.Vector Get_All_Children()
public java.util.Vector Get_All_Parent_Nestings()
public java.util.Vector Get_All_Child_Nestings()
public void SetItemID(int iNewItemID)
iNewItemID
- New Item ID to set member variablepublic void SetItemName(java.lang.String sNewItemName)
sNewItemName
- New Item Name to set member variablepublic void SetItemType(java.lang.String sNewItemType)
sNewItemType
- New Item Type to set member variablepublic int GetItemID()
None
- public java.lang.String GetItemName()
None
- public java.lang.String GetItemType()
None
- public java.lang.String GetDTDMId()
None
- public void Reset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |