I have multiple databases comprising RDBMS as well as NoSQL DB's. I am writing a generic class where the developer will be getting a connection object basing on the context. Currently, I am dealing with the databases like
- Hive
- Oracle
- MSSQL
- HBASE(NoSQL)
How can i design my classes in such a way that my end developer who uses my public API provides the context and retrieves the corresponding database connection object.
Right now i am planning to do a Factory way of creating the connection object. Is there any better ways of doing this.
Aucun commentaire:
Enregistrer un commentaire