it.eng.spagobi.tools.datasource.bo
Interface IDataSource

All Known Implementing Classes:
DataSource

public interface IDataSource


Method Summary
 boolean checkIsJndi()
           
 java.sql.Connection getConnection()
          Gets the connection.
 java.lang.String getDescr()
          Gets the descr.
 java.lang.Integer getDialectId()
          Gets the dialect id.
 java.lang.String getDriver()
          Gets the driver.
 int getDsId()
          Gets the ds id.
 java.util.Set getEngines()
          Gets the engines.
 java.lang.String getHibDialectClass()
           
 java.lang.String getHibDialectName()
           
 java.lang.String getJndi()
          Gets the jndi.
 java.lang.String getLabel()
          Gets the label.
 java.util.Set getObjects()
          Gets the objects.
 java.lang.String getPwd()
          Gets the pwd.
 java.lang.String getUrlConnection()
          Gets the url connection.
 java.lang.String getUser()
          Gets the user.
 void setDescr(java.lang.String descr)
          Sets the descr.
 void setDialectId(java.lang.Integer dialectId)
          Sets the dialect id.
 void setDriver(java.lang.String driver)
          Sets the driver.
 void setDsId(int dsId)
          Sets the ds id.
 void setEngines(java.util.Set engines)
          Sets the engines.
 void setHibDialectClass(java.lang.String hibDialectClass)
           
 void setHibDialectName(java.lang.String hibDialectName)
           
 void setJndi(java.lang.String jndi)
          Sets the jndi.
 void setLabel(java.lang.String label)
          Sets the label.
 void setObjects(java.util.Set objects)
          Sets the objects.
 void setPwd(java.lang.String pwd)
          Sets the pwd.
 void setUrlConnection(java.lang.String url_connection)
          Sets the url connection.
 void setUser(java.lang.String user)
          Sets the user.
 SpagoBiDataSource toSpagoBiDataSource()
           
 

Method Detail

toSpagoBiDataSource

SpagoBiDataSource toSpagoBiDataSource()

checkIsJndi

boolean checkIsJndi()

getConnection

java.sql.Connection getConnection()
                                  throws javax.naming.NamingException,
                                         java.sql.SQLException,
                                         java.lang.ClassNotFoundException
Gets the connection.

Returns:
the connection
Throws:
javax.naming.NamingException - the naming exception
java.sql.SQLException - the SQL exception
java.lang.ClassNotFoundException - the class not found exception

getDsId

int getDsId()
Gets the ds id.

Returns:
the ds id

setDsId

void setDsId(int dsId)
Sets the ds id.

Parameters:
dsId - the new ds id

getDescr

java.lang.String getDescr()
Gets the descr.

Returns:
the descr

setDescr

void setDescr(java.lang.String descr)
Sets the descr.

Parameters:
descr - the new descr

getLabel

java.lang.String getLabel()
Gets the label.

Returns:
the label

setLabel

void setLabel(java.lang.String label)
Sets the label.

Parameters:
label - the new label

getJndi

java.lang.String getJndi()
Gets the jndi.

Returns:
the jndi

setJndi

void setJndi(java.lang.String jndi)
Sets the jndi.

Parameters:
jndi - the new jndi

getUrlConnection

java.lang.String getUrlConnection()
Gets the url connection.

Returns:
the url connection

setUrlConnection

void setUrlConnection(java.lang.String url_connection)
Sets the url connection.

Parameters:
url_connection - the new url connection

getUser

java.lang.String getUser()
Gets the user.

Returns:
the user

setUser

void setUser(java.lang.String user)
Sets the user.

Parameters:
user - the new user

getPwd

java.lang.String getPwd()
Gets the pwd.

Returns:
the pwd

setPwd

void setPwd(java.lang.String pwd)
Sets the pwd.

Parameters:
pwd - the new pwd

getDriver

java.lang.String getDriver()
Gets the driver.

Returns:
the driver

setDriver

void setDriver(java.lang.String driver)
Sets the driver.

Parameters:
driver - the new driver

getDialectId

java.lang.Integer getDialectId()
Gets the dialect id.

Returns:
the dialect id

setDialectId

void setDialectId(java.lang.Integer dialectId)
Sets the dialect id.

Parameters:
dialectId - the new dialect id

getEngines

java.util.Set getEngines()
Gets the engines.

Returns:
the engines

setEngines

void setEngines(java.util.Set engines)
Sets the engines.

Parameters:
engines - the new engines

getObjects

java.util.Set getObjects()
Gets the objects.

Returns:
the objects

setObjects

void setObjects(java.util.Set objects)
Sets the objects.

Parameters:
objects - the new objects

getHibDialectClass

java.lang.String getHibDialectClass()

setHibDialectClass

void setHibDialectClass(java.lang.String hibDialectClass)

getHibDialectName

java.lang.String getHibDialectName()

setHibDialectName

void setHibDialectName(java.lang.String hibDialectName)