|
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.foundation.ConfigurableEntityImpl | +--theory.smart.axiom.accounting.AccountImpl | +--theory.smart.ebusiness.inventory.InventoryRecordImpl
This represents a virtual storage unit for an item type. It has a reference to the class of item that is stored there and is derived from account. Account is a mechanism for keeping track of the quantity of something and controlling allocation of that something through transactions.
Primary Key = theory.smart.ebusiness.inventory.InventoryRecordPk
InventoryRecord
,
InventoryRecordHome
,
InventoryRecordValue
, Serialized FormField Summary | |
SmartHandle |
item
item [InventoryRecord] <>------> [ theory.smart.ebusiness.item.Item ]
|
com.sun.java.util.collections.LinkedList |
locators
locator (List) [InventoryRecord] <*>------> [ theory.smart.ebusiness.inventory.Locator ]
0..*
|
Fields inherited from class theory.smart.axiom.accounting.AccountImpl |
accountEntries,
balances,
chargeds,
identifier |
Fields inherited from class theory.smart.foundation.EntityImpl |
ctx,
isDirty,
isLoaded |
Constructor Summary | |
InventoryRecordImpl()
|
Method Summary | |
void |
addFirstLocator(Locator locator)
Inserts the given locator at the beginning of the locator list. |
void |
addLastLocator(Locator locator)
Appends the given locator to the end of the locator list. |
void |
addLocator(int index,
Locator locator)
Inserts the specified locator at the specified position in the locator list. |
boolean |
addLocator(Locator locator)
Appends the specified locator to the end of the locator list. |
boolean |
addLocators(int index,
com.sun.java.util.collections.LinkedList locators)
Inserts all of the locators in the specified collection into this list, starting at the specified position. |
boolean |
addLocators(com.sun.java.util.collections.LinkedList locators)
Appends all of the locators in the specified collection to the end of the locator list, in the order that they are returned by the specified collection's iterator. |
boolean |
containsLocator(Locator locator)
Returns true if the locator list contains the specified element. |
void |
ejbActivate()
ejbActivate method. |
InventoryRecordPk |
ejbCreate(InventoryRecordPk inventoryRecordPk)
|
java.util.Enumeration |
ejbFindAll()
|
InventoryRecordPk |
ejbFindByPrimaryKey(InventoryRecordPk pk)
|
void |
ejbLoad()
ejbLoad method. |
void |
ejbPassivate()
ejbPassivate method. |
void |
ejbPostCreate(InventoryRecordPk inventoryRecordPk)
|
void |
ejbRemove()
ejbRemove method. |
void |
ejbStore()
ejbStore method. |
Locator |
getFirstLocator()
Returns the first locator in the locator list. |
InventoryRecordValue |
getInventoryRecordByValue()
Get all of InventoryRecord's attributes. |
Item |
getItem()
Get the remote object reference of item |
Locator |
getLastLocator()
Returns the last locator in the locator list. |
Locator |
getLocator(int index)
Returns the locator at the specified position in the locator list. |
com.sun.java.util.collections.LinkedList |
getLocators()
Returns all of the locators in the locator list. |
com.sun.java.util.collections.LinkedList |
getLocators(int fromIndex,
int toIndex)
Returns a view of the portion of the locator list between fromIndex, inclusive, and toIndex, exclusive. |
int |
getNumberOfLocators()
Returns the number of locators in the locator list. |
int |
indexOfLocator(Locator locator)
Returns the index in the locator list of the first occurrence of the specified element, or -1 if the locator list does not contain this element. |
boolean |
isLocatorsEmtpy()
Returns true if the locator list contains no locators. |
int |
lastIndexOfLocator(Locator locator)
Returns the index in the locator list of the last occurrence of the specified element, or -1 if the locator list does not contain this element. |
void |
removeAllLocators()
Removes all of the locators from the locator list. |
Locator |
removeFirstLocator()
Removes and returns the first locator from the locator list. |
Locator |
removeLastLocator()
Removes and returns the last locator from the locator list. |
Locator |
removeLocator(int index)
Removes the locator at the specified position in the locator list. |
boolean |
removeLocator(Locator locator)
Removes the first occurrence of the specified locator in the locator list. |
void |
setEntityContext(javax.ejb.EntityContext ctx)
setEntityContext method. |
void |
setInventoryRecordByValue(InventoryRecordValue value)
Set all of InventoryRecord's attributes to the passed in value. |
void |
setItem(Item item)
Set the remote object reference of item |
Locator |
setLocator(int index,
Locator locator)
Replaces the locator at the specified position in the locator list with the specified element. |
void |
unsetEntityContext()
unsetEntityContext method. |
Methods inherited from class theory.smart.foundation.ConfigurableEntityImpl |
addBusinessPolicy,
addProperty,
ejbCreate,
ejbPostCreate,
getBusinessPolicy,
getProperty,
removeBusinessPolicy,
removeProperty,
setSuccessorAtClassLevel,
setSuccessorAtInstanceLevel |
Methods inherited from class theory.smart.foundation.EntityImpl |
getEntityContext,
isModified |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public SmartHandle item
item
[InventoryRecord] <>------> [theory.smart.ebusiness.item.Item
]
public com.sun.java.util.collections.LinkedList locators
locator (List)
[InventoryRecord] <*>------> [theory.smart.ebusiness.inventory.Locator
]
0..*
Constructor Detail |
public InventoryRecordImpl() throws javax.ejb.CreateException
Method Detail |
public InventoryRecordValue getInventoryRecordByValue() throws java.rmi.RemoteException
public void setInventoryRecordByValue(InventoryRecordValue value) throws java.rmi.RemoteException
InventoryRecordValue
- the InventoryRecord value objectpublic InventoryRecordPk ejbCreate(InventoryRecordPk inventoryRecordPk) throws javax.ejb.CreateException, java.rmi.RemoteException
public void ejbPostCreate(InventoryRecordPk inventoryRecordPk) 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 InventoryRecordPk ejbFindByPrimaryKey(InventoryRecordPk pk) throws javax.ejb.FinderException, java.rmi.RemoteException
public java.util.Enumeration ejbFindAll() throws javax.ejb.FinderException, java.rmi.RemoteException
public Item getItem() throws java.rmi.RemoteException
public void setItem(Item item) throws java.rmi.RemoteException
items
- item to be addedpublic void addLocator(int index, Locator locator)
index
- index at which the specified locator is to be inserted.locator
- locator to be inserted.public boolean addLocator(Locator locator)
locator
- locator to be appended to the locator list.public boolean addLocators(int index, com.sun.java.util.collections.LinkedList locators)
index
- index at which to insert first element
from the specified collection.locators
- locators to be inserted into the locator list.public boolean addLocators(com.sun.java.util.collections.LinkedList locators)
locators
- locators to be inserted into the locator list.public void addFirstLocator(Locator locator)
public void addLastLocator(Locator locator)
public boolean containsLocator(Locator locator)
locator
- locator whose presence in the locator list is to be tested.public Locator getLocator(int index)
index
- index of locator to return.public com.sun.java.util.collections.LinkedList getLocators(int fromIndex, int toIndex)
fromIndex
- low endpoint (inclusive) of the subList.toKey
- high endpoint (exclusive) of the subList.public com.sun.java.util.collections.LinkedList getLocators()
public Locator getFirstLocator()
public Locator getLastLocator()
public int getNumberOfLocators()
public int indexOfLocator(Locator locator)
locator
- locator to search for.public boolean isLocatorsEmtpy()
public int lastIndexOfLocator(Locator locator)
locator
- locator to search for.public void removeAllLocators()
public Locator removeLocator(int index)
index
- the index of the locator to removed.public boolean removeLocator(Locator locator)
locator
- locator to be removed from the locator list, if present.public Locator removeFirstLocator()
public Locator removeLastLocator()
public Locator setLocator(int index, Locator locator)
index
- index of locator to replace.locator
- locator 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 |