Class Query
java.lang.Object
fr.multimc.api.commons.data.sources.database.models.Query
- Direct Known Subclasses:
CreateTableQuery
,InsertQuery
,SelectQuery
,UpdateQuery
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract QueryResult
Execute a queryprotected QueryResult
abstract String
getQuery
(@NotNull DatabaseType databaseType) Get a SQL query from an object that extends Query
-
Constructor Details
-
Query
public Query()
-
-
Method Details
-
getQuery
Get a SQL query from an object that extends Query- Parameters:
databaseType
- Database type, can be SQLITE or MYSQL- Returns:
- String that represent a SQL query
-
execute
Execute a query- Parameters:
database
- Database instance- Returns:
- QueryResult
-
execute
protected QueryResult execute(@NotNull @NotNull Database database, @NotNull @NotNull QueryType queryType)
-