|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derbyDemo.vtis.core.VTIHelper
public abstract class VTIHelper
VTI helper methods.
| Field Summary | |
|---|---|
private static boolean |
DEBUG
|
| Constructor Summary | |
|---|---|
VTIHelper()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
doubleQuote(java.lang.String name)
Double-quote a name. |
static void |
dropObject(java.lang.String objectType,
java.lang.String objectName,
boolean objectIfMissing)
Execute a DDL statement to drop an object if it exists. |
static void |
executeDDL(java.lang.String ddl)
Execute a DDL statement |
static java.sql.Connection |
getLocalConnection()
Get the connection to the local database. |
private static java.lang.String |
mapType(java.lang.Class javaType)
Map a Java type to a SQL type. |
static void |
print(java.lang.String text)
Debug helper method to print a diagnostic. |
static void |
registerVTI(java.lang.reflect.Method method,
java.lang.String[] columnNames,
java.lang.String[] columnTypes,
boolean readsSqlData)
Register a VTI. |
static void |
unregisterVTI(java.lang.reflect.Method method)
Unregister a VTI. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final boolean DEBUG
| Constructor Detail |
|---|
public VTIHelper()
| Method Detail |
|---|
public static void unregisterVTI(java.lang.reflect.Method method)
throws java.sql.SQLException
Unregister a VTI.
java.sql.SQLException
public static void registerVTI(java.lang.reflect.Method method,
java.lang.String[] columnNames,
java.lang.String[] columnTypes,
boolean readsSqlData)
throws java.lang.Exception
Register a VTI.
java.lang.Exception
public static void dropObject(java.lang.String objectType,
java.lang.String objectName,
boolean objectIfMissing)
throws java.sql.SQLException
Execute a DDL statement to drop an object if it exists. Swallow exceptions.
java.sql.SQLException
public static void executeDDL(java.lang.String ddl)
throws java.sql.SQLException
Execute a DDL statement
java.sql.SQLExceptionpublic static java.lang.String doubleQuote(java.lang.String name)
Double-quote a name.
public static void print(java.lang.String text)
Debug helper method to print a diagnostic.
public static java.sql.Connection getLocalConnection()
throws java.sql.SQLException
Get the connection to the local database.
java.sql.SQLException
private static java.lang.String mapType(java.lang.Class javaType)
throws java.lang.Exception
Map a Java type to a SQL type.
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||