OK, more Java stuff today. Since I've been messing with Java I've found the need to build several arrays from the values of a view column. I assume it's probably common practice to build views just for lookups of keywords, to populate drop down boxes, etc. The problem is that the Notes Java classes don't provide something like @DbColumn which would be nice, but understandable that it's not there (at least that I know of). But I came up with this Java method and it seems to fit the bill whenever I need this sort of information.
Click the Read More link to see the code...
public String[] buildKeywords(String viewName){
   String[] viewKeyWords =
new String
1;
  
try {
     View getKeysView = thisDB.getView(viewName);
     ViewEntryCollection entCol = getKeysView.getAllEntries();
     view KeyWords =
new String[entCol.getCount()];
    
for (
int i=
1;i < entCol.getCount()+
1;i++){
       ViewEntry ent = entCol.getNthEntry(i);
      
if (ent !=
null) {
          Vector v = ent.getColumnValues();
         
if (v.elementAt(
0) !=
null) {
           view KeyWords[i-
1] = v.elementAt(
0).toString();
       }
     }
   }
  }
catch(Exception e) {
     e.printStackTrace();
  }
  
return viewKeyWords;
}