org.pojava.persistence.sql
Class DataSourceMetadata

java.lang.Object
  extended by org.pojava.persistence.sql.DataSourceMetadata

public class DataSourceMetadata
extends Object

This class keeps some useful information about a DataSource without holding open a Connection.

Author:
John Pile

Constructor Summary
DataSourceMetadata()
          Default constructor.
DataSourceMetadata(Connection conn)
          Construct a
 
Method Summary
 String getDriverName()
           
 int getMajorVersion()
           
 int getMinorVersion()
           
 String getPlatform()
           
 String getSqlKeywords()
           
 String getUserName()
           
 void populateFrom(Connection conn)
          Mock up a new connection
 void setDriverName(String driverName)
           
 void setMajorVersion(int majorVersion)
           
 void setMinorVersion(int minorVersion)
           
 void setPlatform(String platform)
          Platform retrieved from MetaData
 void setSqlKeywords(String sqlKeywords)
           
 void setUserName(String userName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceMetadata

public DataSourceMetadata()
Default constructor.


DataSourceMetadata

public DataSourceMetadata(Connection conn)
                   throws SQLException
Construct a

Parameters:
conn -
Throws:
SQLException
Method Detail

populateFrom

public void populateFrom(Connection conn)
                  throws SQLException
Mock up a new connection

Parameters:
conn -
Throws:
SQLException

getPlatform

public String getPlatform()
Returns:
Platform describes the database platform.

setPlatform

public void setPlatform(String platform)
Platform retrieved from MetaData

Parameters:
platform -

getDriverName

public String getDriverName()

setDriverName

public void setDriverName(String driverName)

getSqlKeywords

public String getSqlKeywords()

setSqlKeywords

public void setSqlKeywords(String sqlKeywords)

getUserName

public String getUserName()

setUserName

public void setUserName(String userName)

getMajorVersion

public int getMajorVersion()

setMajorVersion

public void setMajorVersion(int majorVersion)

getMinorVersion

public int getMinorVersion()

setMinorVersion

public void setMinorVersion(int minorVersion)


Copyright © 2011. All Rights Reserved.