org.sandev.basics.util
Interface NameLookup

All Known Subinterfaces:
UIFormAdaptorCallback, UIFormOwner

public interface NameLookup

Provides general object resolution capabilities. A NameLookup is needed to transform a String object reference into an actual instance. While this can be done using a query, the resulting reference resolution code would be unnecessarily complex. This is similar to IDLookup but used for String references.


Method Summary
 SandInstanceMessage getInstance(java.lang.String classname, java.lang.String fieldname, java.lang.String value, AuthUser user)
          Return the unique instance identified by the specified class, field, and value.
 

Method Detail

getInstance

public SandInstanceMessage getInstance(java.lang.String classname,
                                       java.lang.String fieldname,
                                       java.lang.String value,
                                       AuthUser user)
                                throws SandException
Return the unique instance identified by the specified class, field, and value. The classname may be short name or the fully qualified name.

If the identification does not resolve to a unique instance, this method throws a DuplicateReferenceException

Throws:
SandException