| Package | Description |
|---|---|
| net.lapismc.datastore |
| Modifier and Type | Method and Description |
|---|---|
void |
MySQL.addData(Table table,
String values) |
abstract void |
DataStore.addData(Table table,
String values)
Add data to a table, this may result in duplicate values
|
void |
MySQL.addData(Table table,
String primaryKey,
String primaryValue,
String values) |
abstract void |
DataStore.addData(Table table,
String primaryKey,
String primaryValue,
String values)
Add or update data in a table, if used properly this will ensure that there are no duplicate
rows and allows mass value updating
|
protected void |
MySQL.dropTable(Table table) |
protected abstract void |
DataStore.dropTable(Table table)
Drop an entire table
|
Boolean |
MySQL.getBoolean(Table table,
String primaryKey,
String value,
String key) |
abstract Boolean |
DataStore.getBoolean(Table table,
String primaryKey,
String value,
String key)
Get a value of the type Boolean
|
List<String> |
MySQL.getEntireColumn(Table table,
String key) |
abstract List<String> |
DataStore.getEntireColumn(Table table,
String key)
Get all the values in a column of a table
|
List<String> |
MySQL.getEntireRow(Table table,
String primaryKey,
String value) |
abstract List<String> |
DataStore.getEntireRow(Table table,
String primaryKey,
String value)
Returns a list of String that contains all the values in a row that matches the primary key and value
|
List<String> |
MySQL.getEntireTable(Table table) |
abstract List<String> |
DataStore.getEntireTable(Table table)
Get a list of all rows in a table, the values are separated with
DataStore.valueSeparator |
Long |
MySQL.getLong(Table table,
String primaryKey,
String value,
String key) |
abstract Long |
DataStore.getLong(Table table,
String primaryKey,
String value,
String key)
Get a value of the type Long
|
List<Long> |
MySQL.getLongList(Table table,
String primaryKey,
String value,
String key) |
abstract List<Long> |
DataStore.getLongList(Table table,
String primaryKey,
String value,
String key)
Get a list of long, use a non unique primary key and value to get multiple values returned
|
Object |
MySQL.getObject(Table table,
String primaryKey,
String value,
String key) |
abstract Object |
DataStore.getObject(Table table,
String primaryKey,
String value,
String key)
Get a value of the type Object
|
String |
MySQL.getString(Table table,
String primaryKey,
String value,
String key) |
abstract String |
DataStore.getString(Table table,
String primaryKey,
String value,
String key)
Get a value of the type String
|
List<String> |
MySQL.getStringList(Table table,
String primaryKey,
String value,
String key) |
abstract List<String> |
DataStore.getStringList(Table table,
String primaryKey,
String value,
String key)
Get a list of strings, use a non unique primary key and value to get multiple values returned
|
void |
MySQL.removeAllData(Table table) |
abstract void |
DataStore.removeAllData(Table table)
Removes all rows from the given table
|
void |
MySQL.removeData(Table table,
String key,
String value) |
abstract void |
DataStore.removeData(Table table,
String key,
String value)
Removes any row with value in the key column in table
|
void |
MySQL.setData(Table table,
String primaryKey,
String primaryValue,
String key,
String value) |
abstract void |
DataStore.setData(Table table,
String primaryKey,
String primaryValue,
String key,
String value)
Set a single value in a row
|
| Modifier and Type | Method and Description |
|---|---|
void |
DataStore.convertData(DataStore to,
List<Table> tables) |
Copyright © 2020. All rights reserved.