Class PgCatalogMetadataStore.FunctionMethods

    • Constructor Detail

      • FunctionMethods

        public FunctionMethods()
    • Method Detail

      • postgisLibVersion

        public static String postgisLibVersion()
      • postgisVersion

        public static String postgisVersion()
      • postgisGeosVersion

        public static String postgisGeosVersion()
      • postgisProjVersion

        public static String postgisProjVersion()
      • asPGVector

        public static Object asPGVector​(Object obj)
      • getOid

        public static Integer getOid​(org.teiid.CommandContext cc,
                                     String uid)
      • 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.TeiidComponentException
        org.teiid.api.exception.query.QueryResolverException
        org.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)
      • 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.TeiidSQLException
        SQLException
      • array_to_string

        public static String array_to_string​(org.teiid.CommandContext cc,
                                             Object[] array,
                                             String delim)