it.eng.spagobi.importexport
Class DBConnection

java.lang.Object
  extended by it.eng.spagobi.importexport.DBConnection
Direct Known Subclasses:
JdbcConnection, JndiConnection

public class DBConnection
extends java.lang.Object

Bean that describes a SpagoBI database connection


Field Summary
private  java.lang.String description
           
private  boolean jdbcType
           
private  boolean jndiType
           
private  java.lang.String name
           
 
Constructor Summary
DBConnection()
           
 
Method Summary
 java.lang.String getDescription()
          Gets the description of the database connection
 java.lang.String getName()
          Gets the name of the database connection
 boolean isJdbcType()
          Check if the connection is a jdbc connections
 boolean isJndiType()
          Check if the connection is a jndi connections
 void setDescription(java.lang.String description)
          Set the description
 void setJdbcType(boolean jdbcType)
          Set the flag which store if the connection is a jdbc kind of connection
 void setJndiType(boolean jndiTypw)
          Set the flag which store if the connection is a jndi kind of connection
 void setName(java.lang.String name)
          Set the name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name

description

private java.lang.String description

jdbcType

private boolean jdbcType

jndiType

private boolean jndiType
Constructor Detail

DBConnection

public DBConnection()
Method Detail

getDescription

public java.lang.String getDescription()
Gets the description of the database connection

Returns:
description of the database connection

setDescription

public void setDescription(java.lang.String description)
Set the description

Parameters:
description - Description for the connection

getName

public java.lang.String getName()
Gets the name of the database connection

Returns:
name of the databse connection

setName

public void setName(java.lang.String name)
Set the name

Parameters:
name - Name for the connection

isJdbcType

public boolean isJdbcType()
Check if the connection is a jdbc connections

Returns:
True if the connection is a jdbc

setJdbcType

public void setJdbcType(boolean jdbcType)
Set the flag which store if the connection is a jdbc kind of connection

Parameters:
jdbcType - boolean value to describe a jdbc kind of connection

isJndiType

public boolean isJndiType()
Check if the connection is a jndi connections

Returns:
True if the connection is a jndi

setJndiType

public void setJndiType(boolean jndiTypw)
Set the flag which store if the connection is a jndi kind of connection

Parameters:
jndiTypw - boolean value to describe a jndi kind of connection