Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15
OOoRunner test harness

util
Class DBTools.DataSourceInfo

java.lang.Object
  |
  +--util.DBTools.DataSourceInfo
Enclosing class:
DBTools

public class DBTools.DataSourceInfo
extends Object

It's just a structure with some useful methods for representing com.sun.star.sdb.DataSource service. All this service's properties are stored in appropriate class fields. Class also allows to construct its instances using service information, and create new service instance upon class fields.

See Also:
com.sun.star.sdb.DataSource

Field Summary
 PropertyValue[] Info
          Representation of 'Info' property.
 Boolean IsPasswordRequired
          Representation of 'IsPasswordRequired' property.
 Boolean IsReadOnly
          Representation of 'IsReadOnly' property.
 String Name
          Representation of 'Name' property.
 String Password
          Representation of 'Password' property.
 Boolean SuppressVersionColumns
          Representation of 'SuppressVersionColumns' property.
 String[] TableFilter
          Representation of 'TableFilter' property.
 String[] TableTypeFilter
          Representation of 'TableTypeFilter' property.
 String URL
          Representation of 'URL' property.
 String User
          Representation of 'User' property.
 
Constructor Summary
DBTools.DataSourceInfo()
          Creates an empty instance.
DBTools.DataSourceInfo(Object dataSource)
          Creates an instance laying upon specified DataSource.
 
Method Summary
 Object getDataSourceService()
          Creates new com.sun.star.sdb.DataSource service instance and copies all fields (which are not null) to appropriate service properties.
 void printInfo(PrintWriter out)
          Prints datasource info.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Name

public String Name
Representation of 'Name' property.

URL

public String URL
Representation of 'URL' property.

Info

public PropertyValue[] Info
Representation of 'Info' property.

User

public String User
Representation of 'User' property.

Password

public String Password
Representation of 'Password' property.

IsPasswordRequired

public Boolean IsPasswordRequired
Representation of 'IsPasswordRequired' property.

SuppressVersionColumns

public Boolean SuppressVersionColumns
Representation of 'SuppressVersionColumns' property.

IsReadOnly

public Boolean IsReadOnly
Representation of 'IsReadOnly' property.

TableFilter

public String[] TableFilter
Representation of 'TableFilter' property.

TableTypeFilter

public String[] TableTypeFilter
Representation of 'TableTypeFilter' property.
Constructor Detail

DBTools.DataSourceInfo

public DBTools.DataSourceInfo()
Creates an empty instance.

DBTools.DataSourceInfo

public DBTools.DataSourceInfo(Object dataSource)
Creates an instance laying upon specified DataSource.
Parameters:
dataSource - All source properties are copied into class fields.
Method Detail

printInfo

public void printInfo(PrintWriter out)
Prints datasource info.
Parameters:
out - Stream to which information is printed.

getDataSourceService

public Object getDataSourceService()
Creates new com.sun.star.sdb.DataSource service instance and copies all fields (which are not null) to appropriate service properties.
Returns:
com.sun.star.sdb.DataSource service.

OOoRunner test harness

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.