public class Metadata extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Metadata.Types |
| Modifier and Type | Field and Description |
|---|---|
static String |
SYSTEM_SUBQUERY |
| Constructor and Description |
|---|
Metadata(Connection _conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
calculatedField(String tableName,
String columnName) |
void |
columnDef(String tableName,
String columnName,
String def) |
void |
createMetadata() |
void |
dropTable(String tableName) |
String |
getColumnName(String escapedTableName,
String escapedColumnName) |
List<String> |
getColumnNames(String tableName) |
String |
getEscapedColumnName(String tableName,
String columnName) |
String |
getEscapedTableName(String tableName) |
Integer |
getTableId(String escapedName) |
String |
getTableName(String escapedName) |
boolean |
isAutoIncrement(String tableName,
String columnName) |
boolean |
isCurrency(String tableName,
String columnName) |
void |
loadProp() |
void |
newColumn(String name,
String escaped,
String originalType,
Integer idTable) |
Integer |
newTable(String name,
String escaped,
Metadata.Types type) |
void |
rename(String oldTableName,
String newTableName,
String newEscapedTableName) |
public static final String SYSTEM_SUBQUERY
public Metadata(Connection _conn) throws SQLException
SQLExceptionpublic void createMetadata()
throws SQLException
SQLExceptionpublic void loadProp()
throws SQLException
SQLExceptionpublic Integer newTable(String name, String escaped, Metadata.Types type) throws SQLException
SQLExceptionpublic void newColumn(String name, String escaped, String originalType, Integer idTable) throws SQLException
SQLExceptionpublic List<String> getColumnNames(String tableName) throws SQLException
SQLExceptionpublic String getColumnName(String escapedTableName, String escapedColumnName) throws SQLException
SQLExceptionpublic String getEscapedColumnName(String tableName, String columnName) throws SQLException
SQLExceptionpublic String getEscapedTableName(String tableName) throws SQLException
SQLExceptionpublic boolean isAutoIncrement(String tableName, String columnName) throws SQLException
SQLExceptionpublic boolean isCurrency(String tableName, String columnName) throws SQLException
SQLExceptionpublic Integer getTableId(String escapedName) throws SQLException
SQLExceptionpublic String getTableName(String escapedName) throws SQLException
SQLExceptionpublic void dropTable(String tableName) throws SQLException
SQLExceptionpublic void columnDef(String tableName, String columnName, String def) throws SQLException
SQLExceptionpublic void calculatedField(String tableName, String columnName) throws SQLException
SQLExceptionpublic void rename(String oldTableName, String newTableName, String newEscapedTableName) throws SQLException
SQLExceptionCopyright © 2012–2019 UCanAccess. All rights reserved.