public abstract class AbstractImportExportDAO extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
SQL_QUERY_GET_COLUMNS |
protected static String |
SQL_QUERY_GET_COLUMNS_NAME |
Constructor and Description |
---|
AbstractImportExportDAO() |
Modifier and Type | Method and Description |
---|---|
protected static ColumnType |
getJavaTypeFromSqlString(String strColumnType)
Get the type of a column from its description
|
protected static List<TableColumn> |
getTableColumns(List<String> listColumnNames,
String strTableName,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
Locale locale)
Get the list of columns of a table matching a given list of names.
|
static List<String> |
getTableColumnsNames(String strTableName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of columns names from the database
|
protected static final String SQL_QUERY_GET_COLUMNS
protected static final String SQL_QUERY_GET_COLUMNS_NAME
protected static List<TableColumn> getTableColumns(List<String> listColumnNames, String strTableName, fr.paris.lutece.portal.service.plugin.Plugin plugin, Locale locale) throws fr.paris.lutece.portal.service.util.AppException
listColumnNames
- The list of names of columns to considerstrTableName
- The name of the database tableplugin
- The plugin to use the pool oflocale
- The locale to display errors infr.paris.lutece.portal.service.util.AppException
- If the table does not contain any column whithin a
name of the columns name listpublic static List<String> getTableColumnsNames(String strTableName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strTableName
- The name of the table to get columns name fromplugin
- The plugin to use the pool ofprotected static ColumnType getJavaTypeFromSqlString(String strColumnType)
strColumnType
- The description of the column typeCopyright © 2018 City of Paris. All rights reserved.