|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IdMethod
Represents an 'identification method', eg. a way to find an item among the items that already exists in the database. This can, for example, be done by checking the name or the internal id of the item.
Method Summary | ||
---|---|---|
|
find(DbControl dc,
ItemQuery<I> query,
String identifier)
Try to find items with this query method. |
|
String |
getColumnMappingParameterName()
|
|
String |
getMethod()
The name of this method, which should be unique among the methods that can be used at a given time. |
|
String |
getTitle()
The display title of the method. |
|
boolean |
isTrulyUnique()
If the identification method is truly unique or not. |
|
|
prepareQuery(DbControl dc,
ItemQuery<I> query)
Initialise a query to be used by this identification method. |
Method Detail |
---|
String getMethod()
String getTitle()
boolean isTrulyUnique()
find(DbControl, ItemQuery, String)
method will
never ever return a list with more than one item.
String getColumnMappingParameterName()
<I extends BasicItem> ItemQuery<I> prepareQuery(DbControl dc, ItemQuery<I> query)
query
- The query to prepare
<I extends BasicItem> List<I> find(DbControl dc, ItemQuery<I> query, String identifier)
query
- The query to use, which should have been prepared
using prepareQuery(DbControl, ItemQuery)
identifier
- The identifier of the item
isTrulyUnique()
return true
the list is guaranteed to have at most one item
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |