|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.alltimeflashdreamer.filelister.SQLQueryBuilder org.alltimeflashdreamer.filelister.MySQLQueryBuilder
Title: MySQLQueryBuilder
Description: Implementation of the SQLQueryBuilder class, using proprietary SQL of the MySQL 3.23 series. For later version, nothing should change, but there's no guarantee at all...
Organization: All Time Flash Dreamer
Constructor Summary | |
MySQLQueryBuilder()
Empty constructor, as demanded by the superclass specification. |
Method Summary | |
String |
getChildCountString(String sNodeID)
Builds and returns the SQL string which is needed to get the count of the child files (no directories!) |
String |
getCreateTableString(String sTableName)
Builds and returns the MySQL query string used to build an indexing table within the database where the index tables are stored. |
String |
getDropTableString(String sTableName)
Builds and returns the SQL query string used to drop the given table. |
String |
getLimitationString()
Builds and returns the (sub)string of the final SQL string that is responsible for result limitation on the database query's amount of results. |
String |
getListAllTablesString(String sTableName)
Builds and returns the SQL query string used to list all the tables that are somehow like (or match) the given one in the current database. |
String |
getRenameTableString(String sOldTableName,
String sNewTableName)
Builds and returns the SQL query string used to rename the given table. |
String |
getUpdateNodeIDString(String sTableName,
String sNodeID,
long lUpdateTime)
Builds and returns the SQL update string which updates the (unique) node with the given id with the given update/reindexing time. |
String |
getUserSearchString(String sNodeID,
boolean bForResultCount)
Queries the FileListerConfig for the information needed to build a very specific (and therefore Java-unburdening) SQL string. |
Methods inherited from class org.alltimeflashdreamer.filelister.SQLQueryBuilder |
getFileListerConfig, getInsertString, getLowerLimit, getSearchParameters, getUpperLimit, hasFileListerConfig, setFileListerConfig, setLowerLimit, setUpperLimit |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MySQLQueryBuilder()
SQLQueryBuilder
Method Detail |
public String getUserSearchString(String sNodeID, boolean bForResultCount)
select * from content
where node_id like binary '0011%' and name like '%.html'
order by name asc limit 0, 500
getUserSearchString
in class SQLQueryBuilder
sNodeID
- the id of the directory to be searchedbForResultCount
- whether the SQL string leads to the returning of the
result count only or to the returning of the full table data
SQLQueryBuilder.getUserSearchString(java.lang.String, boolean)
public String getCreateTableString(String sTableName)
getCreateTableString
in class SQLQueryBuilder
sTableName
- the name of the index table to be created
SQLQueryBuilder.getCreateTableString(java.lang.String)
public String getListAllTablesString(String sTableName)
getListAllTablesString
in class SQLQueryBuilder
sTableName
- the name of the table to find the similar/equal ones
public String getDropTableString(String sTableName)
getDropTableString
in class SQLQueryBuilder
sTableName
- the name of the table to be dropped
public String getRenameTableString(String sOldTableName, String sNewTableName)
getRenameTableString
in class SQLQueryBuilder
sOldTableName
- the name of the table to be renamedsNewTableName
- the name of the table after the renaming
public String getUpdateNodeIDString(String sTableName, String sNodeID, long lUpdateTime)
getUpdateNodeIDString
in class SQLQueryBuilder
sTableName
- the name of the table to be droppedsNodeID
- the id of the (unique) node to be updated with the given
timelUpdateTime
- the time to set to the "lastindexed" field
public String getLimitationString()
getLimitationString
in class SQLQueryBuilder
public String getChildCountString(String sNodeID)
getChildCountString
in class SQLQueryBuilder
sNodeID
- the id of the (unique) node to get the children of
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |