Class PostgreSqlHelper
java.lang.Object
io.clonecloudstore.common.database.postgre.PostgreSqlHelper
Postgre Sql Helper
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringFor Native Query only with additional parameters using getSqlParamsAsArray()static StringFor Native Query only with additional parameters using getSqlParamsAsArray()static Object[]getUpdateParamsAsArray(DbUpdate update, DbQuery query) static StringUsable in Panache find, delete... as condition with getSqlParamsAsArray()static StringFor Native Query only with additional parameters using getSqlParamsAsArray()static StringUsable in Panache update with getUpdateParamsAsArray()
-
Field Details
-
JSON_TYPE
- See Also:
-
-
Method Details
-
query
Usable in Panache find, delete... as condition with getSqlParamsAsArray()- Parameters:
query- the DbQuery- Returns:
- the native Query (Where part only) ready to use with extra parameters as "?"
-
select
For Native Query only with additional parameters using getSqlParamsAsArray()- Parameters:
table- the table namequery- the DbQuery- Returns:
- the SELECT native Query with extra parameters as "?"
-
count
For Native Query only with additional parameters using getSqlParamsAsArray()- Parameters:
table- the table namequery- the DbQuery- Returns:
- the COUNT native Query with extra parameters as "?"
-
delete
For Native Query only with additional parameters using getSqlParamsAsArray()- Parameters:
table- the table namequery- the DbQuery- Returns:
- the DELETE native Query with extra parameters as "?"
-
update
Usable in Panache update with getUpdateParamsAsArray()- Parameters:
update- the DbUpdatequery- the DbQuery- Returns:
- the native Query (Update and Where parts only) with extra parameters as "?"
-
getUpdateParamsAsArray
- Parameters:
update- the DbUpdatequery- the DbQuery- Returns:
- the extra parameters to replace "?"
-