it.eng.spagobi.services.datasource.bo
Class SpagoBiDataSource

java.lang.Object
  extended by it.eng.spagobi.services.datasource.bo.SpagoBiDataSource
All Implemented Interfaces:
java.io.Serializable

public class SpagoBiDataSource
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
SpagoBiDataSource()
          Instantiates a new spago bi data source.
SpagoBiDataSource(java.lang.String driver, java.lang.String jndiName, java.lang.String password, java.lang.String url, java.lang.String user, java.lang.String label, java.lang.String hibDialectClass, java.lang.String hibDialectName)
          Instantiates a new spago bi data source.
 
Method Summary
 boolean checkIsJndi()
          Check is jndi.
 boolean equals(java.lang.Object obj)
           
static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
          Get Custom Deserializer.
 java.lang.String getDriver()
          Gets the driver value for this SpagoBiDataSource.
 java.lang.String getHibDialectClass()
          Gets the hibDialectClass value for this SpagoBiDataSource.
 java.lang.String getHibDialectName()
          Gets the hibDialectName value for this SpagoBiDataSource.
 int getId()
           
 java.lang.String getJndiName()
          Gets the jndiName value for this SpagoBiDataSource.
 java.lang.String getLabel()
          Gets the label value for this SpagoBiDataSource.
 java.lang.String getPassword()
          Gets the password value for this SpagoBiDataSource.
static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
          Get Custom Serializer.
static org.apache.axis.description.TypeDesc getTypeDesc()
          Return type metadata object.
 java.lang.String getUrl()
          Gets the url value for this SpagoBiDataSource.
 java.lang.String getUser()
          Gets the user value for this SpagoBiDataSource.
 int hashCode()
           
 java.sql.Connection readConnection()
          Read connection.
 void setDriver(java.lang.String driver)
          Sets the driver value for this SpagoBiDataSource.
 void setHibDialectClass(java.lang.String hibDialectClass)
          Sets the hibDialectClass value for this SpagoBiDataSource.
 void setHibDialectName(java.lang.String hibDialectName)
          Sets the hibDialectName value for this SpagoBiDataSource.
 void setId(int id)
           
 void setJndiName(java.lang.String jndiName)
          Sets the jndiName value for this SpagoBiDataSource.
 void setLabel(java.lang.String label)
          Sets the label value for this SpagoBiDataSource.
 void setPassword(java.lang.String password)
          Sets the password value for this SpagoBiDataSource.
 void setUrl(java.lang.String url)
          Sets the url value for this SpagoBiDataSource.
 void setUser(java.lang.String user)
          Sets the user value for this SpagoBiDataSource.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpagoBiDataSource

public SpagoBiDataSource()
Instantiates a new spago bi data source.


SpagoBiDataSource

public SpagoBiDataSource(java.lang.String driver,
                         java.lang.String jndiName,
                         java.lang.String password,
                         java.lang.String url,
                         java.lang.String user,
                         java.lang.String label,
                         java.lang.String hibDialectClass,
                         java.lang.String hibDialectName)
Instantiates a new spago bi data source.

Parameters:
driver - the driver
jndiName - the jndi name
password - the password
url - the url
user - the user
label - the label
hibDialectClass - the hib dialect class
hibDialectName - the hib dialect name
Method Detail

checkIsJndi

public boolean checkIsJndi()
Check is jndi.

Returns:
true, if successful

readConnection

public java.sql.Connection readConnection()
                                   throws javax.naming.NamingException,
                                          java.sql.SQLException,
                                          java.lang.ClassNotFoundException
Read 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

getDriver

public java.lang.String getDriver()
Gets the driver value for this SpagoBiDataSource.

Returns:
driver

setDriver

public void setDriver(java.lang.String driver)
Sets the driver value for this SpagoBiDataSource.

Parameters:
driver - the driver

getJndiName

public java.lang.String getJndiName()
Gets the jndiName value for this SpagoBiDataSource.

Returns:
jndiName

setJndiName

public void setJndiName(java.lang.String jndiName)
Sets the jndiName value for this SpagoBiDataSource.

Parameters:
jndiName - the jndi name

getPassword

public java.lang.String getPassword()
Gets the password value for this SpagoBiDataSource.

Returns:
password

setPassword

public void setPassword(java.lang.String password)
Sets the password value for this SpagoBiDataSource.

Parameters:
password - the password

getUrl

public java.lang.String getUrl()
Gets the url value for this SpagoBiDataSource.

Returns:
url

setUrl

public void setUrl(java.lang.String url)
Sets the url value for this SpagoBiDataSource.

Parameters:
url - the url

getUser

public java.lang.String getUser()
Gets the user value for this SpagoBiDataSource.

Returns:
user

setUser

public void setUser(java.lang.String user)
Sets the user value for this SpagoBiDataSource.

Parameters:
user - the user

getLabel

public java.lang.String getLabel()
Gets the label value for this SpagoBiDataSource.

Returns:
label

setLabel

public void setLabel(java.lang.String label)
Sets the label value for this SpagoBiDataSource.

Parameters:
label - the label

getHibDialectClass

public java.lang.String getHibDialectClass()
Gets the hibDialectClass value for this SpagoBiDataSource.

Returns:
hibDialectClass

setHibDialectClass

public void setHibDialectClass(java.lang.String hibDialectClass)
Sets the hibDialectClass value for this SpagoBiDataSource.

Parameters:
hibDialectClass - the hib dialect class

getHibDialectName

public java.lang.String getHibDialectName()
Gets the hibDialectName value for this SpagoBiDataSource.

Returns:
hibDialectName

setHibDialectName

public void setHibDialectName(java.lang.String hibDialectName)
Sets the hibDialectName value for this SpagoBiDataSource.

Parameters:
hibDialectName - the hib dialect name

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getTypeDesc

public static org.apache.axis.description.TypeDesc getTypeDesc()
Return type metadata object.

Returns:
the type desc

getSerializer

public static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType,
                                                                java.lang.Class _javaType,
                                                                javax.xml.namespace.QName _xmlType)
Get Custom Serializer.

Parameters:
mechType - the mech type
_javaType - the _java type
_xmlType - the _xml type
Returns:
the serializer

getDeserializer

public static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType,
                                                                    java.lang.Class _javaType,
                                                                    javax.xml.namespace.QName _xmlType)
Get Custom Deserializer.

Parameters:
mechType - the mech type
_javaType - the _java type
_xmlType - the _xml type
Returns:
the deserializer

getId

public int getId()

setId

public void setId(int id)