Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.java4less.rchart
Class JDBCSource

    java.lang.Object
      |
      +--com.java4less.rchart.JDBCSource

public class JDBCSource
extends java.lang.Object

This class connects to a database using jdbc m executes a query and returns the results.

Constructor Summary
`JDBCSource()`

Method Summary
`boolean` | `close()` close database
`java.lang.String` | `executeQuery(java.lang.String query)` execute query and return results as a list separated by |
`boolean` | `open(java.lang.String db, java.lang.String dr, java.lang.String user, java.lang.String pwd)` open database

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### JDBCSource

    public JDBCSource()

Method Detail

### open

    public boolean open(java.lang.String db,
                        java.lang.String dr,
                        java.lang.String user,
                        java.lang.String pwd)

  open database

  Parameters:
    `db` - database
    `dr` - driver name
    `user` - user name
    `pwd` - password
  Returns:

### close

    public boolean close()

  close database

### executeQuery

    public java.lang.String executeQuery(java.lang.String query)

  execute query and return results as a list separated by |

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD