public abstract class DBSearchContext extends SearchContext
Modifier and Type | Field and Description |
---|---|
protected WildCard |
m_filter |
protected boolean |
m_offlineFiles |
protected long |
m_offlineFileSize |
protected java.sql.ResultSet |
m_rs |
protected java.sql.Statement |
m_stmt |
Constructor and Description |
---|
DBSearchContext(java.sql.ResultSet rs)
Class constructor
|
DBSearchContext(java.sql.ResultSet rs,
java.sql.Statement stmt,
WildCard filter)
Class constructor
|
DBSearchContext(java.sql.ResultSet rs,
WildCard filter)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
closeSearch()
Close the search
|
long |
getOfflineFileSize()
Return the offline file size limit
|
int |
getResumeId()
Return the resume id for the current file/directory in the search.
|
boolean |
hasMarkAsOffline()
Determine if files should be marked as offline
|
boolean |
hasMoreFiles()
Determine if there are more files for the active search.
|
abstract boolean |
nextFileInfo(FileInfo info)
Return the next file from the search, or return false if there are no more files
|
abstract java.lang.String |
nextFileName()
Return the file name of the next file in the active search.
|
int |
numberOfEntries()
Return the total number of file entries for this search if known, else return -1
|
boolean |
restartAt(FileInfo info)
Restart the current search at the specified file.
|
boolean |
restartAt(int resumeId)
Restart a search at the specified resume point.
|
void |
setMarkAsOffline(boolean offline)
Set/clear the mark files as offline setting
|
void |
setOfflineFileSize(long fsize)
Set the file size for offline files
|
getDotDotInfo, getDotInfo, getFlags, getMaximumFiles, getSearchString, getTreeId, hasDotFiles, setFlags, setMaximumFiles, setSearchString, setTreeId, toString
protected java.sql.ResultSet m_rs
protected java.sql.Statement m_stmt
protected WildCard m_filter
protected boolean m_offlineFiles
protected long m_offlineFileSize
public DBSearchContext(java.sql.ResultSet rs)
rs
- ResultSetpublic DBSearchContext(java.sql.ResultSet rs, WildCard filter)
rs
- ResultSetfilter
- WildCardpublic DBSearchContext(java.sql.ResultSet rs, java.sql.Statement stmt, WildCard filter)
rs
- ResultSetstmt
- Statementfilter
- WildCardpublic int getResumeId()
getResumeId
in class SearchContext
public boolean hasMoreFiles()
hasMoreFiles
in class SearchContext
public abstract boolean nextFileInfo(FileInfo info)
nextFileInfo
in class SearchContext
info
- FileInfopublic abstract java.lang.String nextFileName()
nextFileName
in class SearchContext
public boolean restartAt(int resumeId)
restartAt
in class SearchContext
resumeId
- Resume point id.public boolean restartAt(FileInfo info)
restartAt
in class SearchContext
info
- File to restart the search at.public int numberOfEntries()
numberOfEntries
in class SearchContext
public void closeSearch()
closeSearch
in class SearchContext
public final boolean hasMarkAsOffline()
public final long getOfflineFileSize()
public final void setMarkAsOffline(boolean offline)
offline
- booleanpublic final void setOfflineFileSize(long fsize)
fsize
- longCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.