java.lang.Object
fr.multimc.api.commons.data.sources.database.models.Query
fr.multimc.api.commons.data.sources.database.queries.InsertQuery

public class InsertQuery extends Query
  • Constructor Details

    • InsertQuery

      public InsertQuery(@NotNull @NotNull String tableName, @NotNull @NotNull Map<Field,Object> values)
  • Method Details

    • getQuery

      public String getQuery(@NotNull @NotNull DatabaseType databaseType)
      Description copied from class: Query
      Get a SQL query from an object that extends Query
      Specified by:
      getQuery in class Query
      Parameters:
      databaseType - Database type, can be SQLITE or MYSQL
      Returns:
      String that represent a SQL query
    • execute

      public QueryResult execute(@NotNull @NotNull Database database)
      Description copied from class: Query
      Execute a query
      Specified by:
      execute in class Query
      Parameters:
      database - Database instance
      Returns:
      QueryResult