|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Id
Interface for Ids of SMILA records. A record Id must contain:
| Method Summary | |
|---|---|
Id |
createCompoundId()
create a new Id for the containing compund of this Id. |
Id |
createElementId(Key elementKey)
create a new Id from this Id by adding a container element key. |
Id |
createElementId(java.lang.String elementName)
create a new Id from this Id by adding a simple unnamed container element key. |
Id |
createFragmentId(java.lang.String framentName)
create a new Id from this Id by adding a fragment name. |
java.util.List<? extends Key> |
getElementKeys()
get the list of container element keys. |
java.util.List<java.lang.String> |
getFragmentNames()
get the list of fragment names. |
java.lang.String |
getIdHash()
Create a hash string for this Id that can be used by databases as simple primary key. |
Key |
getKey()
key of the source object with respect to the data source configuration. |
java.lang.String |
getSource()
name of the data source containing the object. |
boolean |
hasElementKeys()
check if this Id contains element keys. |
boolean |
hasFragmentNames()
check if this Id contains fragment names. |
| Method Detail |
|---|
java.lang.String getSource()
Key getKey()
boolean hasElementKeys()
java.util.List<? extends Key> getElementKeys()
boolean hasFragmentNames()
java.util.List<java.lang.String> getFragmentNames()
Id createElementId(Key elementKey)
throws IdHandlingException
elementKey - the container element key
IdHandlingException - if this cannot be extended with element keys, because it contains fragment names already.
Id createElementId(java.lang.String elementName)
throws IdHandlingException
elementName - the key value of the container element
IdHandlingException - if this cannot be extended with element keys, because it contains fragment names already.Id createFragmentId(java.lang.String framentName)
framentName - name of the fragment
Id createCompoundId()
throws IdHandlingException
IdHandlingException - if this is not a compund part Id.java.lang.String getIdHash()
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||