|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.iapi.db.PropertyInfo
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.
IBM Corp. reserves the right to change, rename, or remove this interface at any time.
Constructor Summary | |
private |
PropertyInfo()
Internal use only. |
Method Summary | |
private static java.util.Properties |
getConglomerateProperties(java.lang.String schemaName,
java.lang.String conglomerateName,
boolean isIndex)
Get the Properties associated with a given conglomerate |
static java.lang.String |
getDatabaseProperty(java.lang.String key)
Fetch the value of a property of the database on the current connection. |
static java.util.Properties |
getIndexProperties(java.lang.String schemaName,
java.lang.String indexName)
Get the Properties associated with a given index. |
static java.util.Properties |
getTableProperties(java.lang.String schemaName,
java.lang.String tableName)
Get the Properties associated with a given table. |
static void |
setDatabaseProperty(java.lang.String key,
java.lang.String value)
Set or delete the value of a property of the database on the current connection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
private PropertyInfo()
Method Detail |
public static java.util.Properties getTableProperties(java.lang.String schemaName, java.lang.String tableName) throws java.sql.SQLException
schemaName
- The name of the schema that the table is in.tableName
- The name of the table.
java.sql.SQLException
- on errorpublic static java.util.Properties getIndexProperties(java.lang.String schemaName, java.lang.String indexName) throws java.sql.SQLException
schemaName
- The name of the schema that the index is in.indexName
- The name of the index.
java.sql.SQLException
- on errorpublic static java.lang.String getDatabaseProperty(java.lang.String key) throws java.sql.SQLException
key
- the property key
java.sql.SQLException
- on errorpublic static void setDatabaseProperty(java.lang.String key, java.lang.String value) throws java.sql.SQLException
key
- the property keyvalue
- the new value, if null the property is deleted.
java.sql.SQLException
- on errorprivate static java.util.Properties getConglomerateProperties(java.lang.String schemaName, java.lang.String conglomerateName, boolean isIndex) throws java.sql.SQLException
schemaName
- The name of the schema that the conglomerate is in.conglomerateName
- The name of the conglomerate.
java.sql.SQLException
- on error
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |