public abstract class DataSource
extends gr.uoa.di.madgik.rr.element.RRElement
| Modifier and Type | Class and Description |
|---|---|
static class |
DataSource.Type |
| Modifier and Type | Field and Description |
|---|---|
protected List<DataSourceService> |
boundDataSourceServices |
protected gr.uoa.di.madgik.rr.RRContext |
context |
protected Set<FieldIndexContainer> |
fieldInfo |
protected DataSourceDao |
item |
| Modifier | Constructor and Description |
|---|---|
protected |
DataSource(Class<? extends DataSourceDao> type,
Class<? extends DataSourceService> serviceType) |
| Modifier and Type | Method and Description |
|---|---|
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) |
protected DataSourceDao item
protected Set<FieldIndexContainer> fieldInfo
protected List<DataSourceService> boundDataSourceServices
protected gr.uoa.di.madgik.rr.RRContext context
protected DataSource(Class<? extends DataSourceDao> type, Class<? extends DataSourceService> serviceType) throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic static void clearSubTypes()
public static void addSubType(DataSource.Type type, Class<? extends DataSource> ds, Class<? extends DataSourceDao> dsDao)
public static void addServiceType(Class<? extends DataSource> ds, Class<? extends DataSourceService> service)
public static Set<Class<? extends DataSource>> subTypes()
public static Set<Class<? extends DataSourceDao>> subTypeItems()
public gr.uoa.di.madgik.rr.RRContext getISContext()
public String getID()
public void setID(String id)
public DataSource.Type getType()
protected void setType(DataSource.Type type)
public String getFunctionality()
public void setFunctionality(String functionality)
public Set<FieldIndexContainer> getFieldInfo()
public abstract List<DataSourceService> getDataSourceServices() throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic DataSourceDao getItem()
public void setDirty()
public boolean load(boolean loadDetails,
gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic boolean load(boolean loadDetails,
gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType,
boolean overridePrefetched)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic void delete(boolean deleteDetails,
gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic void store(boolean storeDetails,
gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic boolean isEqual(gr.uoa.di.madgik.rr.element.IRRElement target,
boolean includeDetails)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic FieldIndexContainer getFieldInfo(String id)
public String deepToString()
public Set<String> getLanguagesForCollectionAndSearchableField(String collection, String field)
public Set<String> getCollectionsForLanguageAndSearchableField(String language, String field)
protected boolean exists(Class<? extends DataSourceDao> type, gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType) throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic boolean exists(gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionprotected 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
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic static List<DataSource> getAll(boolean loadDetails, gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType) throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic static List<DataSource> getAll(boolean loadDetails) throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic static boolean exists(String id, gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType) throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic static Set<String> getAllIds(gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType) throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic static Set<String> getAllIds() throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic static boolean exists(String id) throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic static DataSource getById(boolean loadDetails, gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType, String id) throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic static DataSource getById(boolean loadDetails, String id) throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic static List<DataSource> queryByFieldIDAndTypeAndCollection(boolean loadDetails, String fieldID, String collection, FieldIndexContainer.FieldType type) throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic static List<DataSource> queryByFieldIDAndTypeAndCollectionAndScope(boolean loadDetails, String fieldID, String collection, FieldIndexContainer.FieldType type, String scope) throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic static List<DataSource> queryByFieldIDAndTypeAndLanguage(boolean loadDetails, String fieldID, String language, FieldIndexContainer.FieldType type) throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic boolean containsField(String id)
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
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic 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
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic 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
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic static List<DataSource> queryByFieldIDAndTypeAndCollectionAndLanguage(boolean loadDetails, String fieldID, String collection, String language, FieldIndexContainer.FieldType type) throws gr.uoa.di.madgik.rr.ResourceRegistryException
gr.uoa.di.madgik.rr.ResourceRegistryExceptionpublic 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
gr.uoa.di.madgik.rr.ResourceRegistryExceptionCopyright © 2013. All Rights Reserved.