Package ome.util
Class SqlAction.Impl
- java.lang.Object
-
- ome.util.SqlAction.Impl
-
- All Implemented Interfaces:
SqlAction
- Direct Known Subclasses:
PostgresSqlAction
- Enclosing interface:
- SqlAction
public abstract static class SqlAction.Impl extends java.lang.Object implements SqlAction
Base implementation which can be used
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ome.util.SqlAction
SqlAction.DeleteLog, SqlAction.IdRowMapper, SqlAction.Impl, SqlAction.LoggingSqlAction, SqlAction.StringRowMapper
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Loggerlogprotected static intMAX_IN_SIZE
-
Constructor Summary
Constructors Constructor Description Impl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract org.springframework.jdbc.core.JdbcTemplate_jdbc()protected abstract java.lang.String_lookup(java.lang.String key)protected abstract org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate_namedJdbc()voidaddMessageWithinDbPatchEnd(java.lang.String version, int patch, java.lang.String message)Add a unique message to the DB patch table within the current patch.voidaddMessageWithinDbPatchStart(java.lang.String version, int patch, java.lang.String message)Add a unique message to the DB patch table within the current patch.protected java.lang.StringaddMimetypes(java.util.Collection<java.lang.String> mimetypes, org.springframework.jdbc.core.namedparam.MapSqlParameterSource params)Returns the "and_mimetype" clause which must be appended to a given query.intchangeGroupPermissions(java.lang.Long id, java.lang.Long internal)intchangeTablePermissionsForGroup(java.lang.String table, java.lang.Long id, java.lang.Long internal)booleanclearPermissionsBit(java.lang.String table, long id, int bit)Sets the given permissions bit to0.intcloseNode(java.lang.String uuid)intcloseNodeSessions(java.lang.String uuid)java.lang.StringconfigValue(java.lang.String key)java.lang.StringcreateIdsTempTable(java.util.Collection<java.lang.Long> ids)Creates a temporary table filled with the given ids and returns its name.voidcreateInsertTrigger(java.lang.String name, java.lang.String table, java.lang.String procedure)Creates an insert trigger of the given name, for the given table, with the given procedure.intdelConfigValue(java.lang.String key)voiddelCurrentEventLog(java.lang.String key)voiddeleteCurrentAdminPrivileges()Delete the current light administrator privileges for the current transaction.voiddeleteOldAdminPrivileges(java.util.Collection<java.lang.Long> transactionIds)Delete the current light administrator privileges for the given transactions.intdeleteRepoDeleteLogs(SqlAction.DeleteLog template)Delete allSqlAction.DeleteLogentries which match all of the non-null fields provided in the template.java.util.List<java.lang.Long>fileIdsInDb(java.lang.String uuid, java.util.Set<java.lang.String> mimetypes)Return all IDs matching the given mimetypes, or all IDs if mimetypes is null.java.lang.StringfileRepo(long fileId)java.util.List<java.lang.Long>filterFileIdsByRepo(java.lang.String uuid, java.util.List<java.lang.Long> fileIds)Find the original file IDs among those given that are in the given repository.java.util.Collection<java.lang.Long>findOldAdminPrivileges()Find the completed transactions among the current light administrator privileges.java.util.List<SqlAction.DeleteLog>findRepoDeleteLogs(SqlAction.DeleteLog template)Find allSqlAction.DeleteLogentries which match all of the non-null fields provided in the template.java.lang.LongfindRepoFile(java.lang.String uuid, java.lang.String dirname, java.lang.String basename)CallsSqlAction.findRepoFile(String, String, String, Set)passing null.java.lang.LongfindRepoFile(java.lang.String uuid, java.lang.String dirname, java.lang.String basename, java.lang.String mimetype)java.lang.LongfindRepoFile(java.lang.String uuid, java.lang.String dirname, java.lang.String basename, java.util.Set<java.lang.String> mimetypes)Lookup the id of anOriginalFilein a given repository or return null if none is found.java.lang.StringfindRepoFilePath(java.lang.String uuid, long id)java.util.List<java.lang.Long>findRepoFiles(java.lang.String uuid, java.lang.String dirname)Return a list of original file ids that all have a path value matching the passed dirname in the given repository.java.util.Map<java.lang.String,java.lang.Long>findRepoFiles(java.lang.String uuid, java.lang.String dirname, java.util.List<java.lang.String> basenames, java.util.Set<java.lang.String> mimetypes)LikeSqlAction.findRepoFile(String, String, String, Set), but queries in bulk and returns a map for the found IDs.java.lang.StringfindRepoRootPath(java.lang.String uuid)Find the path of the repository root.java.util.List<java.lang.Object[]>getEventLogPartitions(java.util.Collection<java.lang.String> types, java.util.Collection<java.lang.String> actions, long offset, long limit)Loads up to "limit" event logs using partioning so that only the last event log of a particular (type, id) pair is returned.floatgetEventLogPercent(java.lang.String key)Returns the percent (e.g.java.util.Map<java.lang.String,java.lang.Long>getGroupIds(java.util.Collection<java.lang.String> names)longgetGroupPermissions(long groupId)Returns the permissions for the given group id.java.util.List<java.lang.Long>getLdapExperimenters()Gets the experimenters who have theldapattribute enabled.java.lang.StringgetPasswordHash(java.lang.Long experimenterID)java.util.Map<java.lang.Long,byte[]>getShareData(java.util.List<java.lang.Long> ids)Returns a map of Share ID to Share data blob.java.lang.StringgetUserEmailByOmeName(java.lang.String userName)Load the email address for the given user.java.util.Collection<java.lang.String>getUserEmailsByGroup(long groupId)Load all the non-empty email addresses for users in a given group.java.util.List<java.lang.String>getUserGroups(java.lang.String userName)java.lang.LonggetUserId(java.lang.String userName)Get the user's IDjava.lang.StringgetUsername(long userId)Get the user's namejava.lang.StringgetUserPrettyNameByOmeName(java.lang.String userName)Load the pretty name for the given user.ExperimenterGroupgroupInfoFor(java.lang.String table, long id)Return a mostly unloadedExperimenterGroupobject containing only the id, name, and permissions.booleanhasUnicodeUnits()voidinsertCurrentAdminPrivileges(java.lang.Iterable<AdminPrivilege> privileges)Insert the current light administrator privileges for the current transaction.intisFileInRepo(java.lang.String uuid, long id, java.util.Set<java.lang.String> mimetypes)booleanisLdapExperimenter(java.lang.Long id)Checks whether the specified experimenter ID has theldapflag set.java.util.List<long[]>nextPixelsDataLogForRepo(java.lang.String repo, long lastEventId, int rows)Returns arrays of longs for the following SQL return values:experimenter, eventlog, entityid as pixels, rownumberThe oldest N eventlogs with action = "PIXELDATA" and entitytype = "ome.model.core.Pixels" is found per user and returned.protected java.lang.StringprintThrowable(java.lang.Throwable t)voidrefreshEventLogFromUpdatedAnnotations()Convert the _reindexing_required table to REINDEX entries in the event log.intrepoScriptCount(java.lang.String uuid, java.util.Set<java.lang.String> mimetypes)java.lang.StringrewriteHql(java.lang.String query, java.lang.String key, java.lang.Object value)Allows the specific database implementations a chance to modify queries.java.lang.StringscriptRepo(long fileId, java.util.Set<java.lang.String> mimetypes)Similar toSqlAction.fileRepo(long), but only returns values for files which are also scripts.longselectCurrentEventLog(java.lang.String key)voidsetCurrentEventLog(long id, java.lang.String key)booleansetPermissionsBit(java.lang.String table, long id, int bit)Sets the given permissions bit to1.voidsetRoles(long rootUserId, long guestUserId, long systemGroupId, long userGroupId, long guestGroupId)Note the roles in the database.longsetStatsInfo(Channel ch, StatsInfo si)booleansetUserPassword(java.lang.Long experimenterID, java.lang.String password)intupdateOrInsertConfigValue(java.lang.String name, java.lang.String value)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ome.util.SqlAction
activeSession, closeSessions, countFormat, createSavepoint, currentUserNames, currValue, dbUuid, dbVersion, deferConstraints, findRepoImageFromPixels, findRepoPixels, getDeletedIds, getPixelsNamePathRepo, getShapeIds, insertFormat, insertLogs, insertSession, nextSessionId, nextValue, nodeId, now, prepareSession, releaseSavepoint, removePassword, repoFile, roiByImage, rollbackSavepoint, sessionId, setFileRepo, setPixelsNamePathRepo, synchronizeJobs, updateConfiguration, updateSessionUserIP
-
-
-
-
Field Detail
-
MAX_IN_SIZE
protected static final int MAX_IN_SIZE
- See Also:
- Constant Field Values
-
log
protected final org.slf4j.Logger log
-
-
Method Detail
-
_jdbc
protected abstract org.springframework.jdbc.core.JdbcTemplate _jdbc()
-
_namedJdbc
protected abstract org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate _namedJdbc()
-
_lookup
protected abstract java.lang.String _lookup(java.lang.String key)
-
printThrowable
protected java.lang.String printThrowable(java.lang.Throwable t)
-
createInsertTrigger
public void createInsertTrigger(java.lang.String name, java.lang.String table, java.lang.String procedure)Description copied from interface:SqlActionCreates an insert trigger of the given name, for the given table, with the given procedure. No error handling is performed.- Specified by:
createInsertTriggerin interfaceSqlAction
-
rewriteHql
public java.lang.String rewriteHql(java.lang.String query, java.lang.String key, java.lang.Object value)Description copied from interface:SqlActionAllows the specific database implementations a chance to modify queries.- Specified by:
rewriteHqlin interfaceSqlAction- Parameters:
query- String query (non-null) which is in effect.key- Key of the argument e.g. (:ids)value- value which has been passed in for that parameter.- Returns:
- Returns a query replacement.
- See Also:
- ticket 3697
-
createIdsTempTable
public java.lang.String createIdsTempTable(java.util.Collection<java.lang.Long> ids)
Description copied from interface:SqlActionCreates a temporary table filled with the given ids and returns its name. The table is only available for the period if the transaction.- Specified by:
createIdsTempTablein interfaceSqlAction
-
closeNodeSessions
public int closeNodeSessions(java.lang.String uuid)
- Specified by:
closeNodeSessionsin interfaceSqlAction
-
closeNode
public int closeNode(java.lang.String uuid)
-
setUserPassword
public boolean setUserPassword(java.lang.Long experimenterID, java.lang.String password)- Specified by:
setUserPasswordin interfaceSqlAction
-
changeGroupPermissions
public int changeGroupPermissions(java.lang.Long id, java.lang.Long internal)- Specified by:
changeGroupPermissionsin interfaceSqlAction
-
changeTablePermissionsForGroup
public int changeTablePermissionsForGroup(java.lang.String table, java.lang.Long id, java.lang.Long internal)- Specified by:
changeTablePermissionsForGroupin interfaceSqlAction
-
setPermissionsBit
public boolean setPermissionsBit(java.lang.String table, long id, int bit)Description copied from interface:SqlActionSets the given permissions bit to1. Note: Actually sets the bit to1in the value stored in the database, does not adopt the inverse convention associated with permissions flags.- Specified by:
setPermissionsBitin interfaceSqlAction- Parameters:
table- the table in which to find the rowid- the value of the table'sidcolumn that identifies the row to updatebit- the bit number to set to1, counting from0as the least significant bit- Returns:
- if the row was found in the table, regardless of the given bit's previous value
-
clearPermissionsBit
public boolean clearPermissionsBit(java.lang.String table, long id, int bit)Description copied from interface:SqlActionSets the given permissions bit to0. Note: Actually sets the bit to0in the value stored in the database, does not adopt the inverse convention associated with permissions flags.- Specified by:
clearPermissionsBitin interfaceSqlAction- Parameters:
table- the table in which to find the rowid- the value of the table'sidcolumn that identifies the row to updatebit- the bit number to set to0, counting from0as the least significant bit- Returns:
- if the row was found in the table, regardless of the given bit's previous value
-
setRoles
public void setRoles(long rootUserId, long guestUserId, long systemGroupId, long userGroupId, long guestGroupId)Description copied from interface:SqlActionNote the roles in the database.
-
findOldAdminPrivileges
public java.util.Collection<java.lang.Long> findOldAdminPrivileges()
Description copied from interface:SqlActionFind the completed transactions among the current light administrator privileges.- Specified by:
findOldAdminPrivilegesin interfaceSqlAction- Returns:
- the transaction IDs
-
deleteOldAdminPrivileges
public void deleteOldAdminPrivileges(java.util.Collection<java.lang.Long> transactionIds)
Description copied from interface:SqlActionDelete the current light administrator privileges for the given transactions.- Specified by:
deleteOldAdminPrivilegesin interfaceSqlAction- Parameters:
transactionIds- the transaction IDs to delete
-
deleteCurrentAdminPrivileges
public void deleteCurrentAdminPrivileges()
Description copied from interface:SqlActionDelete the current light administrator privileges for the current transaction.- Specified by:
deleteCurrentAdminPrivilegesin interfaceSqlAction
-
insertCurrentAdminPrivileges
public void insertCurrentAdminPrivileges(java.lang.Iterable<AdminPrivilege> privileges)
Description copied from interface:SqlActionInsert the current light administrator privileges for the current transaction.- Specified by:
insertCurrentAdminPrivilegesin interfaceSqlAction- Parameters:
privileges- some light administrator privileges
-
addMimetypes
protected java.lang.String addMimetypes(java.util.Collection<java.lang.String> mimetypes, org.springframework.jdbc.core.namedparam.MapSqlParameterSource params)Returns the "and_mimetype" clause which must be appended to a given query. Note: the rest of the SQL statement to which this clause is appended must use named SQL parameters otherwise "Can't infer the SQL type to use" will be raised.- Parameters:
mimetypes- If null, then "" will be returned.params- sql parameter source to be passed to JDBC methods.- Returns:
- Possibly empty String, but never null.
-
findRepoFile
public java.lang.Long findRepoFile(java.lang.String uuid, java.lang.String dirname, java.lang.String basename)Description copied from interface:SqlActionCallsSqlAction.findRepoFile(String, String, String, Set)passing null.- Specified by:
findRepoFilein interfaceSqlAction
-
findRepoFile
public java.lang.Long findRepoFile(java.lang.String uuid, java.lang.String dirname, java.lang.String basename, java.lang.String mimetype)Description copied from interface:SqlAction- Specified by:
findRepoFilein interfaceSqlAction
-
findRepoFile
public java.lang.Long findRepoFile(java.lang.String uuid, java.lang.String dirname, java.lang.String basename, java.util.Set<java.lang.String> mimetypes)Description copied from interface:SqlActionLookup the id of anOriginalFilein a given repository or return null if none is found.- Specified by:
findRepoFilein interfaceSqlAction- Parameters:
uuid- The UUID of the repository (originalfile.sha1)dirname- the full directory path minus the file name.basename- i.e. the filename without any directory pathmimetypes- if null, then no mimetype query fragement will be added.- Returns:
- null if no
OriginalFileis found, otherwise the id.
-
findRepoFiles
public java.util.Map<java.lang.String,java.lang.Long> findRepoFiles(java.lang.String uuid, java.lang.String dirname, java.util.List<java.lang.String> basenames, java.util.Set<java.lang.String> mimetypes)Description copied from interface:SqlActionLikeSqlAction.findRepoFile(String, String, String, Set), but queries in bulk and returns a map for the found IDs.- Specified by:
findRepoFilesin interfaceSqlAction
-
repoScriptCount
public int repoScriptCount(java.lang.String uuid, java.util.Set<java.lang.String> mimetypes)- Specified by:
repoScriptCountin interfaceSqlAction- Parameters:
uuid- repository identifiermimetypes- file mimetypes to check; if null, all files;
-
isFileInRepo
public int isFileInRepo(java.lang.String uuid, long id, java.util.Set<java.lang.String> mimetypes)- Specified by:
isFileInRepoin interfaceSqlAction- Parameters:
uuid- Repository identifierid- file identifiermimetypes- Set of mimetypes to check; if null, all files.
-
fileIdsInDb
public java.util.List<java.lang.Long> fileIdsInDb(java.lang.String uuid, java.util.Set<java.lang.String> mimetypes)Description copied from interface:SqlActionReturn all IDs matching the given mimetypes, or all IDs if mimetypes is null.- Specified by:
fileIdsInDbin interfaceSqlAction
-
filterFileIdsByRepo
public java.util.List<java.lang.Long> filterFileIdsByRepo(java.lang.String uuid, java.util.List<java.lang.Long> fileIds)Description copied from interface:SqlActionFind the original file IDs among those given that are in the given repository.- Specified by:
filterFileIdsByRepoin interfaceSqlAction- Parameters:
uuid- a repository UUIDfileIds- IDs of original files- Returns:
- those IDs among those given whose original files are in the given repository
-
findRepoFiles
public java.util.List<java.lang.Long> findRepoFiles(java.lang.String uuid, java.lang.String dirname)Description copied from interface:SqlActionReturn a list of original file ids that all have a path value matching the passed dirname in the given repository.- Specified by:
findRepoFilesin interfaceSqlAction- Returns:
- possibly empty list of ids.
-
findRepoDeleteLogs
public java.util.List<SqlAction.DeleteLog> findRepoDeleteLogs(SqlAction.DeleteLog template)
Description copied from interface:SqlActionFind allSqlAction.DeleteLogentries which match all of the non-null fields provided in the template.- Specified by:
findRepoDeleteLogsin interfaceSqlAction- Parameters:
template- non-null.- Returns:
- a list of
SqlAction.DeleteLogentries
-
deleteRepoDeleteLogs
public int deleteRepoDeleteLogs(SqlAction.DeleteLog template)
Description copied from interface:SqlActionDelete allSqlAction.DeleteLogentries which match all of the non-null fields provided in the template.- Specified by:
deleteRepoDeleteLogsin interfaceSqlAction- Parameters:
template- not-null- Returns:
- the number of rows deleted.
-
findRepoRootPath
public java.lang.String findRepoRootPath(java.lang.String uuid)
Description copied from interface:SqlActionFind the path of the repository root.- Specified by:
findRepoRootPathin interfaceSqlAction- Parameters:
uuid- a repository UUID- Returns:
- the repository root
-
findRepoFilePath
public java.lang.String findRepoFilePath(java.lang.String uuid, long id)- Specified by:
findRepoFilePathin interfaceSqlAction
-
nextPixelsDataLogForRepo
public java.util.List<long[]> nextPixelsDataLogForRepo(java.lang.String repo, long lastEventId, int rows)Description copied from interface:SqlActionReturns arrays of longs for the following SQL return values:experimenter, eventlog, entityid as pixels, rownumberThe oldest N eventlogs with action = "PIXELDATA" and entitytype = "ome.model.core.Pixels" is found per user and returned. Multiple eventlogs are returned per user in order to support multi-threading. Duplicate pixel ids are stripped.- Specified by:
nextPixelsDataLogForRepoin interfaceSqlAction
-
getGroupPermissions
public long getGroupPermissions(long groupId)
Description copied from interface:SqlActionReturns the permissions for the given group id.- Specified by:
getGroupPermissionsin interfaceSqlAction
-
getGroupIds
public java.util.Map<java.lang.String,java.lang.Long> getGroupIds(java.util.Collection<java.lang.String> names)
- Specified by:
getGroupIdsin interfaceSqlAction
-
getPasswordHash
public java.lang.String getPasswordHash(java.lang.Long experimenterID)
- Specified by:
getPasswordHashin interfaceSqlAction
-
getUserId
public java.lang.Long getUserId(java.lang.String userName)
Description copied from interface:SqlActionGet the user's ID
-
getUserPrettyNameByOmeName
public java.lang.String getUserPrettyNameByOmeName(java.lang.String userName)
Description copied from interface:SqlActionLoad the pretty name for the given user.- Specified by:
getUserPrettyNameByOmeNamein interfaceSqlAction- Parameters:
userName- a user's OME name- Returns:
- the user's name for presentation, may be
nullif their OME name does not exist
-
getUserEmailByOmeName
public java.lang.String getUserEmailByOmeName(java.lang.String userName)
Description copied from interface:SqlActionLoad the email address for the given user.- Specified by:
getUserEmailByOmeNamein interfaceSqlAction- Parameters:
userName- a user's OME name- Returns:
- the user's email address, may be
nullif they have none or their OME name does not exist
-
getUserEmailsByGroup
public java.util.Collection<java.lang.String> getUserEmailsByGroup(long groupId)
Description copied from interface:SqlActionLoad all the non-empty email addresses for users in a given group.- Specified by:
getUserEmailsByGroupin interfaceSqlAction- Returns:
- a non-null
Collectionof non-empty user email addresses.
-
getUsername
public java.lang.String getUsername(long userId)
Description copied from interface:SqlActionGet the user's name- Specified by:
getUsernamein interfaceSqlAction- Parameters:
userId- the user's ID- Returns:
- their name, or
nullif they cannot be found
-
getLdapExperimenters
public java.util.List<java.lang.Long> getLdapExperimenters()
Description copied from interface:SqlActionGets the experimenters who have theldapattribute enabled.- Specified by:
getLdapExperimentersin interfaceSqlAction- Returns:
- a list of user IDs.
-
isLdapExperimenter
public boolean isLdapExperimenter(java.lang.Long id)
Description copied from interface:SqlActionChecks whether the specified experimenter ID has theldapflag set.- Specified by:
isLdapExperimenterin interfaceSqlAction- Parameters:
id- The experimenter ID.- Returns:
- true if the experimenter is an LDAP user; false otherwise.
-
getUserGroups
public java.util.List<java.lang.String> getUserGroups(java.lang.String userName)
- Specified by:
getUserGroupsin interfaceSqlAction
-
groupInfoFor
public ExperimenterGroup groupInfoFor(java.lang.String table, long id)
Description copied from interface:SqlActionReturn a mostly unloadedExperimenterGroupobject containing only the id, name, and permissions.- Specified by:
groupInfoForin interfaceSqlAction
-
fileRepo
public java.lang.String fileRepo(long fileId)
-
scriptRepo
public java.lang.String scriptRepo(long fileId, java.util.Set<java.lang.String> mimetypes)Description copied from interface:SqlActionSimilar toSqlAction.fileRepo(long), but only returns values for files which are also scripts. Null may be returned- Specified by:
scriptRepoin interfaceSqlActionmimetypes- null implies all files are checked
-
setStatsInfo
public long setStatsInfo(Channel ch, StatsInfo si)
- Specified by:
setStatsInfoin interfaceSqlAction
-
configValue
public java.lang.String configValue(java.lang.String key)
- Specified by:
configValuein interfaceSqlAction
-
delConfigValue
public int delConfigValue(java.lang.String key)
- Specified by:
delConfigValuein interfaceSqlAction
-
updateOrInsertConfigValue
public int updateOrInsertConfigValue(java.lang.String name, java.lang.String value)- Specified by:
updateOrInsertConfigValuein interfaceSqlAction
-
selectCurrentEventLog
public long selectCurrentEventLog(java.lang.String key)
- Specified by:
selectCurrentEventLogin interfaceSqlAction
-
getEventLogPercent
public float getEventLogPercent(java.lang.String key)
Description copied from interface:SqlActionReturns the percent (e.g. 0-100%) as calculated by the number of rows represented as completed by the configuration table row of this key divided by the total number of rows in the event log. Since this method executes 2 counts over the event log table, it can take a significant amount of time.- Specified by:
getEventLogPercentin interfaceSqlAction- Parameters:
key- PersistentEventLogLoader key for lookup in the configuration table- Returns:
- float value between 0 and 100 of the percent completed
-
getEventLogPartitions
public java.util.List<java.lang.Object[]> getEventLogPartitions(java.util.Collection<java.lang.String> types, java.util.Collection<java.lang.String> actions, long offset, long limit)Description copied from interface:SqlActionLoads up to "limit" event logs using partioning so that only the last event log of a particular (type, id) pair is returned. The contents of the object array are:- the id of the event log (Long)
- the entity type of the event log (String)
- the entity id of the event log (Long)
- the action of the event log (String)
- the number of skipped event logs (Integer)
- Specified by:
getEventLogPartitionsin interfaceSqlAction- Parameters:
types- Collection of entityType strings which should be queriedactions- Collection of ACTION strings which should be queriedoffset- Offset to the row which should be queried firstlimit- Maximum number of rows (after partionting) which should be returned.
-
setCurrentEventLog
public void setCurrentEventLog(long id, java.lang.String key)- Specified by:
setCurrentEventLogin interfaceSqlAction
-
delCurrentEventLog
public void delCurrentEventLog(java.lang.String key)
- Specified by:
delCurrentEventLogin interfaceSqlAction
-
refreshEventLogFromUpdatedAnnotations
public void refreshEventLogFromUpdatedAnnotations()
Description copied from interface:SqlActionConvert the _reindexing_required table to REINDEX entries in the event log.- Specified by:
refreshEventLogFromUpdatedAnnotationsin interfaceSqlAction
-
hasUnicodeUnits
public boolean hasUnicodeUnits()
- Specified by:
hasUnicodeUnitsin interfaceSqlAction- Returns:
- if the database's type system contains correctly encoded units of measure
-
addMessageWithinDbPatchStart
public void addMessageWithinDbPatchStart(java.lang.String version, int patch, java.lang.String message)Description copied from interface:SqlActionAdd a unique message to the DB patch table within the current patch. This method marks the start of the corresponding DB adjustment process.- Specified by:
addMessageWithinDbPatchStartin interfaceSqlAction- Parameters:
version- the version of the current DBpatch- the patch of the current DBmessage- the new message to note
-
addMessageWithinDbPatchEnd
public void addMessageWithinDbPatchEnd(java.lang.String version, int patch, java.lang.String message)Description copied from interface:SqlActionAdd a unique message to the DB patch table within the current patch. This method marks the end of the corresponding DB adjustment process.- Specified by:
addMessageWithinDbPatchEndin interfaceSqlAction- Parameters:
version- the version of the current DBpatch- the patch of the current DBmessage- the new message to note
-
getShareData
public java.util.Map<java.lang.Long,byte[]> getShareData(java.util.List<java.lang.Long> ids)
Description copied from interface:SqlActionReturns a map of Share ID to Share data blob.- Specified by:
getShareDatain interfaceSqlAction- Parameters:
ids- IDs of Shares for which data blobs are to be returned.- Returns:
- map of ID to data blob.
-
-