|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--theory.smart.foundation.EntityImpl | +--theory.smart.ebusiness.inventory.ItemInventoryImpl
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
ItemInventory
,
ItemInventoryHome
,
ItemInventoryValue
, Serialized FormField Summary | |
com.sun.java.util.collections.LinkedList |
inventoryRecords
inventoryRecord (List) [ItemInventory] <>------> [ theory.smart.ebusiness.inventory.InventoryRecord ]
0..*
|
java.lang.String |
itemKey
itemKey [ItemInventory] <*>------> [ String ] (Primary Key)
|
Fields inherited from class theory.smart.foundation.EntityImpl |
ctx,
isDirty,
isLoaded |
Constructor Summary | |
ItemInventoryImpl()
|
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. |
void |
ejbActivate()
ejbActivate method. |
ItemInventoryPk |
ejbCreate(ItemInventoryPk itemInventoryPk)
|
java.util.Enumeration |
ejbFindAll()
|
ItemInventoryPk |
ejbFindByPrimaryKey(ItemInventoryPk pk)
|
void |
ejbLoad()
ejbLoad method. |
void |
ejbPassivate()
ejbPassivate method. |
void |
ejbPostCreate(ItemInventoryPk itemInventoryPk)
|
void |
ejbRemove()
ejbRemove method. |
void |
ejbStore()
ejbStore method. |
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. |
void |
setEntityContext(javax.ejb.EntityContext ctx)
setEntityContext method. |
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. |
void |
unsetEntityContext()
unsetEntityContext method. |
Methods inherited from class theory.smart.foundation.EntityImpl |
ejbCreate,
ejbPostCreate,
getEntityContext,
isModified |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public java.lang.String itemKey
itemKey
[ItemInventory] <*>------> [String
] (Primary Key)
public com.sun.java.util.collections.LinkedList inventoryRecords
inventoryRecord (List)
[ItemInventory] <>------> [theory.smart.ebusiness.inventory.InventoryRecord
]
0..*
Constructor Detail |
public ItemInventoryImpl() throws javax.ejb.CreateException
Method Detail |
public ItemInventoryValue getItemInventoryByValue() throws java.rmi.RemoteException
public void setItemInventoryByValue(ItemInventoryValue value) throws java.rmi.RemoteException
ItemInventoryValue
- the ItemInventory value objectpublic ItemInventoryPk ejbCreate(ItemInventoryPk itemInventoryPk) throws javax.ejb.CreateException, java.rmi.RemoteException
public void ejbPostCreate(ItemInventoryPk itemInventoryPk) throws javax.ejb.CreateException, java.rmi.RemoteException
public void ejbLoad() throws java.rmi.RemoteException
public void ejbStore() throws java.rmi.RemoteException
public void ejbRemove() throws java.rmi.RemoteException, javax.ejb.RemoveException
public void ejbActivate() throws java.rmi.RemoteException
public void ejbPassivate() throws java.rmi.RemoteException
public void setEntityContext(javax.ejb.EntityContext ctx) throws java.rmi.RemoteException
public void unsetEntityContext() throws java.rmi.RemoteException
public ItemInventoryPk ejbFindByPrimaryKey(ItemInventoryPk pk) throws javax.ejb.FinderException, java.rmi.RemoteException
public java.util.Enumeration ejbFindAll() throws javax.ejb.FinderException, java.rmi.RemoteException
public 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 |