public abstract class AbstractDataSource extends Object implements DataSource
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
AbstractDataSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(LenskitConfiguration config)
Configure LensKit to use this data set.
|
ItemDAO |
getItemDAO()
Default item DAO implementation.
|
ItemEventDAO |
getItemEventDAO()
Default item-event DAO implementation.
|
ItemNameDAO |
getItemNameDAO()
Get the item name DAO.
|
UserDAO |
getUserDAO()
Default user DAO implementation.
|
UserEventDAO |
getUserEventDAO()
Default user-event DAO implementation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEventDAO, getName, getPreferenceDomain, lastModifiedpublic UserEventDAO getUserEventDAO()
UserEventDAO, it is returned directly; otherwise, a new PrefetchingUserEventDAO
is created.getUserEventDAO in interface DataSourcepublic ItemEventDAO getItemEventDAO()
ItemEventDAO, it is returned directly; otherwise, a new PrefetchingItemEventDAO
is created.getItemEventDAO in interface DataSourcepublic ItemDAO getItemDAO()
ItemDAO, it is returned directly; otherwise, a new PrefetchingItemDAO
is created.getItemDAO in interface DataSourcepublic UserDAO getUserDAO()
UserDAO, it is returned directly; otherwise, a new PrefetchingUserDAO
is created.getUserDAO in interface DataSourcepublic ItemNameDAO getItemNameDAO()
getItemNameDAO in interface DataSourcenull if none is defined.public void configure(LenskitConfiguration config)
DataSourceconfigure in interface DataSourceconfig - A LensKit configuration. Bindings for this data source's data will be added
to this configuration.