public class PostgresSqlAction extends SqlAction.Impl
SqlAction.DeleteLog, SqlAction.IdRowMapper, SqlAction.Impl, SqlAction.LoggingSqlAction, SqlAction.StringRowMapper| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
insertFormatSql
Deprecated.
|
log, MAX_IN_SIZE| Constructor and Description |
|---|
PostgresSqlAction(org.springframework.jdbc.core.JdbcTemplate jdbc) |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.jdbc.core.JdbcTemplate |
_jdbc() |
protected java.lang.String |
_lookup(java.lang.String key) |
protected org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate |
_namedJdbc() |
boolean |
activeSession(java.lang.String sessionUUID)
Returns whether the given string is the UUID of a session that is
currently active.
|
int |
closeSessions(java.lang.String uuid) |
long |
countFormat(java.lang.String name) |
void |
createSavepoint(java.lang.String savepoint) |
java.util.Set<java.lang.String> |
currentUserNames() |
long |
currValue(java.lang.String segmentName) |
java.lang.String |
dbUuid() |
java.lang.String |
dbVersion() |
void |
deferConstraints() |
void |
delCurrentEventLog(java.lang.String key) |
java.lang.Long |
findRepoImageFromPixels(long id) |
java.util.List<java.lang.Long> |
findRepoPixels(java.lang.String uuid,
java.lang.String dirname,
java.lang.String basename) |
java.util.List<java.lang.Long> |
getDeletedIds(java.lang.String entityType) |
java.util.List<java.lang.String> |
getPixelsNamePathRepo(long id)
Retrieves the name, path and repo for the given pixels set.
|
java.util.List<java.lang.Long> |
getShapeIds(long roiId) |
protected void |
handlePotentialPgArrayJarError(org.springframework.jdbc.UncategorizedSQLException e)
If postgresql is installed with an older jdbc jar that is on the
bootstrap classpath, then it's possible that the use of pgarrays will
fail (I think).
|
int |
insertFormat(java.lang.String name)
Deprecated.
|
void |
insertLogs(java.util.List<java.lang.Object[]> batchData) |
int |
insertSession(java.util.Map<java.lang.String,java.lang.Object> params) |
java.lang.Long |
nextSessionId() |
long |
nextValue(java.lang.String segmentValue,
int incrementSize)
The implementation of this method guarantees that even if the current
transaction fails that the value found will not be used by another
transaction.
|
long |
nodeId(java.lang.String internal_uuid) |
java.util.Date |
now() |
void |
prepareSession(long eventId,
long userId,
long groupId)
Stores the current event context information in a temporary table
so that triggers can make use of them.
|
void |
releaseSavepoint(java.lang.String savepoint) |
int |
removePassword(java.lang.Long id) |
java.util.Map<java.lang.String,java.lang.Object> |
repoFile(long value) |
java.lang.String |
rewriteHql(java.lang.String query,
java.lang.String key,
java.lang.Object value)
The temp_ids infrastructure was never properly put
in place for the "psql" profile.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
roiByImage(long imageId) |
void |
rollbackSavepoint(java.lang.String savepoint) |
long |
selectCurrentEventLog(java.lang.String key) |
java.lang.Long |
sessionId(java.lang.String uuid) |
void |
setCurrentEventLog(long id,
java.lang.String key) |
void |
setFileRepo(java.util.Collection<java.lang.Long> ids,
java.lang.String repoId) |
void |
setPixelsNamePathRepo(long pixId,
java.lang.String name,
java.lang.String path,
java.lang.String repoId) |
int |
synchronizeJobs(java.util.List<java.lang.Long> ids) |
int |
updateConfiguration(java.lang.String key,
java.lang.String value) |
int |
updateSessionUserIP(long sessionId,
java.lang.String userIP) |
addMessageWithinDbPatchEnd, addMessageWithinDbPatchStart, addMimetypes, changeGroupPermissions, changeTablePermissionsForGroup, clearPermissionsBit, closeNode, closeNodeSessions, configValue, createIdsTempTable, createInsertTrigger, delConfigValue, deleteCurrentAdminPrivileges, deleteOldAdminPrivileges, deleteRepoDeleteLogs, fileIdsInDb, fileRepo, filterFileIdsByRepo, findOldAdminPrivileges, findRepoDeleteLogs, findRepoFile, findRepoFile, findRepoFile, findRepoFilePath, findRepoFiles, findRepoFiles, findRepoRootPath, getEventLogPartitions, getEventLogPercent, getGroupIds, getGroupPermissions, getLdapExperimenters, getPasswordHash, getShareData, getUserEmailByOmeName, getUserEmailsByGroup, getUserGroups, getUserId, getUsername, getUserPrettyNameByOmeName, groupInfoFor, hasUnicodeUnits, insertCurrentAdminPrivileges, isFileInRepo, isLdapExperimenter, nextPixelsDataLogForRepo, printThrowable, refreshEventLogFromUpdatedAnnotations, repoScriptCount, scriptRepo, setPermissionsBit, setRoles, setStatsInfo, setUserPassword, updateOrInsertConfigValue@Deprecated public static final java.lang.String insertFormatSql
public PostgresSqlAction(org.springframework.jdbc.core.JdbcTemplate jdbc)
protected org.springframework.jdbc.core.JdbcTemplate _jdbc()
_jdbc in class SqlAction.Implprotected org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate _namedJdbc()
_namedJdbc in class SqlAction.Implprotected java.lang.String _lookup(java.lang.String key)
_lookup in class SqlAction.Implpublic java.lang.String rewriteHql(java.lang.String query,
java.lang.String key,
java.lang.Object value)
rewriteHql in interface SqlActionrewriteHql in class SqlAction.Implquery - 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.public void prepareSession(long eventId,
long userId,
long groupId)
SqlActionpublic boolean activeSession(java.lang.String sessionUUID)
SqlActionsessionUUID - NOT NULL.true if sessionUUID is an active session,
false otherwisepublic int synchronizeJobs(java.util.List<java.lang.Long> ids)
public java.util.List<java.lang.Long> findRepoPixels(java.lang.String uuid,
java.lang.String dirname,
java.lang.String basename)
public java.lang.Long findRepoImageFromPixels(long id)
public java.lang.Long nextSessionId()
public java.util.Map<java.lang.String,java.lang.Object> repoFile(long value)
public long countFormat(java.lang.String name)
@Deprecated public int insertFormat(java.lang.String name)
public int closeSessions(java.lang.String uuid)
public long nodeId(java.lang.String internal_uuid)
public int insertSession(java.util.Map<java.lang.String,java.lang.Object> params)
public int updateSessionUserIP(long sessionId,
java.lang.String userIP)
public java.lang.Long sessionId(java.lang.String uuid)
public int removePassword(java.lang.Long id)
public java.util.Date now()
public int updateConfiguration(java.lang.String key,
java.lang.String value)
public java.lang.String dbVersion()
public java.lang.String dbUuid()
public long selectCurrentEventLog(java.lang.String key)
selectCurrentEventLog in interface SqlActionselectCurrentEventLog in class SqlAction.Implpublic void setCurrentEventLog(long id,
java.lang.String key)
setCurrentEventLog in interface SqlActionsetCurrentEventLog in class SqlAction.Implpublic void delCurrentEventLog(java.lang.String key)
delCurrentEventLog in interface SqlActiondelCurrentEventLog in class SqlAction.Implpublic long nextValue(java.lang.String segmentValue,
int incrementSize)
SqlActionpublic long currValue(java.lang.String segmentName)
public void insertLogs(java.util.List<java.lang.Object[]> batchData)
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> roiByImage(long imageId)
public java.util.List<java.lang.Long> getShapeIds(long roiId)
public void setFileRepo(java.util.Collection<java.lang.Long> ids,
java.lang.String repoId)
public void setPixelsNamePathRepo(long pixId,
java.lang.String name,
java.lang.String path,
java.lang.String repoId)
public java.util.List<java.lang.Long> getDeletedIds(java.lang.String entityType)
public void createSavepoint(java.lang.String savepoint)
public void releaseSavepoint(java.lang.String savepoint)
public void rollbackSavepoint(java.lang.String savepoint)
public void deferConstraints()
public java.util.Set<java.lang.String> currentUserNames()
public java.util.List<java.lang.String> getPixelsNamePathRepo(long id)
throws InternalException
SqlActionInternalExceptionprotected void handlePotentialPgArrayJarError(org.springframework.jdbc.UncategorizedSQLException e)