|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.melati.poem.Searchability
public final class Searchability
The quality of being searchable: yes, no or primary.
Nested Class Summary | |
---|---|
static class |
Searchability.NameUnrecognisedException
Thrown when an invalid Searchability level is specified,
by a typing mistake in the DSD for example. |
Field Summary | |
---|---|
Integer |
index
The Id of the Searchability. |
static Searchability |
no
The column is not searchable so the user will not be given the opportunity to enter search criteria for it. |
static Searchability |
primary
The column is the only one in the table for which a special widget is provided to enter a search value. |
static Searchability |
yes
The column is searchable so that the user is able to enter search criteria for it included along with others when searching for rows. |
Method Summary | |
---|---|
static int |
count()
|
static Searchability |
forIndex(int index)
|
Integer |
getIndex()
|
String |
getName()
|
static Searchability |
named(String name)
Throws NameUnrecognisedException if not found. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final Integer index
public static final Searchability primary
There is at most one such column per table. The user is able to select matching rows without popping up a search criteria dialogue window.
public static final Searchability yes
Currently the search criteria for a column consist of at most one non-null value.
public static final Searchability no
Method Detail |
---|
public static Searchability forIndex(int index)
index
- key
public static int count()
public static Searchability named(String name)
name
- String name of Searchability
public String toString()
toString
in class Object
Object.toString()
public Integer getIndex()
public String getName()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |