public interface IJDBCSerializer
Modifier and Type | Method and Description |
---|---|
String |
getCachedCrawlDataSQL()
Gets the SQL to obtain all
ICrawlData from the cache table. |
Object[] |
getCachedCrawlDataValues(String reference)
Gets the
PreparedStatement values (if any) necessary to
execute the SQL obtained with getCachedCrawlDataSQL() . |
String[] |
getCreateTableSQLs(String table)
Gets the SQLs used to create a data store table.
|
String |
getDeleteCrawlDataSQL(String table)
Gets the SQL to delete a
ICrawlData from the given table. |
Object[] |
getDeleteCrawlDataValues(String table,
ICrawlData crawlData)
Gets the
PreparedStatement values (if any) necessary to
execute the SQL obtained with getDeleteCrawlDataSQL(String) . |
String |
getInsertCrawlDataSQL(String table)
Gets the SQL to insert a new
ICrawlData in the given table. |
Object[] |
getInsertCrawlDataValues(String table,
ICrawlData crawlData)
Gets the
PreparedStatement values (if any) necessary to
execute the SQL obtained with getInsertCrawlDataSQL(String) . |
String |
getNextQueuedCrawlDataSQL()
Gets the SQL to obtain the next
ICrawlData from the queue table. |
Object[] |
getNextQueuedCrawlDataValues()
Gets the
PreparedStatement values (if any) necessary to
execute the SQL obtained with getNextQueuedCrawlDataSQL() . |
String |
getReferenceExistsSQL(String table)
Gets the SQL to find if a
ICrawlData exists in the given table. |
Object[] |
getReferenceExistsValues(String table,
String reference)
Gets the
PreparedStatement values (if any) necessary to
execute the SQL obtained with getReferenceExistsSQL(String) . |
String |
getSelectCrawlDataSQL(String table)
Gets the SQL to obtain all
ICrawlData entries in the given
table. |
ICrawlData |
toCrawlData(String table,
ResultSet rs)
Convert a database entry to a
ICrawlData instance. |
String[] getCreateTableSQLs(String table)
table
- the table to create an SQL forString getSelectCrawlDataSQL(String table)
ICrawlData
entries in the given
table.table
- table nameString getDeleteCrawlDataSQL(String table)
ICrawlData
from the given table.table
- table nameObject[] getDeleteCrawlDataValues(String table, ICrawlData crawlData)
PreparedStatement
values (if any) necessary to
execute the SQL obtained with getDeleteCrawlDataSQL(String)
.
The values must be returned in the expected order.table
- table namecrawlData
- the crawl data to deleteString getInsertCrawlDataSQL(String table)
ICrawlData
in the given table.table
- table nameObject[] getInsertCrawlDataValues(String table, ICrawlData crawlData)
PreparedStatement
values (if any) necessary to
execute the SQL obtained with getInsertCrawlDataSQL(String)
.
The values must be returned in the expected order.table
- table namecrawlData
- the crawl data to insertString getNextQueuedCrawlDataSQL()
ICrawlData
from the queue table.Object[] getNextQueuedCrawlDataValues()
PreparedStatement
values (if any) necessary to
execute the SQL obtained with getNextQueuedCrawlDataSQL()
.
The values must be returned in the expected order.String getCachedCrawlDataSQL()
ICrawlData
from the cache table.Object[] getCachedCrawlDataValues(String reference)
PreparedStatement
values (if any) necessary to
execute the SQL obtained with getCachedCrawlDataSQL()
.
The values must be returned in the expected order.reference
- the referenceString getReferenceExistsSQL(String table)
ICrawlData
exists in the given table.table
- table nameObject[] getReferenceExistsValues(String table, String reference)
PreparedStatement
values (if any) necessary to
execute the SQL obtained with getReferenceExistsSQL(String)
.
The values must be returned in the expected order.table
- table namereference
- the referenceICrawlData toCrawlData(String table, ResultSet rs) throws SQLException
ICrawlData
instance.table
- table namers
- SQL result setSQLException
- SQL errorCopyright © 2014–2021 Norconex Inc.. All rights reserved.