Class PostgreSQLQuery
- java.lang.Object
-
- org.gcube.accounting.utility.postgresql.PostgreSQLQuery
-
public class PostgreSQLQuery extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringDATETIME_PATTERNstatic TimeZoneDEFAULT_TIME_ZONEprotected static org.slf4j.Loggerloggerprotected StringBufferstringBuffer
-
Constructor Summary
Constructors Constructor Description PostgreSQLQuery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidappendString(String string)protected voidappendValue(Serializable serializable)protected StringgetQuotedString(String string)StringgetSQLInsertCommand(org.gcube.documentstore.records.Record record)protected StringgetValue(Serializable serializable)
-
-
-
Field Detail
-
logger
protected static final org.slf4j.Logger logger
-
DEFAULT_TIME_ZONE
public static final TimeZone DEFAULT_TIME_ZONE
-
DATETIME_PATTERN
public static final String DATETIME_PATTERN
- See Also:
- Constant Field Values
-
stringBuffer
protected StringBuffer stringBuffer
-
-
Method Detail
-
getQuotedString
protected String getQuotedString(String string) throws SQLException
- Throws:
SQLException
-
appendString
protected void appendString(String string)
-
appendValue
protected void appendValue(Serializable serializable) throws SQLException
- Throws:
SQLException
-
getValue
protected String getValue(Serializable serializable) throws SQLException
- Throws:
SQLException
-
-