public class DBSchema
extends java.lang.Object
Constructor and Description |
---|
DBSchema(java.lang.String table) |
DBSchema(java.lang.String table,
KeyableField key) |
DBSchema(java.lang.String table,
KeyableField key,
DBField namecol) |
DBSchema(java.lang.String table,
KeyableField key,
DBField namecol,
java.util.Collection<DBField> fields) |
Modifier and Type | Method and Description |
---|---|
void |
createTable(java.sql.Statement stmnt)
Writes the CREATE TABLE representation of the database schema to a writer object
|
void |
edit(java.sql.Connection conn,
java.awt.Container parent,
java.lang.String value) |
KeyableField |
getKey() |
DBField |
getNameCol() |
java.lang.String |
getTable() |
void |
pcdOut(int scope,
java.lang.Appendable out)
Writes the DBPCD representation of the database schema to a writer object
|
void |
save(java.sql.Connection conn,
java.lang.String keyvalue) |
java.awt.Component |
schemaEditor(javax.swing.JFrame window,
java.sql.Connection conn,
java.lang.String value) |
void |
view(java.sql.Connection conn,
java.awt.Container mainPanel,
java.lang.String value) |
public DBSchema(java.lang.String table)
public DBSchema(java.lang.String table, KeyableField key)
public DBSchema(java.lang.String table, KeyableField key, DBField namecol)
public DBSchema(java.lang.String table, KeyableField key, DBField namecol, java.util.Collection<DBField> fields)
public java.lang.String getTable()
public KeyableField getKey()
public DBField getNameCol()
public void view(java.sql.Connection conn, java.awt.Container mainPanel, java.lang.String value)
public void edit(java.sql.Connection conn, java.awt.Container parent, java.lang.String value)
public java.awt.Component schemaEditor(javax.swing.JFrame window, java.sql.Connection conn, java.lang.String value)
public void pcdOut(int scope, java.lang.Appendable out) throws java.io.IOException
scope
- the level of scope to write the database schema.out
- the writer object to output the PCD code.java.io.IOException
public void createTable(java.sql.Statement stmnt) throws java.sql.SQLException, java.io.IOException
stmnt
- the Statement object to output the CREATE TABLE SQL-statement code.java.sql.SQLException
java.io.IOException
public void save(java.sql.Connection conn, java.lang.String keyvalue)
Copyright © 2008-2014 University of Manitoba.