|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectes.upv.dsic.gti_ia.organization.DataBaseAccess
public class DataBaseAccess
This class is responsible for connection and database queries.
| Field Summary | |
|---|---|
Connection |
connection
The connection to the database |
| Constructor Summary | |
|---|---|
DataBaseAccess()
|
|
| Method Summary | |
|---|---|
void |
closeConnection()
This method closes the connection with the database |
void |
connect()
This method sets the connection with the THOMAS database |
String |
getAgentServices(String agentID)
This method returns Agent Services in the THOMAS organization |
ResultSet |
getListEntityPlay()
This method returns a list of entity play in the THOMAS organization |
ResultSet |
getListNorms()
This method returns a list of norms in the THOMAS organization |
ResultSet |
getListProcess()
This method returns a list of process id in the THOMAS organization |
ResultSet |
getListProcess(String profileid)
This method returns a list of process id in the THOMAS organization with an specific id. |
ResultSet |
getListProfileId()
This method returns a list of profile id in the THOMAS organization |
ResultSet |
getListSubUnits(String idparentunit)
This method makes the query of the subunits in the table and returns the corresponding ResultSet. |
ResultSet |
getRoleList()
This method makes the query of the roles in the table and returns the corresponding ResultSet. |
ResultSet |
getServiceID(String url)
This method returns a ServiceId in the THOMAS organization |
ResultSet |
getUnitEntities(String unit)
This method returns a list of specific entity units in the THOMAS organization |
ResultSet |
getUnitID(String unit)
This method returns a unit id in the THOMAS organization |
ResultSet |
getUnitList()
This method makes the query of the units in the table and returns the corresponding ResultSet. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Connection connection
| Constructor Detail |
|---|
public DataBaseAccess()
| Method Detail |
|---|
public void connect()
public ResultSet getUnitList()
public ResultSet getListSubUnits(String idparentunit)
idparentunit - Id of parent unit.
public ResultSet getRoleList()
public void closeConnection()
public ResultSet getListNorms()
public ResultSet getListEntityPlay()
public ResultSet getListProfileId()
public ResultSet getListProcess(String profileid)
profileid - is a ID profile
public ResultSet getListProcess()
public ResultSet getUnitEntities(String unit)
unit -
public ResultSet getUnitID(String unit)
unit - name of unitpublic ResultSet getServiceID(String url)
url - url process
public String getAgentServices(String agentID)
agentID -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||