|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MCRLinkTableInterface
This interface is designed to choose the persistence for the link tables.
| Method Summary | |
|---|---|
int |
countTo(String fromtype,
String to,
String type,
String restriction)
The method count the number of references with '%from%' and 'to' and optional 'type' and optional 'restriction%' values of the table. |
void |
create(String from,
String to,
String type,
String attr)
The method create a new item in the datastore. |
void |
delete(String from,
String to,
String type)
The method remove a item for the from ID from the datastore. |
Map<String,Number> |
getCountedMapOfMCRTO(String mcrtoPrefix)
The method returns a Map of all counted distinct references |
Collection<String> |
getDestinationsOf(String from,
String type)
Returns a List of all link destination of from and a
special type |
Collection<String> |
getSourcesOf(String to,
String type)
Returns a List of all link sources of to and a special
type |
| Method Detail |
|---|
void create(String from,
String to,
String type,
String attr)
from - a string with the link ID MCRFROMto - a string with the link ID MCRTOtype - a string with the link ID MCRTYPEattr - a string with the link ID MCRATTR
void delete(String from,
String to,
String type)
from - a string with the link ID MCRFROMto - an array of strings with the link ID MCRTOtype - an array of strings with the link ID MCRTYPE
int countTo(String fromtype,
String to,
String type,
String restriction)
fromtype - a substing in the from ID as String, it can be nullto - the object ID as String, which is referencedtype - the refernce type, it can be nullrestriction - a first part of the to ID as String, it can be null
Map<String,Number> getCountedMapOfMCRTO(String mcrtoPrefix)
mcrtoPrefix -
Collection<String> getSourcesOf(String to,
String type)
to and a special
type
to - Destination-IDtype - Link reference type, this can be null. Current types are
classid, child, parent, reference and derivate.
Collection<String> getDestinationsOf(String from,
String type)
from and a
special type
from - Source-IDtype - Link reference type, this can be null. Current types are
classid, child, parent, reference and derivate.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||