| 
Oracle Ultra Search APIs 9.2  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--oracle.ultrasearch.query.InstanceMetaData
Class InstanceMetaData provides comprehensive information about an instance: attributes, groups, lovs, languages and display names.
| Method Summary | |
 Attribute | 
getAttribute(int id)Get an attribute using an attribute ID.  | 
 Attribute | 
getAttribute(java.lang.String uniqueName)Get an attribute using the unique attribute naming scheme.  | 
 Attribute | 
getAttribute(java.lang.String name, java.lang.Class type)Get an attribute from Ultra Search using an attribute name (not display name), and type  | 
 java.util.Collection | 
getAttributes()Get all attributes defined in this instance.  | 
 java.util.Collection | 
getAttributesIntersect(Group[] grps)Get the attributes available in a set of data group by finding the intersection of each group's attributes.  | 
 java.util.Collection | 
getAttributesUnion(Group[] grps)Get the attributes available in a set of data groups by finding the union of each group's attributes.  | 
 DateAttribute | 
getDateAttribute(java.lang.String name)Get a date attribute from Ultra Search using an attribute name (not display name).  | 
 java.lang.String | 
getDisplayName(Attribute att, java.util.Locale loc)Get the display name for an Attribute.  | 
 java.lang.String | 
getDisplayName(Group grp, java.util.Locale loc)Get the display name for a Group.  | 
 Group | 
getGroup(int gid)Get a group using its ID.  | 
 Group | 
getGroup(java.lang.String gname)Get a group using its name.  | 
 java.util.Collection | 
getGroups()Get all the groups defined in the instance.  | 
 Instance | 
getInstance()get the Instance object that created this instance meta data.  | 
 java.util.Collection | 
getLanguages()Get all the searchable languages defined in this instance.  | 
 AttributeLOV | 
getLOVDefault(Attribute att, java.util.Locale loc)Get the attribute LOV available for this attribute.  | 
 AttributeLOV | 
getLOVIntersect(Attribute att, Group[] groups, java.util.Locale loc)Get the attribute LOV available for this set of groups by finding the intersection of the individual group's LOV.  | 
 AttributeLOV | 
getLOVUnion(Attribute att, Group[] groups, java.util.Locale loc)Get the attribute LOV available for this set of groups by finding the union of the individual group's LOV.  | 
 NumberAttribute | 
getNumberAttribute(java.lang.String name)Get a number attribute from Ultra Search using an attribute name (not display name).  | 
 StringAttribute | 
getStringAttribute(java.lang.String name)Get a string attribute from Ultra Search using an attribute name (not display name).  | 
| Methods inherited from class java.lang.Object | 
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
public Instance getInstance()
public java.util.Collection getGroups()
public Group getGroup(int gid)
gid - group IDpublic Group getGroup(java.lang.String gname)
gname - group namepublic java.util.Collection getLanguages()
public java.util.Collection getAttributes()
public Attribute getAttribute(java.lang.String uniqueName)
uniqueName - an unique name for an attribute.public Attribute getAttribute(int id)
public Attribute getAttribute(java.lang.String name,
                              java.lang.Class type)
name - the attribute nametype - the attribute's type/class, for example StringAttribute.TYPEpublic StringAttribute getStringAttribute(java.lang.String name)
public NumberAttribute getNumberAttribute(java.lang.String name)
public DateAttribute getDateAttribute(java.lang.String name)
public java.util.Collection getAttributesUnion(Group[] grps)
grps - an array of groupspublic java.util.Collection getAttributesIntersect(Group[] grps)
grps - an array of groups
public AttributeLOV getLOVDefault(Attribute att,
                                  java.util.Locale loc)
att - the attribute for the LOV requestedloc - the locale for display names
public AttributeLOV getLOVUnion(Attribute att,
                                Group[] groups,
                                java.util.Locale loc)
att - the attribute for the LOV requestedgroups[] - an array of groupsloc - the locale for display names
public AttributeLOV getLOVIntersect(Attribute att,
                                    Group[] groups,
                                    java.util.Locale loc)
att - the attribute for the LOV requestedloc - the locale for display namesgroups[] - an array of groups
public java.lang.String getDisplayName(Attribute att,
                                       java.util.Locale loc)
att - an attribute obj, not nullloc - locale of the display name, not null
public java.lang.String getDisplayName(Group grp,
                                       java.util.Locale loc)
grp - a group obj, not nullloc - locale of the display name, not null 
  | 
Oracle Ultra Search APIs 9.2  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||