|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lapetus_ltd._2009.xml.types.XLptsDBStatementGroupType
com.lapetus_ltd.api.db.xml.types.TLptsDBStatementGroupType
public class TLptsDBStatementGroupType
Class Description : This class initialises XLptsDBStatementGroupType, which holds all the statements in the system.
TLptsFactoryStatement
for manipulation of this class's information.
Field Summary |
---|
Fields inherited from class com.lapetus_ltd._2009.xml.types.XLptsDBStatementGroupType |
---|
id, statementListItem, title, version |
Constructor Summary | |
---|---|
TLptsDBStatementGroupType()
This constructor initiates the Connection Group. |
|
TLptsDBStatementGroupType(XLptsDBStatementGroupType statementGroupType)
This constructor copies the statement group information from an existing XLptsDBStatementGroupType. |
Method Summary | |
---|---|
void |
addStatementListItem(XLptsDBStatementType statementType)
Adds the statement to the statement list. |
void |
clearStatementListItem()
Clears the statement list. |
boolean |
equals(java.lang.Object obj)
Check for equality with another TLptsDBConnectionGroupType object. |
java.util.List<XLptsDBStatementType> |
getStatementListItem()
Returns a copy of the actual list. |
int |
getStatementListItemSize()
Returns the size of the actual list. |
void |
removeStatementListItem(XLptsDBStatementType statementType)
Removes the statement from the statement list. |
Methods inherited from class com.lapetus_ltd._2009.xml.types.XLptsDBStatementGroupType |
---|
getId, getTitle, getVersion, setId, setTitle, setVersion |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TLptsDBStatementGroupType()
This constructor initiates the Connection Group.
Thread Safe : Yes
Spawns its own Thread : No
May Return NULL : Never.
Notes : Default Constructor set id and initialize the statement list and the connection list.
Example :
TLptsDBConnectionGroupType connectionGroupType = new TLptsDBConnectionGroupType();
public TLptsDBStatementGroupType(XLptsDBStatementGroupType statementGroupType)
This constructor copies the statement group information from an existing XLptsDBStatementGroupType.
Thread Safe : Yes
Spawns its own Thread : No
May Return NULL : Never.
Notes :
Example :
public void example(XLptsDBConnectionGroupType statementGroupType) { TLptsDBConnectionGroupType cgt = new TLptsDBConnectionGroupType(statementGroupType); }
statementGroupType
- the class object to copy.Method Detail |
---|
public void addStatementListItem(XLptsDBStatementType statementType)
Adds the statement to the statement list.
Thread Safe : Yes
Spawns its own Thread : No
May Return NULL : n/a
Notes : Use this to add to the list. Getting the list with getStatementListItem and then adding does not have any affect.
Example :
TLptsDBConnectionGroupType cgt = new TLptsDBConnectionGroupType(); TLptsStatement statement = new TLptsStatement(connection); cgt.addStatementListItem(statement);
statementType
- the statement to add in the list.public void clearStatementListItem()
Clears the statement list.
Thread Safe : Yes
Spawns its own Thread : No
May Return NULL : n/a
Notes : Use this to clear the list. Getting the list with getStatementListItem and then clearing does not have any affect.
Example :
TLptsDBConnectionGroupType cgt = new TLptsDBConnectionGroupType(); if(cgt.getStatementListItemSize() > 0) cgt.clearStatementListItem();
public boolean equals(java.lang.Object obj)
Check for equality with another TLptsDBConnectionGroupType object.
Thread Safe : Yes
Spawns its own Thread : No
May Return NULL : n/a
Notes :
Example :
TLptsDBConnectionGroupType cgt1 = new TLptsDBConnectionGroupType(); TLptsDBConnectionGroupType cgt2 = new TLptsDBConnectionGroupType(); return cgt1.equals(cgt2);
equals
in class java.lang.Object
obj
- the connection group type
public java.util.List<XLptsDBStatementType> getStatementListItem()
Returns a copy of the actual list.
Thread Safe : Yes
Spawns its own Thread : No
May Return NULL : Never. The result may be an empty list.
Notes : Do not add to this list as there is no result. Use the addStatementListItem function.
Example :
TLptsDBConnectionGroupType cgt = new TLptsDBConnectionGroupType(); TLptsStatement statement = new TLptsStatement(connection); for(XLptsDBStatementType stmt : cgt.getStatementListItem()) if(statement.getTitle().equals(stmt.getTitle())) break;
getStatementListItem
in class XLptsDBStatementGroupType
public int getStatementListItemSize()
Returns the size of the actual list.
Thread Safe : Yes
Spawns its own Thread : No
May Return NULL : Never. The result may be an empty list.
Notes : Do not use getStatementListItem().size() as it is slow.
Example :
TLptsDBConnectionGroupType cgt = new TLptsDBConnectionGroupType(); if(cgt.getStatementListItemSize() > 0) return true; else return false;
public void removeStatementListItem(XLptsDBStatementType statementType)
Removes the statement from the statement list.
Thread Safe : Yes
Spawns its own Thread : No
May Return NULL : n/a
Notes : Use this to remove from the list. Getting the list with getStatementListItem and then removing does not have any affect.
Example :
TLptsDBConnectionGroupType cgt = new TLptsDBConnectionGroupType(); String statementTitle = "statement"; for(XLptsDBStatementType stmt : cgt.getStatementListItem()) if(stmt.getTitle().equals(statementTitle)) { cgt.removeStatementListItem(stmt); break; }
statementType
- the statement to remove from list.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |