Package org.teiid.deployers
Class PgCatalogMetadataStore.FunctionMethods
- java.lang.Object
-
- org.teiid.deployers.PgCatalogMetadataStore.FunctionMethods
-
- Enclosing class:
- PgCatalogMetadataStore
public static class PgCatalogMetadataStore.FunctionMethods extends Object
-
-
Constructor Summary
Constructors Constructor Description FunctionMethods()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringarray_to_string(org.teiid.CommandContext cc, Object[] array, String delim)static org.teiid.core.types.BlobTypeasBinary2(org.teiid.core.types.GeometryType geom, String encoding)static org.teiid.core.types.BlobTypeasBinary3(org.teiid.core.types.GeographyType geog, String encoding)static ObjectasPGVector(Object obj)static StringcolDescription(org.teiid.CommandContext cc, int oid, int column_number)static String[]current_schemas(org.teiid.CommandContext cc, boolean include_implicit)static StringcurrentSchema(org.teiid.CommandContext cc)static org.teiid.core.types.ClobTypeencode(org.teiid.core.types.BlobType value, String encoding)static StringformatType(org.teiid.CommandContext cc, Integer oid, Integer typmod)static StringgetExpr2(String text, Integer oid)static StringgetExpr3(String text, Integer oid, Boolean prettyPrint)static IntegergetOid(org.teiid.CommandContext cc, String uid)static StringgetUserById(int user)static BooleanhasPerm(Integer oid, String permission)static booleanhasSchemaPrivilege(org.teiid.CommandContext cc, String name, String privilege)static booleanhasTablePrivilege(org.teiid.CommandContext cc, String name, String privilege)static StringobjDescription(org.teiid.CommandContext cc, int oid)static StringobjDescription2(org.teiid.CommandContext cc, int oid, String type)static Stringpg_client_encoding(org.teiid.CommandContext cc)static Stringpg_encoding_to_char(int code)static Stringpg_get_constraintdef(org.teiid.CommandContext cc, int oid, boolean pretty)static Stringpg_get_indexdef(org.teiid.CommandContext cc, int index_oid, short column_no, boolean pretty_bool)static booleanpg_table_is_visible(int oid)static booleanpg_type_is_visible(int oid)static booleanpgHasRole(org.teiid.CommandContext cc, int userOid, String privilege)static StringpostgisGeosVersion()static StringpostgisLibVersion()static StringpostgisProjVersion()static StringpostgisVersion()static IntegerregClass(org.teiid.CommandContext cc, String name)static Stringversion()
-
-
-
Method Detail
-
encode
public static org.teiid.core.types.ClobType encode(org.teiid.core.types.BlobType value, String encoding) throws SQLException, IOException- Throws:
SQLExceptionIOException
-
postgisLibVersion
public static String postgisLibVersion()
-
postgisVersion
public static String postgisVersion()
-
postgisGeosVersion
public static String postgisGeosVersion()
-
postgisProjVersion
public static String postgisProjVersion()
-
pg_client_encoding
public static String pg_client_encoding(org.teiid.CommandContext cc)
-
regClass
public static Integer regClass(org.teiid.CommandContext cc, String name) throws org.teiid.core.TeiidComponentException, org.teiid.api.exception.query.QueryResolverException, org.teiid.query.parser.ParseException
- Throws:
org.teiid.core.TeiidComponentExceptionorg.teiid.api.exception.query.QueryResolverExceptionorg.teiid.query.parser.ParseException
-
objDescription
public static String objDescription(org.teiid.CommandContext cc, int oid)
-
objDescription2
public static String objDescription2(org.teiid.CommandContext cc, int oid, String type)
-
getUserById
public static String getUserById(int user)
-
hasSchemaPrivilege
public static boolean hasSchemaPrivilege(org.teiid.CommandContext cc, String name, String privilege)
-
hasTablePrivilege
public static boolean hasTablePrivilege(org.teiid.CommandContext cc, String name, String privilege)
-
currentSchema
public static String currentSchema(org.teiid.CommandContext cc)
-
formatType
public static String formatType(org.teiid.CommandContext cc, Integer oid, Integer typmod) throws SQLException
- Throws:
SQLException
-
colDescription
public static String colDescription(org.teiid.CommandContext cc, int oid, int column_number)
-
pgHasRole
public static boolean pgHasRole(org.teiid.CommandContext cc, int userOid, String privilege)
-
asBinary2
public static org.teiid.core.types.BlobType asBinary2(org.teiid.core.types.GeometryType geom, String encoding) throws org.teiid.api.exception.query.FunctionExecutionException- Throws:
org.teiid.api.exception.query.FunctionExecutionException
-
asBinary3
public static org.teiid.core.types.BlobType asBinary3(org.teiid.core.types.GeographyType geog, String encoding) throws org.teiid.api.exception.query.FunctionExecutionException- Throws:
org.teiid.api.exception.query.FunctionExecutionException
-
pg_table_is_visible
public static boolean pg_table_is_visible(int oid) throws org.teiid.api.exception.query.FunctionExecutionException- Throws:
org.teiid.api.exception.query.FunctionExecutionException
-
pg_get_constraintdef
public static String pg_get_constraintdef(org.teiid.CommandContext cc, int oid, boolean pretty) throws SQLException
- Throws:
SQLException
-
pg_type_is_visible
public static boolean pg_type_is_visible(int oid) throws org.teiid.api.exception.query.FunctionExecutionException- Throws:
org.teiid.api.exception.query.FunctionExecutionException
-
version
public static String version()
-
pg_encoding_to_char
public static String pg_encoding_to_char(int code)
-
current_schemas
public static String[] current_schemas(org.teiid.CommandContext cc, boolean include_implicit)
-
pg_get_indexdef
public static String pg_get_indexdef(org.teiid.CommandContext cc, int index_oid, short column_no, boolean pretty_bool) throws org.teiid.jdbc.TeiidSQLException, SQLException
- Throws:
org.teiid.jdbc.TeiidSQLExceptionSQLException
-
-