com.google.visualization.datasource.util
Class SqlDatabaseDescription

java.lang.Object
  extended by com.google.visualization.datasource.util.SqlDatabaseDescription

public class SqlDatabaseDescription
extends java.lang.Object

This class contains all information required to connect to the sql database.

Author:
Liron L.

Constructor Summary
SqlDatabaseDescription(java.lang.String url, java.lang.String user, java.lang.String password, java.lang.String tableName)
          Constructs a sql database description.
 
Method Summary
 java.lang.String getPassword()
          Returns the password used to access the sql database.
 java.lang.String getTableName()
          Returns the database table name.
 java.lang.String getUrl()
          Returns the url of the sql databasae.
 java.lang.String getUser()
          Returns the user name used to access the sql database.
 void setPassword(java.lang.String password)
          Sets the password.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlDatabaseDescription

public SqlDatabaseDescription(java.lang.String url,
                              java.lang.String user,
                              java.lang.String password,
                              java.lang.String tableName)
Constructs a sql database description.

Parameters:
url - The url of the sql databasae.
user - The user name to access the sql database.
password - The password to access the sql database.
tableName - The database table name.
Method Detail

getUrl

public java.lang.String getUrl()
Returns the url of the sql databasae.

Returns:
The url of the sql databasae.

getUser

public java.lang.String getUser()
Returns the user name used to access the sql database.

Returns:
The user name used to access the sql database.

getPassword

public java.lang.String getPassword()
Returns the password used to access the sql database.

Returns:
The password used to access the sql database.

setPassword

public void setPassword(java.lang.String password)
Sets the password.

Parameters:
password - The new password to set.

getTableName

public java.lang.String getTableName()
Returns the database table name.

Returns:
The database table name.


Copyright © 2009 Google. All Rights Reserved.