|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.backend.hibernate.MCRHIBLinkTableStore
public class MCRHIBLinkTableStore
This class implements the MCRLinkTableInterface.
| Field Summary | |
|---|---|
(package private) static Logger |
LOGGER
|
| Constructor Summary | |
|---|---|
MCRHIBLinkTableStore()
The constructor for the class MCRHIBLinkTableStore. |
|
| 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 removes 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 source,
String type)
Returns a List of all link destinations of destination |
Collection<String> |
getSourcesOf(String to,
String type)
Returns a List of all link sources of to and a special
type |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static Logger LOGGER
| Constructor Detail |
|---|
public MCRHIBLinkTableStore()
| Method Detail |
|---|
public final void create(String from,
String to,
String type,
String attr)
create in interface MCRLinkTableInterfacefrom - 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
public final void delete(String from,
String to,
String type)
delete in interface MCRLinkTableInterfacefrom - a string with the link ID MCRFROMto - a string with the link ID MCRTOtype - a string with the link ID MCRTYPE
public final int countTo(String fromtype,
String to,
String type,
String restriction)
countTo in interface MCRLinkTableInterfacefromtype - 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
public Map<String,Number> getCountedMapOfMCRTO(String mcrtoPrefix)
getCountedMapOfMCRTO in interface MCRLinkTableInterfacemcrtoPrefix -
public Collection<String> getSourcesOf(String to,
String type)
to and a special
type
getSourcesOf in interface MCRLinkTableInterfaceto - Destination-IDtype - Link reference type, this can be null. Current types are
child, classid, parent, reference and derivate.
public Collection<String> getDestinationsOf(String source,
String type)
destination
getDestinationsOf in interface MCRLinkTableInterfacesource - source-IDtype - Link reference type, this can be null. Current types are
child, classid, parent, reference and derivate.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||