public interface Meta
Also holds other abstract methods that are not related to metadata that each provider must implement. This is not ideal.
| Modifier and Type | Interface and Description |
|---|---|
static class |
Meta.ConnectionHandle
Connection handle.
|
static interface |
Meta.ConnectionProperties
A pojo containing various client-settable
Connection properties. |
static class |
Meta.CursorFactory
|
static class |
Meta.ExecuteResult
Response from execute.
|
static interface |
Meta.Factory
Factory to create instances of
Meta. |
static class |
Meta.Frame
A collection of rows.
|
static class |
Meta.MetaResultSet
Meta data from which a result set can be constructed.
|
static class |
Meta.Pat
Wrapper to remind API calls that a parameter is a pattern (allows '%' and
'_' wildcards, per the JDBC spec) rather than a string to be matched
exactly.
|
static interface |
Meta.PrepareCallback
API to put a result set into a statement, being careful to enforce
thread-safety and not to overwrite existing open result sets.
|
static class |
Meta.Signature
Result of preparing a statement.
|
static class |
Meta.StatementHandle
Statement handle.
|
static class |
Meta.Style
How logical fields are represented in the objects returned by the
iterator.
|
String getSqlKeywords()
String getNumericFunctions()
String getStringFunctions()
String getSystemFunctions()
String getTimeDateFunctions()
Meta.MetaResultSet getTables(String catalog, Meta.Pat schemaPattern, Meta.Pat tableNamePattern, List<String> typeList)
Meta.MetaResultSet getColumns(String catalog, Meta.Pat schemaPattern, Meta.Pat tableNamePattern, Meta.Pat columnNamePattern)
Meta.MetaResultSet getSchemas(String catalog, Meta.Pat schemaPattern)
Meta.MetaResultSet getCatalogs()
Meta.MetaResultSet getTableTypes()
Meta.MetaResultSet getProcedures(String catalog, Meta.Pat schemaPattern, Meta.Pat procedureNamePattern)
Meta.MetaResultSet getProcedureColumns(String catalog, Meta.Pat schemaPattern, Meta.Pat procedureNamePattern, Meta.Pat columnNamePattern)
Meta.MetaResultSet getColumnPrivileges(String catalog, String schema, String table, Meta.Pat columnNamePattern)
Meta.MetaResultSet getTablePrivileges(String catalog, Meta.Pat schemaPattern, Meta.Pat tableNamePattern)
Meta.MetaResultSet getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable)
Meta.MetaResultSet getVersionColumns(String catalog, String schema, String table)
Meta.MetaResultSet getPrimaryKeys(String catalog, String schema, String table)
Meta.MetaResultSet getImportedKeys(String catalog, String schema, String table)
Meta.MetaResultSet getExportedKeys(String catalog, String schema, String table)
Meta.MetaResultSet getCrossReference(String parentCatalog, String parentSchema, String parentTable, String foreignCatalog, String foreignSchema, String foreignTable)
Meta.MetaResultSet getTypeInfo()
Meta.MetaResultSet getIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate)
Meta.MetaResultSet getUDTs(String catalog, Meta.Pat schemaPattern, Meta.Pat typeNamePattern, int[] types)
Meta.MetaResultSet getSuperTypes(String catalog, Meta.Pat schemaPattern, Meta.Pat typeNamePattern)
Meta.MetaResultSet getSuperTables(String catalog, Meta.Pat schemaPattern, Meta.Pat tableNamePattern)
Meta.MetaResultSet getAttributes(String catalog, Meta.Pat schemaPattern, Meta.Pat typeNamePattern, Meta.Pat attributeNamePattern)
Meta.MetaResultSet getClientInfoProperties()
Meta.MetaResultSet getFunctions(String catalog, Meta.Pat schemaPattern, Meta.Pat functionNamePattern)
Meta.MetaResultSet getFunctionColumns(String catalog, Meta.Pat schemaPattern, Meta.Pat functionNamePattern, Meta.Pat columnNamePattern)
Meta.MetaResultSet getPseudoColumns(String catalog, Meta.Pat schemaPattern, Meta.Pat tableNamePattern, Meta.Pat columnNamePattern)
Iterable<Object> createIterable(Meta.StatementHandle handle, Meta.Signature signature, List<Object> parameterValues, Meta.Frame firstFrame)
The default implementation just returns iterable, which it
requires to be not null; derived classes may instead choose to execute the
relational expression in signature.
Meta.StatementHandle prepare(Meta.ConnectionHandle ch, String sql, int maxRowCount)
ch - Connection handlesql - SQL querymaxRowCount - Negative for no limit (different meaning than JDBC)Meta.ExecuteResult prepareAndExecute(Meta.ConnectionHandle ch, String sql, int maxRowCount, Meta.PrepareCallback callback)
ch - Connection handlesql - SQL querymaxRowCount - Negative for no limit (different meaning than JDBC)callback - Callback to lock, clear and assign cursorMeta.Frame fetch(Meta.StatementHandle h, List<Object> parameterValues, int offset, int fetchMaxRowCount)
The frame describes whether there may be another frame. If there is not another frame, the current iteration is done when we have finished the rows in the this frame.
The default implementation always returns null.
h - Statement handleparameterValues - A list of parameter values, if statement is to be
executed; otherwise nulloffset - Zero-based offset of first row in the requested framefetchMaxRowCount - Maximum number of rows to return; negative means
no limitMeta.StatementHandle createStatement(Meta.ConnectionHandle ch)
ch - Connection handlevoid closeStatement(Meta.StatementHandle h)
void closeConnection(Meta.ConnectionHandle ch)
Meta.ConnectionProperties connectionSync(Meta.ConnectionHandle ch, Meta.ConnectionProperties connProps)
Note: this interface is considered "experimental" and may undergo further changes as this
functionality is extended to other aspects of state management for
Connection, Statement, and ResultSet.
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.