Class RecordToDBConnection
- java.lang.Object
-
- org.gcube.accounting.utility.postgresql.RecordToDBConnection
-
public class RecordToDBConnection extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Class<? extends org.gcube.documentstore.records.Record>clzstatic StringDB_SUFFIXstatic StringPASSWORD_SUFFIXprotected StringtypeNamestatic StringURL_PROPERTY_KEYstatic StringUSERNAME_SUFFIX
-
Constructor Summary
Constructors Modifier Constructor Description protectedRecordToDBConnection(String type, Class<? extends org.gcube.documentstore.records.Record> clz, org.gcube.documentstore.persistence.PersistenceBackendConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectiongetConnection()
-
-
-
Field Detail
-
URL_PROPERTY_KEY
public static final String URL_PROPERTY_KEY
- See Also:
- Constant Field Values
-
DB_SUFFIX
public static final String DB_SUFFIX
- See Also:
- Constant Field Values
-
USERNAME_SUFFIX
public static final String USERNAME_SUFFIX
- See Also:
- Constant Field Values
-
PASSWORD_SUFFIX
public static final String PASSWORD_SUFFIX
- See Also:
- Constant Field Values
-
clz
protected final Class<? extends org.gcube.documentstore.records.Record> clz
-
typeName
protected final String typeName
-
-
Method Detail
-
getConnection
public Connection getConnection() throws Exception
- Throws:
Exception
-
-