|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.silverpeas.peasCore.AbstractComponentSessionController
org.silverpeas.connecteurJDBC.control.ConnecteurJDBCSessionController
public class ConnecteurJDBCSessionController
Title: Connecteur JDBC Description: Ce composant a pour objet de permettre de recuperer rapidement et simplement des donnees du systeme d'information de l'entreprise.
Field Summary |
---|
Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController |
---|
CHARACTER_ENCODING, context |
Constructor Summary | |
---|---|
ConnecteurJDBCSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl,
com.stratelia.silverpeas.peasCore.ComponentContext componentContext)
Constructeur |
Method Summary | |
---|---|
String |
checkConnection(String JDBCurl,
String login,
String password)
|
String |
checkRequest(String request)
|
void |
closeConnection()
|
Collection<String> |
getAvailableDriversDisplayNames()
|
Collection<String> |
getAvailableDriversNames()
|
String |
getColumn()
get the column of the SQL request |
int |
getColumnCount()
get the number of the columns of the SQL request results |
String |
getColumnName(int i)
get the name of the column number i |
String[] |
getColumnNames(String tableName)
get the columns names corrsponding to a table name |
String |
getColumnReq()
get the column selected to restrict the request results in the page connecteurJDBC.jsp |
String |
getColumnType(int i)
get the type of the column number i |
String |
getColumnValue()
get the value with wich a column is compared to restrict the sql request results |
String |
getCompare()
get the symbole of comparison |
String |
getDescriptionForDriver(String driverName)
|
Collection<String> |
getDriversDescriptions()
|
String |
getFullRequest()
get the full request |
String |
getJDBCdriverName()
|
String |
getJDBCurl()
|
Collection<String> |
getJDBCUrlsForDriver(String driverName)
|
String |
getLastColumn()
|
String |
getLastValidRequest()
get the last valid request |
String |
getLogin()
|
boolean |
getNext()
|
String |
getPassword()
|
int |
getRowLimit()
|
String |
getSelected()
|
Vector<String> |
getSelectedColumn()
|
String |
getSortType()
get the sort type asc or desc |
String |
getSQLreq()
|
String |
getString(int i)
|
String |
getTable()
get the table of the SQL request |
String[] |
getTableNames()
get the liste of the table names |
boolean |
isConnectionConfigured()
|
void |
loadDrivers()
|
void |
setColumn(String column)
set the column of the SQL request |
void |
setColumnReq(String columnReq)
set the column selected to restrict the request results |
void |
setColumnValue(String columnValue)
set the value with wich a column is compared |
void |
setCompare(String compare)
set the symbole of comparaison |
void |
setFullRequest(String fullreq)
set the full request |
void |
setJDBCdriverName(String JDBCdriverName)
|
void |
setJDBCurl(String JDBCurl)
|
void |
setLastColumn(String lastColumns)
|
void |
setLogin(String login)
|
void |
setPassword(String password)
|
void |
setRowLimit(int rowLimit)
|
void |
setSelected(String selected)
|
void |
setSelectedColumn(Vector<String> selectedColumn)
|
void |
setSortType(String sort_Type)
set the sort type (asc or desc) of the request |
void |
setSQLreq(String SQLreq)
|
void |
setTable(String table)
set the table of the SQL request |
void |
setValidRequest(String validreq)
set the valid request |
void |
startConnection()
|
void |
startConnection(String temp)
|
void |
updateConnection(String JDBCdriverName,
String JDBCurl,
String login,
String password,
int rowLimit)
|
Methods inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController |
---|
addClipboardSelection, clipboardPasteDone, close, getAlertUser, getClipboardCount, getClipboardErrorMessage, getClipboardExceptionError, getClipboardName, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameters, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getFavoriteSpace, getGenericPanel, getHighestSilverpeasUserRole, getIcon, getLanguage, getLastResults, getLook, getMultilang, getOrganisationController, getPersonalization, getRSSUrl, getSelection, getServerNameAndPort, getSettings, getSilverpeasUserRoles, getSpaceId, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserAvailSpaceIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoleLevel, getUserRoles, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setAppModeMaintenance, setClipboardError, setClipboardSelectedElement, setComponentRootName, setFavoriteSpaceToMainSessionController, setGenericPanel, setIconFileName, setLastResults, setMultilangFileName, setResourceFileName, setSpaceModeMaintenance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnecteurJDBCSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl, com.stratelia.silverpeas.peasCore.ComponentContext componentContext)
mainSessionCtrl
- componentContext
-
ConnecteurJDBCRuntimeException
Method Detail |
---|
public void closeConnection()
public void startConnection()
public void startConnection(String temp)
public void setValidRequest(String validreq)
validreq
- public String getLastValidRequest()
public void setFullRequest(String fullreq)
public String getFullRequest()
public void setSortType(String sort_Type)
public String getSortType()
public String[] getTableNames() throws ConnecteurJDBCException
ConnecteurJDBCException
public String[] getColumnNames(String tableName) throws ConnecteurJDBCException
ConnecteurJDBCException
public void setTable(String table)
public String getTable()
public void setColumn(String column)
public String getColumn()
public void setSelectedColumn(Vector<String> selectedColumn)
public Vector<String> getSelectedColumn()
public void setSelected(String selected)
public String getSelected()
public void setLastColumn(String lastColumns)
public String getLastColumn()
public String getColumnReq()
public void setColumnReq(String columnReq)
public String getCompare()
public void setCompare(String compare)
public String getColumnValue()
public void setColumnValue(String columnValue)
public int getColumnCount()
public String getColumnName(int i)
public String getColumnType(int i)
public boolean getNext()
public String getString(int i)
public boolean isConnectionConfigured()
public void setJDBCdriverName(String JDBCdriverName) throws ConnecteurJDBCException
ConnecteurJDBCException
public void setJDBCurl(String JDBCurl) throws ConnecteurJDBCException
ConnecteurJDBCException
public void setSQLreq(String SQLreq) throws ConnecteurJDBCException
ConnecteurJDBCException
public void setLogin(String login) throws ConnecteurJDBCException
ConnecteurJDBCException
public void setPassword(String password) throws ConnecteurJDBCException
ConnecteurJDBCException
public void setRowLimit(int rowLimit) throws ConnecteurJDBCException
ConnecteurJDBCException
public String getJDBCdriverName()
public String getJDBCurl()
public String getSQLreq()
public String getLogin()
public String getPassword()
public int getRowLimit()
public final void loadDrivers()
public Collection<String> getDriversDescriptions()
public Collection<String> getAvailableDriversNames()
public Collection<String> getAvailableDriversDisplayNames()
public Collection<String> getJDBCUrlsForDriver(String driverName)
public String getDescriptionForDriver(String driverName)
public void updateConnection(String JDBCdriverName, String JDBCurl, String login, String password, int rowLimit) throws ConnecteurJDBCException
ConnecteurJDBCException
public String checkConnection(String JDBCurl, String login, String password)
public String checkRequest(String request)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |