it.eng.spagobi.tools.datasource.bo
Class DataSource

java.lang.Object
  extended by it.eng.spagobi.tools.datasource.bo.DataSource
All Implemented Interfaces:
IDataSource, java.io.Serializable

public class DataSource
extends java.lang.Object
implements java.io.Serializable, IDataSource

Defines an DataSource object

See Also:
Serialized Form

Constructor Summary
DataSource()
           
 
Method Summary
 boolean checkIsJndi()
          Check is jndi.
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSource

public DataSource()
Method Detail

toSpagoBiDataSource

public SpagoBiDataSource toSpagoBiDataSource()
Specified by:
toSpagoBiDataSource in interface IDataSource

checkIsJndi

public boolean checkIsJndi()
Check is jndi.

Specified by:
checkIsJndi in interface IDataSource
Returns:
true, if successful

getConnection

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

Specified by:
getConnection in interface IDataSource
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

public int getDsId()
Description copied from interface: IDataSource
Gets the ds id.

Specified by:
getDsId in interface IDataSource
Returns:
the ds id

setDsId

public void setDsId(int dsId)
Description copied from interface: IDataSource
Sets the ds id.

Specified by:
setDsId in interface IDataSource
Parameters:
dsId - the new ds id

getDescr

public java.lang.String getDescr()
Description copied from interface: IDataSource
Gets the descr.

Specified by:
getDescr in interface IDataSource
Returns:
the descr

setDescr

public void setDescr(java.lang.String descr)
Description copied from interface: IDataSource
Sets the descr.

Specified by:
setDescr in interface IDataSource
Parameters:
descr - the new descr

getLabel

public java.lang.String getLabel()
Description copied from interface: IDataSource
Gets the label.

Specified by:
getLabel in interface IDataSource
Returns:
the label

setLabel

public void setLabel(java.lang.String label)
Description copied from interface: IDataSource
Sets the label.

Specified by:
setLabel in interface IDataSource
Parameters:
label - the new label

getJndi

public java.lang.String getJndi()
Description copied from interface: IDataSource
Gets the jndi.

Specified by:
getJndi in interface IDataSource
Returns:
the jndi

setJndi

public void setJndi(java.lang.String jndi)
Description copied from interface: IDataSource
Sets the jndi.

Specified by:
setJndi in interface IDataSource
Parameters:
jndi - the new jndi

getUrlConnection

public java.lang.String getUrlConnection()
Description copied from interface: IDataSource
Gets the url connection.

Specified by:
getUrlConnection in interface IDataSource
Returns:
the url connection

setUrlConnection

public void setUrlConnection(java.lang.String url_connection)
Description copied from interface: IDataSource
Sets the url connection.

Specified by:
setUrlConnection in interface IDataSource
Parameters:
url_connection - the new url connection

getUser

public java.lang.String getUser()
Description copied from interface: IDataSource
Gets the user.

Specified by:
getUser in interface IDataSource
Returns:
the user

setUser

public void setUser(java.lang.String user)
Description copied from interface: IDataSource
Sets the user.

Specified by:
setUser in interface IDataSource
Parameters:
user - the new user

getPwd

public java.lang.String getPwd()
Description copied from interface: IDataSource
Gets the pwd.

Specified by:
getPwd in interface IDataSource
Returns:
the pwd

setPwd

public void setPwd(java.lang.String pwd)
Description copied from interface: IDataSource
Sets the pwd.

Specified by:
setPwd in interface IDataSource
Parameters:
pwd - the new pwd

getDriver

public java.lang.String getDriver()
Description copied from interface: IDataSource
Gets the driver.

Specified by:
getDriver in interface IDataSource
Returns:
the driver

setDriver

public void setDriver(java.lang.String driver)
Description copied from interface: IDataSource
Sets the driver.

Specified by:
setDriver in interface IDataSource
Parameters:
driver - the new driver

getDialectId

public java.lang.Integer getDialectId()
Description copied from interface: IDataSource
Gets the dialect id.

Specified by:
getDialectId in interface IDataSource
Returns:
the dialect id

setDialectId

public void setDialectId(java.lang.Integer dialectId)
Description copied from interface: IDataSource
Sets the dialect id.

Specified by:
setDialectId in interface IDataSource
Parameters:
dialectId - the new dialect id

getEngines

public java.util.Set getEngines()
Description copied from interface: IDataSource
Gets the engines.

Specified by:
getEngines in interface IDataSource
Returns:
the engines

setEngines

public void setEngines(java.util.Set engines)
Description copied from interface: IDataSource
Sets the engines.

Specified by:
setEngines in interface IDataSource
Parameters:
engines - the new engines

getObjects

public java.util.Set getObjects()
Description copied from interface: IDataSource
Gets the objects.

Specified by:
getObjects in interface IDataSource
Returns:
the objects

setObjects

public void setObjects(java.util.Set objects)
Description copied from interface: IDataSource
Sets the objects.

Specified by:
setObjects in interface IDataSource
Parameters:
objects - the new objects

getHibDialectClass

public java.lang.String getHibDialectClass()
Specified by:
getHibDialectClass in interface IDataSource

setHibDialectClass

public void setHibDialectClass(java.lang.String hibDialectClass)
Specified by:
setHibDialectClass in interface IDataSource

getHibDialectName

public java.lang.String getHibDialectName()
Specified by:
getHibDialectName in interface IDataSource

setHibDialectName

public void setHibDialectName(java.lang.String hibDialectName)
Specified by:
setHibDialectName in interface IDataSource