|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.holub.database.TableFactory
public class TableFactory
|
This code may be used freely by yourself with the following restrictions:
|
| Constructor Summary | |
|---|---|
TableFactory()
|
|
| Method Summary | |
|---|---|
static Table |
create(String name,
String[] columns)
Create an empty table with the specified columns. |
static Table |
create(Table.Importer importer)
Create a table from information provided by a Table.Importer object. |
static Table |
load(String name)
This convenience method is equivalent to load(name, new File(".") ); |
static Table |
load(String name,
File directory)
|
static Table |
load(String name,
String location)
This convenience method is equivalent to load(name, new File(location) ); |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableFactory()
| Method Detail |
|---|
public static Table create(String name,
String[] columns)
name - the table namecolumns - names of all the columns
public static Table create(Table.Importer importer)
throws IOException
Table.Importer object.
IOException
public static Table load(String name)
throws IOException
load(name, new File(".") );
IOExceptionload(String,File)
public static Table load(String name,
String location)
throws IOException
load(name, new File(location) );
IOExceptionload(String,File)
public static Table load(String name,
File directory)
throws IOException
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||