public abstract class AbstractTable extends Object
Constructor and Description |
---|
AbstractTable(String name)
Default constructor to create a table with the given name.
|
Modifier and Type | Method and Description |
---|---|
String |
getCountSql(SqlParameter... parameters)
Get the count sql for this table using the given parameters.
|
static String |
getCountSql(String tableName,
SqlParameter... parameters)
Get the count sql for a table with the given set of parameters.
|
abstract String |
getCreateSql()
Get the create sql for this table.
|
String |
getDeleteSql(SqlParameter... parameters)
Get the delete sql for this table using the given set of parameters.
|
String |
getInsertSql(SqlParameter... parameters)
Get the insert sql for this table using the given set of parameters.
|
static String |
getInsertSql(String tableName,
SqlParameter... parameters)
Get the insert sql for a table with the given set of parameters
|
String |
getQueryParameterizedSql(SqlParameter... parameters)
Get the query sql for this table using the given set of parameters.
|
public AbstractTable(String name)
name
- the name of the tablepublic static String getCountSql(String tableName, SqlParameter... parameters)
tableName
- the name of the tableparameters
- the parameters to use for the count querypublic static String getInsertSql(String tableName, SqlParameter... parameters)
tableName
- the name of the tableparameters
- the insert parameterspublic String getCountSql(SqlParameter... parameters)
parameters
- the parameters to use for the count querypublic abstract String getCreateSql()
public String getDeleteSql(SqlParameter... parameters)
parameters
- the parameters to use for the deletepublic String getInsertSql(SqlParameter... parameters)
parameters
- the parameters to use in the insertpublic String getQueryParameterizedSql(SqlParameter... parameters)
parameters
- the parameters to use in the queryCopyright © 2021. All rights reserved.