Enum RDBDocumentStoreDB

    • Method Detail

      • values

        public static RDBDocumentStoreDB[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RDBDocumentStoreDB c : RDBDocumentStoreDB.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RDBDocumentStoreDB valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getCurrentTimeStampInSecondsSyntax

        public String getCurrentTimeStampInSecondsSyntax()
        Query syntax for current time in ms since the epoch
        Returns:
        the query syntax or empty string when no such syntax is available
      • getConcatQuery

        public RDBJDBCTools.PreparedStatementComponent getConcatQuery​(String appendData,
                                                                      int dataOctetLimit)
        Returns the CONCAT function or its equivalent function or sub-query. Note that the function MUST NOT cause a truncated value to be written!
        Parameters:
        appendData - string to be inserted
        dataOctetLimit - expected capacity of data column
      • getInitializationStatement

        @NotNull
        public @NotNull String getInitializationStatement()
        Query for any required initialization of the DB.
        Returns:
        the DB initialization SQL string
      • getTableCreationStatement

        public String getTableCreationStatement​(String tableName,
                                                int schema)
        Table creation statement string
        Parameters:
        tableName -
        Returns:
        the table creation string
      • getIndexCreationStatements

        public List<String> getIndexCreationStatements​(String tableName,
                                                       int level)
      • getSmallintType

        public String getSmallintType()
      • getBigintType

        public String getBigintType()
      • makeIndexConditionalForColumn

        public String makeIndexConditionalForColumn​(String columnName)
      • getModifiedIndexStatement

        public String getModifiedIndexStatement​(String tableName)
      • getTableUpgradeStatements

        public List<String> getTableUpgradeStatements​(String tableName,
                                                      int level)
        Statements needed to upgrade the DB
        Returns:
        the table modification string