Enum RDBDocumentStoreDB

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<RDBDocumentStoreDB>

    public enum RDBDocumentStoreDB
    extends java.lang.Enum<RDBDocumentStoreDB>
    Defines variation in the capabilities of different RDBs.
    • 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​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • checkVersion

        public java.lang.String checkVersion​(java.sql.DatabaseMetaData md)
                                      throws java.sql.SQLException
        Check the database brand and version
        Throws:
        java.sql.SQLException
      • getCurrentTimeStampInSecondsSyntax

        public java.lang.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​(java.lang.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 java.lang.String getInitializationStatement()
        Query for any required initialization of the DB.
        Returns:
        the DB initialization SQL string
      • getTableCreationStatement

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

        public java.util.List<java.lang.String> getIndexCreationStatements​(java.lang.String tableName,
                                                                           int level)
      • getAdditionalDiagnostics

        @NotNull
        public @NotNull java.util.Map<java.lang.String,​java.lang.String> getAdditionalDiagnostics​(RDBConnectionHandler ch,
                                                                                                        java.lang.String tableName)
      • getSmallintType

        public java.lang.String getSmallintType()
      • getBigintType

        public java.lang.String getBigintType()
      • makeIndexConditionalForColumn

        public java.lang.String makeIndexConditionalForColumn​(java.lang.String columnName)
      • getModifiedIndexStatement

        public java.lang.String getModifiedIndexStatement​(java.lang.String tableName)
      • getTableUpgradeStatements

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

        protected java.lang.String extractFields​(java.sql.ResultSet rs,
                                                 java.lang.String indexStats)
                                          throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<RDBDocumentStoreDB>
      • getValue

        @NotNull
        public static @NotNull RDBDocumentStoreDB getValue​(java.lang.String desc)