|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Key
Interface of ID Keys. Keys can be simple and consist just of a single key value with an optional name (e.g. a file path or an URL), or they can be composite keys containing a mapping of names to key values (e.g. database primary keys consisting of multiple columns). Keys must be immutable objects to make them usable as hash keys. This means that the must also define sensible equals() and hashCode() methods.
| Method Summary | |
|---|---|
java.lang.String |
getKey()
Get the value of a simple key. |
java.lang.String |
getKey(java.lang.String name)
Get the key for the given name. |
java.lang.String |
getKeyName()
Get the name of a simple key. |
java.util.Iterator<java.lang.String> |
getKeyNames()
Get the names of this key. |
java.util.Map<java.lang.String,java.lang.String> |
getKeyValues()
create a map representation of this key. |
boolean |
isCompositeKey()
Checks if this is a simple or composite key. |
| Method Detail |
|---|
boolean isCompositeKey()
java.lang.String getKey()
java.lang.String getKeyName()
java.util.Iterator<java.lang.String> getKeyNames()
java.lang.String getKey(java.lang.String name)
name - a key name
java.util.Map<java.lang.String,java.lang.String> getKeyValues()
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||