| java.lang.Object org.apache.derby.iapi.db.PropertyInfo
PropertyInfo | final public class PropertyInfo (Code) | | PropertyInfo is a class with static methods that retrieve the properties
associated with a table or index and set and retrieve properties associated
with a database.
This class can only be used within an SQL-J statement, a Java procedure or a server side Java method.
This class can be accessed using the class alias PROPERTYINFO in SQL-J statements.
|
Method Summary | |
public static String | getDatabaseProperty(String key) Fetch the value of a property of the database on the current connection. | public static Properties | getIndexProperties(String schemaName, String indexName) Get the Properties associated with a given index.
Parameters: schemaName - The name of the schema that the index is in. Parameters: indexName - The name of the index. | public static Properties | getTableProperties(String schemaName, String tableName) Get the Properties associated with a given table.
Parameters: schemaName - The name of the schema that the table is in. Parameters: tableName - The name of the table. | public static void | setDatabaseProperty(String key, String value) Set or delete the value of a property of the database on the current connection. |
getDatabaseProperty | public static String getDatabaseProperty(String key) throws SQLException(Code) | | Fetch the value of a property of the database on the current connection.
Parameters: key - the property key the value of the property or null if the property is not set. exception: SQLException - on error |
getIndexProperties | public static Properties getIndexProperties(String schemaName, String indexName) throws SQLException(Code) | | Get the Properties associated with a given index.
Parameters: schemaName - The name of the schema that the index is in. Parameters: indexName - The name of the index. Properties The Properties associated with the specified index.(An empty Properties is returned if the index does not exist.) exception: SQLException - on error |
getTableProperties | public static Properties getTableProperties(String schemaName, String tableName) throws SQLException(Code) | | Get the Properties associated with a given table.
Parameters: schemaName - The name of the schema that the table is in. Parameters: tableName - The name of the table. Properties The Properties associated with the specified table.(An empty Properties is returned if the table does not exist.) exception: SQLException - on error |
setDatabaseProperty | public static void setDatabaseProperty(String key, String value) throws SQLException(Code) | | Set or delete the value of a property of the database on the current connection.
Parameters: key - the property key Parameters: value - the new value, if null the property is deleted. exception: SQLException - on error |
|
|