edu.indiana.iucbrf.casebase
Interface KeyableCaseBase

All Superinterfaces:
CaseBase, SwingRepresentable, SwingRepresentableWithDomain
All Known Implementing Classes:
AbstractKeyableCaseBase, CachedRDBCaseBase, FileCaseBase, FlatCaseBase, RDBCaseBase

public interface KeyableCaseBase
extends CaseBase

A keyable case base is a case base that has associates a key with each case. The key is of type long.


Field Summary
 
Fields inherited from interface edu.indiana.util.swing.SwingRepresentable
TITLE_FONT
 
Method Summary
 void addCaseWithKey(Case acase)
          Add a case with the key already in acase.getCaseKey().
 Case getCase(long key)
          Get the case with the given key.
 java.util.ArrayList getMarkerKeys()
          Returns an array list of Long objects, containing the keys of any Markers that have been added to this case base.
 boolean removeCase(long key)
          Remove the case with the given key.
 
Methods inherited from interface edu.indiana.iucbrf.casebase.CaseBase
addCase, addCaseBaseListener, addCases, addCases, addCases, clearAllEstimates, close, ensureCapacity, getCaseClass, getCaseCount, getCasesMatching, getDomain, isEmpty, iterator, removeCase, removeCaseBaseListener, setBaseFileName, setCaseClass, setDomain, toString, toVerboseString
 
Methods inherited from interface edu.indiana.iucbrf.util.SwingRepresentableWithDomain
toSwing
 
Methods inherited from interface edu.indiana.util.swing.SwingRepresentable
toSwing
 

Method Detail

getCase

Case getCase(long key)
Get the case with the given key.

Parameters:
key - The key of the case to be retrieved.
Returns:
The retrieved case, or null if none with that key was found.

removeCase

boolean removeCase(long key)
Remove the case with the given key.

Parameters:
key - The key of the case to be removed.
Returns:
true if case was found and removed, false otherwise.

addCaseWithKey

void addCaseWithKey(Case acase)
Add a case with the key already in acase.getCaseKey(). If this method is used, then it is the programmer's responsibility to make sure that the provided keys are unique


getMarkerKeys

java.util.ArrayList getMarkerKeys()
Returns an array list of Long objects, containing the keys of any Markers that have been added to this case base.