public class SQLRootElement extends SQLConnector
| Constructor and Description |
|---|
SQLRootElement(String user,
String pass,
String url,
String driver,
String prefix,
String tableID)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
SQLCollection |
createCollection(int elementID)
Create a new collection element table in SQL database
|
SQLMap |
createMap(int elementID)
Create a new map element table in SQL database
|
void |
createRootTableIfNotExists()
Creates the root table if it does not exist (including a possibly missing schema)
|
void |
drop()
Removes the root table if it exists (including its schema if it is empty afterwards)
|
void |
dropTable(int elementID)
Drop a root table
|
int |
getNextIdentifier()
Get next free identifier for another element
|
SQLMap |
retrieveRootMap()
Creates a new root map, if it does not exist.
|
getDriver, getSqlTableIDpublic SQLRootElement(String user, String pass, String url, String driver, String prefix, String tableID)
user - SQL user namepass - SQL passwordurl - SQL server URLdriver - SQL driverprefix - JDBC SQL driver prefixtableID - ID of table for this element in database. Every element needs a unique IDpublic void createRootTableIfNotExists()
public void drop()
public int getNextIdentifier()
public SQLMap createMap(int elementID)
public SQLCollection createCollection(int elementID)
public void dropTable(int elementID)
public SQLMap retrieveRootMap()
Copyright © 2021. All rights reserved.