gr.uoa.di.madgik.rr.element.search.index
Class DataSource
java.lang.Object
gr.uoa.di.madgik.rr.element.RRElement
gr.uoa.di.madgik.rr.element.search.index.DataSource
- All Implemented Interfaces:
- gr.uoa.di.madgik.rr.element.IRRElement
- Direct Known Subclasses:
- FTIndex, FWIndex, GeoIndex, OpenSearchDataSource
public abstract class DataSource
- extends gr.uoa.di.madgik.rr.element.RRElement
|
Method Summary |
static void |
addServiceType(Class<? extends DataSource> ds,
Class<? extends DataSourceService> service)
|
static void |
addSubType(DataSource.Type type,
Class<? extends DataSource> ds,
Class<? extends DataSourceDao> dsDao)
|
static void |
clearSubTypes()
|
boolean |
containsField(String id)
|
String |
deepToString()
|
void |
delete(boolean deleteDetails,
gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
|
protected boolean |
exists(Class<? extends DataSourceDao> type,
gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
|
boolean |
exists(gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
|
static boolean |
exists(String id)
|
static boolean |
exists(String id,
gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
|
static List<DataSource> |
getAll(boolean loadDetails)
|
static List<DataSource> |
getAll(boolean loadDetails,
gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
|
protected static List<DataSource> |
getAll(Class<? extends DataSourceDao> type,
gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType,
boolean loadDetails)
|
static Set<String> |
getAllIds()
|
static Set<String> |
getAllIds(gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
|
static DataSource |
getById(boolean loadDetails,
gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType,
String id)
|
static DataSource |
getById(boolean loadDetails,
String id)
|
Set<String> |
getCapabilities()
|
Set<String> |
getCollectionsForLanguageAndSearchableField(String language,
String field)
|
abstract List<DataSourceService> |
getDataSourceServices()
|
Set<FieldIndexContainer> |
getFieldInfo()
|
FieldIndexContainer |
getFieldInfo(String id)
|
String |
getFunctionality()
|
String |
getID()
|
gr.uoa.di.madgik.rr.RRContext |
getISContext()
|
DataSourceDao |
getItem()
|
Set<String> |
getLanguagesForCollectionAndSearchableField(String collection,
String field)
|
Set<String> |
getScopes()
|
DataSource.Type |
getType()
|
boolean |
isEqual(gr.uoa.di.madgik.rr.element.IRRElement target,
boolean includeDetails)
|
boolean |
load(boolean loadDetails,
gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
|
boolean |
load(boolean loadDetails,
gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType,
boolean overridePrefetched)
|
static List<DataSource> |
queryByFieldIDAndTypeAndCollection(boolean loadDetails,
String fieldID,
String collection,
FieldIndexContainer.FieldType type)
|
static List<DataSource> |
queryByFieldIDAndTypeAndCollection(gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType,
boolean loadDetails,
String fieldID,
String collection,
String type)
|
static List<DataSource> |
queryByFieldIDAndTypeAndCollectionAndLanguage(boolean loadDetails,
String fieldID,
String collection,
String language,
FieldIndexContainer.FieldType type)
|
static List<DataSource> |
queryByFieldIDAndTypeAndCollectionAndLanguage(gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType,
boolean loadDetails,
String fieldID,
String collection,
String language,
String type)
|
static List<DataSource> |
queryByFieldIDAndTypeAndCollectionAndScope(boolean loadDetails,
String fieldID,
String collection,
FieldIndexContainer.FieldType type,
String scope)
|
static List<DataSource> |
queryByFieldIDAndTypeAndCollectionAndScope(gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType,
boolean loadDetails,
String fieldID,
String collection,
String type,
String scope)
|
static List<DataSource> |
queryByFieldIDAndTypeAndLanguage(boolean loadDetails,
String fieldID,
String language,
FieldIndexContainer.FieldType type)
|
static List<DataSource> |
queryByFieldIDAndTypeAndLanguage(gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType,
boolean loadDetails,
String fieldID,
String language,
String type)
|
void |
setDirty()
|
void |
setFunctionality(String functionality)
|
void |
setID(String id)
|
protected void |
setType(DataSource.Type type)
|
void |
store(boolean storeDetails,
gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
|
static Set<Class<? extends DataSourceDao>> |
subTypeItems()
|
static Set<Class<? extends DataSource>> |
subTypes()
|
boolean |
supportsCapabilities(List<String> capabilities,
boolean all)
|
| Methods inherited from class gr.uoa.di.madgik.rr.element.RRElement |
delete, delete, exists, exists, load, load, store, store |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
item
protected DataSourceDao item
fieldInfo
protected Set<FieldIndexContainer> fieldInfo
boundDataSourceServices
protected List<DataSourceService> boundDataSourceServices
context
protected gr.uoa.di.madgik.rr.RRContext context
DataSource
protected DataSource(Class<? extends DataSourceDao> type,
Class<? extends DataSourceService> serviceType)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
clearSubTypes
public static void clearSubTypes()
addSubType
public static void addSubType(DataSource.Type type,
Class<? extends DataSource> ds,
Class<? extends DataSourceDao> dsDao)
addServiceType
public static void addServiceType(Class<? extends DataSource> ds,
Class<? extends DataSourceService> service)
subTypes
public static Set<Class<? extends DataSource>> subTypes()
subTypeItems
public static Set<Class<? extends DataSourceDao>> subTypeItems()
getISContext
public gr.uoa.di.madgik.rr.RRContext getISContext()
getID
public String getID()
setID
public void setID(String id)
getType
public DataSource.Type getType()
setType
protected void setType(DataSource.Type type)
getScopes
public Set<String> getScopes()
getFunctionality
public String getFunctionality()
setFunctionality
public void setFunctionality(String functionality)
getCapabilities
public Set<String> getCapabilities()
getFieldInfo
public Set<FieldIndexContainer> getFieldInfo()
getDataSourceServices
public abstract List<DataSourceService> getDataSourceServices()
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
getItem
public DataSourceDao getItem()
setDirty
public void setDirty()
load
public boolean load(boolean loadDetails,
gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
load
public boolean load(boolean loadDetails,
gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType,
boolean overridePrefetched)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
delete
public void delete(boolean deleteDetails,
gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
store
public void store(boolean storeDetails,
gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
isEqual
public boolean isEqual(gr.uoa.di.madgik.rr.element.IRRElement target,
boolean includeDetails)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
getFieldInfo
public FieldIndexContainer getFieldInfo(String id)
deepToString
public String deepToString()
supportsCapabilities
public boolean supportsCapabilities(List<String> capabilities,
boolean all)
getLanguagesForCollectionAndSearchableField
public Set<String> getLanguagesForCollectionAndSearchableField(String collection,
String field)
getCollectionsForLanguageAndSearchableField
public Set<String> getCollectionsForLanguageAndSearchableField(String language,
String field)
exists
protected boolean exists(Class<? extends DataSourceDao> type,
gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
exists
public boolean exists(gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
getAll
protected static List<DataSource> getAll(Class<? extends DataSourceDao> type,
gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType,
boolean loadDetails)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
getAll
public static List<DataSource> getAll(boolean loadDetails,
gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
getAll
public static List<DataSource> getAll(boolean loadDetails)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
exists
public static boolean exists(String id,
gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
getAllIds
public static Set<String> getAllIds(gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
getAllIds
public static Set<String> getAllIds()
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
exists
public static boolean exists(String id)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
getById
public static DataSource getById(boolean loadDetails,
gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType,
String id)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
getById
public static DataSource getById(boolean loadDetails,
String id)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
queryByFieldIDAndTypeAndCollection
public static List<DataSource> queryByFieldIDAndTypeAndCollection(boolean loadDetails,
String fieldID,
String collection,
FieldIndexContainer.FieldType type)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
queryByFieldIDAndTypeAndCollectionAndScope
public static List<DataSource> queryByFieldIDAndTypeAndCollectionAndScope(boolean loadDetails,
String fieldID,
String collection,
FieldIndexContainer.FieldType type,
String scope)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
queryByFieldIDAndTypeAndLanguage
public static List<DataSource> queryByFieldIDAndTypeAndLanguage(boolean loadDetails,
String fieldID,
String language,
FieldIndexContainer.FieldType type)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
containsField
public boolean containsField(String id)
queryByFieldIDAndTypeAndCollection
public static List<DataSource> queryByFieldIDAndTypeAndCollection(gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType,
boolean loadDetails,
String fieldID,
String collection,
String type)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
queryByFieldIDAndTypeAndCollectionAndScope
public static List<DataSource> queryByFieldIDAndTypeAndCollectionAndScope(gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType,
boolean loadDetails,
String fieldID,
String collection,
String type,
String scope)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
queryByFieldIDAndTypeAndLanguage
public static List<DataSource> queryByFieldIDAndTypeAndLanguage(gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType,
boolean loadDetails,
String fieldID,
String language,
String type)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
queryByFieldIDAndTypeAndCollectionAndLanguage
public static List<DataSource> queryByFieldIDAndTypeAndCollectionAndLanguage(boolean loadDetails,
String fieldID,
String collection,
String language,
FieldIndexContainer.FieldType type)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
queryByFieldIDAndTypeAndCollectionAndLanguage
public static List<DataSource> queryByFieldIDAndTypeAndCollectionAndLanguage(gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType,
boolean loadDetails,
String fieldID,
String collection,
String language,
String type)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
- Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
Copyright © 2012. All Rights Reserved.