public class JDBCTableScheme extends java.lang.Object implements TableScheme, Documented
jdbc:..." - no leading colon)
is a JDBC URL as used by the JDBC system.
For historical reasons, the JDBCAuthenticator used by this scheme is managed by an associated StarTableFactory, which must be supplied at construction time.
| Constructor and Description |
|---|
JDBCTableScheme(StarTableFactory tfact)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
StarTable |
createTable(java.lang.String spec)
Turns a scheme-specific specification into a table.
|
java.lang.String |
getExampleSpecification()
Returns a scheme-specific specification string suitable for use
in examples.
|
java.lang.String |
getSchemeName()
Returns the name of this scheme.
|
java.lang.String |
getSchemeUsage()
Returns a short, plain-text usage string.
|
java.lang.String |
getXmlDescription()
Returns user-directed documentation in XML format.
|
public JDBCTableScheme(StarTableFactory tfact)
tfact - table factorypublic java.lang.String getSchemeName()
TableSchemegetSchemeName in interface TableSchemepublic java.lang.String getSchemeUsage()
TableSchemegetSchemeUsage in interface TableSchemepublic java.lang.String getExampleSpecification()
TableSchemegetExampleSpecification in interface TableSchemepublic java.lang.String getXmlDescription()
DocumentedThe output should be a sequence of one or more <P> elements, using XHTML-like XML. Since rendering may be done in a number of contexts however, use of the full range of XHTML elements is discouraged. Where possible, the content should stick to simple markup such as the elements P, A, UL, OL, LI, DL, DT, DD EM, STRONG, I, B, CODE, TT, PRE.
getXmlDescription in interface Documentedpublic StarTable createTable(java.lang.String spec) throws java.io.IOException
TableSchemecreateTable in interface TableSchemespec - scheme-specific table specification
(scheme name part is not included)TableFormatException - if the format of the specification
is syntactically incorrect
(will typically provoke an error
containing the schemeUsage string)java.io.IOException - if there is some other error in creating
the table