windows porting
[csql.git] / include / SqlFactory.h
blob7c1a21488ed80dbce8e4c319e0dc2aa7409c9976
1 /***************************************************************************
2 * *
3 * Copyright (C) Lakshya Solutions Ltd. All rights reserved. *
4 * *
5 ***************************************************************************/
7 #ifndef SQLFACTORY_H
8 #define SQLFACTORY_H
10 #include<AbsSqlConnection.h>
11 #include<AbsSqlStatement.h>
13 enum SqlApiImplType
15 CSql =1,
16 CSqlAdapter,
17 CSqlGateway,
18 CSqlNetwork,
19 CSqlNetworkAdapter,
20 CSqlNetworkGateway,
21 CSqlLog,
22 CSqlDirect,
23 CSqlUnknown
25 /**
26 * @class SqlFactory
28 * @brief Factory class to create appropriate implementation of SQL API
31 class DllExport SqlFactory
33 public:
35 /** creates appropriate implementation of AbsSqlConnection based on implFlag passed
36 * @param implFlag 1->SqlConnection, 2->?
37 * @return AbsSqlConnection
39 static AbsSqlConnection* createConnection (SqlApiImplType implFlag);
41 /** creates appropriate implementation of AbsSqlStatement based on implFlag passed
42 * @param implFlag 1->SqlConnection, 2->?
43 * @return AbsSqlStatement
45 static AbsSqlStatement* createStatement (SqlApiImplType implFlag);
48 #endif