| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpedviz.loader.Loader
pedviz.loader.DatabaseGraphLoader
public class DatabaseGraphLoader
This Loader class allow you to load a graph directly from a database. It's possible to load the whole table or to define your own querie.
 Data can be imported from any Java supported relational database. At the
 moment loader classes for mysql (MySQLDatabase), hdbsql (HSQLDatabase)
 and postgresSQL (PostgreSQLDatabase) are available. Furthermore,
 it's mandatory to set the mapping for the following fields: id, mom's id and
 dad's id (Method: setSettings). Additional fields (that maybe are available
 in the data), such as sex, traits etc. are mapped as Rules.
 
| Constructor Summary | |
|---|---|
DatabaseGraphLoader(Database database,
                    java.lang.String table)
Constructs a new DatabaseGraphLoader with the given connection and the table name.  | 
|
| Method Summary | |
|---|---|
 java.util.ArrayList<java.lang.String> | 
getAttributes()
Returns a collection of all attributes.  | 
 java.util.Vector<java.lang.String> | 
getColumns()
Returns a array of all columns.  | 
 void | 
load(Graph graph)
Loads data in the given Graph object.  | 
 void | 
setQuery(java.lang.String query)
Sets a query.  | 
| Methods inherited from class pedviz.loader.Loader | 
|---|
getDadColumn, getIdColumn, getMomColumn, setSettings | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public DatabaseGraphLoader(Database database,
                           java.lang.String table)
connection - Connection objecttable - tablename| Method Detail | 
|---|
public void setQuery(java.lang.String query)
query - public void load(Graph graph)
Loader
load in class Loadergraph - Gaph object.public java.util.Vector<java.lang.String> getColumns()
Loader
getColumns in class Loaderpublic java.util.ArrayList<java.lang.String> getAttributes()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||