public class Accesses extends AbstractTable
Access that are a part of Metadata which is
stored in Containers.| Modifier and Type | Field and Description |
|---|---|
static String |
CONTAINER_ID_COLUMN_NAME
The name of the container id column.
|
static String |
CREATED_AT_COLUMN_NAME
The name of the created at column.
|
static String |
CREATED_BY_COLUMN_NAME
The name of the created by column.
|
static String |
EXPIRES_AT_COLUMN_NAME
The name of the expires at column.
|
static String |
KEY_BLOB_COLUMN_NAME
The name of the key blob column.
|
static String |
MODIFIED_AT_COLUMN_NAME
The name of the modified at column.
|
static String |
MODIFIED_BY_COLUMN_NAME
The name of the modified by column.
|
static String |
PERMISSIONS_COLUMN_NAME
The name of the permission column.
|
static String |
USER_ID_COLUMN_NAME
The name of the user id column.
|
| Constructor and Description |
|---|
Accesses()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ParameterizedSql |
getCountSql(UUID userId,
UUID containerId)
Get the count SQL for the given userId and containerId.
|
String |
getCreateSql()
Get the create SQL for the table.
|
ParameterizedSql |
getDeleteSql(UUID userId,
UUID containerId)
Get the delete SQL for the table with the give container id.
|
ParameterizedSql |
getInsertSql(Access access)
Get the insert SQL for the table using the given
Access. |
ParameterizedSql |
getQuerySql(UUID userId,
UUID containerId)
Get the query SQL for the user id and container id.
|
ParameterizedSql |
getUpdateSql(Access access)
Get the update SQL for the table using the given
Access. |
getCountSql, getCountSql, getDeleteSql, getInsertSql, getInsertSql, getQueryParameterizedSqlpublic static final String CONTAINER_ID_COLUMN_NAME
public static final String CREATED_AT_COLUMN_NAME
public static final String CREATED_BY_COLUMN_NAME
public static final String EXPIRES_AT_COLUMN_NAME
public static final String KEY_BLOB_COLUMN_NAME
public static final String MODIFIED_AT_COLUMN_NAME
public static final String MODIFIED_BY_COLUMN_NAME
public static final String PERMISSIONS_COLUMN_NAME
public static final String USER_ID_COLUMN_NAME
public ParameterizedSql getCountSql(UUID userId, UUID containerId)
userId - the userID to count or null to count all recordscontainerId - the containerId to count or null to count all recordspublic String getCreateSql()
getCreateSql in class AbstractTablepublic ParameterizedSql getDeleteSql(UUID userId, UUID containerId)
userId - the user's access to deletecontainerId - the container's access to deletepublic ParameterizedSql getInsertSql(Access access)
Access.
NOTE: the access, access container id and access user id must all be defined
access - the access to insertIllegalArgumentException - if any of the required values are nullpublic ParameterizedSql getQuerySql(UUID userId, UUID containerId)
userId - the user id to querycontainerId - the container id to querypublic ParameterizedSql getUpdateSql(Access access)
Access.
NOTE: the access, access container id and access user id must all be defined
access - the access to updateIllegalArgumentException - if any of the required values are nullCopyright © 2021. All rights reserved.