|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The ItemInventory is an optimization for locating inventory records. When Inventory Records are created they are registered with the appropriate Item Inventory so that the can be effeciently located.
Primary Key = theory.smart.ebusiness.inventory.ItemInventoryPk
itemKey
[ItemInventory] <*>------> [String
] (Primary Key)
inventoryRecord (List)
[ItemInventory] <>------> [theory.smart.ebusiness.inventory.InventoryRecord
]
0..*
ItemInventoryPk
,
ItemInventoryHome
,
ItemInventoryImpl
,
ItemInventoryValue
Method Summary | |
void |
addFirstInventoryRecord(InventoryRecord inventoryRecord)
Inserts the given inventoryRecord at the beginning of the inventoryRecord list. |
void |
addInventoryRecord(int index,
InventoryRecord inventoryRecord)
Inserts the specified inventoryRecord at the specified position in the inventoryRecord list. |
boolean |
addInventoryRecord(InventoryRecord inventoryRecord)
Appends the specified inventoryRecord to the end of the inventoryRecord list. |
boolean |
addInventoryRecords(int index,
com.sun.java.util.collections.LinkedList inventoryRecords)
Inserts all of the inventoryRecords in the specified collection into this list, starting at the specified position. |
boolean |
addInventoryRecords(com.sun.java.util.collections.LinkedList inventoryRecords)
Appends all of the inventoryRecords in the specified collection to the end of the inventoryRecord list, in the order that they are returned by the specified collection's iterator. |
void |
addLastInventoryRecord(InventoryRecord inventoryRecord)
Appends the given inventoryRecord to the end of the inventoryRecord list. |
boolean |
containsInventoryRecord(InventoryRecord inventoryRecord)
Returns true if the inventoryRecord list contains the specified element. |
InventoryRecord |
getFirstInventoryRecord()
Returns the first inventoryRecord in the inventoryRecord list. |
InventoryRecord |
getInventoryRecord(int index)
Returns the inventoryRecord at the specified position in the inventoryRecord list. |
com.sun.java.util.collections.LinkedList |
getInventoryRecords()
Returns all of the inventoryRecords in the inventoryRecord list. |
com.sun.java.util.collections.LinkedList |
getInventoryRecords(int fromIndex,
int toIndex)
Returns a view of the portion of the inventoryRecord list between fromIndex, inclusive, and toIndex, exclusive. |
ItemInventoryValue |
getItemInventoryByValue()
Get all of ItemInventory's attributes. |
java.lang.String |
getItemKey()
|
InventoryRecord |
getLastInventoryRecord()
Returns the last inventoryRecord in the inventoryRecord list. |
int |
getNumberOfInventoryRecords()
Returns the number of inventoryRecords in the inventoryRecord list. |
int |
indexOfInventoryRecord(InventoryRecord inventoryRecord)
Returns the index in the inventoryRecord list of the first occurrence of the specified element, or -1 if the inventoryRecord list does not contain this element. |
boolean |
isInventoryRecordsEmtpy()
Returns true if the inventoryRecord list contains no inventoryRecords. |
int |
lastIndexOfInventoryRecord(InventoryRecord inventoryRecord)
Returns the index in the inventoryRecord list of the last occurrence of the specified element, or -1 if the inventoryRecord list does not contain this element. |
void |
removeAllInventoryRecords()
Removes all of the inventoryRecords from the inventoryRecord list. |
InventoryRecord |
removeFirstInventoryRecord()
Removes and returns the first inventoryRecord from the inventoryRecord list. |
InventoryRecord |
removeInventoryRecord(int index)
Removes the inventoryRecord at the specified position in the inventoryRecord list. |
boolean |
removeInventoryRecord(InventoryRecord inventoryRecord)
Removes the first occurrence of the specified inventoryRecord in the inventoryRecord list. |
InventoryRecord |
removeLastInventoryRecord()
Removes and returns the last inventoryRecord from the inventoryRecord list. |
InventoryRecord |
setInventoryRecord(int index,
InventoryRecord inventoryRecord)
Replaces the inventoryRecord at the specified position in the inventoryRecord list with the specified element. |
void |
setItemInventoryByValue(ItemInventoryValue value)
Set all of ItemInventory's attributes to the passed in value. |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome,
getHandle,
getPrimaryKey,
isIdentical,
remove |
Method Detail |
public ItemInventoryValue getItemInventoryByValue() throws java.rmi.RemoteException
public void setItemInventoryByValue(ItemInventoryValue value) throws java.rmi.RemoteException
ItemInventoryValue
- the ItemInventory value objectpublic java.lang.String getItemKey() throws java.rmi.RemoteException
public void addFirstInventoryRecord(InventoryRecord inventoryRecord) throws java.rmi.RemoteException
public void addLastInventoryRecord(InventoryRecord inventoryRecord) throws java.rmi.RemoteException
public void addInventoryRecord(int index, InventoryRecord inventoryRecord) throws java.rmi.RemoteException
index
- index at which the specified inventoryRecord is to be inserted.inventoryRecord
- inventoryRecord to be inserted.public boolean addInventoryRecord(InventoryRecord inventoryRecord) throws java.rmi.RemoteException
inventoryRecord
- inventoryRecord to be appended to the inventoryRecord list.public boolean addInventoryRecords(int index, com.sun.java.util.collections.LinkedList inventoryRecords) throws java.rmi.RemoteException
index
- index at which to insert first element
from the specified collection.inventoryRecords
- inventoryRecords to be inserted into the inventoryRecord list.public boolean addInventoryRecords(com.sun.java.util.collections.LinkedList inventoryRecords) throws java.rmi.RemoteException
inventoryRecords
- inventoryRecords to be inserted into the inventoryRecord list.public boolean containsInventoryRecord(InventoryRecord inventoryRecord) throws java.rmi.RemoteException
inventoryRecord
- inventoryRecord whose presence in the inventoryRecord list is to be tested.public InventoryRecord getFirstInventoryRecord() throws java.rmi.RemoteException
public InventoryRecord getLastInventoryRecord() throws java.rmi.RemoteException
public int getNumberOfInventoryRecords() throws java.rmi.RemoteException
public InventoryRecord getInventoryRecord(int index) throws java.rmi.RemoteException
index
- index of inventoryRecord to return.public com.sun.java.util.collections.LinkedList getInventoryRecords(int fromIndex, int toIndex) throws java.rmi.RemoteException
fromIndex
- low endpoint (inclusive) of the subList.toKey
- high endpoint (exclusive) of the subList.public com.sun.java.util.collections.LinkedList getInventoryRecords() throws java.rmi.RemoteException
public int indexOfInventoryRecord(InventoryRecord inventoryRecord) throws java.rmi.RemoteException
inventoryRecord
- inventoryRecord to search for.public boolean isInventoryRecordsEmtpy() throws java.rmi.RemoteException
public int lastIndexOfInventoryRecord(InventoryRecord inventoryRecord) throws java.rmi.RemoteException
inventoryRecord
- inventoryRecord to search for.public void removeAllInventoryRecords() throws java.rmi.RemoteException
public InventoryRecord removeFirstInventoryRecord() throws java.rmi.RemoteException
public InventoryRecord removeLastInventoryRecord() throws java.rmi.RemoteException
public InventoryRecord removeInventoryRecord(int index) throws java.rmi.RemoteException
index
- the index of the inventoryRecord to removed.public boolean removeInventoryRecord(InventoryRecord inventoryRecord) throws java.rmi.RemoteException
inventoryRecord
- inventoryRecord to be removed from the inventoryRecord list, if present.public InventoryRecord setInventoryRecord(int index, InventoryRecord inventoryRecord) throws java.rmi.RemoteException
index
- index of inventoryRecord to replace.inventoryRecord
- inventoryRecord to be stored at the specified position.
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |