public class Containers extends AbstractTable
Metadata
, ofs location (where the content is stored locally) and
when the content was last synced with the Absio Broker™ application.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 |
LENGTH_COLUMN_NAME
The name of the length 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 |
OFS_LOCATION_COLUMN_NAME
The name of the ofs location column.
|
static String |
SYNCED_AT_COLUMN_NAME
The name of the synced at column.
|
static String |
TYPE_COLUMN_NAME
The name of the type column.
|
Constructor and Description |
---|
Containers()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
ParameterizedSql |
getCountSql(UUID containerId)
Get the count SQL for the given containerId.
|
String |
getCreateSql()
Get the create SQL for the table.
|
ParameterizedSql |
getDeleteSql(UUID containerId)
Get the delete SQL for the table with the give container id.
|
ParameterizedSql |
getInsertSql(Metadata metadata,
String ofsLocation,
org.threeten.bp.ZonedDateTime syncedAt)
Get the insert SQL for the table using the given parameters.
|
ParameterizedSql |
getQuerySql(UUID containerId)
Get the query SQL for the container id.
|
ParameterizedSql |
getUpdateSql(Metadata metadata,
String ofsLocation,
org.threeten.bp.ZonedDateTime syncedAt)
Get the update SQL for the table using the given parameters.
|
getCountSql, getCountSql, getDeleteSql, getInsertSql, getInsertSql, getQueryParameterizedSql
public 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 LENGTH_COLUMN_NAME
public static final String MODIFIED_AT_COLUMN_NAME
public static final String MODIFIED_BY_COLUMN_NAME
public static final String OFS_LOCATION_COLUMN_NAME
public static final String SYNCED_AT_COLUMN_NAME
public static final String TYPE_COLUMN_NAME
public ParameterizedSql getCountSql(UUID containerId)
containerId
- the containerId to count or null to count all recordspublic String getCreateSql()
getCreateSql
in class AbstractTable
public ParameterizedSql getDeleteSql(UUID containerId)
containerId
- the container to delete or null if all rows should be removedpublic ParameterizedSql getInsertSql(Metadata metadata, String ofsLocation, org.threeten.bp.ZonedDateTime syncedAt)
NOTE: the ofsLocation, metadata, metadata created at and metadata id must all be defined
metadata
- the metadata to insertofsLocation
- the ofs location to insertsyncedAt
- the synced at to insertIllegalArgumentException
- if any of the required values are nullpublic ParameterizedSql getQuerySql(UUID containerId)
containerId
- the container id to querypublic ParameterizedSql getUpdateSql(Metadata metadata, String ofsLocation, org.threeten.bp.ZonedDateTime syncedAt)
NOTE: the metadata and metadata id must all be defined
metadata
- the metadata to insertofsLocation
- the ofs location to insertsyncedAt
- the synced at to insertIllegalArgumentException
- if any of the required values are nullCopyright © 2021. All rights reserved.