|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object system.ViewPlug
public class ViewPlug
This class allows access to the system package for viewable classes. It is the systems plug into the CLI and GUI Package.
Field Summary | |
---|---|
private static Viewable |
application
|
private static Bol |
bol
|
Constructor Summary | |
---|---|
ViewPlug()
|
Method Summary | |
---|---|
static void |
changeDataType(java.lang.Object newDataType,
int position)
Changes the default data type for a particular column. |
static void |
clearData()
Clears the data from the bol object. |
static void |
deleteColumn(int col)
Deletes a column at the position selected. |
static void |
deleteRow(int row)
Deletes a record at the position selected. |
static java.util.ArrayList<java.lang.String> |
getCatalogs()
Gets the catalogs. |
static java.util.ArrayList<java.lang.Object> |
getClasses()
Gets the data classes of the Bol2. |
static java.util.ArrayList<java.lang.Object> |
getColumnNames()
|
static boolean |
getConnection(java.lang.String url,
int vendor,
java.lang.String user,
java.lang.String password)
Sends through the various parameters needed for the connection. |
static java.util.List<java.util.List<java.lang.Object>> |
getData()
Gets the data from the bol. |
static java.util.ArrayList<java.lang.Object> |
getDataType()
|
static boolean |
getDataTypeSingle(java.lang.Object value,
int position)
Get the data type of the string and checks whether it matches the previously set data type. |
static java.lang.String |
getErrors()
Gets the errors from the error list. |
static java.util.ArrayList<java.lang.String> |
getTables(java.lang.String catalog)
Gets the databases tables. |
static java.lang.String[] |
getVendors()
Gets the vendors of supplying DBMS. |
static void |
init(Viewable application)
Calls the viewable interface method. |
static void |
insertColumn(int pos)
Inserts a new column at the position selected. |
static void |
insertRow(int pos)
Inserts a new record at the position selected. |
static void |
modifyCell(int row,
int column,
java.lang.Object newContent)
Sets the value of an individual cell. |
static void |
modifyColumnName(int column,
java.lang.Object newText)
Changes the column name. |
static boolean |
populate(java.lang.String fileName,
Bol.IOType type)
Gets the data to be placed into the API. |
static boolean |
saveData(Bol.IOType type,
java.lang.String fileName)
|
static boolean |
sendDataToDBMS(java.lang.String database,
java.lang.String tableName)
Gets the database name and table name. |
static void |
setData(java.util.List<java.util.List<java.lang.Object>> data)
|
static void |
setDefaultColumnNames()
|
static void |
update()
Updates the bol. |
static java.util.ArrayList<java.lang.String> |
writeDataTypes(int colNumber)
Gets the list of available data types for a column. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static Bol bol
private static Viewable application
Constructor Detail |
---|
public ViewPlug()
Method Detail |
---|
public static void init(Viewable application)
application
- the applicationpublic static boolean populate(java.lang.String fileName, Bol.IOType type)
fileName
- the name of the file to be opened.type
- the type of file the data should be opened as.
public static void update()
public static void clearData()
public static java.util.List<java.util.List<java.lang.Object>> getData()
public static void setData(java.util.List<java.util.List<java.lang.Object>> data)
data
- public static java.util.ArrayList<java.lang.Object> getColumnNames()
public static boolean saveData(Bol.IOType type, java.lang.String fileName)
type
- fileName
-
public static void setDefaultColumnNames()
public static java.util.ArrayList<java.lang.Object> getDataType()
public static boolean getDataTypeSingle(java.lang.Object value, int position)
value
- - string sent from user to change for validation check.position
- - position of the data in the arraylist
public static java.lang.String[] getVendors()
public static boolean getConnection(java.lang.String url, int vendor, java.lang.String user, java.lang.String password)
url
- the url of the connection stream.vendor
- the vendor of the conection stream.user
- the username of the conection stream.password
- the password of the conection stream.
public static java.util.ArrayList<java.lang.String> getTables(java.lang.String catalog)
catalog
- the catalogs to get the tables.
public static java.util.ArrayList<java.lang.String> getCatalogs()
public static boolean sendDataToDBMS(java.lang.String database, java.lang.String tableName)
database
- the database name.tableName
- the database table.
public static java.util.ArrayList<java.lang.Object> getClasses()
public static void modifyColumnName(int column, java.lang.Object newText)
column
- the column to have the new name changed.newText
- the new name of the column.public static void deleteRow(int row)
row
- the position of the new record.public static void insertRow(int pos)
pos
- the position of the new record.public static void deleteColumn(int col)
col
- the position of the new column.public static void insertColumn(int pos)
pos
- the position of the new column.public static void modifyCell(int row, int column, java.lang.Object newContent)
row
- the row position in the table.column
- the column position in the table.newContent
- the new value of the cell.public static java.util.ArrayList<java.lang.String> writeDataTypes(int colNumber)
colNumber
- position the column's position in the list.
public static void changeDataType(java.lang.Object newDataType, int position)
newDataType
- the new datatype for the column.position
- the column's position in the list.public static java.lang.String getErrors()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |