| java.lang.Object org.glasser.sql.TableInfo
TableInfo | public class TableInfo (Code) | | |
Method Summary | |
public String | debugString() | public Column | getColumn(String columnName) | protected synchronized HashMap | getColumnMap() | public Column[] | getColumns() | public ForeignKey[] | getExportedKeys() | public ForeignKey[] | getForeignKeys() | public String | getQualifiedTableName(char openQuote, char closeQuote) Returns the tableName prefixed by the tableSchem field and a dot, if the tableSchem field
contains non-whitespace characters. | public String | getQualifiedTableName() Calls getQualifiedTableName(char, char) using double quotation marks as
the openQuote and closeQuote. | public String | getRemarks() | public String | getTableCat() | public String | getTableName() | public String | getTableSchem() | public String | getTableType() | public String | getTypeCat() | public String | getTypeName() | public String | getTypeSchem() | public String | maybeQuoteTableName(char openQuote, char closeQuote) Returns the tableName enclosed in the provided "quote" characters, if
the tableName contains a space or a hyphen, otherwise returns the tableName as-is. | public String | maybeQuoteTableSchem(char openQuote, char closeQuote) Returns the tableSchem field enclosed in the provided "quote" characters, if
the tableName contains a space or a hyphen, otherwise returns the tableSchem as-is. | public void | setColumns(Column[] columns) | public void | setExportedKeys(ForeignKey[] exportedKeys) | public void | setForeignKeys(ForeignKey[] foreignKeys) | public void | setRemarks(String remarks) | public void | setTableCat(String tableCat) | public void | setTableName(String tableName) | public void | setTableSchem(String tableSchem) | public void | setTableType(String tableType) | public void | setTypeCat(String typeCat) | public void | setTypeName(String typeName) | public void | setTypeSchem(String typeSchem) | public String | toString() | public String | trimToNull(String s) Trims whitespace, and returns null if the String is zero-length
or all whitespace. |
getQualifiedTableName | public String getQualifiedTableName(char openQuote, char closeQuote)(Code) | | Returns the tableName prefixed by the tableSchem field and a dot, if the tableSchem field
contains non-whitespace characters. If the tableSchem field is null or whitespace, then only
the tableName is returned. Either the tableSchem or tableName may be enclosed in
the provided quoting characters, if they contain spaces or hyphens.
|
getQualifiedTableName | public String getQualifiedTableName()(Code) | | Calls getQualifiedTableName(char, char) using double quotation marks as
the openQuote and closeQuote.
|
maybeQuoteTableName | public String maybeQuoteTableName(char openQuote, char closeQuote)(Code) | | Returns the tableName enclosed in the provided "quote" characters, if
the tableName contains a space or a hyphen, otherwise returns the tableName as-is.
Normally, the openQuote and closeQuote args will both be regular double quotation
marks ("), however, Microsoft databases use square brackets ([ and ]).
|
maybeQuoteTableSchem | public String maybeQuoteTableSchem(char openQuote, char closeQuote)(Code) | | Returns the tableSchem field enclosed in the provided "quote" characters, if
the tableName contains a space or a hyphen, otherwise returns the tableSchem as-is.
Normally, the openQuote and closeQuote args will both be regular double quotation
marks ("), however, Microsoft databases use square brackets ([ and ]).
|
setTableName | public void setTableName(String tableName)(Code) | | |
setTableSchem | public void setTableSchem(String tableSchem)(Code) | | |
setTableType | public void setTableType(String tableType)(Code) | | |
setTypeSchem | public void setTypeSchem(String typeSchem)(Code) | | |
trimToNull | public String trimToNull(String s)(Code) | | Trims whitespace, and returns null if the String is zero-length
or all whitespace.
|
|
|