|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.webactiv.beans.admin.SQLRequest
public class SQLRequest
The SQLRequest
class allows a component to get a SQL request in order by the
server type (SQLServer, Oracle, PostgreSQL,...). The role of this class is to read a specific
property file (create, delete, update, insert), to extract the specific SQL code with specific
tag. And to return the complet rigth SQL code.
Constructor Summary | |
---|---|
SQLRequest()
|
|
SQLRequest(String fullPathName)
|
|
SQLRequest(String fullPathName,
String dbServerName)
|
Method Summary | |
---|---|
protected String |
getCreateQuery(String tableName,
String tableType)
Returns the complete SQL query which allows the administrator to create a table. |
protected String |
getDeleteQuery(String instanceId,
String tableType)
Returns the complete SQL query which allows the administrator to delete some rows into table. |
protected String |
getInsertQuery(String instanceId,
String tableType)
Returns the complete SQL query which allows the administrator to insert data into tables. |
protected String |
getUpdateQuery(String instanceId,
String tableType)
Returns the complete SQL query which allows the administrator to update a table. |
protected void |
setCreateQueries()
Set create SQL file into the allQueries String |
protected void |
setDeleteQueries()
Set delete SQL file into the allQueries String |
protected void |
setInsertQueries()
Set insert SQL file into the allQueries String |
protected void |
setUpdateQueries()
Set update SQL file into the allQueries String |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SQLRequest(String fullPathName, String dbServerName)
public SQLRequest(String fullPathName)
public SQLRequest()
Method Detail |
---|
protected void setCreateQueries()
protected void setDeleteQueries()
protected void setInsertQueries()
protected void setUpdateQueries()
protected String getCreateQuery(String tableName, String tableType)
tableName
- (String) the name of the created tabletableType
- (String) the type of the table which must be created (forum, rights, message,
event, ...)
protected String getDeleteQuery(String instanceId, String tableType)
instanceId
- (String) the name of the created tabletableType
- (String) the type of the table which must be created (forum, rights, message,
event, ...)
protected String getUpdateQuery(String instanceId, String tableType)
instanceId
- (String) the id of the component where their data must be updated into
tables.tableType
- (String) the type of the table which must be created (forum, rights, message,
event, ...)
protected String getInsertQuery(String instanceId, String tableType)
instanceId
- (String) the id of the component where their data must be inserted into
tables.tableType
- (String) the type of the table which must be created (forum, rights, message,
event, ...)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |