public class Users extends AbstractTable
Modifier and Type | Field and Description |
---|---|
static String |
USER_ID_COLUMN_NAME
The name of the user id column.
|
Constructor and Description |
---|
Users()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
ParameterizedSql |
getCountSql(UUID userId)
Get the count sql for a given user id.
|
String |
getCreateSql()
Get the create sql for this table.
|
ParameterizedSql |
getDeleteSql(UUID userId)
Get the delete sql for a given user id.
|
ParameterizedSql |
getInsertSql(UUID userId)
Get the insert sql for a given user id.
|
ParameterizedSql |
getQuerySql(UUID userId)
Get the query for a given user id.
|
getCountSql, getCountSql, getDeleteSql, getInsertSql, getInsertSql, getQueryParameterizedSql
public static final String USER_ID_COLUMN_NAME
public ParameterizedSql getCountSql(UUID userId)
userId
- the user's id to check for existencepublic String getCreateSql()
getCreateSql
in class AbstractTable
public ParameterizedSql getDeleteSql(UUID userId)
userId
- the user's id to deleteParameterizedSql
object with the sql and parameters for the deletepublic ParameterizedSql getInsertSql(UUID userId)
userId
- the user's id to insert - this is requiredParameterizedSql
object with the sql and parameters for the insertIllegalArgumentException
- thrown if userId is nullpublic ParameterizedSql getQuerySql(UUID userId)
userId
- the user's id to queryParameterizedSql
object with the sql and parameters for the queryCopyright © 2021. All rights reserved.