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, wait
getEventDAO, getName, getPreferenceDomain, lastModified
public UserEventDAO getUserEventDAO()
UserEventDAO
, it is returned directly; otherwise, a new PrefetchingUserEventDAO
is created.getUserEventDAO
in interface DataSource
public ItemEventDAO getItemEventDAO()
ItemEventDAO
, it is returned directly; otherwise, a new PrefetchingItemEventDAO
is created.getItemEventDAO
in interface DataSource
public ItemDAO getItemDAO()
ItemDAO
, it is returned directly; otherwise, a new PrefetchingItemDAO
is created.getItemDAO
in interface DataSource
public UserDAO getUserDAO()
UserDAO
, it is returned directly; otherwise, a new PrefetchingUserDAO
is created.getUserDAO
in interface DataSource
public ItemNameDAO getItemNameDAO()
getItemNameDAO
in interface DataSource
null
if none is defined.public void configure(LenskitConfiguration config)
DataSource
configure
in interface DataSource
config
- A LensKit configuration. Bindings for this data source's data will be added
to this configuration.