public class GetSQLData extends ServiceableAction
Modifier and Type | Field and Description |
---|---|
private JSONUtils |
_jsonUtils |
private SQLDatabaseTypeExtensionPoint |
_sqlDatabaseTypeExtensionPoint |
private SQLDataSourceManager |
_sqlDataSourceManager |
manager
EMPTY_MAP
Constructor and Description |
---|
GetSQLData() |
Modifier and Type | Method and Description |
---|---|
private Map<String,Object> |
_getDataStructure(Set<String> primaryKeys,
ResultSetMetaData metaData,
String datasourceId) |
private Set<String> |
_getPrimaryKeys(DatabaseMetaData databaseMetaData,
String tableName) |
private String |
_getSortCondition(Request request) |
private String |
_getWhereCondition(Request request) |
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
void |
service(ServiceManager smanager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private JSONUtils _jsonUtils
private SQLDatabaseTypeExtensionPoint _sqlDatabaseTypeExtensionPoint
private SQLDataSourceManager _sqlDataSourceManager
public GetSQLData()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableAction
ServiceException
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exception
private Map<String,Object> _getDataStructure(Set<String> primaryKeys, ResultSetMetaData metaData, String datasourceId) throws SQLException
SQLException
private Set<String> _getPrimaryKeys(DatabaseMetaData databaseMetaData, String tableName) throws SQLException
SQLException
private String _getWhereCondition(Request request)
private String _getSortCondition(Request request)