Enum DbStatementType

    • Enum Constant Detail

      • QUERY

        public static final DbStatementType QUERY
        Query is statement that returns zero or more results.
      • GET

        public static final DbStatementType GET
        Get is a statement that returns zero or one results.
      • INSERT

        public static final DbStatementType INSERT
        Insert is a statements that creates new records.
      • UPDATE

        public static final DbStatementType UPDATE
        Update is a statement that updates existing records.
      • DELETE

        public static final DbStatementType DELETE
        Delete is a statement that deletes existing records.
      • COMMAND

        public static final DbStatementType COMMAND
        Database command not related to a specific collection.
    • Method Detail

      • values

        public static DbStatementType[] 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 (DbStatementType c : DbStatementType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DbStatementType 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
      • prefix

        public String prefix()
        Short prefix of this type. This is used when generating a name for an unnamed statement.
        Returns:
        short prefix defining this type (should be very short)