Class CommonSqlStatements
- java.lang.Object
-
- io.apicurio.registry.storage.impl.sql.CommonSqlStatements
-
- All Implemented Interfaces:
SqlStatements
- Direct Known Subclasses:
H2SqlStatements,PostgreSQLSqlStatements
public abstract class CommonSqlStatements extends Object implements SqlStatements
Shared base class for all sql statements.- Author:
- eric.wittmann@gmail.com
-
-
Constructor Summary
Constructors Constructor Description CommonSqlStatements()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringautoUpdateVersionForGlobalId()A statement used to update the 'version' column of the 'versions' table by globalId.List<String>databaseInitialization()A sequence of statements needed to initialize the database.List<String>databaseUpgrade(int fromVersion, int toVersion)A sequence of statements needed to upgrade the DB from one version to another.StringdeleteAllArtifactRules()A statement to delete all rules for a all artifacts.StringdeleteAllArtifacts()A statement to delete a all artifacts.StringdeleteAllContent()A statement to delete all content owned by a tenantIdStringdeleteAllGroups()A statement used to delete all rows from the groups table.StringdeleteAllLabels()A statement to delete all labels for all versions for all artifactsStringdeleteAllOrphanedContent()A statement to delete content that is no longer being referenced by an artifact version.StringdeleteAllProperties()A statement to delete all properties for all versions for all artifactsStringdeleteAllRoleMappings()StringdeleteAllVersions()A statement to delete all versions for all artifacts.StringdeleteArtifact()A statement to delete a single row from the artifacts table by artifactId.StringdeleteArtifactRule()A statement to delete a single artifact rule.StringdeleteArtifactRules()A statement to delete all rules for a single artifact.StringdeleteArtifactRulesByGroupId()A statement to delete all rules for all artifacts in a groupId.StringdeleteArtifactsByGroupId()A statement to delete a all artifacts from the artifacts table by groupId.StringdeleteDownload()StringdeleteExpiredDownloads()StringdeleteGlobalRule()A statement used to delete a row from the globalrules table.StringdeleteGlobalRules()A statement used to delete all rows in the globalrules table.StringdeleteGroup()A statement used to delete a row from the groups table.StringdeleteLabels()A statement to delete all labels for all versions for a single artifact.StringdeleteLabelsByGlobalId()A statement to delete all labels for a single artifact version by globalIdStringdeleteLabelsByGroupId()A statement to delete all labels for all versions for all artifacts in a groupId.StringdeleteLogConfiguration()A statement to delete a row in the "logconfiguration" tableStringdeleteProperties()A statement to delete all properties for all versions for a single artifact.StringdeletePropertiesByGlobalId()A statement to delete all properties for a single artifact version by globalIdStringdeletePropertiesByGroupId()A statement to delete all properties for all versions for all artifacts in a groupId.StringdeleteRoleMapping()StringdeleteVersion()A statement to delete a single artifact version.StringdeleteVersionLabels()A statement to delete the labels for a single artifact version.StringdeleteVersionProperties()A statement to delete the properties for a single artifact version.StringdeleteVersions()A statement to delete all versions for a single artifact.StringdeleteVersionsByGroupId()A statement to delete all versions for all artifacts in a groupId.StringexportArtifactRules()StringexportArtifactVersions()StringexportContent()StringexportGlobalRules()StringexportGroups()StringgetDatabaseVersion()A statement that returns the current DB version (pulled from the "apicurio" attribute table).StringimportArtifactRule()StringimportArtifactVersion()StringimportContent()StringimportGlobalRule()StringimportGroup()StringinsertArtifact()A statement used to insert a row in the artifacts table.StringinsertArtifactRule()A statement to insert a row into the 'rules' table (artifact rule).StringinsertDownload()StringinsertGlobalRule()A statement used to insert a row into the globalrules table.StringinsertGroup()A statement used to insert a row into the groups table.StringinsertLabel()A statement to insert a row in the "labels" table.StringinsertProperty()A statement to insert a row in the "properties" table.StringinsertRoleMapping()StringinsertSequenceValue()StringinsertVersion(boolean firstVersion)A statement used to insert a row in the versions table.StringselectAllArtifactCount()A statement used to count the total # of artifacts.StringselectAllArtifactVersions()A statement used to select all versions for a given artifactId.StringselectAllArtifactVersionsCount()A statement used to count the total # of versions for an artifact.StringselectAllLogConfigurations()A statement to select all rows in the "logconfiguration" tableStringselectArtifactCountById()A statement to select the number of artifacts with a given artifactId (should be 0 or 1).StringselectArtifactIds()A statement to get all artifacts IDs.StringselectArtifactMetaDataByGlobalId()A statement to get an artifact's meta-data by version globalId.StringselectArtifactRuleByType()A statement to get a single artifact rule from the 'rules' table by artifactId and rule type.StringselectArtifactRuleCountByType()A statement to select the number of artifact rule rows for a given rule type.StringselectArtifactRules()A statement used to select artifact rules by artifactId.StringselectArtifactVersionContent()A statement to select the content of an artifact version from the versions table by artifactId + version.StringselectArtifactVersionContentByGlobalId()A statement to select the content of an artifact version from the versions table by globalId.StringselectArtifactVersionMetaData()A statement used to select artifact version metadata by artifactId and version.StringselectArtifactVersionMetaDataByCanonicalHash()A statement used to select a single row in the versions by artifactId and canonical content hash.StringselectArtifactVersionMetaDataByContentHash()A statement used to select a single row in the versions by artifactId and content hash.StringselectArtifactVersionMetaDataByContentId()A statement used to select a single row in the versions by artifactId and content id.StringselectArtifactVersionMetaDataByGlobalId()A statement used to select a single row in the versions table by globalId.StringselectArtifactVersions()A statement used to select all version #s for a given artifactId.StringselectContentByContentHash()A statement to select the bytes of a content row by contentHashStringselectContentById()A statement to select the bytes of a content row by contentId.StringselectContentCountByHash()A statement to select the number of content rows for a given content hash.StringselectContentExists()StringselectContentIdByHash()A statement to select the contentId of a row in the content table by hash value.StringselectCurrentSequenceValue()StringselectDownloadContext()StringselectGlobalIdExists()StringselectGlobalRuleByType()A statement used to select a single global rule by its type/id.StringselectGlobalRuleCountByType()A statement to select the number of global rule rows for a given rule type.StringselectGlobalRules()A statement used to select all global rules.StringselectGroupByGroupId()A statement used to select a single group in groups table by groupId.StringselectGroups()A statement used to select all rows from groups table.StringselectLatestArtifactContent()A statement to get a single artifact (latest version) content by artifactId.StringselectLatestArtifactMetaData()A statement to get a single artifact (latest version) meta-data by artifactId.StringselectLogConfigurationByLogger()A statement to select the log configuration for a given logger nameStringselectMaxContentId()StringselectMaxGlobalId()StringselectRoleByPrincipalId()StringselectRoleMappingByPrincipalId()StringselectRoleMappingCountByPrincipal()StringselectRoleMappings()StringselectTotalArtifactVersionsCount()A statement used to count the total # of versions for all artifact.StringupdateArtifactLatest()A statement used to update the 'latest' column of the 'artifacts' table.StringupdateArtifactLatestGlobalId()A statement used to update the 'latest' column of the 'artifacts' table to the globalId of the highest remaining version.StringupdateArtifactRule()A statement to update a single artifact rule.StringupdateArtifactVersionMetaData()A statement to update the meta-data of a specific artifact version.StringupdateArtifactVersionState()A statement to update the state of an artifact version (by globalId);StringupdateContentCanonicalHash()A statement to update canonicalHash value in a row in the "content" table The only statement that allows to modify an existing row in the "content" tableStringupdateGlobalRule()A statement used to update information about a global rule.StringupdateGroup()A statement used to update information about a group.StringupdateRoleMapping()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.apicurio.registry.storage.impl.sql.SqlStatements
dbType, getNextSequenceValue, isDatabaseInitialized, isForeignKeyViolation, isPrimaryKeyViolation, resetSequenceValue, upsertContent, upsertLogConfiguration
-
-
-
-
Method Detail
-
databaseInitialization
public List<String> databaseInitialization()
Description copied from interface:SqlStatementsA sequence of statements needed to initialize the database.- Specified by:
databaseInitializationin interfaceSqlStatements- See Also:
SqlStatements.databaseInitialization()
-
databaseUpgrade
public List<String> databaseUpgrade(int fromVersion, int toVersion)
Description copied from interface:SqlStatementsA sequence of statements needed to upgrade the DB from one version to another.- Specified by:
databaseUpgradein interfaceSqlStatements- See Also:
SqlStatements.databaseUpgrade(int, int)
-
getDatabaseVersion
public String getDatabaseVersion()
Description copied from interface:SqlStatementsA statement that returns the current DB version (pulled from the "apicurio" attribute table).- Specified by:
getDatabaseVersionin interfaceSqlStatements- See Also:
SqlStatements.getDatabaseVersion()
-
insertGlobalRule
public String insertGlobalRule()
Description copied from interface:SqlStatementsA statement used to insert a row into the globalrules table.- Specified by:
insertGlobalRulein interfaceSqlStatements- See Also:
SqlStatements.insertGlobalRule()
-
selectGlobalRules
public String selectGlobalRules()
Description copied from interface:SqlStatementsA statement used to select all global rules.- Specified by:
selectGlobalRulesin interfaceSqlStatements- See Also:
SqlStatements.selectGlobalRules()
-
selectGlobalRuleByType
public String selectGlobalRuleByType()
Description copied from interface:SqlStatementsA statement used to select a single global rule by its type/id.- Specified by:
selectGlobalRuleByTypein interfaceSqlStatements- See Also:
SqlStatements.selectGlobalRuleByType()
-
deleteGlobalRule
public String deleteGlobalRule()
Description copied from interface:SqlStatementsA statement used to delete a row from the globalrules table.- Specified by:
deleteGlobalRulein interfaceSqlStatements- See Also:
SqlStatements.deleteGlobalRule()
-
deleteGlobalRules
public String deleteGlobalRules()
Description copied from interface:SqlStatementsA statement used to delete all rows in the globalrules table.- Specified by:
deleteGlobalRulesin interfaceSqlStatements- See Also:
SqlStatements.deleteGlobalRules()
-
updateGlobalRule
public String updateGlobalRule()
Description copied from interface:SqlStatementsA statement used to update information about a global rule.- Specified by:
updateGlobalRulein interfaceSqlStatements- See Also:
SqlStatements.updateGlobalRule()
-
insertArtifact
public String insertArtifact()
Description copied from interface:SqlStatementsA statement used to insert a row in the artifacts table.- Specified by:
insertArtifactin interfaceSqlStatements- See Also:
SqlStatements.insertArtifact()
-
updateArtifactLatest
public String updateArtifactLatest()
Description copied from interface:SqlStatementsA statement used to update the 'latest' column of the 'artifacts' table.- Specified by:
updateArtifactLatestin interfaceSqlStatements- See Also:
SqlStatements.updateArtifactLatest()
-
updateArtifactLatestGlobalId
public String updateArtifactLatestGlobalId()
Description copied from interface:SqlStatementsA statement used to update the 'latest' column of the 'artifacts' table to the globalId of the highest remaining version.- Specified by:
updateArtifactLatestGlobalIdin interfaceSqlStatements- See Also:
SqlStatements.updateArtifactLatestGlobalId()
-
autoUpdateVersionForGlobalId
public String autoUpdateVersionForGlobalId()
Description copied from interface:SqlStatementsA statement used to update the 'version' column of the 'versions' table by globalId. The value of the "versionId" column is copied into the "version" column.- Specified by:
autoUpdateVersionForGlobalIdin interfaceSqlStatements- See Also:
SqlStatements.autoUpdateVersionForGlobalId()
-
insertVersion
public String insertVersion(boolean firstVersion)
Description copied from interface:SqlStatementsA statement used to insert a row in the versions table.- Specified by:
insertVersionin interfaceSqlStatements- See Also:
SqlStatements.insertVersion(boolean)
-
selectArtifactVersionMetaDataByGlobalId
public String selectArtifactVersionMetaDataByGlobalId()
Description copied from interface:SqlStatementsA statement used to select a single row in the versions table by globalId.- Specified by:
selectArtifactVersionMetaDataByGlobalIdin interfaceSqlStatements- See Also:
SqlStatements.selectArtifactVersionMetaDataByGlobalId()
-
selectArtifactVersions
public String selectArtifactVersions()
Description copied from interface:SqlStatementsA statement used to select all version #s for a given artifactId.- Specified by:
selectArtifactVersionsin interfaceSqlStatements- See Also:
SqlStatements.selectArtifactVersions()
-
selectArtifactVersionMetaData
public String selectArtifactVersionMetaData()
Description copied from interface:SqlStatementsA statement used to select artifact version metadata by artifactId and version.- Specified by:
selectArtifactVersionMetaDatain interfaceSqlStatements- See Also:
SqlStatements.selectArtifactVersionMetaData()
-
selectArtifactVersionMetaDataByContentHash
public String selectArtifactVersionMetaDataByContentHash()
Description copied from interface:SqlStatementsA statement used to select a single row in the versions by artifactId and content hash.- Specified by:
selectArtifactVersionMetaDataByContentHashin interfaceSqlStatements- See Also:
SqlStatements.selectArtifactVersionMetaDataByContentHash()
-
selectArtifactVersionMetaDataByContentId
public String selectArtifactVersionMetaDataByContentId()
Description copied from interface:SqlStatementsA statement used to select a single row in the versions by artifactId and content id.- Specified by:
selectArtifactVersionMetaDataByContentIdin interfaceSqlStatements
-
selectArtifactVersionMetaDataByCanonicalHash
public String selectArtifactVersionMetaDataByCanonicalHash()
Description copied from interface:SqlStatementsA statement used to select a single row in the versions by artifactId and canonical content hash.- Specified by:
selectArtifactVersionMetaDataByCanonicalHashin interfaceSqlStatements- See Also:
SqlStatements.selectArtifactVersionMetaDataByCanonicalHash()
-
selectArtifactVersionContentByGlobalId
public String selectArtifactVersionContentByGlobalId()
Description copied from interface:SqlStatementsA statement to select the content of an artifact version from the versions table by globalId.- Specified by:
selectArtifactVersionContentByGlobalIdin interfaceSqlStatements- See Also:
SqlStatements.selectArtifactVersionContentByGlobalId()
-
selectArtifactVersionContent
public String selectArtifactVersionContent()
Description copied from interface:SqlStatementsA statement to select the content of an artifact version from the versions table by artifactId + version.- Specified by:
selectArtifactVersionContentin interfaceSqlStatements- See Also:
SqlStatements.selectArtifactVersionContent()
-
selectLatestArtifactContent
public String selectLatestArtifactContent()
Description copied from interface:SqlStatementsA statement to get a single artifact (latest version) content by artifactId.- Specified by:
selectLatestArtifactContentin interfaceSqlStatements- See Also:
SqlStatements.selectLatestArtifactContent()
-
selectLatestArtifactMetaData
public String selectLatestArtifactMetaData()
Description copied from interface:SqlStatementsA statement to get a single artifact (latest version) meta-data by artifactId.- Specified by:
selectLatestArtifactMetaDatain interfaceSqlStatements- See Also:
SqlStatements.selectLatestArtifactMetaData()
-
selectContentIdByHash
public String selectContentIdByHash()
Description copied from interface:SqlStatementsA statement to select the contentId of a row in the content table by hash value.- Specified by:
selectContentIdByHashin interfaceSqlStatements- See Also:
SqlStatements.selectContentIdByHash()
-
selectArtifactRules
public String selectArtifactRules()
Description copied from interface:SqlStatementsA statement used to select artifact rules by artifactId.- Specified by:
selectArtifactRulesin interfaceSqlStatements- See Also:
SqlStatements.selectArtifactRules()
-
insertArtifactRule
public String insertArtifactRule()
Description copied from interface:SqlStatementsA statement to insert a row into the 'rules' table (artifact rule).- Specified by:
insertArtifactRulein interfaceSqlStatements- See Also:
SqlStatements.insertArtifactRule()
-
selectArtifactRuleByType
public String selectArtifactRuleByType()
Description copied from interface:SqlStatementsA statement to get a single artifact rule from the 'rules' table by artifactId and rule type.- Specified by:
selectArtifactRuleByTypein interfaceSqlStatements- See Also:
SqlStatements.selectArtifactRuleByType()
-
updateArtifactRule
public String updateArtifactRule()
Description copied from interface:SqlStatementsA statement to update a single artifact rule.- Specified by:
updateArtifactRulein interfaceSqlStatements- See Also:
SqlStatements.updateArtifactRule()
-
deleteArtifactRule
public String deleteArtifactRule()
Description copied from interface:SqlStatementsA statement to delete a single artifact rule.- Specified by:
deleteArtifactRulein interfaceSqlStatements- See Also:
SqlStatements.deleteArtifactRule()
-
deleteArtifactRules
public String deleteArtifactRules()
Description copied from interface:SqlStatementsA statement to delete all rules for a single artifact.- Specified by:
deleteArtifactRulesin interfaceSqlStatements- See Also:
SqlStatements.deleteArtifactRules()
-
deleteAllArtifactRules
public String deleteAllArtifactRules()
Description copied from interface:SqlStatementsA statement to delete all rules for a all artifacts.- Specified by:
deleteAllArtifactRulesin interfaceSqlStatements- See Also:
SqlStatements.deleteAllArtifactRules()
-
deleteArtifactRulesByGroupId
public String deleteArtifactRulesByGroupId()
Description copied from interface:SqlStatementsA statement to delete all rules for all artifacts in a groupId.- Specified by:
deleteArtifactRulesByGroupIdin interfaceSqlStatements
-
updateArtifactVersionMetaData
public String updateArtifactVersionMetaData()
Description copied from interface:SqlStatementsA statement to update the meta-data of a specific artifact version.- Specified by:
updateArtifactVersionMetaDatain interfaceSqlStatements- See Also:
SqlStatements.updateArtifactVersionMetaData()
-
deleteLabels
public String deleteLabels()
Description copied from interface:SqlStatementsA statement to delete all labels for all versions for a single artifact.- Specified by:
deleteLabelsin interfaceSqlStatements- See Also:
SqlStatements.deleteLabels()
-
deleteLabelsByGlobalId
public String deleteLabelsByGlobalId()
Description copied from interface:SqlStatementsA statement to delete all labels for a single artifact version by globalId- Specified by:
deleteLabelsByGlobalIdin interfaceSqlStatements- See Also:
SqlStatements.deleteLabelsByGlobalId()
-
deleteLabelsByGroupId
public String deleteLabelsByGroupId()
Description copied from interface:SqlStatementsA statement to delete all labels for all versions for all artifacts in a groupId.- Specified by:
deleteLabelsByGroupIdin interfaceSqlStatements
-
deleteAllLabels
public String deleteAllLabels()
Description copied from interface:SqlStatementsA statement to delete all labels for all versions for all artifacts- Specified by:
deleteAllLabelsin interfaceSqlStatements
-
deleteProperties
public String deleteProperties()
Description copied from interface:SqlStatementsA statement to delete all properties for all versions for a single artifact.- Specified by:
deletePropertiesin interfaceSqlStatements- See Also:
SqlStatements.deleteProperties()
-
deletePropertiesByGlobalId
public String deletePropertiesByGlobalId()
Description copied from interface:SqlStatementsA statement to delete all properties for a single artifact version by globalId- Specified by:
deletePropertiesByGlobalIdin interfaceSqlStatements- See Also:
SqlStatements.deletePropertiesByGlobalId()
-
deletePropertiesByGroupId
public String deletePropertiesByGroupId()
Description copied from interface:SqlStatementsA statement to delete all properties for all versions for all artifacts in a groupId.- Specified by:
deletePropertiesByGroupIdin interfaceSqlStatements
-
deleteAllProperties
public String deleteAllProperties()
Description copied from interface:SqlStatementsA statement to delete all properties for all versions for all artifacts- Specified by:
deleteAllPropertiesin interfaceSqlStatements
-
deleteVersions
public String deleteVersions()
Description copied from interface:SqlStatementsA statement to delete all versions for a single artifact.- Specified by:
deleteVersionsin interfaceSqlStatements- See Also:
SqlStatements.deleteVersions()
-
deleteVersionsByGroupId
public String deleteVersionsByGroupId()
Description copied from interface:SqlStatementsA statement to delete all versions for all artifacts in a groupId.- Specified by:
deleteVersionsByGroupIdin interfaceSqlStatements
-
deleteAllVersions
public String deleteAllVersions()
Description copied from interface:SqlStatementsA statement to delete all versions for all artifacts.- Specified by:
deleteAllVersionsin interfaceSqlStatements
-
deleteArtifact
public String deleteArtifact()
Description copied from interface:SqlStatementsA statement to delete a single row from the artifacts table by artifactId.- Specified by:
deleteArtifactin interfaceSqlStatements- See Also:
SqlStatements.deleteArtifact()
-
deleteArtifactsByGroupId
public String deleteArtifactsByGroupId()
Description copied from interface:SqlStatementsA statement to delete a all artifacts from the artifacts table by groupId.- Specified by:
deleteArtifactsByGroupIdin interfaceSqlStatements
-
deleteAllArtifacts
public String deleteAllArtifacts()
Description copied from interface:SqlStatementsA statement to delete a all artifacts.- Specified by:
deleteAllArtifactsin interfaceSqlStatements
-
selectArtifactIds
public String selectArtifactIds()
Description copied from interface:SqlStatementsA statement to get all artifacts IDs.- Specified by:
selectArtifactIdsin interfaceSqlStatements- See Also:
SqlStatements.selectArtifactIds()
-
selectArtifactMetaDataByGlobalId
public String selectArtifactMetaDataByGlobalId()
Description copied from interface:SqlStatementsA statement to get an artifact's meta-data by version globalId.- Specified by:
selectArtifactMetaDataByGlobalIdin interfaceSqlStatements- See Also:
SqlStatements.selectArtifactMetaDataByGlobalId()
-
updateArtifactVersionState
public String updateArtifactVersionState()
Description copied from interface:SqlStatementsA statement to update the state of an artifact version (by globalId);- Specified by:
updateArtifactVersionStatein interfaceSqlStatements- See Also:
SqlStatements.updateArtifactVersionState()
-
deleteVersion
public String deleteVersion()
Description copied from interface:SqlStatementsA statement to delete a single artifact version.- Specified by:
deleteVersionin interfaceSqlStatements- See Also:
SqlStatements.deleteVersion()
-
deleteVersionLabels
public String deleteVersionLabels()
Description copied from interface:SqlStatementsA statement to delete the labels for a single artifact version.- Specified by:
deleteVersionLabelsin interfaceSqlStatements- See Also:
SqlStatements.deleteVersionLabels()
-
deleteVersionProperties
public String deleteVersionProperties()
Description copied from interface:SqlStatementsA statement to delete the properties for a single artifact version.- Specified by:
deleteVersionPropertiesin interfaceSqlStatements- See Also:
SqlStatements.deleteVersionProperties()
-
insertLabel
public String insertLabel()
Description copied from interface:SqlStatementsA statement to insert a row in the "labels" table.- Specified by:
insertLabelin interfaceSqlStatements- See Also:
SqlStatements.insertLabel()
-
insertProperty
public String insertProperty()
Description copied from interface:SqlStatementsA statement to insert a row in the "properties" table.- Specified by:
insertPropertyin interfaceSqlStatements- See Also:
SqlStatements.insertProperty()
-
selectAllArtifactVersions
public String selectAllArtifactVersions()
Description copied from interface:SqlStatementsA statement used to select all versions for a given artifactId.- Specified by:
selectAllArtifactVersionsin interfaceSqlStatements- See Also:
SqlStatements.selectAllArtifactVersions()
-
selectAllArtifactCount
public String selectAllArtifactCount()
Description copied from interface:SqlStatementsA statement used to count the total # of artifacts.- Specified by:
selectAllArtifactCountin interfaceSqlStatements- See Also:
SqlStatements.selectAllArtifactCount()
-
selectAllArtifactVersionsCount
public String selectAllArtifactVersionsCount()
Description copied from interface:SqlStatementsA statement used to count the total # of versions for an artifact.- Specified by:
selectAllArtifactVersionsCountin interfaceSqlStatements- See Also:
SqlStatements.selectAllArtifactVersionsCount()
-
selectTotalArtifactVersionsCount
public String selectTotalArtifactVersionsCount()
Description copied from interface:SqlStatementsA statement used to count the total # of versions for all artifact.- Specified by:
selectTotalArtifactVersionsCountin interfaceSqlStatements- See Also:
SqlStatements.selectTotalArtifactVersionsCount()
-
selectArtifactCountById
public String selectArtifactCountById()
Description copied from interface:SqlStatementsA statement to select the number of artifacts with a given artifactId (should be 0 or 1).- Specified by:
selectArtifactCountByIdin interfaceSqlStatements- See Also:
SqlStatements.selectArtifactCountById()
-
selectArtifactRuleCountByType
public String selectArtifactRuleCountByType()
Description copied from interface:SqlStatementsA statement to select the number of artifact rule rows for a given rule type.- Specified by:
selectArtifactRuleCountByTypein interfaceSqlStatements- See Also:
SqlStatements.selectArtifactRuleCountByType()
-
selectGlobalRuleCountByType
public String selectGlobalRuleCountByType()
Description copied from interface:SqlStatementsA statement to select the number of global rule rows for a given rule type.- Specified by:
selectGlobalRuleCountByTypein interfaceSqlStatements- See Also:
SqlStatements.selectGlobalRuleCountByType()
-
selectContentCountByHash
public String selectContentCountByHash()
Description copied from interface:SqlStatementsA statement to select the number of content rows for a given content hash.- Specified by:
selectContentCountByHashin interfaceSqlStatements- See Also:
SqlStatements.selectContentCountByHash()
-
selectContentById
public String selectContentById()
Description copied from interface:SqlStatementsA statement to select the bytes of a content row by contentId.- Specified by:
selectContentByIdin interfaceSqlStatements- See Also:
SqlStatements.selectContentById()
-
selectContentByContentHash
public String selectContentByContentHash()
Description copied from interface:SqlStatementsA statement to select the bytes of a content row by contentHash- Specified by:
selectContentByContentHashin interfaceSqlStatements- See Also:
SqlStatements.selectContentByContentHash()
-
deleteAllOrphanedContent
public String deleteAllOrphanedContent()
Description copied from interface:SqlStatementsA statement to delete content that is no longer being referenced by an artifact version.- Specified by:
deleteAllOrphanedContentin interfaceSqlStatements
-
deleteAllContent
public String deleteAllContent()
Description copied from interface:SqlStatementsA statement to delete all content owned by a tenantId- Specified by:
deleteAllContentin interfaceSqlStatements- See Also:
SqlStatements.deleteAllContent()
-
updateContentCanonicalHash
public String updateContentCanonicalHash()
Description copied from interface:SqlStatementsA statement to update canonicalHash value in a row in the "content" table The only statement that allows to modify an existing row in the "content" table- Specified by:
updateContentCanonicalHashin interfaceSqlStatements- See Also:
SqlStatements.updateContentCanonicalHash()
-
selectLogConfigurationByLogger
public String selectLogConfigurationByLogger()
Description copied from interface:SqlStatementsA statement to select the log configuration for a given logger name- Specified by:
selectLogConfigurationByLoggerin interfaceSqlStatements- See Also:
SqlStatements.selectLogConfigurationByLogger()
-
deleteLogConfiguration
public String deleteLogConfiguration()
Description copied from interface:SqlStatementsA statement to delete a row in the "logconfiguration" table- Specified by:
deleteLogConfigurationin interfaceSqlStatements- See Also:
SqlStatements.deleteLogConfiguration()
-
selectAllLogConfigurations
public String selectAllLogConfigurations()
Description copied from interface:SqlStatementsA statement to select all rows in the "logconfiguration" table- Specified by:
selectAllLogConfigurationsin interfaceSqlStatements- See Also:
SqlStatements.selectAllLogConfigurations()
-
insertGroup
public String insertGroup()
Description copied from interface:SqlStatementsA statement used to insert a row into the groups table.- Specified by:
insertGroupin interfaceSqlStatements- See Also:
SqlStatements.insertGroup()
-
updateGroup
public String updateGroup()
Description copied from interface:SqlStatementsA statement used to update information about a group.- Specified by:
updateGroupin interfaceSqlStatements- See Also:
SqlStatements.updateGroup()
-
deleteGroup
public String deleteGroup()
Description copied from interface:SqlStatementsA statement used to delete a row from the groups table.- Specified by:
deleteGroupin interfaceSqlStatements- See Also:
SqlStatements.deleteGroup()
-
deleteAllGroups
public String deleteAllGroups()
Description copied from interface:SqlStatementsA statement used to delete all rows from the groups table.- Specified by:
deleteAllGroupsin interfaceSqlStatements- See Also:
SqlStatements.deleteAllGroups()
-
selectGroups
public String selectGroups()
Description copied from interface:SqlStatementsA statement used to select all rows from groups table.- Specified by:
selectGroupsin interfaceSqlStatements- See Also:
SqlStatements.selectGroups()
-
selectGroupByGroupId
public String selectGroupByGroupId()
Description copied from interface:SqlStatementsA statement used to select a single group in groups table by groupId.- Specified by:
selectGroupByGroupIdin interfaceSqlStatements- See Also:
SqlStatements.selectGroupByGroupId()
-
exportArtifactRules
public String exportArtifactRules()
- Specified by:
exportArtifactRulesin interfaceSqlStatements- See Also:
SqlStatements.exportArtifactRules()
-
exportArtifactVersions
public String exportArtifactVersions()
- Specified by:
exportArtifactVersionsin interfaceSqlStatements- See Also:
SqlStatements.exportArtifactVersions()
-
exportContent
public String exportContent()
- Specified by:
exportContentin interfaceSqlStatements- See Also:
SqlStatements.exportContent()
-
exportGlobalRules
public String exportGlobalRules()
- Specified by:
exportGlobalRulesin interfaceSqlStatements- See Also:
SqlStatements.exportGlobalRules()
-
exportGroups
public String exportGroups()
- Specified by:
exportGroupsin interfaceSqlStatements- See Also:
SqlStatements.exportGroups()
-
importArtifactRule
public String importArtifactRule()
- Specified by:
importArtifactRulein interfaceSqlStatements- See Also:
SqlStatements.importArtifactRule()
-
importArtifactVersion
public String importArtifactVersion()
- Specified by:
importArtifactVersionin interfaceSqlStatements- See Also:
SqlStatements.importArtifactVersion()
-
importContent
public String importContent()
- Specified by:
importContentin interfaceSqlStatements- See Also:
SqlStatements.importContent()
-
importGlobalRule
public String importGlobalRule()
- Specified by:
importGlobalRulein interfaceSqlStatements- See Also:
SqlStatements.importGlobalRule()
-
importGroup
public String importGroup()
- Specified by:
importGroupin interfaceSqlStatements- See Also:
SqlStatements.importGroup()
-
selectMaxContentId
public String selectMaxContentId()
- Specified by:
selectMaxContentIdin interfaceSqlStatements- See Also:
SqlStatements.selectMaxContentId()
-
selectMaxGlobalId
public String selectMaxGlobalId()
- Specified by:
selectMaxGlobalIdin interfaceSqlStatements- See Also:
SqlStatements.selectMaxGlobalId()
-
selectContentExists
public String selectContentExists()
- Specified by:
selectContentExistsin interfaceSqlStatements- See Also:
SqlStatements.selectContentExists()
-
selectGlobalIdExists
public String selectGlobalIdExists()
- Specified by:
selectGlobalIdExistsin interfaceSqlStatements- See Also:
SqlStatements.selectGlobalIdExists()
-
insertRoleMapping
public String insertRoleMapping()
- Specified by:
insertRoleMappingin interfaceSqlStatements- See Also:
SqlStatements.insertRoleMapping()
-
deleteRoleMapping
public String deleteRoleMapping()
- Specified by:
deleteRoleMappingin interfaceSqlStatements- See Also:
SqlStatements.deleteRoleMapping()
-
deleteAllRoleMappings
public String deleteAllRoleMappings()
- Specified by:
deleteAllRoleMappingsin interfaceSqlStatements- See Also:
SqlStatements.deleteAllRoleMappings()
-
selectRoleMappingByPrincipalId
public String selectRoleMappingByPrincipalId()
- Specified by:
selectRoleMappingByPrincipalIdin interfaceSqlStatements- See Also:
SqlStatements.selectRoleMappingByPrincipalId()
-
selectRoleByPrincipalId
public String selectRoleByPrincipalId()
- Specified by:
selectRoleByPrincipalIdin interfaceSqlStatements- See Also:
SqlStatements.selectRoleByPrincipalId()
-
selectRoleMappings
public String selectRoleMappings()
- Specified by:
selectRoleMappingsin interfaceSqlStatements- See Also:
SqlStatements.selectRoleMappings()
-
updateRoleMapping
public String updateRoleMapping()
- Specified by:
updateRoleMappingin interfaceSqlStatements- See Also:
SqlStatements.updateRoleMapping()
-
selectRoleMappingCountByPrincipal
public String selectRoleMappingCountByPrincipal()
- Specified by:
selectRoleMappingCountByPrincipalin interfaceSqlStatements- See Also:
SqlStatements.selectRoleMappingCountByPrincipal()
-
selectCurrentSequenceValue
public String selectCurrentSequenceValue()
- Specified by:
selectCurrentSequenceValuein interfaceSqlStatements- See Also:
SqlStatements.selectCurrentSequenceValue()
-
insertDownload
public String insertDownload()
- Specified by:
insertDownloadin interfaceSqlStatements- See Also:
SqlStatements.insertDownload()
-
selectDownloadContext
public String selectDownloadContext()
- Specified by:
selectDownloadContextin interfaceSqlStatements- See Also:
SqlStatements.selectDownloadContext()
-
deleteDownload
public String deleteDownload()
- Specified by:
deleteDownloadin interfaceSqlStatements- See Also:
SqlStatements.deleteDownload()
-
deleteExpiredDownloads
public String deleteExpiredDownloads()
- Specified by:
deleteExpiredDownloadsin interfaceSqlStatements- See Also:
SqlStatements.deleteExpiredDownloads()
-
insertSequenceValue
public String insertSequenceValue()
- Specified by:
insertSequenceValuein interfaceSqlStatements- See Also:
SqlStatements.insertSequenceValue()
-
-