Package com.nt.udc.nar
Class NARKeyFactory
java.lang.Object
com.nt.udc.nar.NARKeyFactory
- All Implemented Interfaces:
Factory
This factory should be used in places that require a
NAR key, but do not actually have (or need) the
knowledge about creating the key. Given a
created NAR, this class should be able to produce
a suitable key to be used in a Hashtable (or some
storage structure) that is storing NARs.
-
Constructor Summary
ConstructorsConstructorDescriptionNARKeyFactory
(int[] ka) Deprecated.Use NARKeyFactory(FieldKey[])NARKeyFactory
(FieldKey[] ka) -
Method Summary
-
Constructor Details
-
NARKeyFactory
Deprecated.Use NARKeyFactory(FieldKey[])Constructor to create the factory with the NAR attributes that are used in creating the key.- Parameters:
ka
- Key attributes of the NAR
-
NARKeyFactory
-
-
Method Details
-
getObject
Returns the NAR key, based on the input NAR. -
getKey
Returns the NAR key, based on the input NAR.- Parameters:
data
- NAR Object that needs a key.- Returns:
- the key for the given NAR Object, or null if the NAR has none of the key attributes
-