Class SqlSupportImpl
- java.lang.Object
-
- com.github.longdt.vertxorm.repository.postgresql.SqlSupportImpl
-
- All Implemented Interfaces:
SqlSupport
public class SqlSupportImpl extends Object implements SqlSupport
SqlSupportImpl class.
- Version:
- $Id: $Id
- Author:
- Long Dinh
-
-
Constructor Summary
Constructors Constructor Description SqlSupportImpl(String tableName, List<String> columnNames)Constructor for SqlSupportImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAutoIdInsertSql()getAutoIdInsertSql.StringgetCountSql()getCountSql.StringgetDeleteSql()getDeleteSql.StringgetExistByIdSql()getExistByIdSql.StringgetExistSql()getExistSql.StringgetInsertSql()getInsertSql.StringgetQueryByIdSql()getQueryByIdSql.StringgetQuerySql()getQuerySql.<E> StringgetSql(String sql, Query<E> query)getSql.StringgetTableName()Getter for the fieldtableName.StringgetUpdateSql()getUpdateSql.StringgetUpsertSql()getUpsertSql.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.longdt.vertxorm.repository.SqlSupport
getQuerySql
-
-
-
-
Method Detail
-
getInsertSql
public String getInsertSql()
getInsertSql.
- Specified by:
getInsertSqlin interfaceSqlSupport- Returns:
- a
Stringobject.
-
getAutoIdInsertSql
public String getAutoIdInsertSql()
getAutoIdInsertSql.
- Specified by:
getAutoIdInsertSqlin interfaceSqlSupport- Returns:
- a
Stringobject.
-
getUpsertSql
public String getUpsertSql()
getUpsertSql.
- Specified by:
getUpsertSqlin interfaceSqlSupport- Returns:
- a
Stringobject.
-
getUpdateSql
public String getUpdateSql()
getUpdateSql.
- Specified by:
getUpdateSqlin interfaceSqlSupport- Returns:
- a
Stringobject.
-
getQuerySql
public String getQuerySql()
getQuerySql.
- Specified by:
getQuerySqlin interfaceSqlSupport- Returns:
- a
Stringobject.
-
getQueryByIdSql
public String getQueryByIdSql()
getQueryByIdSql.
- Specified by:
getQueryByIdSqlin interfaceSqlSupport- Returns:
- a
Stringobject.
-
getSql
public <E> String getSql(String sql, Query<E> query)
getSql.
- Specified by:
getSqlin interfaceSqlSupport- Type Parameters:
E- a E object.- Parameters:
sql- aStringobject.query- aQueryobject.- Returns:
- a
Stringobject.
-
getCountSql
public String getCountSql()
getCountSql.
- Specified by:
getCountSqlin interfaceSqlSupport- Returns:
- a
Stringobject.
-
getExistSql
public String getExistSql()
getExistSql.
- Specified by:
getExistSqlin interfaceSqlSupport- Returns:
- a
Stringobject.
-
getExistByIdSql
public String getExistByIdSql()
getExistByIdSql.
- Specified by:
getExistByIdSqlin interfaceSqlSupport- Returns:
- a
Stringobject.
-
getDeleteSql
public String getDeleteSql()
getDeleteSql.
- Specified by:
getDeleteSqlin interfaceSqlSupport- Returns:
- a
Stringobject.
-
-