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
SQLException
public void createMetadata() throws SQLException
SQLException
public void loadProp() throws SQLException
SQLException
public Integer newTable(String name, String escaped, Metadata.Types type) throws SQLException
SQLException
public void newColumn(String name, String escaped, String originalType, Integer idTable) throws SQLException
SQLException
public List<String> getColumnNames(String tableName) throws SQLException
SQLException
public String getColumnName(String escapedTableName, String escapedColumnName) throws SQLException
SQLException
public String getEscapedColumnName(String tableName, String columnName) throws SQLException
SQLException
public String getEscapedTableName(String tableName) throws SQLException
SQLException
public boolean isAutoIncrement(String tableName, String columnName) throws SQLException
SQLException
public boolean isCurrency(String tableName, String columnName) throws SQLException
SQLException
public Integer getTableId(String escapedName) throws SQLException
SQLException
public String getTableName(String escapedName) throws SQLException
SQLException
public void dropTable(String tableName) throws SQLException
SQLException
public void columnDef(String tableName, String columnName, String def) throws SQLException
SQLException
public void calculatedField(String tableName, String columnName) throws SQLException
SQLException
public void rename(String oldTableName, String newTableName, String newEscapedTableName) throws SQLException
SQLException
Copyright © 2012–2018 UCanAccess. All rights reserved.