Class MariaDBTable
java.lang.Object
io.github.mrtesz.teszcore.db.table.mariadb.MariaDBTable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddBoolean(@NotNull String name) addBoolean(@NotNull String name, boolean def) Add a column to the tableaddDateNow(@NotNull String name) Add an indexaddLongText(@NotNull String name) addLongText(@NotNull String name, String def) addMediumText(@NotNull String name) addMediumText(@NotNull String name, String def) addTimestamp(@NotNull String name) addTimestampNow(@NotNull String name) Add a unique key constellationaddVarchar(@NotNull String name, int length) addVarchar(@NotNull String name, int length, String def) copy()Copy the executing classCreate the SQL queries to alter columns of the tableCreate the SQL queries to alter indexes of the tableCreate the SQL query to create the tablesetPrimaryKeys(String... keys) Set the Primary Keys of the Table
-
Constructor Details
-
MariaDBTable
Create aMariaDBTable- Parameters:
name- Name of the table
-
-
Method Details
-
addColumn
-
setPrimaryKeys
Description copied from interface:DBTableSet the Primary Keys of the Table- Specified by:
setPrimaryKeysin interfaceDBTable- Parameters:
keys- The keys, wich should be turned into Primarys
-
addUnique
Description copied from interface:DBTableAdd a unique key constellation -
addInt
-
addInt
-
addLong
-
addLong
-
addBigInt
-
addBigInt
-
addDouble
-
addDouble
-
addFloat
-
addFloat
-
addText
-
addText
-
addVarchar
-
addVarchar
-
addMediumText
-
addMediumText
-
addLongText
-
addLongText
-
addBoolean
-
addBoolean
-
addDate
-
addDateNow
-
addTimestamp
-
addTimestampNow
-
addIndex
-
getCreateCommand
Description copied from interface:DBTableCreate the SQL query to create the table- Specified by:
getCreateCommandin interfaceDBTable- Returns:
- the SQL query to create the table
-
getAlterColumnsCommands
Description copied from interface:DBTableCreate the SQL queries to alter columns of the table- Specified by:
getAlterColumnsCommandsin interfaceDBTable- Returns:
- the SQL queries to alter the columns of the table mapped by invalid input: '<'columnName, command>
-
getAlterIndexCommands
Description copied from interface:DBTableCreate the SQL queries to alter indexes of the table- Specified by:
getAlterIndexCommandsin interfaceDBTable- Returns:
- the SQL queries to alter the indexes of the table mapped by invalid input: '<'indexName, command>
-
copy
Description copied from interface:CopyableCopy the executing class
-