@Deprecated
public class CacheLoader<T>
extends java.lang.Object
| Constructor and Description |
|---|
CacheLoader(ScrapingSession session,
DataManagerDataSource dataSource,
java.lang.String mainTable,
java.lang.String mainTablePrimaryKeyColumn,
java.lang.String cacheTable,
java.lang.String additionalWhereClause,
java.lang.String quoteString,
boolean hasURL)
Deprecated.
Creates the cache loader
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
|
boolean |
equals(java.lang.Object o)
Deprecated.
|
int |
hashCode()
Deprecated.
|
boolean |
hasNext()
Deprecated.
Checks to see if there is something more to fix in the database
|
DataBundle<T> |
loadPrimaryKey(T primaryKey)
Deprecated.
Loads the data for the given primary key
|
DataBundle<T> |
next()
Deprecated.
Returns the next bundle of data that needs to be fixed
|
public CacheLoader(@Nullable ScrapingSession session, @NotNull DataManagerDataSource dataSource, java.lang.String mainTable, java.lang.String mainTablePrimaryKeyColumn, java.lang.String cacheTable, @Nullable java.lang.String additionalWhereClause, @NotNull java.lang.String quoteString, boolean hasURL)
session - The scraping sessiondataSource - The data sourcemainTable - The root tablemainTablePrimaryKeyColumn - The root table's primary key field namecacheTable - The cached values tableadditionalWhereClause - Any additional where clause statement for lookupquoteString - The quote string to use for this databasehasURL - Whether or not the cache table has the optional url fieldpublic void close()
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean hasNext()
@Nullable public DataBundle<T> next()
@NotNull public DataBundle<T> loadPrimaryKey(@NotNull T primaryKey)
primaryKey - The primary key of the main tablepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object