T - The type of the Business Object (BO) that this reference holds.public class LazyBOReference
extends java.lang.ref.SoftReference
| Constructor and Description |
|---|
LazyBOReference(BO _bo,
BOLoaderI _bol)
Constructs a LazyBOReference with a known Business Object instance.
|
LazyBOReference(long _idBO,
BOLoaderI _bol)
Constructs a LazyBOReference with the ID of the Business Object.
|
LazyBOReference(java.lang.Long _idBO,
BOLoaderI _bol)
Constructs a LazyBOReference with the ID of the Business Object.
|
LazyBOReference(long _idBO,
BOLoaderI _bol,
java.lang.Class<? extends BOI> _clazz) |
LazyBOReference(java.lang.Long _idBO,
BOLoaderI _bol,
java.lang.Class<? extends BOI> _clazz) |
| Modifier and Type | Method and Description |
|---|---|
BO |
getBO()
Retrieves the referenced Business Object.
|
BO |
getBO(BOLoaderI _bol) |
long |
getIdBO() |
void |
setIdBO(long $1) |
public LazyBOReference(BO _bo, BOLoaderI _bol)
_bo - The Business Object instance to be referenced. Must not be null._bol - The BOLoaderI to be used for reloading the object. Must not be null.public LazyBOReference(java.lang.Long _idBO,
BOLoaderI _bol)
_idBO - The unique ID of the Business Object._bol - The BOLoaderI to be used for reloading the object. Must not be null._clazz - The Class object of the Business Object. This is useful for the loader
to know which type of object to load. If null, it defaults to BO.class.public LazyBOReference(java.lang.Long _idBO,
BOLoaderI _bol,
java.lang.Class<? extends BOI> _clazz)
public LazyBOReference(long _idBO,
BOLoaderI _bol)
_idBO - The unique ID of the Business Object._bol - The BOLoaderI to be used for reloading the object. Must not be null._clazz - The Class object of the Business Object. This is useful for the loader
to know which type of object to load. If null, it defaults to BO.class.public BO getBO()
_bol - A BOLoaderI to be used instead of the one originally provided during
instantiation. This is useful for contexts where a different
loader (e.g. one with a different transaction) is required.
May be null, in which case the default loader is used.public long getIdBO()
public void setIdBO(long $1)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.