Class DBEntry
java.lang.Object
talonsoalbi_at_gmail_dot_com.ssoxmatch.db.DBEntry
Database entry class, to get the list of column names and format for a given table, with a query like:
SELECT column_name, data_type FROM information_schema.columns WHERE table_name = ...
- Author:
- talonso
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the entry formatgetName()Returns the entry nameParse the results of a query of typevoidsetFormat(DBEntry.FORMAT format) Sets the entry formatvoidSets the entry name
-
Constructor Details
-
DBEntry
Constructor- Parameters:
n- Namef- Format
-
-
Method Details
-
getFormat
Returns the entry format- Returns:
- the format
-
setFormat
Sets the entry format- Parameters:
format- the format to set
-
getName
Returns the entry name- Returns:
- the name
-
setName
Sets the entry name- Parameters:
name- the name to set
-
parseQueryResults
Parse the results of a query of typeSELECT column_name, data_type FROM information_schema.columns WHERE table_name = ...
, identifying the column names and their data types- Parameters:
s- The query results- Returns:
- The list of database entries
-