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
-
-
-
Method Detail
-
encode
public static ClobType encode(BlobType value, String encoding) throws SQLException, IOException
- Throws:
SQLException
IOException
-
postgisLibVersion
public static String postgisLibVersion()
-
postgisVersion
public static String postgisVersion()
-
postgisGeosVersion
public static String postgisGeosVersion()
-
postgisProjVersion
public static String postgisProjVersion()
-
getOid
public static Integer getOid(CommandContext cc, String uid)
-
pg_client_encoding
public static String pg_client_encoding(CommandContext cc)
-
regClass
public static Integer regClass(CommandContext cc, String name) throws TeiidComponentException, QueryResolverException, ParseException
-
objDescription
public static String objDescription(CommandContext cc, int oid)
-
objDescription2
public static String objDescription2(CommandContext cc, int oid, String type)
-
getUserById
public static String getUserById(int user)
-
hasSchemaPrivilege
public static boolean hasSchemaPrivilege(CommandContext cc, String name, String privilege)
-
hasTablePrivilege
public static boolean hasTablePrivilege(CommandContext cc, String name, String privilege)
-
currentSchema
public static String currentSchema(CommandContext cc)
-
formatType
public static String formatType(CommandContext cc, Integer oid, Integer typmod) throws SQLException
- Throws:
SQLException
-
colDescription
public static String colDescription(CommandContext cc, int oid, int column_number)
-
pgHasRole
public static boolean pgHasRole(CommandContext cc, int userOid, String privilege)
-
asBinary2
public static BlobType asBinary2(GeometryType geom, String encoding) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
asBinary3
public static BlobType asBinary3(GeographyType geog, String encoding) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
pg_table_is_visible
public static boolean pg_table_is_visible(int oid) throws FunctionExecutionException
- Throws:
FunctionExecutionException
-
pg_get_constraintdef
public static String pg_get_constraintdef(CommandContext cc, int oid, boolean pretty) throws SQLException
- Throws:
SQLException
-
pg_type_is_visible
public static boolean pg_type_is_visible(int oid) throws FunctionExecutionException
- Throws:
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(CommandContext cc, boolean include_implicit)
-
pg_get_indexdef
public static String pg_get_indexdef(CommandContext cc, int index_oid, short column_no, boolean pretty_bool) throws TeiidSQLException, SQLException
- Throws:
TeiidSQLException
SQLException
-
array_to_string
public static String array_to_string(CommandContext cc, Object[] array, String delim)
-
-