public interface DBField
Modifier and Type | Method and Description |
---|---|
void |
createTable(java.lang.Appendable out)
Writes the CREATE TABLE representation of the current database field to a writer object
|
void |
dbpcdout(int scope,
java.lang.Appendable out,
boolean isKey)
Writes the DBPCD representation of the database field to a writer object
|
void |
edit(java.sql.Connection conn,
java.awt.Container parent,
java.util.Map<java.lang.String,java.lang.String> results)
Displays the content of a field within a dataset entry.
|
java.lang.String |
getName()
Returns the database SQL name of the current field
|
java.lang.String |
save(java.lang.String keyvalue)
Returns the SQL command(s) or fragment(s) necessary to save the current
database field.
|
java.awt.Component |
schemaEditor(java.sql.Connection conn,
javax.swing.JFrame mainFrame)
Displays the current field in an editor panel.
|
void |
view(java.sql.Connection conn,
java.awt.Container parent,
java.util.Map<java.lang.String,java.lang.String> results)
Displays the content of a field within a dataset entry.
|
void view(java.sql.Connection conn, java.awt.Container parent, java.util.Map<java.lang.String,java.lang.String> results)
conn
- the database connection to use for any further queriesparent
- the parent container to add components to for displaying the fieldresults
- the object containing all of the fields and values for a given database entryvoid edit(java.sql.Connection conn, java.awt.Container parent, java.util.Map<java.lang.String,java.lang.String> results)
conn
- the database connection to use for any further queriesparent
- the parent container to add components to for displaying the fieldresults
- the object containing all of the fields and values for a given database entryjava.awt.Component schemaEditor(java.sql.Connection conn, javax.swing.JFrame mainFrame)
mainFrame
- a JFrame object for any editor popup windows to be modal toconn
- a database connection object - for reference fieldsvoid dbpcdout(int scope, java.lang.Appendable out, boolean isKey) throws java.io.IOException
scope
- the level of scope to write the database field.out
- the writer object to output the PCD code.isKey
- whether the field is the primary key for the current schemajava.io.IOException
void createTable(java.lang.Appendable out) throws java.io.IOException
out
- the writer object to output the CREATE TABLE SQL-statement code.java.io.IOException
java.lang.String getName()
java.lang.String save(java.lang.String keyvalue)
keyvalue
- the value for the database key (null if it is a new entry)Copyright © 2008-2014 University of Manitoba.