com.jwpepper.cat
Class SimpleEntryReference
java.lang.Object
|
+--com.imaginary.lwp.BaseReference
|
+--com.jwpepper.cat.EntryReference
|
+--com.jwpepper.cat.SimpleEntryReference
- public class SimpleEntryReference
- extends EntryReference
Provides a client view of the simple entry business component by
delegating to that business component.
Last modified $Date: 1999/10/05 20:42:57 $
- Version:
- $Revision
- Author:
- Neophytos Iacovou (iacovou@ancept.com), George Reese (george@ancept.com)
- See Also:
SimpleEntry
, Serialized Form
Constructor Summary |
SimpleEntryReference()
Empty constructor required by serialization. |
SimpleEntryReference(long oid)
Constructs a new simple entry reference that delegates to the
simple entry entity identified by the specified
objectID . |
SimpleEntryReference(SimpleEntry ent)
Constructs a new simple entry reference that delegates to the
specified simple entry entity. |
Method Summary |
void |
assign(long oid,
com.sun.java.util.collections.HashMap vals)
Assigns a new simple entry reference preloaded with values
from the specified HashMap . |
short |
getLongestID()
Provides the length of the longest object ID. |
com.sun.java.util.collections.Iterator |
items(java.util.Locale loc)
Delegates to the method of the same name in the associated
entity to retrieve all child items associated with this
simple entry. |
com.sun.java.util.collections.Iterator |
lineItems(java.util.Locale loc)
Delegates to the method of the same name in the associated
entity to retrieve all child items associated with this
simple entry described for the specified locale. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SimpleEntryReference
public SimpleEntryReference()
- Empty constructor required by serialization.
SimpleEntryReference
public SimpleEntryReference(long oid)
- Constructs a new simple entry reference that delegates to the
simple entry entity identified by the specified
objectID
.
- Parameters:
oid
- the objectID
of the desired simple entry
SimpleEntryReference
public SimpleEntryReference(SimpleEntry ent)
throws java.rmi.RemoteException
- Constructs a new simple entry reference that delegates to the
specified simple entry entity.
- Parameters:
ent
- the simple entry entity to which this reference
delegates- Throws:
- java.rmi.RemoteException - a network error occurred
assign
public void assign(long oid,
com.sun.java.util.collections.HashMap vals)
- Assigns a new simple entry reference preloaded with values
from the specified
HashMap
.
- Parameters:
oid
- the objctID
of the simple entryvals
- the values to preload- Overrides:
- assign in class EntryReference
getLongestID
public short getLongestID()
throws java.rmi.RemoteException
- Provides the length of the longest object ID.
- Returns:
- the longest object ID of all entry items
- Throws:
- java.rmi.RemoteException - a network error occurred
items
public com.sun.java.util.collections.Iterator items(java.util.Locale loc)
throws java.rmi.RemoteException
- Delegates to the method of the same name in the associated
entity to retrieve all child items associated with this
simple entry.
- Returns:
- the items associated with this simple entry
- Throws:
- java.rmi.RemoteException - a network error occurred
lineItems
public com.sun.java.util.collections.Iterator lineItems(java.util.Locale loc)
throws java.rmi.RemoteException
- Delegates to the method of the same name in the associated
entity to retrieve all child items associated with this
simple entry described for the specified locale.
- Parameters:
loc
- the locale for which a translation is sought- Returns:
- short descriptions of the items associated with this simple
entry
- Throws:
- java.rmi.RemoteException - a network error occurred