public class DbInt extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DbLoc |
static Connection |
pCon |
| Constructor and Description |
|---|
DbInt() |
| Modifier and Type | Method and Description |
|---|---|
static Boolean |
createDb(String DB)
Creates a database with specified name
|
static void |
createSetAndTables() |
static void |
deleteDb(String DB) |
static Iterable<String> |
getAllCustomers() |
static String |
getCategoryDate(String catName,
String year) |
static String |
getCustInf(String yearL,
String name,
String info)
Gets the specified Utilities.Customer info
|
static String |
getCustInf(String yearL,
String name,
String info,
String defaultVal)
Gets the specified Utilities.Customer info
|
static PreparedStatement |
getPrep(String Db,
String Command)
Creates a Prepared statemtn from provided Parameters.
|
static Iterable<String> |
getYears() |
public static Connection pCon
public static String DbLoc
public static String getCustInf(String yearL, String name, String info)
yearL - The year to searchname - The customer nameinfo - The info to search forpublic static String getCustInf(String yearL, String name, String info, String defaultVal)
yearL - The year to searchname - The customer nameinfo - The info to search fordefaultVal - The default value to return if there is no datapublic static PreparedStatement getPrep(String Db, String Command) throws SQLException
Db - The database to create the statement forCommand - The Base command for the statementSQLExceptionpublic static Boolean createDb(String DB)
DB - The name of the DB to createpublic static void createSetAndTables()
public static void deleteDb(String DB)
Copyright © 2014–2018. All rights reserved.