From 8439860117f9475f30ac5713a0f062e5106a1728 Mon Sep 17 00:00:00 2001 From: Shengquan Ni <13672781+shengquan-ni@users.noreply.github.com> Date: Sun, 9 Feb 2025 23:55:27 -0800 Subject: [PATCH 01/20] update --- .../scheduling/CostEstimator.scala | 6 +- .../ics/texera/web/ComputingUnitMaster.scala | 2 +- .../texera/web/ServletAwareConfigurator.scala | 4 +- .../uci/ics/texera/web/WebsocketInput.scala | 10 +- .../ics/texera/web/auth/GuestAuthFilter.scala | 4 +- .../uci/ics/texera/web/auth/SessionUser.scala | 8 +- .../texera/web/auth/UserAuthenticator.scala | 8 +- .../texera/web/auth/UserRoleAuthorizer.scala | 4 +- .../web/resource/CollaborationResource.scala | 4 +- .../web/resource/auth/AuthResource.scala | 4 +- .../resource/auth/GoogleAuthResource.scala | 4 +- .../dashboard/DashboardResource.scala | 16 +- .../dashboard/DatasetSearchQueryBuilder.scala | 18 +- .../dashboard/FulltextSearchQueryUtils.scala | 103 +++++--- .../dashboard/ProjectSearchQueryBuilder.scala | 8 +- .../dashboard/SearchQueryBuilder.scala | 12 +- .../dashboard/UnifiedResourceSchema.scala | 48 ++-- .../WorkflowSearchQueryBuilder.scala | 15 +- .../execution/AdminExecutionResource.scala | 12 +- .../admin/user/AdminUserResource.scala | 14 +- .../resource/dashboard/hub/EntityTables.scala | 28 +-- .../resource/dashboard/hub/HubResource.scala | 46 ++-- .../user/dataset/DatasetAccessResource.scala | 38 +-- .../user/dataset/DatasetResource.scala | 98 ++++---- .../utils/DatasetStatisticsUtils.scala | 8 +- .../user/project/ProjectAccessResource.scala | 14 +- .../user/project/ProjectResource.scala | 36 +-- .../user/project/PublicProjectResource.scala | 16 +- .../user/quota/UserQuotaResource.scala | 20 +- .../workflow/WorkflowAccessResource.scala | 30 +-- .../workflow/WorkflowExecutionsResource.scala | 49 ++-- .../user/workflow/WorkflowResource.scala | 68 +++--- .../workflow/WorkflowVersionResource.scala | 32 +-- .../web/service/ExecutionStatsService.scala | 15 +- .../ExecutionsMetadataPersistService.scala | 10 +- .../web/service/ResultExportService.scala | 8 +- .../web/service/WorkflowEmailNotifier.scala | 4 +- .../service/WorkflowExecutionService.scala | 19 +- .../scheduling/DefaultCostEstimatorSpec.scala | 45 ++-- .../dashboard/file/WorkflowResourceSpec.scala | 36 +-- core/dao/build.sbt | 1 + core/dao/src/main/resources/jooq-conf.xml | 2 +- .../ics/texera/dao/JooqCodeGenerator.scala | 3 +- .../texera/dao/jooq/generated/Indexes.java | 125 ++++------ .../ics/texera/dao/jooq/generated/Keys.java | 226 +++++++++--------- .../texera/dao/jooq/generated/Sequences.java | 56 +++++ .../texera/dao/jooq/generated/TexeraDb.java | 22 +- ...ccessPrivilege.java => PrivilegeEnum.java} | 12 +- .../enums/ProjectUserAccessPrivilege.java | 49 ---- .../{UserRole.java => UserRoleEnum.java} | 12 +- .../enums/WorkflowUserAccessPrivilege.java | 49 ---- .../dao/jooq/generated/tables/Dataset.java | 23 +- .../generated/tables/DatasetUserAccess.java | 25 +- .../jooq/generated/tables/DatasetVersion.java | 23 +- .../generated/tables/OperatorExecutions.java | 22 +- .../tables/OperatorRuntimeStatistics.java | 37 ++- .../dao/jooq/generated/tables/Project.java | 21 +- .../generated/tables/ProjectUserAccess.java | 25 +- .../jooq/generated/tables/PublicProject.java | 19 +- .../dao/jooq/generated/tables/User.java | 19 +- .../jooq/generated/tables/UserActivity.java | 9 +- .../dao/jooq/generated/tables/UserConfig.java | 17 +- .../dao/jooq/generated/tables/Workflow.java | 25 +- .../generated/tables/WorkflowExecutions.java | 31 ++- .../generated/tables/WorkflowOfProject.java | 21 +- .../jooq/generated/tables/WorkflowOfUser.java | 21 +- .../generated/tables/WorkflowUserAccess.java | 25 +- .../generated/tables/WorkflowUserClones.java | 21 +- .../generated/tables/WorkflowUserLikes.java | 21 +- .../generated/tables/WorkflowVersion.java | 21 +- .../generated/tables/WorkflowViewCount.java | 19 +- .../generated/tables/daos/DatasetDao.java | 19 +- .../tables/daos/DatasetUserAccessDao.java | 19 +- .../tables/daos/DatasetVersionDao.java | 19 +- .../tables/daos/OperatorExecutionsDao.java | 16 +- .../daos/OperatorRuntimeStatisticsDao.java | 38 ++- .../generated/tables/daos/ProjectDao.java | 15 +- .../tables/daos/ProjectUserAccessDao.java | 19 +- .../tables/daos/PublicProjectDao.java | 15 +- .../generated/tables/daos/UserConfigDao.java | 9 +- .../jooq/generated/tables/daos/UserDao.java | 17 +- .../generated/tables/daos/WorkflowDao.java | 51 ++-- .../tables/daos/WorkflowExecutionsDao.java | 27 +-- .../tables/daos/WorkflowOfProjectDao.java | 13 +- .../tables/daos/WorkflowOfUserDao.java | 13 +- .../tables/daos/WorkflowUserAccessDao.java | 19 +- .../tables/daos/WorkflowUserClonesDao.java | 13 +- .../tables/daos/WorkflowUserLikesDao.java | 13 +- .../tables/daos/WorkflowVersionDao.java | 15 +- .../tables/daos/WorkflowViewCountDao.java | 15 +- .../generated/tables/interfaces/IDataset.java | 14 +- .../tables/interfaces/IDatasetUserAccess.java | 16 +- .../tables/interfaces/IDatasetVersion.java | 14 +- .../interfaces/IOperatorExecutions.java | 11 +- .../IOperatorRuntimeStatistics.java | 35 ++- .../generated/tables/interfaces/IProject.java | 10 +- .../tables/interfaces/IProjectUserAccess.java | 16 +- .../tables/interfaces/IPublicProject.java | 10 +- .../generated/tables/interfaces/IUser.java | 12 +- .../tables/interfaces/IUserActivity.java | 10 +- .../tables/interfaces/IUserConfig.java | 6 +- .../tables/interfaces/IWorkflow.java | 26 +- .../interfaces/IWorkflowExecutions.java | 22 +- .../tables/interfaces/IWorkflowOfProject.java | 10 +- .../tables/interfaces/IWorkflowOfUser.java | 10 +- .../interfaces/IWorkflowUserAccess.java | 16 +- .../interfaces/IWorkflowUserClones.java | 10 +- .../tables/interfaces/IWorkflowUserLikes.java | 10 +- .../tables/interfaces/IWorkflowVersion.java | 10 +- .../tables/interfaces/IWorkflowViewCount.java | 10 +- .../jooq/generated/tables/pojos/Dataset.java | 28 +-- .../tables/pojos/DatasetUserAccess.java | 30 ++- .../tables/pojos/DatasetVersion.java | 28 +-- .../tables/pojos/OperatorExecutions.java | 25 +- .../pojos/OperatorRuntimeStatistics.java | 69 +++--- .../jooq/generated/tables/pojos/Project.java | 20 +- .../tables/pojos/ProjectUserAccess.java | 30 ++- .../generated/tables/pojos/PublicProject.java | 20 +- .../dao/jooq/generated/tables/pojos/User.java | 42 ++-- .../generated/tables/pojos/UserActivity.java | 20 +- .../generated/tables/pojos/UserConfig.java | 20 +- .../jooq/generated/tables/pojos/Workflow.java | 46 ++-- .../tables/pojos/WorkflowExecutions.java | 44 ++-- .../tables/pojos/WorkflowOfProject.java | 20 +- .../tables/pojos/WorkflowOfUser.java | 20 +- .../tables/pojos/WorkflowUserAccess.java | 30 ++- .../tables/pojos/WorkflowUserClones.java | 20 +- .../tables/pojos/WorkflowUserLikes.java | 20 +- .../tables/pojos/WorkflowVersion.java | 20 +- .../tables/pojos/WorkflowViewCount.java | 20 +- .../tables/records/DatasetRecord.java | 57 +++-- .../records/DatasetUserAccessRecord.java | 59 +++-- .../tables/records/DatasetVersionRecord.java | 57 +++-- .../records/OperatorExecutionsRecord.java | 44 ++-- .../OperatorRuntimeStatisticsRecord.java | 128 +++++----- .../tables/records/ProjectRecord.java | 43 ++-- .../records/ProjectUserAccessRecord.java | 59 +++-- .../tables/records/PublicProjectRecord.java | 43 ++-- .../tables/records/UserActivityRecord.java | 41 ++-- .../tables/records/UserConfigRecord.java | 29 ++- .../generated/tables/records/UserRecord.java | 45 ++-- .../records/WorkflowExecutionsRecord.java | 85 ++++--- .../records/WorkflowOfProjectRecord.java | 43 ++-- .../tables/records/WorkflowOfUserRecord.java | 43 ++-- .../tables/records/WorkflowRecord.java | 105 ++++---- .../records/WorkflowUserAccessRecord.java | 59 +++-- .../records/WorkflowUserClonesRecord.java | 43 ++-- .../records/WorkflowUserLikesRecord.java | 43 ++-- .../tables/records/WorkflowVersionRecord.java | 43 ++-- .../records/WorkflowViewCountRecord.java | 43 ++-- .../src/main/resources/storage-config.yaml | 2 +- .../storage/model/DatasetFileDocument.scala | 8 +- .../edu/uci/ics/amber/util/PathUtils.scala | 4 +- .../ics/amber/storage/FileResolverSpec.scala | 25 +- 154 files changed, 2056 insertions(+), 2236 deletions(-) create mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Sequences.java rename core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/{DatasetUserAccessPrivilege.java => PrivilegeEnum.java} (69%) delete mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/ProjectUserAccessPrivilege.java rename core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/{UserRole.java => UserRoleEnum.java} (70%) delete mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/WorkflowUserAccessPrivilege.java diff --git a/core/amber/src/main/scala/edu/uci/ics/amber/engine/architecture/scheduling/CostEstimator.scala b/core/amber/src/main/scala/edu/uci/ics/amber/engine/architecture/scheduling/CostEstimator.scala index 60523145ca1..b6253312b3a 100644 --- a/core/amber/src/main/scala/edu/uci/ics/amber/engine/architecture/scheduling/CostEstimator.scala +++ b/core/amber/src/main/scala/edu/uci/ics/amber/engine/architecture/scheduling/CostEstimator.scala @@ -14,7 +14,7 @@ import edu.uci.ics.texera.dao.jooq.generated.Tables.{ WORKFLOW_VERSION } import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowExecutionsResource.WorkflowRuntimeStatistics -import org.jooq.types.UInteger + import scala.jdk.CollectionConverters.ListHasAsScala import scala.util.{Failure, Success, Try} @@ -97,7 +97,7 @@ class DefaultCostEstimator( ) .createDSLContext() ) { context => - val widAsUInteger = UInteger.valueOf(wid) + val widAsInteger = wid.toInt val rawStats = context .select( OPERATOR_EXECUTIONS.OPERATOR_ID, @@ -125,7 +125,7 @@ class DefaultCostEstimator( .on(WORKFLOW_VERSION.VID.eq(WORKFLOW_EXECUTIONS.VID)) .where( WORKFLOW_VERSION.WID - .eq(widAsUInteger) + .eq(widAsInteger) .and(WORKFLOW_EXECUTIONS.STATUS.eq(3.toByte)) ) .orderBy(WORKFLOW_EXECUTIONS.STARTING_TIME.desc()) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/ComputingUnitMaster.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/ComputingUnitMaster.scala index a46bc20bb84..399e58c3e14 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/ComputingUnitMaster.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/ComputingUnitMaster.scala @@ -149,7 +149,7 @@ class ComputingUnitMaster extends io.dropwizard.Application[Configuration] with */ private def cleanExecutions( executions: List[WorkflowExecutions], - statusChangeFunc: Byte => Byte + statusChangeFunc: Short => Short ): Unit = { // drop the collection and update the status to ABORTED executions.foreach(execEntry => { diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/ServletAwareConfigurator.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/ServletAwareConfigurator.scala index ce0e65913bc..6e3b43c86bd 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/ServletAwareConfigurator.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/ServletAwareConfigurator.scala @@ -4,7 +4,7 @@ import com.typesafe.scalalogging.LazyLogging import edu.uci.ics.texera.web.auth.JwtAuth.jwtConsumer import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.User import org.apache.http.client.utils.URLEncodedUtils -import org.jooq.types.UInteger + import java.net.URI import java.nio.charset.Charset @@ -39,7 +39,7 @@ class ServletAwareConfigurator extends ServerEndpointConfig.Configurator with La config.getUserProperties.put( classOf[User].getName, new User( - UInteger.valueOf(claims.getClaimValue("userId").asInstanceOf[Long]), + claims.getClaimValue("userId").asInstanceOf[Long].toInt, claims.getSubject, String.valueOf(claims.getClaimValue("email").asInstanceOf[String]), null, diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/WebsocketInput.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/WebsocketInput.scala index bc4a3eddba4..0c0e8e2a682 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/WebsocketInput.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/WebsocketInput.scala @@ -3,17 +3,17 @@ package edu.uci.ics.texera.web import edu.uci.ics.texera.web.model.websocket.request.TexeraWebSocketRequest import io.reactivex.rxjava3.disposables.Disposable import io.reactivex.rxjava3.subjects.PublishSubject -import org.jooq.types.UInteger + import scala.reflect.{ClassTag, classTag} class WebsocketInput(errorHandler: Throwable => Unit) { - private val wsInput = PublishSubject.create[(TexeraWebSocketRequest, Option[UInteger])]() + private val wsInput = PublishSubject.create[(TexeraWebSocketRequest, Option[Integer])]() def subscribe[T <: TexeraWebSocketRequest: ClassTag]( - callback: (T, Option[UInteger]) => Unit + callback: (T, Option[Integer]) => Unit ): Disposable = { - wsInput.subscribe((evt: (TexeraWebSocketRequest, Option[UInteger])) => { + wsInput.subscribe((evt: (TexeraWebSocketRequest, Option[Integer])) => { evt._1 match { case req: T if classTag[T].runtimeClass.isInstance(req) => try { @@ -28,7 +28,7 @@ class WebsocketInput(errorHandler: Throwable => Unit) { }) } - def onNext(req: TexeraWebSocketRequest, uidOpt: Option[UInteger]): Unit = { + def onNext(req: TexeraWebSocketRequest, uidOpt: Option[Integer]): Unit = { wsInput.onNext((req, uidOpt)) } diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/GuestAuthFilter.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/GuestAuthFilter.scala index 318a12c8f2d..9dbf61e7fc6 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/GuestAuthFilter.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/GuestAuthFilter.scala @@ -1,7 +1,7 @@ package edu.uci.ics.texera.web.auth import edu.uci.ics.texera.web.auth.GuestAuthFilter.GUEST -import edu.uci.ics.texera.dao.jooq.generated.enums.UserRole +import edu.uci.ics.texera.dao.jooq.generated.enums.UserRoleEnum import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.User import io.dropwizard.auth.AuthFilter @@ -18,7 +18,7 @@ import javax.ws.rs.core.SecurityContext override protected def newInstance = new GuestAuthFilter } - val GUEST: User = new User(null, "guest", null, null, null, UserRole.REGULAR, null) + val GUEST: User = new User(null, "guest", null, null, null, UserRoleEnum.REGULAR, null) } @PreMatching diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/SessionUser.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/SessionUser.scala index baee51b24fb..a16861d6f57 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/SessionUser.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/SessionUser.scala @@ -1,8 +1,8 @@ package edu.uci.ics.texera.web.auth -import edu.uci.ics.texera.dao.jooq.generated.enums.UserRole +import edu.uci.ics.texera.dao.jooq.generated.enums.UserRoleEnum import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.User -import org.jooq.types.UInteger + import java.security.Principal @@ -11,11 +11,11 @@ class SessionUser(val user: User) extends Principal { override def getName: String = user.getName - def getUid: UInteger = user.getUid + def getUid: Integer = user.getUid def getEmail: String = user.getEmail def getGoogleId: String = user.getGoogleId - def isRoleOf(role: UserRole): Boolean = user.getRole == role + def isRoleOf(role: UserRoleEnum): Boolean = user.getRole == role } diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/UserAuthenticator.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/UserAuthenticator.scala index 2a4947dc2ce..f1711017461 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/UserAuthenticator.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/UserAuthenticator.scala @@ -1,10 +1,10 @@ package edu.uci.ics.texera.web.auth import com.typesafe.scalalogging.LazyLogging -import edu.uci.ics.texera.dao.jooq.generated.enums.UserRole +import edu.uci.ics.texera.dao.jooq.generated.enums.UserRoleEnum import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.User import io.dropwizard.auth.Authenticator -import org.jooq.types.UInteger + import org.jose4j.jwt.consumer.JwtContext import java.util.Optional @@ -16,8 +16,8 @@ object UserAuthenticator extends Authenticator[JwtContext, SessionUser] with Laz try { val userName = context.getJwtClaims.getSubject val email = context.getJwtClaims.getClaimValue("email").asInstanceOf[String] - val userId = UInteger.valueOf(context.getJwtClaims.getClaimValue("userId").asInstanceOf[Long]) - val role = UserRole.valueOf(context.getJwtClaims.getClaimValue("role").asInstanceOf[String]) + val userId = context.getJwtClaims.getClaimValue("userId").asInstanceOf[Long].toInt + val role = UserRoleEnum.valueOf(context.getJwtClaims.getClaimValue("role").asInstanceOf[String]) val googleId = context.getJwtClaims.getClaimValue("googleId").asInstanceOf[String] val user = new User(userId, userName, email, null, googleId, role, null) Optional.of(new SessionUser(user)) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/UserRoleAuthorizer.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/UserRoleAuthorizer.scala index 67ceade63ab..40322e881aa 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/UserRoleAuthorizer.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/UserRoleAuthorizer.scala @@ -1,10 +1,10 @@ package edu.uci.ics.texera.web.auth -import edu.uci.ics.texera.dao.jooq.generated.enums.UserRole +import edu.uci.ics.texera.dao.jooq.generated.enums.UserRoleEnum import io.dropwizard.auth.Authorizer object UserRoleAuthorizer extends Authorizer[SessionUser] { override def authorize(user: SessionUser, role: String): Boolean = { - user.isRoleOf(UserRole.valueOf(role)) + user.isRoleOf(UserRoleEnum.valueOf(role)) } } diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/CollaborationResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/CollaborationResource.scala index ac782c93102..669c1c3e699 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/CollaborationResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/CollaborationResource.scala @@ -9,7 +9,7 @@ import edu.uci.ics.texera.web.model.collab.response.HeartBeatResponse import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.User import edu.uci.ics.texera.web.resource.CollaborationResource._ import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowAccessResource -import org.jooq.types.UInteger + import javax.websocket.server.ServerEndpoint import javax.websocket.{OnClose, OnMessage, OnOpen, Session} @@ -25,7 +25,7 @@ object CollaborationResource { final val DUMMY_WID = -1 private def checkIsReadOnly(wId: Int, uId: Int): Boolean = { - !WorkflowAccessResource.hasWriteAccess(UInteger.valueOf(wId), UInteger.valueOf(uId)) + !WorkflowAccessResource.hasWriteAccess(Integer.valueOf(wId), Integer.valueOf(uId)) } } diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/auth/AuthResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/auth/AuthResource.scala index 513d5dbeaef..83b44d31369 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/auth/AuthResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/auth/AuthResource.scala @@ -11,7 +11,7 @@ import edu.uci.ics.texera.web.model.http.request.auth.{ } import edu.uci.ics.texera.web.model.http.response.TokenIssueResponse import edu.uci.ics.texera.dao.jooq.generated.Tables.USER -import edu.uci.ics.texera.dao.jooq.generated.enums.UserRole +import edu.uci.ics.texera.dao.jooq.generated.enums.UserRoleEnum import edu.uci.ics.texera.dao.jooq.generated.tables.daos.UserDao import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.User import edu.uci.ics.texera.web.resource.auth.AuthResource._ @@ -88,7 +88,7 @@ class AuthResource { val user = new User user.setName(username) user.setEmail(username) - user.setRole(UserRole.ADMIN) + user.setRole(UserRoleEnum.ADMIN) // hash the plain text password user.setPassword(new StrongPasswordEncryptor().encryptPassword(request.password)) userDao.insert(user) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/auth/GoogleAuthResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/auth/GoogleAuthResource.scala index 175a62fc2ab..f9fdce0e82c 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/auth/GoogleAuthResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/auth/GoogleAuthResource.scala @@ -13,7 +13,7 @@ import edu.uci.ics.texera.web.auth.JwtAuth.{ jwtToken } import edu.uci.ics.texera.web.model.http.response.TokenIssueResponse -import edu.uci.ics.texera.dao.jooq.generated.enums.UserRole +import edu.uci.ics.texera.dao.jooq.generated.enums.UserRoleEnum import edu.uci.ics.texera.dao.jooq.generated.tables.daos.UserDao import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.User import edu.uci.ics.texera.web.resource.auth.GoogleAuthResource.userDao @@ -90,7 +90,7 @@ class GoogleAuthResource { user.setName(googleName) user.setEmail(googleEmail) user.setGoogleId(googleId) - user.setRole(UserRole.INACTIVE) + user.setRole(UserRoleEnum.INACTIVE) user.setGoogleAvatar(googleAvatar) userDao.insert(user) user diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/DashboardResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/DashboardResource.scala index e14b0d839e7..86464b7ba02 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/DashboardResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/DashboardResource.scala @@ -8,7 +8,7 @@ import edu.uci.ics.texera.web.resource.dashboard.SearchQueryBuilder.{ALL_RESOURC import edu.uci.ics.texera.web.resource.dashboard.user.dataset.DatasetResource.DashboardDataset import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowResource.DashboardWorkflow import io.dropwizard.auth.Auth -import org.jooq.types.UInteger + import org.jooq.{Field, OrderField} import java.util @@ -24,7 +24,7 @@ object DashboardResource { dataset: Option[DashboardDataset] = None ) - case class UserInfo(userId: UInteger, userName: String, googleAvatar: Option[String]) + case class UserInfo(userId: Integer, userName: String, googleAvatar: Option[String]) case class DashboardSearchResult(results: List[DashboardClickableFileEntry], more: Boolean) @@ -53,10 +53,10 @@ object DashboardResource { @QueryParam("modifiedDateStart") @DefaultValue("") modifiedStartDate: String = "", @QueryParam("modifiedDateEnd") @DefaultValue("") modifiedEndDate: String = "", @QueryParam("owner") owners: java.util.List[String] = new util.ArrayList(), - @QueryParam("id") workflowIDs: java.util.List[UInteger] = new util.ArrayList(), + @QueryParam("id") workflowIDs: java.util.List[Integer] = new util.ArrayList(), @QueryParam("operator") operators: java.util.List[String] = new util.ArrayList(), - @QueryParam("projectId") projectIds: java.util.List[UInteger] = new util.ArrayList(), - @QueryParam("datasetId") datasetIds: java.util.List[UInteger] = new util.ArrayList(), + @QueryParam("projectId") projectIds: java.util.List[Integer] = new util.ArrayList(), + @QueryParam("datasetId") datasetIds: java.util.List[Integer] = new util.ArrayList(), @QueryParam("start") @DefaultValue("0") offset: Int = 0, @QueryParam("count") @DefaultValue("20") count: Int = 20, @QueryParam("orderBy") @DefaultValue("EditTimeDesc") orderBy: String = "EditTimeDesc" @@ -180,9 +180,9 @@ class DashboardResource { @GET @Path("/resultsOwnersInfo") def resultsOwnersInfo( - @QueryParam("userIds") userIds: util.List[UInteger] - ): util.Map[UInteger, UserInfo] = { - val scalaUserIds: Set[UInteger] = userIds.asScala.toSet + @QueryParam("userIds") userIds: util.List[Integer] + ): util.Map[Integer, UserInfo] = { + val scalaUserIds: Set[Integer] = userIds.asScala.toSet val records = context .select(USER.UID, USER.NAME, USER.GOOGLE_AVATAR) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/DatasetSearchQueryBuilder.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/DatasetSearchQueryBuilder.scala index b83903b7e1f..635046877dc 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/DatasetSearchQueryBuilder.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/DatasetSearchQueryBuilder.scala @@ -1,7 +1,7 @@ package edu.uci.ics.texera.web.resource.dashboard import edu.uci.ics.texera.dao.jooq.generated.Tables.{DATASET, DATASET_USER_ACCESS} -import edu.uci.ics.texera.dao.jooq.generated.enums.DatasetUserAccessPrivilege +import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum import edu.uci.ics.texera.dao.jooq.generated.tables.User.USER import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.{Dataset, User} import edu.uci.ics.texera.web.resource.dashboard.DashboardResource.DashboardClickableFileEntry @@ -14,7 +14,7 @@ import edu.uci.ics.texera.web.resource.dashboard.FulltextSearchQueryUtils.{ import edu.uci.ics.texera.web.resource.dashboard.user.dataset.DatasetResource import edu.uci.ics.texera.web.resource.dashboard.user.dataset.DatasetResource.DashboardDataset import org.jooq.impl.DSL -import org.jooq.types.UInteger + import org.jooq.{Condition, GroupField, Record, TableLike} import scala.jdk.CollectionConverters.CollectionHasAsScala @@ -35,13 +35,13 @@ object DatasetSearchQueryBuilder extends SearchQueryBuilder { * constructs the FROM clause for querying datasets with specific access controls. * * Parameter: - * - uid: UInteger - Represents the unique identifier of the current user. + * - uid: Integer - Represents the unique identifier of the current user. * - uid is 'null' if the user is not logged in or performing a public search. * - Otherwise, `uid` holds the identifier for the logged-in user. * - includePublic - Boolean - Specifies whether to include public datasets in the result. */ override protected def constructFromClause( - uid: UInteger, + uid: Integer, params: DashboardResource.SearchQueryParams, includePublic: Boolean = false ): TableLike[_] = { @@ -57,14 +57,14 @@ object DatasetSearchQueryBuilder extends SearchQueryBuilder { if (uid == null) { // If `uid` is null, the user is not logged in or performing a public search // We only select datasets marked as public - condition = DATASET.IS_PUBLIC.eq(1.toByte) + condition = DATASET.IS_PUBLIC.eq(true) } else { // When `uid` is present, we add a condition to only include datasets with direct user access. val userAccessCondition = DATASET_USER_ACCESS.UID.eq(uid) if (includePublic) { // If `includePublic` is true, we extend visibility to public datasets as well. - condition = userAccessCondition.or(DATASET.IS_PUBLIC.eq(1.toByte)) + condition = userAccessCondition.or(DATASET.IS_PUBLIC.eq(true)) } else { condition = userAccessCondition } @@ -73,7 +73,7 @@ object DatasetSearchQueryBuilder extends SearchQueryBuilder { } override protected def constructWhereClause( - uid: UInteger, + uid: Integer, params: DashboardResource.SearchQueryParams ): Condition = { val splitKeywords = params.keywords.asScala @@ -103,7 +103,7 @@ object DatasetSearchQueryBuilder extends SearchQueryBuilder { } override protected def toEntryImpl( - uid: UInteger, + uid: Integer, record: Record ): DashboardResource.DashboardClickableFileEntry = { val dataset = record.into(DATASET).into(classOf[Dataset]) @@ -114,7 +114,7 @@ object DatasetSearchQueryBuilder extends SearchQueryBuilder { record .get( DATASET_USER_ACCESS.PRIVILEGE, - classOf[DatasetUserAccessPrivilege] + classOf[PrivilegeEnum] ), dataset.getOwnerUid == uid, List(), diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/FulltextSearchQueryUtils.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/FulltextSearchQueryUtils.scala index 167d4831378..aa828485ef3 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/FulltextSearchQueryUtils.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/FulltextSearchQueryUtils.scala @@ -11,38 +11,74 @@ import scala.jdk.CollectionConverters.CollectionHasAsScala object FulltextSearchQueryUtils { def getFullTextSearchFilter( - keywords: Seq[String], - fields: List[Field[String]] - ): Condition = { + keywords: Seq[String], + fields: List[Field[String]] + ): Condition = { if (fields.isEmpty) return noCondition() + + // Filter out empty keywords and trim val trimmedKeywords = keywords.filter(_.nonEmpty).map(_.trim) - val fullFieldNames = fields.map(_.toString.replace("\"", "")) - val indexedCompoundFields = fullFieldNames.mkString(",") - trimmedKeywords.foldLeft(noCondition()) { (acc, key) => - val words = key.split("\\s+") - acc.and( - condition( - s"MATCH($indexedCompoundFields) AGAINST('${words.mkString("+", " +", "")}' IN BOOLEAN MODE)", - key - ) - ) + + // Build a SQL expression that concatenates all fields with spaces, + // then feeds them into to_tsvector('english', ...). + // E.g.: to_tsvector('english', COALESCE(firstName, '') || ' ' || COALESCE(lastName, '')) + val combinedFields = fields + .map(f => s"COALESCE($f, '')") // handle null -> '' + .mkString(" || ' ' || ") + + // Fold each keyword into the final Condition + trimmedKeywords.foldLeft(noCondition()) { (acc, keyword) => + // For each "keyword", split it into words + val words = keyword.split("\\s+").filter(_.nonEmpty) + + // In Postgres tsquery syntax, an AND search uses '&' between terms + // e.g.: apple & banana + val tsQuery = words.mkString(" & ") + + // Build the raw SQL string for Postgres FTS + // e.g.: to_tsvector('english', COALESCE(firstName, '') || ' ' || COALESCE(lastName, '')) @@ to_tsquery('english', 'apple & banana') + val conditionExpr = + s"to_tsvector('english', $combinedFields) @@ to_tsquery('english', '$tsQuery')" + + // 'condition(...)' is presumably your helper method that takes a raw SQL string + // and an optional binding for debug/logging + acc.and(condition(conditionExpr, keyword)) } } + def getSubstringSearchFilter( - keywords: Seq[String], - fields: List[Field[String]] - ): Condition = { + keywords: Seq[String], + fields: List[Field[String]], + caseInsensitive: Boolean = false + ): Condition = { + // If no fields, return a "no-op" condition if (fields.isEmpty) return noCondition() + + // Trim and discard empty keywords val trimmedKeywords = keywords.filter(_.nonEmpty).map(_.trim) - val fullFieldNames = fields.map(_.toString.replace("\"", "")) - fullFieldNames.foldLeft(noCondition()) { (acc, fieldName) => - acc.or(trimmedKeywords.foldLeft(noCondition()) { (accInner, key) => - accInner.and(s"$fieldName LIKE '%$key%'") - }) + + // For each field, create a condition that all keywords must match in that field + // e.g. field LIKE '%keyword1%' AND field LIKE '%keyword2%' + val fieldConditions: Seq[Condition] = fields.map { field => + trimmedKeywords.foldLeft[Condition](noCondition()) { (acc, key) => + val likeCondition = + if (caseInsensitive) field.likeIgnoreCase(s"%$key%") // Postgres-specific case-insensitive match + else field.like(s"%$key%") // standard SQL LIKE + if (acc == noCondition()) likeCondition + else acc.and(likeCondition) + } + } + + // Finally, OR across all fields + // (field1Condition) OR (field2Condition) OR ... + fieldConditions.foldLeft[Condition](noCondition()) { (acc, cond) => + if (acc == noCondition()) cond + else acc.or(cond) } } + /** * Generates a filter condition for querying based on whether a specified field contains any of the given values. * @@ -110,17 +146,26 @@ object FulltextSearchQueryUtils { * @return The operators filter. */ def getOperatorsFilter( - operators: java.util.List[String], - field: Field[String] - ): Condition = { + operators: java.util.List[String], + field: Field[String] + ): Condition = { + // Convert to a Set to avoid duplicates val operatorSet = operators.asScala.toSet + // Start with a "no condition" (logical TRUE) so we can accumulate var fieldFilter = noCondition() - for (operator <- operatorSet) { - val quotes = "\"" - val searchKey = - "%" + quotes + "operatorType" + quotes + ":" + quotes + operator + quotes + "%" - fieldFilter = fieldFilter.or(field.likeIgnoreCase(searchKey)) + + // For each operator, build the substring pattern + operatorSet.foreach { operator => + // e.g. => % "operatorType":"someOperator" % + val searchKey = s"""%"operatorType":"$operator"%""" + + // Use jOOQ's likeIgnoreCase for case-insensitive matching + val cond = field.likeIgnoreCase(searchKey) + + // Accumulate with OR + fieldFilter = fieldFilter.or(cond) } + fieldFilter } diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/ProjectSearchQueryBuilder.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/ProjectSearchQueryBuilder.scala index a76d2b72a1b..9bb6a86cb63 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/ProjectSearchQueryBuilder.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/ProjectSearchQueryBuilder.scala @@ -10,7 +10,7 @@ import edu.uci.ics.texera.web.resource.dashboard.FulltextSearchQueryUtils.{ getSubstringSearchFilter } import org.jooq.impl.DSL -import org.jooq.types.UInteger + import org.jooq.{Condition, GroupField, Record, TableLike} import scala.jdk.CollectionConverters.CollectionHasAsScala @@ -29,7 +29,7 @@ object ProjectSearchQueryBuilder extends SearchQueryBuilder { ) override protected def constructFromClause( - uid: UInteger, + uid: Integer, params: DashboardResource.SearchQueryParams, includePublic: Boolean = false ): TableLike[_] = { @@ -40,7 +40,7 @@ object ProjectSearchQueryBuilder extends SearchQueryBuilder { } override protected def constructWhereClause( - uid: UInteger, + uid: Integer, params: DashboardResource.SearchQueryParams ): Condition = { val splitKeywords = params.keywords.asScala @@ -68,7 +68,7 @@ object ProjectSearchQueryBuilder extends SearchQueryBuilder { override protected def getGroupByFields: Seq[GroupField] = Seq.empty override def toEntryImpl( - uid: UInteger, + uid: Integer, record: Record ): DashboardResource.DashboardClickableFileEntry = { val dp = record.into(PROJECT).into(classOf[Project]) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/SearchQueryBuilder.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/SearchQueryBuilder.scala index f2fb9cb746d..b0f5dac0d0e 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/SearchQueryBuilder.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/SearchQueryBuilder.scala @@ -8,7 +8,7 @@ import edu.uci.ics.texera.web.resource.dashboard.DashboardResource.{ } import edu.uci.ics.texera.web.resource.dashboard.SearchQueryBuilder.context import org.jooq._ -import org.jooq.types.UInteger + object SearchQueryBuilder { @@ -27,25 +27,25 @@ trait SearchQueryBuilder { protected val mappedResourceSchema: UnifiedResourceSchema protected def constructFromClause( - uid: UInteger, + uid: Integer, params: SearchQueryParams, includePublic: Boolean = false ): TableLike[_] - protected def constructWhereClause(uid: UInteger, params: SearchQueryParams): Condition + protected def constructWhereClause(uid: Integer, params: SearchQueryParams): Condition protected def getGroupByFields: Seq[GroupField] = Seq.empty - protected def toEntryImpl(uid: UInteger, record: Record): DashboardClickableFileEntry + protected def toEntryImpl(uid: Integer, record: Record): DashboardClickableFileEntry private def translateRecord(record: Record): Record = mappedResourceSchema.translateRecord(record) - def toEntry(uid: UInteger, record: Record): DashboardClickableFileEntry = { + def toEntry(uid: Integer, record: Record): DashboardClickableFileEntry = { toEntryImpl(uid, translateRecord(record)) } final def constructQuery( - uid: UInteger, + uid: Integer, params: SearchQueryParams, includePublic: Boolean ): SelectHavingStep[Record] = { diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/UnifiedResourceSchema.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/UnifiedResourceSchema.scala index 6b526d54443..a4e1f170820 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/UnifiedResourceSchema.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/UnifiedResourceSchema.scala @@ -2,13 +2,9 @@ package edu.uci.ics.texera.web.resource.dashboard import edu.uci.ics.amber.core.storage.StorageConfig import edu.uci.ics.texera.dao.SqlServer -import edu.uci.ics.texera.dao.jooq.generated.enums.{ - DatasetUserAccessPrivilege, - WorkflowUserAccessPrivilege -} +import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum import edu.uci.ics.texera.web.resource.dashboard.UnifiedResourceSchema.context import org.jooq.impl.DSL -import org.jooq.types.UInteger import org.jooq.{Field, Record} import java.sql.Timestamp @@ -42,22 +38,22 @@ object UnifiedResourceSchema { description: Field[String] = DSL.inline(""), creationTime: Field[Timestamp] = DSL.inline(null, classOf[Timestamp]), lastModifiedTime: Field[Timestamp] = DSL.inline(null, classOf[Timestamp]), - ownerId: Field[UInteger] = DSL.inline(null, classOf[UInteger]), - wid: Field[UInteger] = DSL.inline(null, classOf[UInteger]), - workflowUserAccess: Field[WorkflowUserAccessPrivilege] = - DSL.inline(null, classOf[WorkflowUserAccessPrivilege]), + ownerId: Field[Integer] = DSL.inline(null, classOf[Integer]), + wid: Field[Integer] = DSL.inline(null, classOf[Integer]), + workflowUserAccess: Field[PrivilegeEnum] = + DSL.inline(null, classOf[PrivilegeEnum]), projectsOfWorkflow: Field[String] = DSL.inline(""), - uid: Field[UInteger] = DSL.inline(null, classOf[UInteger]), + uid: Field[Integer] = DSL.inline(null, classOf[Integer]), userName: Field[String] = DSL.inline(""), userEmail: Field[String] = DSL.inline(""), - pid: Field[UInteger] = DSL.inline(null, classOf[UInteger]), - projectOwnerId: Field[UInteger] = DSL.inline(null, classOf[UInteger]), + pid: Field[Integer] = DSL.inline(null, classOf[Integer]), + projectOwnerId: Field[Integer] = DSL.inline(null, classOf[Integer]), projectColor: Field[String] = DSL.inline(""), - did: Field[UInteger] = DSL.inline(null, classOf[UInteger]), + did: Field[Integer] = DSL.inline(null, classOf[Integer]), datasetStoragePath: Field[String] = DSL.inline(null, classOf[String]), - isDatasetPublic: Field[java.lang.Byte] = DSL.inline(null, classOf[java.lang.Byte]), - datasetUserAccess: Field[DatasetUserAccessPrivilege] = - DSL.inline(null, classOf[DatasetUserAccessPrivilege]) + isDatasetPublic: Field[java.lang.Boolean] = DSL.inline(null, classOf[java.lang.Boolean]), + datasetUserAccess: Field[PrivilegeEnum] = + DSL.inline(null, classOf[PrivilegeEnum]) ): UnifiedResourceSchema = { new UnifiedResourceSchema( Seq( @@ -94,31 +90,31 @@ object UnifiedResourceSchema { * - `description`: A textual description of the resource as a `String`. * - `creationTime`: The timestamp when the resource was created, as a `Timestamp`. * - `lastModifiedTime`: The timestamp of the last modification to the resource, as a `Timestamp` (applicable to workflows). - * - `ownerId`: The identifier of the resource's owner, as a `UInteger`. + * - `ownerId`: The identifier of the resource's owner, as a `Integer`. * * Attributes specific to workflows: - * - `wid`: Workflow ID, as a `UInteger`. - * - `workflowUserAccess`: Access privileges associated with the workflow, as a `WorkflowUserAccessPrivilege`. + * - `wid`: Workflow ID, as a `Integer`. + * - `workflowUserAccess`: Access privileges associated with the workflow, as a `PrivilegeEnum`. * - `projectsOfWorkflow`: IDs of projects associated with the workflow, concatenated as a `String`. - * - `uid`: User ID associated with the workflow, as a `UInteger`. + * - `uid`: User ID associated with the workflow, as a `Integer`. * - `userName`: Name of the user associated with the workflow, as a `String`. * - `userEmail`: Email of the user associated with the workflow, as a `String`. * * Attributes specific to projects: - * - `pid`: Project ID, as a `UInteger`. - * - `projectOwnerId`: ID of the project owner, as a `UInteger`. + * - `pid`: Project ID, as a `Integer`. + * - `projectOwnerId`: ID of the project owner, as a `Integer`. * - `projectColor`: Color associated with the project, as a `String`. * * Attributes specific to files: - * - `fid`: File ID, as a `UInteger`. + * - `fid`: File ID, as a `Integer`. * - `fileUploadTime`: Timestamp when the file was uploaded, as a `Timestamp`. * - `filePath`: Path of the file, as a `String`. - * - `fileSize`: Size of the file, as a `UInteger`. + * - `fileSize`: Size of the file, as a `Integer`. * - `fileUserAccess`: Access privileges for the file, as a `UserFileAccessPrivilege`. * * Attributes specific to datasets: - * - `did`: Dataset ID, as a `UInteger`. - * - `datasetUserAccess`: Access privileges for the dataset, as a `DatasetUserAccessPrivilege` + * - `did`: Dataset ID, as a `Integer`. + * - `datasetUserAccess`: Access privileges for the dataset, as a `PrivilegeEnum` */ class UnifiedResourceSchema private ( fieldMappingSeq: Seq[(Field[_], Field[_])] diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/WorkflowSearchQueryBuilder.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/WorkflowSearchQueryBuilder.scala index 5ade3dff372..a898aa371ff 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/WorkflowSearchQueryBuilder.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/WorkflowSearchQueryBuilder.scala @@ -7,7 +7,6 @@ import edu.uci.ics.texera.web.resource.dashboard.FulltextSearchQueryUtils._ import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowResource.DashboardWorkflow import org.jooq.impl.DSL import org.jooq.impl.DSL.groupConcatDistinct -import org.jooq.types.UInteger import org.jooq.{Condition, GroupField, Record, TableLike} import scala.jdk.CollectionConverters.CollectionHasAsScala @@ -31,7 +30,7 @@ object WorkflowSearchQueryBuilder extends SearchQueryBuilder { } override protected def constructFromClause( - uid: UInteger, + uid: Integer, params: DashboardResource.SearchQueryParams, includePublic: Boolean = false ): TableLike[_] = { @@ -49,12 +48,12 @@ object WorkflowSearchQueryBuilder extends SearchQueryBuilder { var condition: Condition = DSL.trueCondition() if (uid == null) { - condition = WORKFLOW.IS_PUBLIC.eq(1.toByte) + condition = WORKFLOW.IS_PUBLIC.eq(true) } else { val privateAccessCondition = WORKFLOW_USER_ACCESS.UID.eq(uid).or(PROJECT_USER_ACCESS.UID.eq(uid)) if (includePublic) { - condition = privateAccessCondition.or(WORKFLOW.IS_PUBLIC.eq(1.toByte)) + condition = privateAccessCondition.or(WORKFLOW.IS_PUBLIC.eq(true)) } else { condition = privateAccessCondition } @@ -64,7 +63,7 @@ object WorkflowSearchQueryBuilder extends SearchQueryBuilder { } override protected def constructWhereClause( - uid: UInteger, + uid: Integer, params: DashboardResource.SearchQueryParams ): Condition = { val splitKeywords = params.keywords.asScala @@ -111,7 +110,7 @@ object WorkflowSearchQueryBuilder extends SearchQueryBuilder { } override def toEntryImpl( - uid: UInteger, + uid: Integer, record: Record ): DashboardResource.DashboardClickableFileEntry = { val pidField = groupConcatDistinct(WORKFLOW_OF_PROJECT.PID) @@ -123,13 +122,13 @@ object WorkflowSearchQueryBuilder extends SearchQueryBuilder { record.into(USER).getName, record.into(WORKFLOW).into(classOf[Workflow]), if (record.get(pidField) == null) { - List[UInteger]() + List[Integer]() } else { record .get(pidField) .asInstanceOf[String] .split(',') - .map(number => UInteger.valueOf(number)) + .map(number => Integer.valueOf(number)) .toList }, record.into(USER).getUid diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/execution/AdminExecutionResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/execution/AdminExecutionResource.scala index 9a280f921f1..0a77c243493 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/execution/AdminExecutionResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/execution/AdminExecutionResource.scala @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.Tables._ import edu.uci.ics.texera.web.resource.dashboard.admin.execution.AdminExecutionResource._ import io.dropwizard.auth.Auth import org.jooq.impl.DSL -import org.jooq.types.UInteger + import javax.annotation.security.RolesAllowed import javax.ws.rs._ @@ -25,10 +25,10 @@ object AdminExecutionResource { case class dashboardExecution( workflowName: String, - workflowId: UInteger, + workflowId: Integer, userName: String, - userId: UInteger, - executionId: UInteger, + userId: Integer, + executionId: Integer, executionStatus: String, executionTime: Double, executionName: String, @@ -37,7 +37,7 @@ object AdminExecutionResource { access: Boolean ) - def mapToName(code: Byte): String = { + def mapToName(code: Short): String = { code match { case 0 => "READY" case 1 => "RUNNING" @@ -169,7 +169,7 @@ class AdminExecutionResource { .select(WORKFLOW_USER_ACCESS.WID) .from(WORKFLOW_USER_ACCESS) .where(WORKFLOW_USER_ACCESS.UID.eq(current_user.getUid)) - .fetchInto(classOf[UInteger]) + .fetchInto(classOf[Integer]) // Calculate the statistics needed for each execution. executions diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/user/AdminUserResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/user/AdminUserResource.scala index dccb8d70b05..10555a0ffcb 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/user/AdminUserResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/user/AdminUserResource.scala @@ -2,13 +2,13 @@ package edu.uci.ics.texera.web.resource.dashboard.admin.user import edu.uci.ics.amber.core.storage.StorageConfig import edu.uci.ics.texera.dao.SqlServer -import edu.uci.ics.texera.dao.jooq.generated.enums.UserRole +import edu.uci.ics.texera.dao.jooq.generated.enums.UserRoleEnum import edu.uci.ics.texera.dao.jooq.generated.tables.daos.UserDao import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.User import edu.uci.ics.texera.web.resource.dashboard.admin.user.AdminUserResource.userDao import edu.uci.ics.texera.web.resource.dashboard.user.quota.UserQuotaResource._ import org.jasypt.util.password.StrongPasswordEncryptor -import org.jooq.types.UInteger + import java.util import javax.annotation.security.RolesAllowed @@ -35,7 +35,7 @@ class AdminUserResource { @Path("/list") @Produces(Array(MediaType.APPLICATION_JSON)) def listUser(): util.List[User] = { - userDao.fetchRangeOfUid(UInteger.MIN, UInteger.MAX) + userDao.fetchRangeOfUid(Integer.MIN_VALUE, Integer.MAX_VALUE) } @PUT @@ -59,28 +59,28 @@ class AdminUserResource { val newUser = new User newUser.setName("User" + random) newUser.setPassword(new StrongPasswordEncryptor().encryptPassword(random)) - newUser.setRole(UserRole.INACTIVE) + newUser.setRole(UserRoleEnum.INACTIVE) userDao.insert(newUser) } @GET @Path("/created_workflows") @Produces(Array(MediaType.APPLICATION_JSON)) - def getCreatedWorkflow(@QueryParam("user_id") user_id: UInteger): List[Workflow] = { + def getCreatedWorkflow(@QueryParam("user_id") user_id: Integer): List[Workflow] = { getUserCreatedWorkflow(user_id) } @GET @Path("/access_workflows") @Produces(Array(MediaType.APPLICATION_JSON)) - def getAccessedWorkflow(@QueryParam("user_id") user_id: UInteger): util.List[UInteger] = { + def getAccessedWorkflow(@QueryParam("user_id") user_id: Integer): util.List[Integer] = { getUserAccessedWorkflow(user_id) } @GET @Path("/mongodb_size") @Produces(Array(MediaType.APPLICATION_JSON)) - def mongoDBSize(@QueryParam("user_id") user_id: UInteger): Array[MongoStorage] = { + def mongoDBSize(@QueryParam("user_id") user_id: Integer): Array[MongoStorage] = { getUserMongoDBSize(user_id) } diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/EntityTables.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/EntityTables.scala index fe5ddf0d955..7bf894734fe 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/EntityTables.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/EntityTables.scala @@ -8,7 +8,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.records.{ WorkflowViewCountRecord } import org.jooq._ -import org.jooq.types.UInteger + import edu.uci.ics.texera.dao.jooq.generated.Tables._ object EntityTables { @@ -16,20 +16,20 @@ object EntityTables { sealed trait BaseEntityTable { type R <: Record val table: Table[R] - val isPublicColumn: TableField[R, java.lang.Byte] + val isPublicColumn: TableField[R, java.lang.Boolean] } object BaseEntityTable { case object WorkflowTable extends BaseEntityTable { override type R = WorkflowRecord override val table: Table[WorkflowRecord] = WORKFLOW - override val isPublicColumn: TableField[WorkflowRecord, java.lang.Byte] = WORKFLOW.IS_PUBLIC + override val isPublicColumn: TableField[WorkflowRecord, java.lang.Boolean] = WORKFLOW.IS_PUBLIC } case object DatasetTable extends BaseEntityTable { override type R = DatasetRecord override val table: Table[DatasetRecord] = DATASET - override val isPublicColumn: TableField[DatasetRecord, java.lang.Byte] = DATASET.IS_PUBLIC + override val isPublicColumn: TableField[DatasetRecord, java.lang.Boolean] = DATASET.IS_PUBLIC } def apply(entityType: String): BaseEntityTable = { @@ -49,8 +49,8 @@ object EntityTables { type R <: Record val table: Table[R] - val uidColumn: TableField[R, UInteger] - val idColumn: TableField[R, UInteger] + val uidColumn: TableField[R, Integer] + val idColumn: TableField[R, Integer] } // ==================== LIKE TABLE ==================== @@ -60,9 +60,9 @@ object EntityTables { case object WorkflowLikeTable extends LikeTable { override type R = WorkflowUserLikesRecord override val table: Table[WorkflowUserLikesRecord] = WORKFLOW_USER_LIKES - override val uidColumn: TableField[WorkflowUserLikesRecord, UInteger] = + override val uidColumn: TableField[WorkflowUserLikesRecord, Integer] = WORKFLOW_USER_LIKES.UID - override val idColumn: TableField[WorkflowUserLikesRecord, UInteger] = WORKFLOW_USER_LIKES.WID + override val idColumn: TableField[WorkflowUserLikesRecord, Integer] = WORKFLOW_USER_LIKES.WID } def apply(entityType: String): LikeTable = @@ -80,9 +80,9 @@ object EntityTables { case object WorkflowCloneTable extends CloneTable { override type R = WorkflowUserClonesRecord override val table: Table[WorkflowUserClonesRecord] = WORKFLOW_USER_CLONES - override val uidColumn: TableField[WorkflowUserClonesRecord, UInteger] = + override val uidColumn: TableField[WorkflowUserClonesRecord, Integer] = WORKFLOW_USER_CLONES.UID - override val idColumn: TableField[WorkflowUserClonesRecord, UInteger] = + override val idColumn: TableField[WorkflowUserClonesRecord, Integer] = WORKFLOW_USER_CLONES.WID } @@ -98,16 +98,16 @@ object EntityTables { sealed trait ViewCountTable { type R <: Record val table: Table[R] - val idColumn: TableField[R, UInteger] - val viewCountColumn: TableField[R, UInteger] + val idColumn: TableField[R, Integer] + val viewCountColumn: TableField[R, Integer] } object ViewCountTable { case object WorkflowViewCountTable extends ViewCountTable { override type R = WorkflowViewCountRecord override val table: Table[WorkflowViewCountRecord] = WORKFLOW_VIEW_COUNT - override val idColumn: TableField[WorkflowViewCountRecord, UInteger] = WORKFLOW_VIEW_COUNT.WID - override val viewCountColumn: TableField[WorkflowViewCountRecord, UInteger] = + override val idColumn: TableField[WorkflowViewCountRecord, Integer] = WORKFLOW_VIEW_COUNT.WID + override val viewCountColumn: TableField[WorkflowViewCountRecord, Integer] = WORKFLOW_VIEW_COUNT.VIEW_COUNT } diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/HubResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/HubResource.scala index ad95146902b..89bc937b932 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/HubResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/HubResource.scala @@ -15,7 +15,7 @@ import HubResource.{ } import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowResource.DashboardWorkflow import org.jooq.impl.DSL -import org.jooq.types.UInteger + import java.util import java.util.Collections @@ -27,7 +27,7 @@ import scala.jdk.CollectionConverters._ import EntityTables._ object HubResource { - case class userRequest(entityId: UInteger, userId: UInteger, entityType: String) + case class userRequest(entityId: Integer, userId: Integer, entityType: String) /** * Defines the currently accepted resource types. @@ -67,7 +67,7 @@ object HubResource { * @param entityType The type of entity being checked (must be validated). * @return `true` if the user has liked the entity, otherwise `false`. */ - def isLikedHelper(userId: UInteger, workflowId: UInteger, entityType: String): Boolean = { + def isLikedHelper(userId: Integer, workflowId: Integer, entityType: String): Boolean = { validateEntityType(entityType) val entityTables = LikeTable(entityType) val (table, uidColumn, idColumn) = @@ -94,8 +94,8 @@ object HubResource { */ def recordUserActivity( request: HttpServletRequest, - userId: UInteger = UInteger.valueOf(0), - entityId: UInteger, + userId: Integer = Integer.valueOf(0), + entityId: Integer, entityType: String, action: String ): Unit = { @@ -171,8 +171,8 @@ object HubResource { */ def recordCloneActivity( request: HttpServletRequest, - userId: UInteger, - entityId: UInteger, + userId: Integer, + entityId: Integer, entityType: String ): Unit = { @@ -207,7 +207,7 @@ object HubResource { * @return The number of times the entity has been liked or cloned. */ def getUserLCCount( - entityId: UInteger, + entityId: Integer, entityType: String, actionType: String ): Int = { @@ -229,7 +229,7 @@ object HubResource { } // todo: refactor api related to landing page - def fetchDashboardWorkflowsByWids(wids: Seq[UInteger]): util.List[DashboardWorkflow] = { + def fetchDashboardWorkflowsByWids(wids: Seq[Integer]): util.List[DashboardWorkflow] = { if (wids.nonEmpty) { context .select( @@ -251,9 +251,9 @@ object HubResource { .asScala .map(record => { val workflow = new Workflow( + record.get(WORKFLOW.WID), record.get(WORKFLOW.NAME), record.get(WORKFLOW.DESCRIPTION), - record.get(WORKFLOW.WID), null, record.get(WORKFLOW.CREATION_TIME), record.get(WORKFLOW.LAST_MODIFIED_TIME), @@ -266,7 +266,7 @@ object HubResource { ownerName = record.get("ownerName", classOf[String]), workflow = workflow, projectIDs = List(), - ownerId = record.get("ownerId", classOf[UInteger]) + ownerId = record.get("ownerId", classOf[Integer]) ) }) .toList @@ -295,7 +295,7 @@ class HubResource { context .selectCount() .from(table) - .where(isPublicColumn.eq(1.toByte)) + .where(isPublicColumn.eq(true)) .fetchOne(0, classOf[Integer]) } @@ -303,8 +303,8 @@ class HubResource { @Path("/isLiked") @Produces(Array(MediaType.APPLICATION_JSON)) def isLiked( - @QueryParam("workflowId") workflowId: UInteger, - @QueryParam("userId") userId: UInteger, + @QueryParam("workflowId") workflowId: Integer, + @QueryParam("userId") userId: Integer, @QueryParam("entityType") entityType: String ): Boolean = { isLikedHelper(userId, workflowId, entityType) @@ -334,7 +334,7 @@ class HubResource { @Path("/likeCount") @Produces(Array(MediaType.APPLICATION_JSON)) def getLikeCount( - @QueryParam("entityId") entityId: UInteger, + @QueryParam("entityId") entityId: Integer, @QueryParam("entityType") entityType: String ): Int = { getUserLCCount(entityId, entityType, "like") @@ -344,7 +344,7 @@ class HubResource { @Path("/cloneCount") @Produces(Array(MediaType.APPLICATION_JSON)) def getCloneCount( - @QueryParam("entityId") entityId: UInteger, + @QueryParam("entityId") entityId: Integer, @QueryParam("entityType") entityType: String ): Int = { getUserLCCount(entityId, entityType, "clone") @@ -369,7 +369,7 @@ class HubResource { context .insertInto(table) .set(idColumn, entityID) - .set(viewCountColumn, UInteger.valueOf(1)) + .set(viewCountColumn, Integer.valueOf(1)) .onDuplicateKeyUpdate() .set(viewCountColumn, viewCountColumn.add(1)) .execute() @@ -387,7 +387,7 @@ class HubResource { @Path("/viewCount") @Produces(Array(MediaType.APPLICATION_JSON)) def getViewCount( - @QueryParam("entityId") entityId: UInteger, + @QueryParam("entityId") entityId: Integer, @QueryParam("entityType") entityType: String ): Int = { @@ -399,7 +399,7 @@ class HubResource { context .insertInto(table) .set(idColumn, entityId) - .set(viewCountColumn, UInteger.valueOf(0)) + .set(viewCountColumn, Integer.valueOf(0)) .onDuplicateKeyIgnore() .execute() @@ -419,11 +419,11 @@ class HubResource { .from(WORKFLOW_USER_LIKES) .join(WORKFLOW) .on(WORKFLOW_USER_LIKES.WID.eq(WORKFLOW.WID)) - .where(WORKFLOW.IS_PUBLIC.eq(1.toByte)) + .where(WORKFLOW.IS_PUBLIC.eq(true)) .groupBy(WORKFLOW_USER_LIKES.WID) .orderBy(DSL.count(WORKFLOW_USER_LIKES.WID).desc()) .limit(8) - .fetchInto(classOf[UInteger]) + .fetchInto(classOf[Integer]) .asScala .toSeq @@ -439,11 +439,11 @@ class HubResource { .from(WORKFLOW_USER_CLONES) .join(WORKFLOW) .on(WORKFLOW_USER_CLONES.WID.eq(WORKFLOW.WID)) - .where(WORKFLOW.IS_PUBLIC.eq(1.toByte)) + .where(WORKFLOW.IS_PUBLIC.eq(true)) .groupBy(WORKFLOW_USER_CLONES.WID) .orderBy(DSL.count(WORKFLOW_USER_CLONES.WID).desc()) .limit(8) - .fetchInto(classOf[UInteger]) + .fetchInto(classOf[Integer]) .asScala .toSeq diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetAccessResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetAccessResource.scala index e208e31d654..58f13191f88 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetAccessResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetAccessResource.scala @@ -5,7 +5,7 @@ import edu.uci.ics.amber.engine.common.Utils.withTransaction import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.web.model.common.AccessEntry import edu.uci.ics.texera.dao.jooq.generated.Tables.USER -import edu.uci.ics.texera.dao.jooq.generated.enums.DatasetUserAccessPrivilege +import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetUserAccess.DATASET_USER_ACCESS import edu.uci.ics.texera.dao.jooq.generated.tables.daos.{DatasetDao, DatasetUserAccessDao, UserDao} import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.{DatasetUserAccess, User} @@ -14,7 +14,7 @@ import edu.uci.ics.texera.web.resource.dashboard.user.dataset.DatasetAccessResou getOwner } import org.jooq.DSLContext -import org.jooq.types.UInteger + import java.util import javax.annotation.security.RolesAllowed @@ -26,36 +26,36 @@ object DatasetAccessResource { .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) .createDSLContext() - def isDatasetPublic(ctx: DSLContext, did: UInteger): Boolean = { + def isDatasetPublic(ctx: DSLContext, did: Integer): Boolean = { val datasetDao = new DatasetDao(ctx.configuration()) Option(datasetDao.fetchOneByDid(did)) .flatMap(dataset => Option(dataset.getIsPublic)) .contains(1.toByte) } - def userHasReadAccess(ctx: DSLContext, did: UInteger, uid: UInteger): Boolean = { + def userHasReadAccess(ctx: DSLContext, did: Integer, uid: Integer): Boolean = { isDatasetPublic(ctx, did) || userHasWriteAccess(ctx, did, uid) || - getDatasetUserAccessPrivilege(ctx, did, uid) == DatasetUserAccessPrivilege.READ + getDatasetUserAccessPrivilege(ctx, did, uid) == PrivilegeEnum.READ } - def userOwnDataset(ctx: DSLContext, did: UInteger, uid: UInteger): Boolean = { + def userOwnDataset(ctx: DSLContext, did: Integer, uid: Integer): Boolean = { val datasetDao = new DatasetDao(ctx.configuration()) Option(datasetDao.fetchOneByDid(did)) .exists(_.getOwnerUid == uid) } - def userHasWriteAccess(ctx: DSLContext, did: UInteger, uid: UInteger): Boolean = { + def userHasWriteAccess(ctx: DSLContext, did: Integer, uid: Integer): Boolean = { userOwnDataset(ctx, did, uid) || - getDatasetUserAccessPrivilege(ctx, did, uid) == DatasetUserAccessPrivilege.WRITE + getDatasetUserAccessPrivilege(ctx, did, uid) == PrivilegeEnum.WRITE } def getDatasetUserAccessPrivilege( ctx: DSLContext, - did: UInteger, - uid: UInteger - ): DatasetUserAccessPrivilege = { + did: Integer, + uid: Integer + ): PrivilegeEnum = { Option( ctx .select(DATASET_USER_ACCESS.PRIVILEGE) @@ -65,11 +65,11 @@ object DatasetAccessResource { .eq(did) .and(DATASET_USER_ACCESS.UID.eq(uid)) ) - .fetchOneInto(classOf[DatasetUserAccessPrivilege]) - ).getOrElse(DatasetUserAccessPrivilege.NONE) + .fetchOneInto(classOf[PrivilegeEnum]) + ).getOrElse(PrivilegeEnum.NONE) } - def getOwner(ctx: DSLContext, did: UInteger): User = { + def getOwner(ctx: DSLContext, did: Integer): User = { val datasetDao = new DatasetDao(ctx.configuration()) val userDao = new UserDao(ctx.configuration()) @@ -93,7 +93,7 @@ class DatasetAccessResource { */ @GET @Path("/owner/{did}") - def getOwnerEmailOfDataset(@PathParam("did") did: UInteger): String = { + def getOwnerEmailOfDataset(@PathParam("did") did: Integer): String = { var email = "" withTransaction(context) { ctx => val owner = getOwner(ctx, did) @@ -113,7 +113,7 @@ class DatasetAccessResource { @GET @Path("/list/{did}") def getAccessList( - @PathParam("did") did: UInteger + @PathParam("did") did: Integer ): util.List[AccessEntry] = { withTransaction(context) { ctx => val datasetDao = new DatasetDao(ctx.configuration()) @@ -146,7 +146,7 @@ class DatasetAccessResource { @PUT @Path("/grant/{did}/{email}/{privilege}") def grantAccess( - @PathParam("did") did: UInteger, + @PathParam("did") did: Integer, @PathParam("email") email: String, @PathParam("privilege") privilege: String ): Response = { @@ -157,7 +157,7 @@ class DatasetAccessResource { new DatasetUserAccess( did, userDao.fetchOneByEmail(email).getUid, - DatasetUserAccessPrivilege.valueOf(privilege) + PrivilegeEnum.valueOf(privilege) ) ) Response.ok().build() @@ -174,7 +174,7 @@ class DatasetAccessResource { @DELETE @Path("/revoke/{did}/{email}") def revokeAccess( - @PathParam("did") did: UInteger, + @PathParam("did") did: Integer, @PathParam("email") email: String ): Response = { withTransaction(context) { ctx => diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetResource.scala index 98cb2b3724e..8af53167943 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetResource.scala @@ -9,7 +9,7 @@ import edu.uci.ics.amber.engine.common.Utils.withTransaction import edu.uci.ics.amber.util.PathUtils import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.web.auth.SessionUser -import edu.uci.ics.texera.dao.jooq.generated.enums.DatasetUserAccessPrivilege +import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum import edu.uci.ics.texera.dao.jooq.generated.tables.Dataset.DATASET import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetUserAccess.DATASET_USER_ACCESS import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetVersion.DATASET_VERSION @@ -31,7 +31,7 @@ import edu.uci.ics.texera.web.resource.dashboard.user.dataset.`type`.DatasetFile import io.dropwizard.auth.Auth import org.apache.commons.lang3.StringUtils import org.glassfish.jersey.media.multipart.{FormDataMultiPart, FormDataParam} -import org.jooq.types.UInteger + import org.jooq.{DSLContext, EnumType} import play.api.libs.json.Json @@ -53,13 +53,13 @@ import scala.util.control.NonFatal import scala.util.{Failure, Success, Try, Using} object DatasetResource { - private val DATASET_IS_PUBLIC: Byte = 1 - private val DATASET_IS_PRIVATE: Byte = 0 + private val DATASET_IS_PUBLIC: Boolean = true + private val DATASET_IS_PRIVATE: Boolean = false private val FILE_OPERATION_UPLOAD_PREFIX = "file:upload:" private val FILE_OPERATION_REMOVE_PREFIX = "file:remove" - private val datasetLocks: scala.collection.concurrent.Map[UInteger, ReentrantLock] = - new scala.collection.concurrent.TrieMap[UInteger, ReentrantLock]() + private val datasetLocks: scala.collection.concurrent.Map[Integer, ReentrantLock] = + new scala.collection.concurrent.TrieMap[Integer, ReentrantLock]() private val context = SqlServer .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) @@ -71,7 +71,7 @@ object DatasetResource { * @param versionHash the hash of the version. If None, fetch the latest version * @return */ - def calculateDatasetVersionSize(did: UInteger, versionHash: Option[String] = None): Long = { + def calculateDatasetVersionSize(did: Integer, versionHash: Option[String] = None): Long = { /** * Internal util to calculate the size from the physical nodes @@ -112,7 +112,7 @@ object DatasetResource { /** * Helper function to get the dataset from DB using did */ - private def getDatasetByID(ctx: DSLContext, did: UInteger): Dataset = { + private def getDatasetByID(ctx: DSLContext, did: Integer): Dataset = { val datasetDao = new DatasetDao(ctx.configuration()) val dataset = datasetDao.fetchOneByDid(did) if (dataset == null) { @@ -126,7 +126,7 @@ object DatasetResource { */ private def getDatasetVersionByID( ctx: DSLContext, - dvid: UInteger + dvid: Integer ): DatasetVersion = { val datasetVersionDao = new DatasetVersionDao(ctx.configuration()) val version = datasetVersionDao.fetchOneByDvid(dvid) @@ -141,7 +141,7 @@ object DatasetResource { */ private def getLatestDatasetVersion( ctx: DSLContext, - did: UInteger + did: Integer ): Option[DatasetVersion] = { ctx .selectFrom(DATASET_VERSION) @@ -159,7 +159,7 @@ object DatasetResource { ) private def parseUserUploadedFormToDatasetOperations( - did: UInteger, + did: Integer, multiPart: FormDataMultiPart ): DatasetOperation = { val datasetPath = PathUtils.getDatasetPath(did) // Obtain dataset base path @@ -208,7 +208,7 @@ object DatasetResource { * @return the created dataset version */ def createNewDatasetVersionByAddingFiles( - did: UInteger, + did: Integer, user: User, filesToAdd: Map[java.nio.file.Path, InputStream] ): Option[DashboardDatasetVersion] = { @@ -227,8 +227,8 @@ object DatasetResource { // concurrency control is performed here: the thread has to have the lock in order to create the new version private def applyDatasetOperationToCreateNewVersion( ctx: DSLContext, - did: UInteger, - uid: UInteger, + did: Integer, + uid: Integer, ownerEmail: String, userProvidedVersionName: String, datasetOperation: DatasetOperation @@ -237,7 +237,7 @@ object DatasetResource { // the format of dataset version name is: v{#n} - {user provided dataset version name}. e.g. v10 - new version def generateDatasetVersionName( ctx: DSLContext, - did: UInteger, + did: Integer, userProvidedVersionName: String ): String = { val numberOfExistingVersions = ctx @@ -332,11 +332,11 @@ object DatasetResource { fileNodes: List[DatasetFileNode] ) - case class DatasetIDs(dids: List[UInteger]) + case class DatasetIDs(dids: List[Integer]) - case class DatasetNameModification(did: UInteger, name: String) + case class DatasetNameModification(did: Integer, name: String) - case class DatasetDescriptionModification(did: UInteger, description: String) + case class DatasetDescriptionModification(did: Integer, description: String) case class DatasetVersionRootFileNodesResponse( fileNodes: List[DatasetFileNode], @@ -357,8 +357,8 @@ class DatasetResource { */ private def getDashboardDataset( ctx: DSLContext, - did: UInteger, - uid: Option[UInteger], + did: Integer, + uid: Option[Integer], isPublic: Boolean = false ): DashboardDataset = { if ( @@ -370,7 +370,7 @@ class DatasetResource { val targetDataset = getDatasetByID(ctx, did) val userAccessPrivilege = - if (isPublic) DatasetUserAccessPrivilege.NONE + if (isPublic) PrivilegeEnum.NONE else getDatasetUserAccessPrivilege(ctx, did, uid.get) val isOwner = !isPublic && (targetDataset.getOwnerUid == uid.get) @@ -389,8 +389,8 @@ class DatasetResource { */ private def createNewDatasetVersionFromFormData( ctx: DSLContext, - did: UInteger, - uid: UInteger, + did: Integer, + uid: Integer, ownerEmail: String, userProvidedVersionName: String, multiPart: FormDataMultiPart @@ -433,7 +433,7 @@ class DatasetResource { val dataset: Dataset = new Dataset() dataset.setName(datasetName) dataset.setDescription(datasetDescription) - dataset.setIsPublic(isDatasetPublic.toByte) + dataset.setIsPublic(isDatasetPublic.toByte == 1) dataset.setOwnerUid(uid) val createdDataset = ctx @@ -448,7 +448,7 @@ class DatasetResource { val datasetUserAccess = new DatasetUserAccess() datasetUserAccess.setDid(createdDataset.getDid) datasetUserAccess.setUid(uid) - datasetUserAccess.setPrivilege(DatasetUserAccessPrivilege.WRITE) + datasetUserAccess.setPrivilege(PrivilegeEnum.WRITE) datasetOfUserDao.insert(datasetUserAccess) // initialize the dataset directory @@ -475,7 +475,7 @@ class DatasetResource { createdDataset.getCreationTime ), user.getEmail, - DatasetUserAccessPrivilege.WRITE, + PrivilegeEnum.WRITE, isOwner = true, versions = List(), size = calculateDatasetVersionSize(did) @@ -561,7 +561,7 @@ class DatasetResource { @RolesAllowed(Array("REGULAR", "ADMIN")) @Path("/{did}/update/publicity") def toggleDatasetPublicity( - @PathParam("did") did: UInteger, + @PathParam("did") did: Integer, @Auth sessionUser: SessionUser ): Response = { withTransaction(context) { ctx => @@ -589,7 +589,7 @@ class DatasetResource { @Path("/{did}/version/create") @Consumes(Array(MediaType.MULTIPART_FORM_DATA)) def createDatasetVersion( - @PathParam("did") did: UInteger, + @PathParam("did") did: Integer, @FormDataParam("versionName") versionName: String, @Auth user: SessionUser, multiPart: FormDataMultiPart @@ -672,7 +672,7 @@ class DatasetResource { DashboardDataset( isOwner = false, dataset = dataset, - accessPrivilege = DatasetUserAccessPrivilege.READ, + accessPrivilege = PrivilegeEnum.READ, versions = List(), ownerEmail = ownerEmail, size = calculateDatasetVersionSize(dataset.getDid) @@ -684,7 +684,7 @@ class DatasetResource { isOwner = false, dataset = publicDataset.dataset, ownerEmail = publicDataset.ownerEmail, - accessPrivilege = DatasetUserAccessPrivilege.READ, + accessPrivilege = PrivilegeEnum.READ, versions = List(), size = calculateDatasetVersionSize(publicDataset.dataset.getDid) ) @@ -700,7 +700,7 @@ class DatasetResource { @RolesAllowed(Array("REGULAR", "ADMIN")) @Path("/{did}/version/list") def getDatasetVersionList( - @PathParam("did") did: UInteger, + @PathParam("did") did: Integer, @Auth user: SessionUser ): List[DatasetVersion] = { val uid = user.getUid @@ -715,7 +715,7 @@ class DatasetResource { @GET @Path("/{did}/publicVersion/list") def getPublicDatasetVersionList( - @PathParam("did") did: UInteger + @PathParam("did") did: Integer ): List[DatasetVersion] = { withTransaction(context)(ctx => { if (!isDatasetPublic(ctx, did)) { @@ -729,7 +729,7 @@ class DatasetResource { @RolesAllowed(Array("REGULAR", "ADMIN")) @Path("/{did}/version/latest") def retrieveLatestDatasetVersion( - @PathParam("did") did: UInteger, + @PathParam("did") did: Integer, @Auth user: SessionUser ): DashboardDatasetVersion = { val uid = user.getUid @@ -777,8 +777,8 @@ class DatasetResource { @RolesAllowed(Array("REGULAR", "ADMIN")) @Path("/{did}/version/{dvid}/rootFileNodes") def retrieveDatasetVersionRootFileNodes( - @PathParam("did") did: UInteger, - @PathParam("dvid") dvid: UInteger, + @PathParam("did") did: Integer, + @PathParam("dvid") dvid: Integer, @Auth user: SessionUser ): DatasetVersionRootFileNodesResponse = { val uid = user.getUid @@ -790,8 +790,8 @@ class DatasetResource { @GET @Path("/{did}/publicVersion/{dvid}/rootFileNodes") def retrievePublicDatasetVersionRootFileNodes( - @PathParam("did") did: UInteger, - @PathParam("dvid") dvid: UInteger + @PathParam("did") did: Integer, + @PathParam("dvid") dvid: Integer ): DatasetVersionRootFileNodesResponse = { withTransaction(context)(ctx => fetchDatasetVersionRootFileNodes(ctx, did, dvid, None, isPublic = true) @@ -802,7 +802,7 @@ class DatasetResource { @RolesAllowed(Array("REGULAR", "ADMIN")) @Path("/{did}") def getDataset( - @PathParam("did") did: UInteger, + @PathParam("did") did: Integer, @Auth user: SessionUser ): DashboardDataset = { val uid = user.getUid @@ -812,7 +812,7 @@ class DatasetResource { @GET @Path("/public/{did}") def getPublicDataset( - @PathParam("did") did: UInteger + @PathParam("did") did: Integer ): DashboardDataset = { withTransaction(context)(ctx => fetchDataset(ctx, did, None, isPublic = true)) } @@ -875,7 +875,7 @@ class DatasetResource { @RolesAllowed(Array("REGULAR", "ADMIN")) @Path("/version-zip") def retrieveDatasetVersionZip( - @QueryParam("did") did: UInteger, + @QueryParam("did") did: Integer, @QueryParam("dvid") dvid: Optional[Integer], @Auth user: SessionUser ): Response = { @@ -888,7 +888,7 @@ class DatasetResource { throw new NotFoundException(ERR_DATASET_VERSION_NOT_FOUND_MESSAGE) ) } else { - getDatasetVersionByID(context, UInteger.valueOf(dvid.get)) + getDatasetVersionByID(context, Integer.valueOf(dvid.get)) } val targetDatasetPath = PathUtils.getDatasetPath(dataset.getDid) val fileNodes = GitVersionControlLocalFileStorage.retrieveRootFileNodesOfVersion( @@ -949,8 +949,8 @@ class DatasetResource { @GET @Path("/datasetUserAccess") def datasetUserAccess( - @QueryParam("did") did: UInteger - ): java.util.List[UInteger] = { + @QueryParam("did") did: Integer + ): java.util.List[Integer] = { val records = context .select(DATASET_USER_ACCESS.UID) .from(DATASET_USER_ACCESS) @@ -960,7 +960,7 @@ class DatasetResource { records.getValues(DATASET_USER_ACCESS.UID) } - private def fetchDatasetVersions(ctx: DSLContext, did: UInteger): List[DatasetVersion] = { + private def fetchDatasetVersions(ctx: DSLContext, did: Integer): List[DatasetVersion] = { ctx .selectFrom(DATASET_VERSION) .where(DATASET_VERSION.DID.eq(did)) @@ -972,9 +972,9 @@ class DatasetResource { private def fetchDatasetVersionRootFileNodes( ctx: DSLContext, - did: UInteger, - dvid: UInteger, - uid: Option[UInteger], + did: Integer, + dvid: Integer, + uid: Option[Integer], isPublic: Boolean ): DatasetVersionRootFileNodesResponse = { val dataset = getDashboardDataset(ctx, did, uid, isPublic) @@ -1010,8 +1010,8 @@ class DatasetResource { private def fetchDataset( ctx: DSLContext, - did: UInteger, - uid: Option[UInteger], + did: Integer, + uid: Option[Integer], isPublic: Boolean ): DashboardDataset = { val dashboardDataset = getDashboardDataset(ctx, did, uid, isPublic) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/utils/DatasetStatisticsUtils.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/utils/DatasetStatisticsUtils.scala index 3f1c17a39d2..e34af458de9 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/utils/DatasetStatisticsUtils.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/utils/DatasetStatisticsUtils.scala @@ -5,7 +5,7 @@ import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.dao.jooq.generated.tables.Dataset.DATASET import edu.uci.ics.texera.web.resource.dashboard.user.dataset.DatasetResource import edu.uci.ics.texera.web.resource.dashboard.user.quota.UserQuotaResource.DatasetQuota -import org.jooq.types.UInteger + import scala.jdk.CollectionConverters._ @@ -15,7 +15,7 @@ object DatasetStatisticsUtils { .createDSLContext() // this function retrieves the total counts of dataset that belongs to the user - def getUserCreatedDatasetCount(uid: UInteger): Int = { + def getUserCreatedDatasetCount(uid: Integer): Int = { val count = context .selectCount() .from(DATASET) @@ -26,7 +26,7 @@ object DatasetStatisticsUtils { } // this function would return a list of dataset ids that belongs to the user - private def getUserCreatedDatasetList(uid: UInteger): List[DatasetQuota] = { + private def getUserCreatedDatasetList(uid: Integer): List[DatasetQuota] = { val result = context .select( DATASET.DID, @@ -49,7 +49,7 @@ object DatasetStatisticsUtils { .toList } - def getUserCreatedDatasets(uid: UInteger): List[DatasetQuota] = { + def getUserCreatedDatasets(uid: Integer): List[DatasetQuota] = { val datasetList = getUserCreatedDatasetList(uid) datasetList.map { dataset => val size = DatasetResource.calculateDatasetVersionSize(dataset.did) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectAccessResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectAccessResource.scala index 59e6b5b7d38..b82b86575e9 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectAccessResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectAccessResource.scala @@ -4,11 +4,11 @@ import edu.uci.ics.amber.core.storage.StorageConfig import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.web.model.common.AccessEntry import edu.uci.ics.texera.dao.jooq.generated.Tables.{PROJECT_USER_ACCESS, USER} -import edu.uci.ics.texera.dao.jooq.generated.enums.ProjectUserAccessPrivilege +import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum import edu.uci.ics.texera.dao.jooq.generated.tables.daos.{ProjectDao, ProjectUserAccessDao, UserDao} import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.ProjectUserAccess import org.jooq.DSLContext -import org.jooq.types.UInteger + import java.util import javax.annotation.security.RolesAllowed @@ -34,7 +34,7 @@ class ProjectAccessResource() { */ @GET @Path("/owner/{pid}") - def getOwner(@PathParam("pid") pid: UInteger): String = { + def getOwner(@PathParam("pid") pid: Integer): String = { userDao.fetchOneByUid(projectDao.fetchOneByPid(pid).getOwnerId).getEmail } @@ -47,7 +47,7 @@ class ProjectAccessResource() { @GET @Path("/list/{pid}") def getAccessList( - @PathParam("pid") pid: UInteger + @PathParam("pid") pid: Integer ): util.List[AccessEntry] = { context .select( @@ -77,7 +77,7 @@ class ProjectAccessResource() { @PUT @Path("/grant/{pid}/{email}/{privilege}") def grantAccess( - @PathParam("pid") pid: UInteger, + @PathParam("pid") pid: Integer, @PathParam("email") email: String, @PathParam("privilege") privilege: String ): Unit = { @@ -85,7 +85,7 @@ class ProjectAccessResource() { new ProjectUserAccess( userDao.fetchOneByEmail(email).getUid, pid, - ProjectUserAccessPrivilege.valueOf(privilege) + PrivilegeEnum.valueOf(privilege) ) ) } @@ -100,7 +100,7 @@ class ProjectAccessResource() { @DELETE @Path("/revoke/{pid}/{email}") def revokeAccess( - @PathParam("pid") pid: UInteger, + @PathParam("pid") pid: Integer, @PathParam("email") email: String ): Unit = { context diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectResource.scala index 9963721cd57..1ba3dbba1ba 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectResource.scala @@ -4,7 +4,7 @@ import edu.uci.ics.amber.core.storage.StorageConfig import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.web.auth.SessionUser import edu.uci.ics.texera.dao.jooq.generated.Tables._ -import edu.uci.ics.texera.dao.jooq.generated.enums.ProjectUserAccessPrivilege +import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum import edu.uci.ics.texera.dao.jooq.generated.tables.daos.{ ProjectDao, ProjectUserAccessDao, @@ -18,7 +18,7 @@ import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowAccessRes import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowResource.DashboardWorkflow import io.dropwizard.auth.Auth import org.apache.commons.lang3.StringUtils -import org.jooq.types.UInteger + import java.sql.Timestamp import java.util @@ -53,7 +53,7 @@ object ProjectResource { * @param fileName name of exported file * @return String containing status of adding exported file to project(s) */ - def addExportedFileToProject(uid: UInteger, wid: UInteger, fileName: String): String = { + def addExportedFileToProject(uid: Integer, wid: Integer, fileName: String): String = { // get map of PIDs and project names val pidMap = context .select(WORKFLOW_OF_PROJECT.PID, PROJECT.NAME) @@ -76,7 +76,7 @@ object ProjectResource { } } - private def workflowOfProjectExists(wid: UInteger, pid: UInteger): Boolean = { + private def workflowOfProjectExists(wid: Integer, pid: Integer): Boolean = { workflowOfProjectDao.existsById( context .newRecord(WORKFLOW_OF_PROJECT.WID, WORKFLOW_OF_PROJECT.PID) @@ -85,10 +85,10 @@ object ProjectResource { } case class DashboardProject( - pid: UInteger, + pid: Integer, name: String, description: String, - ownerID: UInteger, + ownerID: Integer, creationTime: Timestamp, color: String, accessLevel: String @@ -108,7 +108,7 @@ class ProjectResource { */ @GET @Path("/{pid}") - def getProject(@PathParam("pid") pid: UInteger): Project = { + def getProject(@PathParam("pid") pid: Integer): Project = { userProjectDao.fetchOneByPid(pid) } @@ -150,7 +150,7 @@ class ProjectResource { @GET @Path("/{pid}/workflows") def listProjectWorkflows( - @PathParam("pid") pid: UInteger, + @PathParam("pid") pid: Integer, @Auth user: SessionUser ): List[DashboardWorkflow] = { val result = DashboardResource.searchAllResources( @@ -177,7 +177,7 @@ class ProjectResource { try { userProjectDao.insert(project) projectUserAccessDao.merge( - new ProjectUserAccess(user.getUid, project.getPid, ProjectUserAccessPrivilege.WRITE) + new ProjectUserAccess(user.getUid, project.getPid, PrivilegeEnum.WRITE) ) } catch { case _: Throwable => @@ -195,8 +195,8 @@ class ProjectResource { @POST @Path("/{pid}/workflow/{wid}/add") def addWorkflowToProject( - @PathParam("pid") pid: UInteger, - @PathParam("wid") wid: UInteger, + @PathParam("pid") pid: Integer, + @PathParam("wid") wid: Integer, @Auth user: SessionUser ): Unit = { if (!hasReadAccess(wid, user.getUid)) { @@ -217,7 +217,7 @@ class ProjectResource { @POST @Path("/{pid}/rename/{name}") def updateProjectName( - @PathParam("pid") pid: UInteger, + @PathParam("pid") pid: Integer, @PathParam("name") name: String ): Unit = { val userProject: Project = userProjectDao.fetchOneByPid(pid) @@ -242,7 +242,7 @@ class ProjectResource { @Path("/{pid}/update/description") @Consumes(Array(MediaType.TEXT_PLAIN)) def updateProjectDescription( - @PathParam("pid") pid: UInteger, + @PathParam("pid") pid: Integer, description: String ): Unit = { val userProject: Project = userProjectDao.fetchOneByPid(pid) @@ -264,7 +264,7 @@ class ProjectResource { @POST @Path("/{pid}/color/{colorHex}/add") def updateProjectColor( - @PathParam("pid") pid: UInteger, + @PathParam("pid") pid: Integer, @PathParam("colorHex") colorHex: String, @Auth sessionUser: SessionUser ): Unit = { @@ -283,7 +283,7 @@ class ProjectResource { @POST @Path("/{pid}/color/delete") - def deleteProjectColor(@PathParam("pid") pid: UInteger): Unit = { + def deleteProjectColor(@PathParam("pid") pid: Integer): Unit = { val userProject: Project = userProjectDao.fetchOneByPid(pid) userProject.setColor(null) userProjectDao.update(userProject) @@ -296,7 +296,7 @@ class ProjectResource { */ @DELETE @Path("/delete/{pid}") - def deleteProject(@PathParam("pid") pid: UInteger): Unit = { + def deleteProject(@PathParam("pid") pid: Integer): Unit = { userProjectDao.deleteById(pid) } @@ -310,8 +310,8 @@ class ProjectResource { @DELETE @Path("/{pid}/workflow/{wid}/delete") def deleteWorkflowFromProject( - @PathParam("pid") pid: UInteger, - @PathParam("wid") wid: UInteger + @PathParam("pid") pid: Integer, + @PathParam("wid") wid: Integer ): Unit = { workflowOfProjectDao.deleteById( context.newRecord(WORKFLOW_OF_PROJECT.WID, WORKFLOW_OF_PROJECT.PID).values(wid, pid) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/PublicProjectResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/PublicProjectResource.scala index 9e20262d7e4..0c6eed847c7 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/PublicProjectResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/PublicProjectResource.scala @@ -4,12 +4,12 @@ import edu.uci.ics.amber.core.storage.StorageConfig import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.web.auth.SessionUser import edu.uci.ics.texera.dao.jooq.generated.Tables.{PROJECT, PUBLIC_PROJECT, USER} -import edu.uci.ics.texera.dao.jooq.generated.enums.ProjectUserAccessPrivilege +import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum import edu.uci.ics.texera.dao.jooq.generated.tables.daos.{ProjectUserAccessDao, PublicProjectDao} import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.{ProjectUserAccess, PublicProject} import io.dropwizard.auth.Auth import org.jooq.DSLContext -import org.jooq.types.UInteger + import java.sql.Timestamp import java.util @@ -17,7 +17,7 @@ import javax.annotation.security.RolesAllowed import javax.ws.rs._ case class DashboardPublicProject( - pid: UInteger, + pid: Integer, name: String, owner: String, creationTime: Timestamp @@ -35,7 +35,7 @@ class PublicProjectResource { @GET @RolesAllowed(Array("ADMIN")) @Path("/type/{pid}") - def getType(@PathParam("pid") pid: UInteger): String = { + def getType(@PathParam("pid") pid: Integer): String = { if (publicProjectDao.fetchOneByPid(pid) == null) "Private" else @@ -45,27 +45,27 @@ class PublicProjectResource { @PUT @RolesAllowed(Array("ADMIN")) @Path("/public/{pid}") - def makePublic(@PathParam("pid") pid: UInteger, @Auth user: SessionUser): Unit = { + def makePublic(@PathParam("pid") pid: Integer, @Auth user: SessionUser): Unit = { publicProjectDao.insert(new PublicProject(pid, user.getUid)) } @PUT @RolesAllowed(Array("ADMIN")) @Path("/private/{pid}") - def makePrivate(@PathParam("pid") pid: UInteger): Unit = { + def makePrivate(@PathParam("pid") pid: Integer): Unit = { publicProjectDao.deleteById(pid) } @PUT @RolesAllowed(Array("REGULAR", "ADMIN")) @Path("/add") - def addPublicProjects(checkedList: util.List[UInteger], @Auth user: SessionUser): Unit = { + def addPublicProjects(checkedList: util.List[Integer], @Auth user: SessionUser): Unit = { checkedList.forEach(pid => { projectUserAccessDao.merge( new ProjectUserAccess( user.getUid, pid, - ProjectUserAccessPrivilege.READ + PrivilegeEnum.READ ) ) }) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/quota/UserQuotaResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/quota/UserQuotaResource.scala index 4a9f78f44ef..544c8f1ebf1 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/quota/UserQuotaResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/quota/UserQuotaResource.scala @@ -10,7 +10,7 @@ import edu.uci.ics.texera.web.resource.dashboard.user.dataset.utils.DatasetStati import edu.uci.ics.texera.web.resource.dashboard.user.quota.UserQuotaResource._ import io.dropwizard.auth.Auth import org.bson.Document -import org.jooq.types.UInteger + import java.util import javax.ws.rs._ @@ -23,15 +23,15 @@ object UserQuotaResource { .createDSLContext() case class Workflow( - userId: UInteger, - workflowId: UInteger, + userId: Integer, + workflowId: Integer, workflowName: String, creationTime: Long, lastModifiedTime: Long ) case class DatasetQuota( - did: UInteger, + did: Integer, name: String, creationTime: Long, size: Long @@ -41,7 +41,7 @@ object UserQuotaResource { workflowName: String, size: Double, pointer: String, - eid: UInteger + eid: Integer ) def getDatabaseSize(collectionNames: Array[MongoStorage]): Array[MongoStorage] = { @@ -83,7 +83,7 @@ object UserQuotaResource { name } - def getUserCreatedWorkflow(uid: UInteger): List[Workflow] = { + def getUserCreatedWorkflow(uid: Integer): List[Workflow] = { val userWorkflowEntries = context .select( WORKFLOW_OF_USER.UID, @@ -120,7 +120,7 @@ object UserQuotaResource { .toList } - def getUserAccessedWorkflow(uid: UInteger): util.List[UInteger] = { + def getUserAccessedWorkflow(uid: Integer): util.List[Integer] = { val availableWorkflowIds = context .select( WORKFLOW_USER_ACCESS.WID @@ -131,12 +131,12 @@ object UserQuotaResource { .where( WORKFLOW_USER_ACCESS.UID.eq(uid) ) - .fetchInto(classOf[UInteger]) + .fetchInto(classOf[Integer]) availableWorkflowIds } - def getUserMongoDBSize(uid: UInteger): Array[MongoStorage] = { + def getUserMongoDBSize(uid: Integer): Array[MongoStorage] = { val collectionNames = context .select( WORKFLOW_EXECUTIONS.RESULT, @@ -210,7 +210,7 @@ class UserQuotaResource { @GET @Path("/access_workflows") @Produces(Array(MediaType.APPLICATION_JSON)) - def getAccessedWorkflow(@Auth current_user: SessionUser): util.List[UInteger] = { + def getAccessedWorkflow(@Auth current_user: SessionUser): util.List[Integer] = { getUserAccessedWorkflow(current_user.getUid) } diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowAccessResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowAccessResource.scala index 53e9bc76bd2..5f9e441e318 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowAccessResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowAccessResource.scala @@ -5,7 +5,7 @@ import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.web.auth.SessionUser import edu.uci.ics.texera.web.model.common.AccessEntry import edu.uci.ics.texera.dao.jooq.generated.Tables._ -import edu.uci.ics.texera.dao.jooq.generated.enums.WorkflowUserAccessPrivilege +import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum import edu.uci.ics.texera.dao.jooq.generated.tables.daos.{ UserDao, WorkflowOfUserDao, @@ -15,7 +15,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowUserAccess import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowAccessResource.context import io.dropwizard.auth.Auth import org.jooq.DSLContext -import org.jooq.types.UInteger + import java.util import javax.annotation.security.RolesAllowed @@ -34,8 +34,8 @@ object WorkflowAccessResource { * @param uid user id, works with workflow id as primary keys in database * @return boolean value indicating yes/no */ - def hasReadAccess(wid: UInteger, uid: UInteger): Boolean = { - isPublic(wid) || getPrivilege(wid, uid).eq(WorkflowUserAccessPrivilege.READ) || hasWriteAccess( + def hasReadAccess(wid: Integer, uid: Integer): Boolean = { + isPublic(wid) || getPrivilege(wid, uid).eq(PrivilegeEnum.READ) || hasWriteAccess( wid, uid ) @@ -48,16 +48,16 @@ object WorkflowAccessResource { * @param uid user id, works with workflow id as primary keys in database * @return boolean value indicating yes/no */ - def hasWriteAccess(wid: UInteger, uid: UInteger): Boolean = { - getPrivilege(wid, uid).eq(WorkflowUserAccessPrivilege.WRITE) + def hasWriteAccess(wid: Integer, uid: Integer): Boolean = { + getPrivilege(wid, uid).eq(PrivilegeEnum.WRITE) } /** * @param wid workflow id * @param uid user id, works with workflow id as primary keys in database - * @return WorkflowUserAccessPrivilege value indicating NONE/READ/WRITE + * @return PrivilegeEnum value indicating NONE/READ/WRITE */ - def getPrivilege(wid: UInteger, uid: UInteger): WorkflowUserAccessPrivilege = { + def getPrivilege(wid: Integer, uid: Integer): PrivilegeEnum = { val access = context .select() .from(WORKFLOW_USER_ACCESS) @@ -72,7 +72,7 @@ object WorkflowAccessResource { .where(WORKFLOW_OF_PROJECT.WID.eq(wid).and(PROJECT_USER_ACCESS.UID.eq(uid))) .fetchOneInto(classOf[WorkflowUserAccess]) if (projectAccess == null) { - WorkflowUserAccessPrivilege.NONE + PrivilegeEnum.NONE } else { projectAccess.getPrivilege } @@ -81,7 +81,7 @@ object WorkflowAccessResource { } } - def isPublic(wid: UInteger): Boolean = { + def isPublic(wid: Integer): Boolean = { context .select(WORKFLOW.IS_PUBLIC) .from(WORKFLOW) @@ -106,7 +106,7 @@ class WorkflowAccessResource() { */ @GET @Path("/owner/{wid}") - def getOwner(@PathParam("wid") wid: UInteger): String = { + def getOwner(@PathParam("wid") wid: Integer): String = { userDao.fetchOneByUid(workflowOfUserDao.fetchByWid(wid).get(0).getUid).getEmail } @@ -119,7 +119,7 @@ class WorkflowAccessResource() { @GET @Path("/list/{wid}") def getAccessList( - @PathParam("wid") wid: UInteger + @PathParam("wid") wid: Integer ): util.List[AccessEntry] = { context .select( @@ -149,7 +149,7 @@ class WorkflowAccessResource() { @PUT @Path("/grant/{wid}/{email}/{privilege}") def grantAccess( - @PathParam("wid") wid: UInteger, + @PathParam("wid") wid: Integer, @PathParam("email") email: String, @PathParam("privilege") privilege: String, @Auth user: SessionUser @@ -162,7 +162,7 @@ class WorkflowAccessResource() { new WorkflowUserAccess( userDao.fetchOneByEmail(email).getUid, wid, - WorkflowUserAccessPrivilege.valueOf(privilege) + PrivilegeEnum.valueOf(privilege) ) ) } catch { @@ -182,7 +182,7 @@ class WorkflowAccessResource() { @DELETE @Path("/revoke/{wid}/{email}") def revokeAccess( - @PathParam("wid") wid: UInteger, + @PathParam("wid") wid: Integer, @PathParam("email") email: String ): Unit = { context diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala index 14ccdf0f6ef..16d9d835cc0 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala @@ -26,7 +26,6 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.{ import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowExecutionsResource._ import edu.uci.ics.texera.web.service.ExecutionsMetadataPersistService import io.dropwizard.auth.Auth -import org.jooq.types.{UInteger, ULong} import java.net.URI import java.sql.Timestamp @@ -50,7 +49,7 @@ object WorkflowExecutionsResource { context.configuration ) - def getExecutionById(eId: UInteger): WorkflowExecutions = { + def getExecutionById(eId: Integer): WorkflowExecutions = { executionsDao.fetchOneByEid(eId) } @@ -77,16 +76,16 @@ object WorkflowExecutionsResource { * This function retrieves the latest execution id of a workflow * * @param wid workflow id - * @return UInteger + * @return Integer */ - def getLatestExecutionID(wid: UInteger): Option[UInteger] = { + def getLatestExecutionID(wid: Integer): Option[Integer] = { val executions = context .select(WORKFLOW_EXECUTIONS.EID) .from(WORKFLOW_EXECUTIONS) .join(WORKFLOW_VERSION) .on(WORKFLOW_EXECUTIONS.VID.eq(WORKFLOW_VERSION.VID)) .where(WORKFLOW_VERSION.WID.eq(wid)) - .fetchInto(classOf[UInteger]) + .fetchInto(classOf[Integer]) .asScala .toList if (executions.isEmpty) { @@ -98,9 +97,9 @@ object WorkflowExecutionsResource { def insertOperatorExecutions( list: util.ArrayList[OperatorExecutions] - ): util.HashMap[String, ULong] = { + ): util.HashMap[String, Long] = { operatorExecutionsDao.insert(list); - val result = new util.HashMap[String, ULong]() + val result = new util.HashMap[String, Long]() list.forEach(execution => { result.put(execution.getOperatorId, execution.getOperatorExecutionId) }) @@ -112,8 +111,8 @@ object WorkflowExecutionsResource { } case class WorkflowExecutionEntry( - eId: UInteger, - vId: UInteger, + eId: Integer, + vId: Integer, userName: String, googleAvatar: String, status: Byte, @@ -127,25 +126,25 @@ object WorkflowExecutionsResource { case class WorkflowRuntimeStatistics( operatorId: String, - inputTupleCount: ULong, - outputTupleCount: ULong, + inputTupleCount: Long, + outputTupleCount: Long, timestamp: Timestamp, - dataProcessingTime: ULong, - controlProcessingTime: ULong, - idleTime: ULong, - numWorkers: UInteger + dataProcessingTime: Long, + controlProcessingTime: Long, + idleTime: Long, + numWorkers: Integer ) } case class ExecutionGroupBookmarkRequest( - wid: UInteger, - eIds: Array[UInteger], + wid: Integer, + eIds: Array[Integer], isBookmarked: Boolean ) -case class ExecutionGroupDeleteRequest(wid: UInteger, eIds: Array[UInteger]) +case class ExecutionGroupDeleteRequest(wid: Integer, eIds: Array[Integer]) -case class ExecutionRenameRequest(wid: UInteger, eId: UInteger, executionName: String) +case class ExecutionRenameRequest(wid: Integer, eId: Integer, executionName: String) @Produces(Array(MediaType.APPLICATION_JSON)) @Path("/executions") @@ -156,8 +155,8 @@ class WorkflowExecutionsResource { @Path("/{wid}/interactions/{eid}") @RolesAllowed(Array("REGULAR", "ADMIN")) def retrieveInteractionHistory( - @PathParam("wid") wid: UInteger, - @PathParam("eid") eid: UInteger, + @PathParam("wid") wid: Integer, + @PathParam("eid") eid: Integer, @Auth sessionUser: SessionUser ): List[String] = { val user = sessionUser.getUser @@ -197,7 +196,7 @@ class WorkflowExecutionsResource { @Path("/{wid}") @RolesAllowed(Array("REGULAR", "ADMIN")) def retrieveExecutionsOfWorkflow( - @PathParam("wid") wid: UInteger, + @PathParam("wid") wid: Integer, @Auth sessionUser: SessionUser ): List[WorkflowExecutionEntry] = { val user = sessionUser.getUser @@ -235,8 +234,8 @@ class WorkflowExecutionsResource { @Produces(Array(MediaType.APPLICATION_JSON)) @Path("/{wid}/{eid}") def retrieveWorkflowRuntimeStatistics( - @PathParam("wid") wid: UInteger, - @PathParam("eid") eid: UInteger + @PathParam("wid") wid: Integer, + @PathParam("eid") eid: Integer ): List[WorkflowRuntimeStatistics] = { context .select( @@ -301,7 +300,7 @@ class WorkflowExecutionsResource { } /** Determine if user is authorized to access the workflow, if not raise 401 */ - def validateUserCanAccessWorkflow(uid: UInteger, wid: UInteger): Unit = { + def validateUserCanAccessWorkflow(uid: Integer, wid: Integer): Unit = { if (!WorkflowAccessResource.hasReadAccess(wid, uid)) throw new WebApplicationException(Response.Status.UNAUTHORIZED) } diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala index 687dde8cb9b..45dc2548163 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala @@ -7,7 +7,7 @@ import edu.uci.ics.amber.core.storage.StorageConfig import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.web.auth.SessionUser import edu.uci.ics.texera.dao.jooq.generated.Tables._ -import edu.uci.ics.texera.dao.jooq.generated.enums.WorkflowUserAccessPrivilege +import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum import edu.uci.ics.texera.dao.jooq.generated.tables.daos.{ WorkflowDao, WorkflowOfProjectDao, @@ -21,7 +21,7 @@ import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowResource. import io.dropwizard.auth.Auth import org.jooq.Condition import org.jooq.impl.DSL.{groupConcatDistinct, noCondition} -import org.jooq.types.UInteger + import java.sql.Timestamp import java.util @@ -53,7 +53,7 @@ object WorkflowResource { ) final private lazy val workflowOfProjectDao = new WorkflowOfProjectDao(context.configuration) - def getWorkflowName(wid: UInteger): String = { + def getWorkflowName(wid: Integer): String = { val workflow = workflowDao.fetchOneByWid(wid) if (workflow == null) { throw new NotFoundException(s"Workflow with id $wid not found") @@ -68,12 +68,12 @@ object WorkflowResource { new WorkflowUserAccess( user.getUid, workflow.getWid, - WorkflowUserAccessPrivilege.WRITE + PrivilegeEnum.WRITE ) ) } - private def workflowOfUserExists(wid: UInteger, uid: UInteger): Boolean = { + private def workflowOfUserExists(wid: Integer, uid: Integer): Boolean = { workflowOfUserDao.existsById( context .newRecord(WORKFLOW_OF_USER.UID, WORKFLOW_OF_USER.WID) @@ -81,7 +81,7 @@ object WorkflowResource { ) } - private def workflowOfProjectExists(wid: UInteger, pid: UInteger): Boolean = { + private def workflowOfProjectExists(wid: Integer, pid: Integer): Boolean = { workflowOfProjectDao.existsById( context .newRecord(WORKFLOW_OF_PROJECT.WID, WORKFLOW_OF_PROJECT.PID) @@ -94,22 +94,22 @@ object WorkflowResource { accessLevel: String, ownerName: String, workflow: Workflow, - projectIDs: List[UInteger], - ownerId: UInteger + projectIDs: List[Integer], + ownerId: Integer ) case class WorkflowWithPrivilege( name: String, description: String, - wid: UInteger, + wid: Integer, content: String, creationTime: Timestamp, lastModifiedTime: Timestamp, - isPublished: Byte, + isPublished: Boolean, readonly: Boolean ) - case class WorkflowIDs(wids: List[UInteger], pid: Option[UInteger]) + case class WorkflowIDs(wids: List[Integer], pid: Option[Integer]) private def updateWorkflowField( workflow: Workflow, @@ -302,9 +302,9 @@ class WorkflowResource extends LazyLogging { .toString, workflowRecord.into(USER).getName, workflowRecord.into(WORKFLOW).into(classOf[Workflow]), - if (workflowRecord.component9() == null) List[UInteger]() + if (workflowRecord.component9() == null) List[Integer]() else - workflowRecord.component9().split(',').map(number => UInteger.valueOf(number)).toList, + workflowRecord.component9().split(',').map(number => Integer.valueOf(number)).toList, workflowRecord.into(WORKFLOW_OF_USER).getUid ) ) @@ -324,7 +324,7 @@ class WorkflowResource extends LazyLogging { @RolesAllowed(Array("REGULAR", "ADMIN")) @Path("/{wid}") def retrieveWorkflow( - @PathParam("wid") wid: UInteger, + @PathParam("wid") wid: Integer, @Auth user: SessionUser ): WorkflowWithPrivilege = { if (WorkflowAccessResource.hasReadAccess(wid, user.getUid)) { @@ -417,13 +417,13 @@ class WorkflowResource extends LazyLogging { val oldWorkflow: Workflow = workflowDao.fetchOneByWid(wid) val newWorkflow = createWorkflow( new Workflow( + null, oldWorkflow.getName + "_copy", oldWorkflow.getDescription, - null, assignNewOperatorIds(oldWorkflow.getContent), null, null, - 0.toByte + false ), sessionUser ) @@ -457,20 +457,20 @@ class WorkflowResource extends LazyLogging { @RolesAllowed(Array("REGULAR", "ADMIN")) @Path("/clone/{wid}") def cloneWorkflow( - @PathParam("wid") wid: UInteger, + @PathParam("wid") wid: Integer, @Auth sessionUser: SessionUser, @Context request: HttpServletRequest - ): UInteger = { + ): Integer = { val oldWorkflow: Workflow = workflowDao.fetchOneByWid(wid) val newWorkflow: DashboardWorkflow = createWorkflow( new Workflow( + null, oldWorkflow.getName + "_clone", oldWorkflow.getDescription, - null, assignNewOperatorIds(oldWorkflow.getContent), null, null, - 0.toByte + false ), sessionUser ) @@ -500,10 +500,10 @@ class WorkflowResource extends LazyLogging { WorkflowVersionResource.insertVersion(workflow, insertingNewWorkflow = true) DashboardWorkflow( isOwner = true, - WorkflowUserAccessPrivilege.WRITE.toString, + PrivilegeEnum.WRITE.toString, user.getName, workflowDao.fetchOneByWid(workflow.getWid), - List[UInteger](), + List[Integer](), user.getUid ) } @@ -564,27 +564,27 @@ class WorkflowResource extends LazyLogging { @PUT @RolesAllowed(Array("REGULAR", "ADMIN")) @Path("/public/{wid}") - def makePublic(@PathParam("wid") wid: UInteger, @Auth user: SessionUser): Unit = { + def makePublic(@PathParam("wid") wid: Integer, @Auth user: SessionUser): Unit = { val workflow: Workflow = workflowDao.fetchOneByWid(wid) - workflow.setIsPublic(1.toByte) + workflow.setIsPublic(true) workflowDao.update(workflow) } @PUT @RolesAllowed(Array("REGULAR", "ADMIN")) @Path("/private/{wid}") - def makePrivate(@PathParam("wid") wid: UInteger): Unit = { + def makePrivate(@PathParam("wid") wid: Integer): Unit = { val workflow: Workflow = workflowDao.fetchOneByWid(wid) - workflow.setIsPublic(0.toByte) + workflow.setIsPublic(false) workflowDao.update(workflow) } @GET @RolesAllowed(Array("REGULAR", "ADMIN")) @Path("/type/{wid}") - def getWorkflowType(@PathParam("wid") wid: UInteger): String = { + def getWorkflowType(@PathParam("wid") wid: Integer): String = { val workflow: Workflow = workflowDao.fetchOneByWid(wid) - if (workflow.getIsPublic == 1.toByte) { + if (workflow.getIsPublic) { "Public" } else { "Private" @@ -593,7 +593,7 @@ class WorkflowResource extends LazyLogging { @GET @Path("/owner_user") - def getOwnerUser(@QueryParam("wid") wid: UInteger): User = { + def getOwnerUser(@QueryParam("wid") wid: Integer): User = { context .select( USER.UID, @@ -613,7 +613,7 @@ class WorkflowResource extends LazyLogging { @GET @Path("/workflow_name") - def getWorkflowName(@QueryParam("wid") wid: UInteger): String = { + def getWorkflowName(@QueryParam("wid") wid: Integer): String = { context .select( WORKFLOW.NAME @@ -626,7 +626,7 @@ class WorkflowResource extends LazyLogging { @GET @Path("/public/{wid}") def retrievePublicWorkflow( - @PathParam("wid") wid: UInteger + @PathParam("wid") wid: Integer ): WorkflowWithPrivilege = { val workflow = workflowDao.ctx .selectFrom(WORKFLOW) @@ -647,7 +647,7 @@ class WorkflowResource extends LazyLogging { @GET @Path("/workflow_description") - def getWorkflowDescription(@QueryParam("wid") wid: UInteger): String = { + def getWorkflowDescription(@QueryParam("wid") wid: Integer): String = { context .select( WORKFLOW.DESCRIPTION @@ -660,8 +660,8 @@ class WorkflowResource extends LazyLogging { @GET @Path("/workflow_user_access") def workflowUserAccess( - @QueryParam("wid") wid: UInteger - ): util.List[UInteger] = { + @QueryParam("wid") wid: Integer + ): util.List[Integer] = { val records = context .select(WORKFLOW_USER_ACCESS.UID) .from(WORKFLOW_USER_ACCESS) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowVersionResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowVersionResource.scala index ed2cfa95a37..cf4e0545eb6 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowVersionResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowVersionResource.scala @@ -15,7 +15,7 @@ import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowResource. } import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowVersionResource._ import io.dropwizard.auth.Auth -import org.jooq.types.UInteger + import java.sql.Timestamp import javax.annotation.security.RolesAllowed @@ -72,7 +72,7 @@ object WorkflowVersionResource { * @param patch to update latest version * @param wid */ - private def updateLatestVersion(patch: String, wid: UInteger): Unit = { + private def updateLatestVersion(patch: String, wid: Integer): Unit = { // get the latest version to update its content val vid = getLatestVersion(wid) val workflowVersion = workflowVersionDao.fetchOneByVid(vid) @@ -86,12 +86,12 @@ object WorkflowVersionResource { * @param wid * @return vid */ - def getLatestVersion(wid: UInteger): UInteger = { + def getLatestVersion(wid: Integer): Integer = { val versions = context .select(WORKFLOW_VERSION.VID) .from(WORKFLOW_VERSION) .where(WORKFLOW_VERSION.WID.eq(wid)) - .fetchInto(classOf[UInteger]) + .fetchInto(classOf[Integer]) .asScala .toList // for backwards compatibility check, old constructed versions would follow the old design by not saving the current @@ -108,7 +108,7 @@ object WorkflowVersionResource { * * @param wid */ - def insertNewVersion(wid: UInteger, content: String = "[]"): WorkflowVersion = { + def insertNewVersion(wid: Integer, content: String = "[]"): WorkflowVersion = { val workflowVersion = new WorkflowVersion() workflowVersion.setContent(content) workflowVersion.setWid(wid) @@ -125,9 +125,9 @@ object WorkflowVersionResource { * @return a list of contents as strings */ def isSnapshotInRangeUnimportant( - lowerBound: UInteger, - UpperBound: UInteger, - wid: UInteger + lowerBound: Integer, + UpperBound: Integer, + wid: Integer ): Boolean = { if (lowerBound == UpperBound) { return true @@ -282,7 +282,7 @@ object WorkflowVersionResource { * @param importance false is not an important version and true is an important version */ case class VersionEntry( - vId: UInteger, + vId: Integer, creationTime: Timestamp, content: String, importance: Boolean @@ -304,7 +304,7 @@ class WorkflowVersionResource { @Path("/{wid}") @RolesAllowed(Array("REGULAR", "ADMIN")) def retrieveVersionsOfWorkflow( - @PathParam("wid") wid: UInteger, + @PathParam("wid") wid: Integer, @Auth sessionUser: SessionUser ): List[VersionEntry] = { val user = sessionUser.getUser @@ -338,8 +338,8 @@ class WorkflowVersionResource { @Path("/{wid}/{vid}") @RolesAllowed(Array("REGULAR", "ADMIN")) def retrieveWorkflowVersion( - @PathParam("wid") wid: UInteger, - @PathParam("vid") vid: UInteger, + @PathParam("wid") wid: Integer, + @PathParam("vid") vid: Integer, @Auth sessionUser: SessionUser ): Workflow = { val user = sessionUser.getUser @@ -367,10 +367,10 @@ class WorkflowVersionResource { @Path("/clone/{vid}") @RolesAllowed(Array("REGULAR", "ADMIN")) def cloneVersion( - @PathParam("vid") vid: UInteger, + @PathParam("vid") vid: Integer, @Auth sessionUser: SessionUser, requestBody: java.util.Map[String, Int] - ): UInteger = { + ): Integer = { val displayedVersionId = requestBody.get("displayedVersionId") // Fetch the workflow ID (`wid`) associated with the specified version (`vid`) @@ -394,13 +394,13 @@ class WorkflowVersionResource { try { workflowResource.createWorkflow( new Workflow( + null, newWorkflowName, workflowVersion.getDescription, - null, assignNewOperatorIds(workflowVersion.getContent), null, null, - 0.toByte + false ), sessionUser ) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionStatsService.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionStatsService.scala index 8494dfb2238..2ca5c2556e3 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionStatsService.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionStatsService.scala @@ -33,7 +33,6 @@ import edu.uci.ics.texera.web.model.websocket.event.{ import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowExecutionsResource import edu.uci.ics.texera.web.storage.ExecutionStateStore import edu.uci.ics.texera.web.storage.ExecutionStateStore.updateWorkflowState -import org.jooq.types.{UInteger, ULong} import java.time.Instant import java.util @@ -42,7 +41,7 @@ import java.util.concurrent.Executors class ExecutionStatsService( client: AmberClient, stateStore: ExecutionStateStore, - operatorIdToExecutionId: Map[String, ULong] + operatorIdToExecutionId: Map[String, Long] ) extends SubscriptionManager with LazyLogging { private val metricsPersistThread = Executors.newSingleThreadExecutor() @@ -209,20 +208,20 @@ class ExecutionStatsService( val runtimeStats = new OperatorRuntimeStatistics() runtimeStats.setOperatorExecutionId(operatorIdToExecutionId(operatorId)) runtimeStats.setInputTupleCnt( - ULong.valueOf(stat.operatorStatistics.inputCount.map(_.tupleCount).sum) + stat.operatorStatistics.inputCount.map(_.tupleCount).sum ) runtimeStats.setOutputTupleCnt( - ULong.valueOf(stat.operatorStatistics.outputCount.map(_.tupleCount).sum) + stat.operatorStatistics.outputCount.map(_.tupleCount).sum ) runtimeStats.setStatus(maptoStatusCode(stat.operatorState)) runtimeStats.setDataProcessingTime( - ULong.valueOf(stat.operatorStatistics.dataProcessingTime) + stat.operatorStatistics.dataProcessingTime ) runtimeStats.setControlProcessingTime( - ULong.valueOf(stat.operatorStatistics.controlProcessingTime) + stat.operatorStatistics.controlProcessingTime ) - runtimeStats.setIdleTime(ULong.valueOf(stat.operatorStatistics.idleTime)) - runtimeStats.setNumWorkers(UInteger.valueOf(stat.operatorStatistics.numWorkers)) + runtimeStats.setIdleTime(stat.operatorStatistics.idleTime) + runtimeStats.setNumWorkers(Integer.valueOf(stat.operatorStatistics.numWorkers)) runtimeStatsList.add(runtimeStats) } diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionsMetadataPersistService.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionsMetadataPersistService.scala index 0016b89a480..91eb55a4bc9 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionsMetadataPersistService.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionsMetadataPersistService.scala @@ -9,7 +9,7 @@ import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.dao.jooq.generated.tables.daos.WorkflowExecutionsDao import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowExecutions import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowVersionResource._ -import org.jooq.types.UInteger + import java.sql.Timestamp @@ -35,13 +35,13 @@ object ExecutionsMetadataPersistService extends LazyLogging { def insertNewExecution( workflowId: WorkflowIdentity, - uid: Option[UInteger], + uid: Option[Integer], executionName: String, environmentVersion: String ): ExecutionIdentity = { if (!AmberConfig.isUserSystemEnabled) return DEFAULT_EXECUTION_ID // first retrieve the latest version of this workflow - val vid = getLatestVersion(UInteger.valueOf(workflowId.id)) + val vid = getLatestVersion(workflowId.id.toInt) val newExecution = new WorkflowExecutions() if (executionName != "") { newExecution.setName(executionName) @@ -57,7 +57,7 @@ object ExecutionsMetadataPersistService extends LazyLogging { def tryGetExistingExecution(executionId: ExecutionIdentity): Option[WorkflowExecutions] = { if (!AmberConfig.isUserSystemEnabled) return None try { - Some(workflowExecutionsDao.fetchOneByEid(UInteger.valueOf(executionId.id))) + Some(workflowExecutionsDao.fetchOneByEid(executionId.id.toInt)) } catch { case t: Throwable => logger.info("Unable to get execution. Error = " + t.getMessage) @@ -70,7 +70,7 @@ object ExecutionsMetadataPersistService extends LazyLogging { )(updateFunc: WorkflowExecutions => Unit): Unit = { if (!AmberConfig.isUserSystemEnabled) return try { - val execution = workflowExecutionsDao.fetchOneByEid(UInteger.valueOf(executionId.id)) + val execution = workflowExecutionsDao.fetchOneByEid(executionId.id.toInt) updateFunc(execution) workflowExecutionsDao.update(execution) } catch { diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ResultExportService.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ResultExportService.scala index 8d40867e907..c4dae5e56bb 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ResultExportService.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ResultExportService.scala @@ -19,7 +19,7 @@ import edu.uci.ics.texera.web.model.websocket.response.ResultExportResponse import edu.uci.ics.texera.web.resource.GoogleResource import edu.uci.ics.texera.web.resource.dashboard.user.dataset.DatasetResource.createNewDatasetVersionByAddingFiles import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowVersionResource -import org.jooq.types.UInteger + import edu.uci.ics.amber.util.ArrowUtils import edu.uci.ics.amber.core.workflow.PortIdentity import edu.uci.ics.texera.web.service.WorkflowExecutionService.getLatestExecutionId @@ -444,7 +444,7 @@ class ResultExportService(workflowIdentity: WorkflowIdentity) { private def generateFileName(request: ResultExportRequest, extension: String): String = { val latestVersion = - WorkflowVersionResource.getLatestVersion(UInteger.valueOf(request.workflowId)) + WorkflowVersionResource.getLatestVersion(Integer.valueOf(request.workflowId)) val timestamp = LocalDateTime .now() .truncatedTo(ChronoUnit.SECONDS) @@ -463,10 +463,10 @@ class ResultExportService(workflowIdentity: WorkflowIdentity) { fileName: String ): Unit = { request.datasetIds.foreach { did => - val datasetPath = PathUtils.getDatasetPath(UInteger.valueOf(did)) + val datasetPath = PathUtils.getDatasetPath(Integer.valueOf(did)) val filePath = datasetPath.resolve(fileName) createNewDatasetVersionByAddingFiles( - UInteger.valueOf(did), + Integer.valueOf(did), user, Map(filePath -> pipedInputStream) ) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/WorkflowEmailNotifier.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/WorkflowEmailNotifier.scala index 508ab8f5700..b257e889a81 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/WorkflowEmailNotifier.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/WorkflowEmailNotifier.scala @@ -5,7 +5,7 @@ import edu.uci.ics.amber.engine.architecture.rpc.controlreturns.WorkflowAggregat import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowResource import edu.uci.ics.texera.web.resource.{EmailMessage, GmailResource} import org.hibernate.validator.internal.constraintvalidators.hv.EmailValidator -import org.jooq.types.UInteger + import java.net.URI import java.time.format.DateTimeFormatter @@ -16,7 +16,7 @@ class WorkflowEmailNotifier( userEmail: String, sessionUri: URI ) extends EmailNotifier { - private val workflowName = WorkflowResource.getWorkflowName(UInteger.valueOf(workflowId)) + private val workflowName = WorkflowResource.getWorkflowName(workflowId.toInt) private val emailValidator = new EmailValidator() private val CompletedPausedOrTerminatedStates: Set[WorkflowAggregatedState] = Set( COMPLETED, diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/WorkflowExecutionService.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/WorkflowExecutionService.scala index fb9a666dd3b..5e0b42c1631 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/WorkflowExecutionService.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/WorkflowExecutionService.scala @@ -7,22 +7,17 @@ import edu.uci.ics.amber.core.workflow.WorkflowContext.DEFAULT_EXECUTION_ID import edu.uci.ics.amber.engine.architecture.controller.{ControllerConfig, Workflow} import edu.uci.ics.amber.engine.architecture.rpc.controlcommands.EmptyRequest import edu.uci.ics.amber.engine.architecture.rpc.controlreturns.WorkflowAggregatedState._ -import edu.uci.ics.amber.engine.common.{AmberConfig, Utils} import edu.uci.ics.amber.engine.common.client.AmberClient import edu.uci.ics.amber.engine.common.executionruntimestate.ExecutionMetadataStore +import edu.uci.ics.amber.engine.common.{AmberConfig, Utils} import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorExecutions -import edu.uci.ics.texera.web.model.websocket.event.{ - TexeraWebSocketEvent, - WorkflowErrorEvent, - WorkflowStateEvent -} +import edu.uci.ics.texera.web.model.websocket.event.{TexeraWebSocketEvent, WorkflowErrorEvent, WorkflowStateEvent} import edu.uci.ics.texera.web.model.websocket.request.WorkflowExecuteRequest import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowExecutionsResource import edu.uci.ics.texera.web.storage.ExecutionStateStore import edu.uci.ics.texera.web.storage.ExecutionStateStore.updateWorkflowState import edu.uci.ics.texera.web.{ComputingUnitMaster, SubscriptionManager, WebsocketInput} import edu.uci.ics.texera.workflow.{LogicalPlan, WorkflowCompiler} -import org.jooq.types.{UInteger, ULong} import java.net.URI import java.util @@ -34,7 +29,7 @@ object WorkflowExecutionService { return Some(DEFAULT_EXECUTION_ID) } WorkflowExecutionsResource - .getLatestExecutionID(UInteger.valueOf(workflowId.id)) + .getLatestExecutionID(workflowId.id.toInt) .map(eid => new ExecutionIdentity(eid.longValue())) } } @@ -121,7 +116,7 @@ class WorkflowExecutionService( executionReconfigurationService = new ExecutionReconfigurationService(client, executionStateStore, workflow) // Create the operatorId to executionId map - val operatorIdToExecutionId: Map[String, ULong] = + val operatorIdToExecutionId: Map[String, Long] = if (AmberConfig.isUserSystemEnabled) createOperatorIdToExecutionIdMap(workflow) else @@ -164,14 +159,14 @@ class WorkflowExecutionService( ) } - private def createOperatorIdToExecutionIdMap(workflow: Workflow): Map[String, ULong] = { + private def createOperatorIdToExecutionIdMap(workflow: Workflow): Map[String, Long] = { val executionList: util.ArrayList[OperatorExecutions] = new util.ArrayList[OperatorExecutions]() - val operatorIdToExecutionId = scala.collection.mutable.Map[String, ULong]() + val operatorIdToExecutionId = scala.collection.mutable.Map[String, Long]() workflow.logicalPlan.operators.foreach { operator => val operatorId = operator.operatorIdentifier.id val execution = new OperatorExecutions() - execution.setWorkflowExecutionId(UInteger.valueOf(workflowContext.executionId.id)) + execution.setWorkflowExecutionId(workflowContext.executionId.id.toInt) execution.setOperatorId(operatorId) executionList.add(execution) } diff --git a/core/amber/src/test/scala/edu/uci/ics/amber/engine/architecture/scheduling/DefaultCostEstimatorSpec.scala b/core/amber/src/test/scala/edu/uci/ics/amber/engine/architecture/scheduling/DefaultCostEstimatorSpec.scala index e3953ebd1bd..30ea1fea7f3 100644 --- a/core/amber/src/test/scala/edu/uci/ics/amber/engine/architecture/scheduling/DefaultCostEstimatorSpec.scala +++ b/core/amber/src/test/scala/edu/uci/ics/amber/engine/architecture/scheduling/DefaultCostEstimatorSpec.scala @@ -8,11 +8,10 @@ import edu.uci.ics.amber.operator.aggregate.{AggregateOpDesc, AggregationFunctio import edu.uci.ics.amber.operator.keywordSearch.KeywordSearchOpDesc import edu.uci.ics.amber.operator.source.scan.csv.CSVScanSourceOpDesc import edu.uci.ics.texera.dao.MockTexeraDB -import edu.uci.ics.texera.dao.jooq.generated.enums.UserRole +import edu.uci.ics.texera.dao.jooq.generated.enums.UserRoleEnum import edu.uci.ics.texera.dao.jooq.generated.tables.daos._ import edu.uci.ics.texera.dao.jooq.generated.tables.pojos._ import edu.uci.ics.texera.workflow.LogicalLink -import org.jooq.types.{UInteger, ULong} import org.scalatest.flatspec.AnyFlatSpec import org.scalatest.{BeforeAndAfterAll, BeforeAndAfterEach} import org.jooq.DSLContext @@ -35,9 +34,9 @@ class DefaultCostEstimatorSpec private val testUser: User = { val user = new User - user.setUid(UInteger.valueOf(1)) + user.setUid(Integer.valueOf(1)) user.setName("test_user") - user.setRole(UserRole.ADMIN) + user.setRole(UserRoleEnum.ADMIN) user.setPassword("123") user.setEmail("test_user@test.com") user @@ -46,7 +45,7 @@ class DefaultCostEstimatorSpec private val testWorkflowEntry: Workflow = { val workflow = new Workflow workflow.setName("test workflow") - workflow.setWid(UInteger.valueOf(1)) + workflow.setWid(Integer.valueOf(1)) workflow.setContent("test workflow content") workflow.setDescription("test description") workflow @@ -54,17 +53,17 @@ class DefaultCostEstimatorSpec private val testWorkflowVersionEntry: WorkflowVersion = { val workflowVersion = new WorkflowVersion - workflowVersion.setWid(UInteger.valueOf(1)) - workflowVersion.setVid(UInteger.valueOf(1)) + workflowVersion.setWid(Integer.valueOf(1)) + workflowVersion.setVid(Integer.valueOf(1)) workflowVersion.setContent("test version content") workflowVersion } private val testWorkflowExecutionEntry: WorkflowExecutions = { val workflowExecution = new WorkflowExecutions - workflowExecution.setEid(UInteger.valueOf(1)) - workflowExecution.setVid(UInteger.valueOf(1)) - workflowExecution.setUid(UInteger.valueOf(1)) + workflowExecution.setEid(Integer.valueOf(1)) + workflowExecution.setVid(Integer.valueOf(1)) + workflowExecution.setUid(Integer.valueOf(1)) workflowExecution.setStatus(3.toByte) workflowExecution.setEnvironmentVersion("test engine") workflowExecution @@ -72,59 +71,59 @@ class DefaultCostEstimatorSpec private val headerlessCsvOperatorExecutionEntry: OperatorExecutions = { val operatorExecution = new OperatorExecutions - operatorExecution.setWorkflowExecutionId(UInteger.valueOf(1)) + operatorExecution.setWorkflowExecutionId(Integer.valueOf(1)) operatorExecution.setOperatorId(headerlessCsvOpDesc.operatorIdentifier.id) operatorExecution } private val keywordOperatorExecutionEntry: OperatorExecutions = { val operatorExecution = new OperatorExecutions - operatorExecution.setWorkflowExecutionId(UInteger.valueOf(1)) + operatorExecution.setWorkflowExecutionId(Integer.valueOf(1)) operatorExecution.setOperatorId(keywordOpDesc.operatorIdentifier.id) operatorExecution } private val groupByOperatorExecutionEntry: OperatorExecutions = { val operatorExecution = new OperatorExecutions - operatorExecution.setWorkflowExecutionId(UInteger.valueOf(1)) + operatorExecution.setWorkflowExecutionId(Integer.valueOf(1)) operatorExecution.setOperatorId(groupByOpDesc.operatorIdentifier.id) operatorExecution } private def headerlessCsvOpRuntimeStatisticsEntry( - operatorExecutionId: ULong + operatorExecutionId: Long ): OperatorRuntimeStatistics = { val operatorRuntimeStatistics = new OperatorRuntimeStatistics operatorRuntimeStatistics.setOperatorExecutionId(operatorExecutionId) - operatorRuntimeStatistics.setDataProcessingTime(ULong.valueOf(100)) - operatorRuntimeStatistics.setControlProcessingTime(ULong.valueOf(100)) + operatorRuntimeStatistics.setDataProcessingTime(100) + operatorRuntimeStatistics.setControlProcessingTime(100) operatorRuntimeStatistics } private def keywordOpDescRuntimeStatisticsEntry( - operatorExecutionId: ULong + operatorExecutionId: Long ): OperatorRuntimeStatistics = { val operatorRuntimeStatistics = new OperatorRuntimeStatistics operatorRuntimeStatistics.setOperatorExecutionId(operatorExecutionId) - operatorRuntimeStatistics.setDataProcessingTime(ULong.valueOf(300)) - operatorRuntimeStatistics.setControlProcessingTime(ULong.valueOf(300)) + operatorRuntimeStatistics.setDataProcessingTime(300) + operatorRuntimeStatistics.setControlProcessingTime(300) operatorRuntimeStatistics } private def groupByOpDescRuntimeStatisticsEntry( - operatorExecutionId: ULong + operatorExecutionId: Long ): OperatorRuntimeStatistics = { val operatorRuntimeStatistics = new OperatorRuntimeStatistics operatorRuntimeStatistics.setOperatorExecutionId(operatorExecutionId) - operatorRuntimeStatistics.setDataProcessingTime(ULong.valueOf(1000)) - operatorRuntimeStatistics.setControlProcessingTime(ULong.valueOf(1000)) + operatorRuntimeStatistics.setDataProcessingTime(1000) + operatorRuntimeStatistics.setControlProcessingTime(1000) operatorRuntimeStatistics } private def insertOperatorExecutionAndGetId( dslContext: DSLContext, operatorExecution: OperatorExecutions - ): ULong = { + ): Long = { val record = dslContext .insertInto(OPERATOR_EXECUTIONS) .set(OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID, operatorExecution.getWorkflowExecutionId) diff --git a/core/amber/src/test/scala/edu/uci/ics/texera/web/resource/dashboard/file/WorkflowResourceSpec.scala b/core/amber/src/test/scala/edu/uci/ics/texera/web/resource/dashboard/file/WorkflowResourceSpec.scala index b6de9bb8fed..a02f462211e 100644 --- a/core/amber/src/test/scala/edu/uci/ics/texera/web/resource/dashboard/file/WorkflowResourceSpec.scala +++ b/core/amber/src/test/scala/edu/uci/ics/texera/web/resource/dashboard/file/WorkflowResourceSpec.scala @@ -3,7 +3,7 @@ package edu.uci.ics.texera.web.resource.dashboard.file import edu.uci.ics.texera.dao.MockTexeraDB import edu.uci.ics.texera.web.auth.SessionUser import edu.uci.ics.texera.dao.jooq.generated.Tables.{USER, WORKFLOW, WORKFLOW_OF_PROJECT} -import edu.uci.ics.texera.dao.jooq.generated.enums.UserRole +import edu.uci.ics.texera.dao.jooq.generated.enums.UserRoleEnum import edu.uci.ics.texera.dao.jooq.generated.tables.daos.UserDao import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.{Project, User, Workflow} import edu.uci.ics.texera.web.resource.dashboard.DashboardResource.SearchQueryParams @@ -16,7 +16,7 @@ import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowResource. import edu.uci.ics.texera.web.resource.dashboard.{DashboardResource, FulltextSearchQueryUtils} import org.jooq.Condition import org.jooq.impl.DSL.noCondition -import org.jooq.types.UInteger + import org.scalatest.flatspec.AnyFlatSpec import org.scalatest.{BeforeAndAfterAll, BeforeAndAfterEach} @@ -34,18 +34,18 @@ class WorkflowResourceSpec private val testUser: User = { val user = new User - user.setUid(UInteger.valueOf(1)) + user.setUid(Integer.valueOf(1)) user.setName("test_user") - user.setRole(UserRole.ADMIN) + user.setRole(UserRoleEnum.ADMIN) user.setPassword("123") user } private val testUser2: User = { val user = new User - user.setUid(UInteger.valueOf(2)) + user.setUid(Integer.valueOf(2)) user.setName("test_user2") - user.setRole(UserRole.ADMIN) + user.setRole(UserRoleEnum.ADMIN) user.setPassword("123") user } @@ -364,43 +364,43 @@ class WorkflowResourceSpec } it should "return a proper condition for a single projectId" in { - val projectIdList = new java.util.ArrayList[UInteger](util.Arrays.asList(UInteger.valueOf(1))) + val projectIdList = new java.util.ArrayList[Integer](util.Arrays.asList(Integer.valueOf(1))) val projectFilter: Condition = FulltextSearchQueryUtils.getContainsFilter(projectIdList, WORKFLOW_OF_PROJECT.PID) - assert(projectFilter.toString == WORKFLOW_OF_PROJECT.PID.eq(UInteger.valueOf(1)).toString) + assert(projectFilter.toString == WORKFLOW_OF_PROJECT.PID.eq(Integer.valueOf(1)).toString) } it should "return a proper condition for multiple projectIds" in { - val projectIdList = new java.util.ArrayList[UInteger]( - util.Arrays.asList(UInteger.valueOf(1), UInteger.valueOf(2)) + val projectIdList = new java.util.ArrayList[Integer]( + util.Arrays.asList(Integer.valueOf(1), Integer.valueOf(2)) ) val projectFilter: Condition = FulltextSearchQueryUtils.getContainsFilter(projectIdList, WORKFLOW_OF_PROJECT.PID) assert( projectFilter.toString == WORKFLOW_OF_PROJECT.PID - .eq(UInteger.valueOf(1)) - .or(WORKFLOW_OF_PROJECT.PID.eq(UInteger.valueOf(2))) + .eq(Integer.valueOf(1)) + .or(WORKFLOW_OF_PROJECT.PID.eq(Integer.valueOf(2))) .toString ) } it should "return a proper condition for a single workflowID" in { - val workflowIdList = new java.util.ArrayList[UInteger](util.Arrays.asList(UInteger.valueOf(1))) + val workflowIdList = new java.util.ArrayList[Integer](util.Arrays.asList(Integer.valueOf(1))) val workflowIdFilter: Condition = FulltextSearchQueryUtils.getContainsFilter(workflowIdList, WORKFLOW.WID) - assert(workflowIdFilter.toString == WORKFLOW.WID.eq(UInteger.valueOf(1)).toString) + assert(workflowIdFilter.toString == WORKFLOW.WID.eq(Integer.valueOf(1)).toString) } it should "return a proper condition for multiple workflowIDs" in { - val workflowIdList = new java.util.ArrayList[UInteger]( - util.Arrays.asList(UInteger.valueOf(1), UInteger.valueOf(2)) + val workflowIdList = new java.util.ArrayList[Integer]( + util.Arrays.asList(Integer.valueOf(1), Integer.valueOf(2)) ) val workflowIdFilter: Condition = FulltextSearchQueryUtils.getContainsFilter(workflowIdList, WORKFLOW.WID) assert( workflowIdFilter.toString == WORKFLOW.WID - .eq(UInteger.valueOf(1)) - .or(WORKFLOW.WID.eq(UInteger.valueOf(2))) + .eq(Integer.valueOf(1)) + .or(WORKFLOW.WID.eq(Integer.valueOf(2))) .toString ) } diff --git a/core/dao/build.sbt b/core/dao/build.sbt index 526c37be92e..83d9243f463 100644 --- a/core/dao/build.sbt +++ b/core/dao/build.sbt @@ -88,5 +88,6 @@ libraryDependencies ++= Seq( libraryDependencies ++= Seq( "mysql" % "mysql-connector-java" % "8.0.33", // MySQL connector + "org.postgresql" % "postgresql" % "42.7.5", "org.yaml" % "snakeyaml" % "1.30", // for reading storage config yaml file ) \ No newline at end of file diff --git a/core/dao/src/main/resources/jooq-conf.xml b/core/dao/src/main/resources/jooq-conf.xml index 2935bce5073..a7113853a89 100644 --- a/core/dao/src/main/resources/jooq-conf.xml +++ b/core/dao/src/main/resources/jooq-conf.xml @@ -17,7 +17,7 @@ - org.jooq.meta.mysql.MySQLDatabase + org.jooq.meta.postgres.PostgresDatabase diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/JooqCodeGenerator.scala b/core/dao/src/main/scala/edu/uci/ics/texera/dao/JooqCodeGenerator.scala index f0297781434..541189b28db 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/JooqCodeGenerator.scala +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/JooqCodeGenerator.scala @@ -9,6 +9,7 @@ import java.nio.file.{Files, Path} import java.util.{Map => JMap} import scala.jdk.CollectionConverters._ + object JooqCodeGenerator { @throws[Exception] def main(args: Array[String]): Unit = { @@ -38,7 +39,7 @@ object JooqCodeGenerator { // Set JDBC configuration for jOOQ val jooqJdbcConfig = new Jdbc - jooqJdbcConfig.setDriver("com.mysql.cj.jdbc.Driver") + jooqJdbcConfig.setDriver("org.postgresql.Driver") jooqJdbcConfig.setUrl(jdbcConfig("url").toString) jooqJdbcConfig.setUsername(jdbcConfig("username").toString) jooqJdbcConfig.setPassword(jdbcConfig("password").toString) diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Indexes.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Indexes.java index 60f5acc26f2..dd618bad5eb 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Indexes.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Indexes.java @@ -8,7 +8,6 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetUserAccess; import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetVersion; import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorExecutions; -import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorRuntimeStatistics; import edu.uci.ics.texera.dao.jooq.generated.tables.Project; import edu.uci.ics.texera.dao.jooq.generated.tables.ProjectUserAccess; import edu.uci.ics.texera.dao.jooq.generated.tables.PublicProject; @@ -39,91 +38,55 @@ public class Indexes { // INDEX definitions // ------------------------------------------------------------------------- - public static final Index DATASET_IDX_DATASET_NAME_DESCRIPTION = Indexes0.DATASET_IDX_DATASET_NAME_DESCRIPTION; - public static final Index DATASET_OWNER_UID = Indexes0.DATASET_OWNER_UID; - public static final Index DATASET_PRIMARY = Indexes0.DATASET_PRIMARY; - public static final Index DATASET_USER_ACCESS_PRIMARY = Indexes0.DATASET_USER_ACCESS_PRIMARY; - public static final Index DATASET_USER_ACCESS_UID = Indexes0.DATASET_USER_ACCESS_UID; - public static final Index DATASET_VERSION_DID = Indexes0.DATASET_VERSION_DID; - public static final Index DATASET_VERSION_IDX_DATASET_VERSION_NAME = Indexes0.DATASET_VERSION_IDX_DATASET_VERSION_NAME; - public static final Index DATASET_VERSION_PRIMARY = Indexes0.DATASET_VERSION_PRIMARY; - public static final Index OPERATOR_EXECUTIONS_PRIMARY = Indexes0.OPERATOR_EXECUTIONS_PRIMARY; - public static final Index OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID = Indexes0.OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID; - public static final Index OPERATOR_RUNTIME_STATISTICS_PRIMARY = Indexes0.OPERATOR_RUNTIME_STATISTICS_PRIMARY; - public static final Index PROJECT_IDX_USER_PROJECT_NAME_DESCRIPTION = Indexes0.PROJECT_IDX_USER_PROJECT_NAME_DESCRIPTION; - public static final Index PROJECT_OWNER_ID = Indexes0.PROJECT_OWNER_ID; - public static final Index PROJECT_PRIMARY = Indexes0.PROJECT_PRIMARY; - public static final Index PROJECT_USER_ACCESS_PID = Indexes0.PROJECT_USER_ACCESS_PID; - public static final Index PROJECT_USER_ACCESS_PRIMARY = Indexes0.PROJECT_USER_ACCESS_PRIMARY; - public static final Index PUBLIC_PROJECT_PRIMARY = Indexes0.PUBLIC_PROJECT_PRIMARY; - public static final Index USER_EMAIL = Indexes0.USER_EMAIL; - public static final Index USER_GOOGLE_ID = Indexes0.USER_GOOGLE_ID; - public static final Index USER_IDX_USER_NAME = Indexes0.USER_IDX_USER_NAME; - public static final Index USER_PRIMARY = Indexes0.USER_PRIMARY; - public static final Index USER_CONFIG_PRIMARY = Indexes0.USER_CONFIG_PRIMARY; - public static final Index WORKFLOW_IDX_WORKFLOW_NAME_DESCRIPTION_CONTENT = Indexes0.WORKFLOW_IDX_WORKFLOW_NAME_DESCRIPTION_CONTENT; - public static final Index WORKFLOW_PRIMARY = Indexes0.WORKFLOW_PRIMARY; - public static final Index WORKFLOW_EXECUTIONS_PRIMARY = Indexes0.WORKFLOW_EXECUTIONS_PRIMARY; - public static final Index WORKFLOW_EXECUTIONS_UID = Indexes0.WORKFLOW_EXECUTIONS_UID; - public static final Index WORKFLOW_EXECUTIONS_VID = Indexes0.WORKFLOW_EXECUTIONS_VID; - public static final Index WORKFLOW_OF_PROJECT_PID = Indexes0.WORKFLOW_OF_PROJECT_PID; - public static final Index WORKFLOW_OF_PROJECT_PRIMARY = Indexes0.WORKFLOW_OF_PROJECT_PRIMARY; - public static final Index WORKFLOW_OF_USER_PRIMARY = Indexes0.WORKFLOW_OF_USER_PRIMARY; - public static final Index WORKFLOW_OF_USER_WID = Indexes0.WORKFLOW_OF_USER_WID; - public static final Index WORKFLOW_USER_ACCESS_PRIMARY = Indexes0.WORKFLOW_USER_ACCESS_PRIMARY; - public static final Index WORKFLOW_USER_ACCESS_WID = Indexes0.WORKFLOW_USER_ACCESS_WID; - public static final Index WORKFLOW_USER_CLONES_PRIMARY = Indexes0.WORKFLOW_USER_CLONES_PRIMARY; - public static final Index WORKFLOW_USER_CLONES_WID = Indexes0.WORKFLOW_USER_CLONES_WID; - public static final Index WORKFLOW_USER_LIKES_PRIMARY = Indexes0.WORKFLOW_USER_LIKES_PRIMARY; - public static final Index WORKFLOW_USER_LIKES_WID = Indexes0.WORKFLOW_USER_LIKES_WID; - public static final Index WORKFLOW_VERSION_PRIMARY = Indexes0.WORKFLOW_VERSION_PRIMARY; - public static final Index WORKFLOW_VERSION_WID = Indexes0.WORKFLOW_VERSION_WID; - public static final Index WORKFLOW_VIEW_COUNT_PRIMARY = Indexes0.WORKFLOW_VIEW_COUNT_PRIMARY; + public static final Index DATASET_PKEY = Indexes0.DATASET_PKEY; + public static final Index DATASET_USER_ACCESS_PKEY = Indexes0.DATASET_USER_ACCESS_PKEY; + public static final Index DATASET_VERSION_PKEY = Indexes0.DATASET_VERSION_PKEY; + public static final Index OPERATOR_EXECUTIONS_PKEY = Indexes0.OPERATOR_EXECUTIONS_PKEY; + public static final Index OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID_KEY = Indexes0.OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID_KEY; + public static final Index PROJECT_OWNER_ID_NAME_KEY = Indexes0.PROJECT_OWNER_ID_NAME_KEY; + public static final Index PROJECT_PKEY = Indexes0.PROJECT_PKEY; + public static final Index PROJECT_USER_ACCESS_PKEY = Indexes0.PROJECT_USER_ACCESS_PKEY; + public static final Index PUBLIC_PROJECT_PKEY = Indexes0.PUBLIC_PROJECT_PKEY; + public static final Index USER_EMAIL_KEY = Indexes0.USER_EMAIL_KEY; + public static final Index USER_GOOGLE_ID_KEY = Indexes0.USER_GOOGLE_ID_KEY; + public static final Index USER_PKEY = Indexes0.USER_PKEY; + public static final Index USER_CONFIG_PKEY = Indexes0.USER_CONFIG_PKEY; + public static final Index WORKFLOW_PKEY = Indexes0.WORKFLOW_PKEY; + public static final Index WORKFLOW_EXECUTIONS_PKEY = Indexes0.WORKFLOW_EXECUTIONS_PKEY; + public static final Index WORKFLOW_OF_PROJECT_PKEY = Indexes0.WORKFLOW_OF_PROJECT_PKEY; + public static final Index WORKFLOW_OF_USER_PKEY = Indexes0.WORKFLOW_OF_USER_PKEY; + public static final Index WORKFLOW_USER_ACCESS_PKEY = Indexes0.WORKFLOW_USER_ACCESS_PKEY; + public static final Index WORKFLOW_USER_CLONES_PKEY = Indexes0.WORKFLOW_USER_CLONES_PKEY; + public static final Index WORKFLOW_USER_LIKES_PKEY = Indexes0.WORKFLOW_USER_LIKES_PKEY; + public static final Index WORKFLOW_VERSION_PKEY = Indexes0.WORKFLOW_VERSION_PKEY; + public static final Index WORKFLOW_VIEW_COUNT_PKEY = Indexes0.WORKFLOW_VIEW_COUNT_PKEY; // ------------------------------------------------------------------------- // [#1459] distribute members to avoid static initialisers > 64kb // ------------------------------------------------------------------------- private static class Indexes0 { - public static Index DATASET_IDX_DATASET_NAME_DESCRIPTION = Internal.createIndex("idx_dataset_name_description", Dataset.DATASET, new OrderField[] { Dataset.DATASET.NAME, Dataset.DATASET.DESCRIPTION }, false); - public static Index DATASET_OWNER_UID = Internal.createIndex("owner_uid", Dataset.DATASET, new OrderField[] { Dataset.DATASET.OWNER_UID }, false); - public static Index DATASET_PRIMARY = Internal.createIndex("PRIMARY", Dataset.DATASET, new OrderField[] { Dataset.DATASET.DID }, true); - public static Index DATASET_USER_ACCESS_PRIMARY = Internal.createIndex("PRIMARY", DatasetUserAccess.DATASET_USER_ACCESS, new OrderField[] { DatasetUserAccess.DATASET_USER_ACCESS.DID, DatasetUserAccess.DATASET_USER_ACCESS.UID }, true); - public static Index DATASET_USER_ACCESS_UID = Internal.createIndex("uid", DatasetUserAccess.DATASET_USER_ACCESS, new OrderField[] { DatasetUserAccess.DATASET_USER_ACCESS.UID }, false); - public static Index DATASET_VERSION_DID = Internal.createIndex("did", DatasetVersion.DATASET_VERSION, new OrderField[] { DatasetVersion.DATASET_VERSION.DID }, false); - public static Index DATASET_VERSION_IDX_DATASET_VERSION_NAME = Internal.createIndex("idx_dataset_version_name", DatasetVersion.DATASET_VERSION, new OrderField[] { DatasetVersion.DATASET_VERSION.NAME }, false); - public static Index DATASET_VERSION_PRIMARY = Internal.createIndex("PRIMARY", DatasetVersion.DATASET_VERSION, new OrderField[] { DatasetVersion.DATASET_VERSION.DVID }, true); - public static Index OPERATOR_EXECUTIONS_PRIMARY = Internal.createIndex("PRIMARY", OperatorExecutions.OPERATOR_EXECUTIONS, new OrderField[] { OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID }, true); - public static Index OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID = Internal.createIndex("workflow_execution_id", OperatorExecutions.OPERATOR_EXECUTIONS, new OrderField[] { OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID, OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_ID }, true); - public static Index OPERATOR_RUNTIME_STATISTICS_PRIMARY = Internal.createIndex("PRIMARY", OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS, new OrderField[] { OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OPERATOR_EXECUTION_ID, OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.TIME }, true); - public static Index PROJECT_IDX_USER_PROJECT_NAME_DESCRIPTION = Internal.createIndex("idx_user_project_name_description", Project.PROJECT, new OrderField[] { Project.PROJECT.NAME, Project.PROJECT.DESCRIPTION }, false); - public static Index PROJECT_OWNER_ID = Internal.createIndex("owner_id", Project.PROJECT, new OrderField[] { Project.PROJECT.OWNER_ID, Project.PROJECT.NAME }, true); - public static Index PROJECT_PRIMARY = Internal.createIndex("PRIMARY", Project.PROJECT, new OrderField[] { Project.PROJECT.PID }, true); - public static Index PROJECT_USER_ACCESS_PID = Internal.createIndex("pid", ProjectUserAccess.PROJECT_USER_ACCESS, new OrderField[] { ProjectUserAccess.PROJECT_USER_ACCESS.PID }, false); - public static Index PROJECT_USER_ACCESS_PRIMARY = Internal.createIndex("PRIMARY", ProjectUserAccess.PROJECT_USER_ACCESS, new OrderField[] { ProjectUserAccess.PROJECT_USER_ACCESS.UID, ProjectUserAccess.PROJECT_USER_ACCESS.PID }, true); - public static Index PUBLIC_PROJECT_PRIMARY = Internal.createIndex("PRIMARY", PublicProject.PUBLIC_PROJECT, new OrderField[] { PublicProject.PUBLIC_PROJECT.PID }, true); - public static Index USER_EMAIL = Internal.createIndex("email", User.USER, new OrderField[] { User.USER.EMAIL }, true); - public static Index USER_GOOGLE_ID = Internal.createIndex("google_id", User.USER, new OrderField[] { User.USER.GOOGLE_ID }, true); - public static Index USER_IDX_USER_NAME = Internal.createIndex("idx_user_name", User.USER, new OrderField[] { User.USER.NAME }, false); - public static Index USER_PRIMARY = Internal.createIndex("PRIMARY", User.USER, new OrderField[] { User.USER.UID }, true); - public static Index USER_CONFIG_PRIMARY = Internal.createIndex("PRIMARY", UserConfig.USER_CONFIG, new OrderField[] { UserConfig.USER_CONFIG.UID, UserConfig.USER_CONFIG.KEY }, true); - public static Index WORKFLOW_IDX_WORKFLOW_NAME_DESCRIPTION_CONTENT = Internal.createIndex("idx_workflow_name_description_content", Workflow.WORKFLOW, new OrderField[] { Workflow.WORKFLOW.NAME, Workflow.WORKFLOW.DESCRIPTION, Workflow.WORKFLOW.CONTENT }, false); - public static Index WORKFLOW_PRIMARY = Internal.createIndex("PRIMARY", Workflow.WORKFLOW, new OrderField[] { Workflow.WORKFLOW.WID }, true); - public static Index WORKFLOW_EXECUTIONS_PRIMARY = Internal.createIndex("PRIMARY", WorkflowExecutions.WORKFLOW_EXECUTIONS, new OrderField[] { WorkflowExecutions.WORKFLOW_EXECUTIONS.EID }, true); - public static Index WORKFLOW_EXECUTIONS_UID = Internal.createIndex("uid", WorkflowExecutions.WORKFLOW_EXECUTIONS, new OrderField[] { WorkflowExecutions.WORKFLOW_EXECUTIONS.UID }, false); - public static Index WORKFLOW_EXECUTIONS_VID = Internal.createIndex("vid", WorkflowExecutions.WORKFLOW_EXECUTIONS, new OrderField[] { WorkflowExecutions.WORKFLOW_EXECUTIONS.VID }, false); - public static Index WORKFLOW_OF_PROJECT_PID = Internal.createIndex("pid", WorkflowOfProject.WORKFLOW_OF_PROJECT, new OrderField[] { WorkflowOfProject.WORKFLOW_OF_PROJECT.PID }, false); - public static Index WORKFLOW_OF_PROJECT_PRIMARY = Internal.createIndex("PRIMARY", WorkflowOfProject.WORKFLOW_OF_PROJECT, new OrderField[] { WorkflowOfProject.WORKFLOW_OF_PROJECT.WID, WorkflowOfProject.WORKFLOW_OF_PROJECT.PID }, true); - public static Index WORKFLOW_OF_USER_PRIMARY = Internal.createIndex("PRIMARY", WorkflowOfUser.WORKFLOW_OF_USER, new OrderField[] { WorkflowOfUser.WORKFLOW_OF_USER.UID, WorkflowOfUser.WORKFLOW_OF_USER.WID }, true); - public static Index WORKFLOW_OF_USER_WID = Internal.createIndex("wid", WorkflowOfUser.WORKFLOW_OF_USER, new OrderField[] { WorkflowOfUser.WORKFLOW_OF_USER.WID }, false); - public static Index WORKFLOW_USER_ACCESS_PRIMARY = Internal.createIndex("PRIMARY", WorkflowUserAccess.WORKFLOW_USER_ACCESS, new OrderField[] { WorkflowUserAccess.WORKFLOW_USER_ACCESS.UID, WorkflowUserAccess.WORKFLOW_USER_ACCESS.WID }, true); - public static Index WORKFLOW_USER_ACCESS_WID = Internal.createIndex("wid", WorkflowUserAccess.WORKFLOW_USER_ACCESS, new OrderField[] { WorkflowUserAccess.WORKFLOW_USER_ACCESS.WID }, false); - public static Index WORKFLOW_USER_CLONES_PRIMARY = Internal.createIndex("PRIMARY", WorkflowUserClones.WORKFLOW_USER_CLONES, new OrderField[] { WorkflowUserClones.WORKFLOW_USER_CLONES.UID, WorkflowUserClones.WORKFLOW_USER_CLONES.WID }, true); - public static Index WORKFLOW_USER_CLONES_WID = Internal.createIndex("wid", WorkflowUserClones.WORKFLOW_USER_CLONES, new OrderField[] { WorkflowUserClones.WORKFLOW_USER_CLONES.WID }, false); - public static Index WORKFLOW_USER_LIKES_PRIMARY = Internal.createIndex("PRIMARY", WorkflowUserLikes.WORKFLOW_USER_LIKES, new OrderField[] { WorkflowUserLikes.WORKFLOW_USER_LIKES.UID, WorkflowUserLikes.WORKFLOW_USER_LIKES.WID }, true); - public static Index WORKFLOW_USER_LIKES_WID = Internal.createIndex("wid", WorkflowUserLikes.WORKFLOW_USER_LIKES, new OrderField[] { WorkflowUserLikes.WORKFLOW_USER_LIKES.WID }, false); - public static Index WORKFLOW_VERSION_PRIMARY = Internal.createIndex("PRIMARY", WorkflowVersion.WORKFLOW_VERSION, new OrderField[] { WorkflowVersion.WORKFLOW_VERSION.VID }, true); - public static Index WORKFLOW_VERSION_WID = Internal.createIndex("wid", WorkflowVersion.WORKFLOW_VERSION, new OrderField[] { WorkflowVersion.WORKFLOW_VERSION.WID }, false); - public static Index WORKFLOW_VIEW_COUNT_PRIMARY = Internal.createIndex("PRIMARY", WorkflowViewCount.WORKFLOW_VIEW_COUNT, new OrderField[] { WorkflowViewCount.WORKFLOW_VIEW_COUNT.WID }, true); + public static Index DATASET_PKEY = Internal.createIndex("dataset_pkey", Dataset.DATASET, new OrderField[] { Dataset.DATASET.DID }, true); + public static Index DATASET_USER_ACCESS_PKEY = Internal.createIndex("dataset_user_access_pkey", DatasetUserAccess.DATASET_USER_ACCESS, new OrderField[] { DatasetUserAccess.DATASET_USER_ACCESS.DID, DatasetUserAccess.DATASET_USER_ACCESS.UID }, true); + public static Index DATASET_VERSION_PKEY = Internal.createIndex("dataset_version_pkey", DatasetVersion.DATASET_VERSION, new OrderField[] { DatasetVersion.DATASET_VERSION.DVID }, true); + public static Index OPERATOR_EXECUTIONS_PKEY = Internal.createIndex("operator_executions_pkey", OperatorExecutions.OPERATOR_EXECUTIONS, new OrderField[] { OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID }, true); + public static Index OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID_KEY = Internal.createIndex("operator_executions_workflow_execution_id_operator_id_key", OperatorExecutions.OPERATOR_EXECUTIONS, new OrderField[] { OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID, OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_ID }, true); + public static Index PROJECT_OWNER_ID_NAME_KEY = Internal.createIndex("project_owner_id_name_key", Project.PROJECT, new OrderField[] { Project.PROJECT.OWNER_ID, Project.PROJECT.NAME }, true); + public static Index PROJECT_PKEY = Internal.createIndex("project_pkey", Project.PROJECT, new OrderField[] { Project.PROJECT.PID }, true); + public static Index PROJECT_USER_ACCESS_PKEY = Internal.createIndex("project_user_access_pkey", ProjectUserAccess.PROJECT_USER_ACCESS, new OrderField[] { ProjectUserAccess.PROJECT_USER_ACCESS.UID, ProjectUserAccess.PROJECT_USER_ACCESS.PID }, true); + public static Index PUBLIC_PROJECT_PKEY = Internal.createIndex("public_project_pkey", PublicProject.PUBLIC_PROJECT, new OrderField[] { PublicProject.PUBLIC_PROJECT.PID }, true); + public static Index USER_EMAIL_KEY = Internal.createIndex("user_email_key", User.USER, new OrderField[] { User.USER.EMAIL }, true); + public static Index USER_GOOGLE_ID_KEY = Internal.createIndex("user_google_id_key", User.USER, new OrderField[] { User.USER.GOOGLE_ID }, true); + public static Index USER_PKEY = Internal.createIndex("user_pkey", User.USER, new OrderField[] { User.USER.UID }, true); + public static Index USER_CONFIG_PKEY = Internal.createIndex("user_config_pkey", UserConfig.USER_CONFIG, new OrderField[] { UserConfig.USER_CONFIG.UID, UserConfig.USER_CONFIG.KEY }, true); + public static Index WORKFLOW_PKEY = Internal.createIndex("workflow_pkey", Workflow.WORKFLOW, new OrderField[] { Workflow.WORKFLOW.WID }, true); + public static Index WORKFLOW_EXECUTIONS_PKEY = Internal.createIndex("workflow_executions_pkey", WorkflowExecutions.WORKFLOW_EXECUTIONS, new OrderField[] { WorkflowExecutions.WORKFLOW_EXECUTIONS.EID }, true); + public static Index WORKFLOW_OF_PROJECT_PKEY = Internal.createIndex("workflow_of_project_pkey", WorkflowOfProject.WORKFLOW_OF_PROJECT, new OrderField[] { WorkflowOfProject.WORKFLOW_OF_PROJECT.WID, WorkflowOfProject.WORKFLOW_OF_PROJECT.PID }, true); + public static Index WORKFLOW_OF_USER_PKEY = Internal.createIndex("workflow_of_user_pkey", WorkflowOfUser.WORKFLOW_OF_USER, new OrderField[] { WorkflowOfUser.WORKFLOW_OF_USER.UID, WorkflowOfUser.WORKFLOW_OF_USER.WID }, true); + public static Index WORKFLOW_USER_ACCESS_PKEY = Internal.createIndex("workflow_user_access_pkey", WorkflowUserAccess.WORKFLOW_USER_ACCESS, new OrderField[] { WorkflowUserAccess.WORKFLOW_USER_ACCESS.UID, WorkflowUserAccess.WORKFLOW_USER_ACCESS.WID }, true); + public static Index WORKFLOW_USER_CLONES_PKEY = Internal.createIndex("workflow_user_clones_pkey", WorkflowUserClones.WORKFLOW_USER_CLONES, new OrderField[] { WorkflowUserClones.WORKFLOW_USER_CLONES.UID, WorkflowUserClones.WORKFLOW_USER_CLONES.WID }, true); + public static Index WORKFLOW_USER_LIKES_PKEY = Internal.createIndex("workflow_user_likes_pkey", WorkflowUserLikes.WORKFLOW_USER_LIKES, new OrderField[] { WorkflowUserLikes.WORKFLOW_USER_LIKES.UID, WorkflowUserLikes.WORKFLOW_USER_LIKES.WID }, true); + public static Index WORKFLOW_VERSION_PKEY = Internal.createIndex("workflow_version_pkey", WorkflowVersion.WORKFLOW_VERSION, new OrderField[] { WorkflowVersion.WORKFLOW_VERSION.VID }, true); + public static Index WORKFLOW_VIEW_COUNT_PKEY = Internal.createIndex("workflow_view_count_pkey", WorkflowViewCount.WORKFLOW_VIEW_COUNT, new OrderField[] { WorkflowViewCount.WORKFLOW_VIEW_COUNT.WID }, true); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java index 3064b7f28b8..9a5128800fe 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java @@ -47,8 +47,6 @@ import org.jooq.Identity; import org.jooq.UniqueKey; import org.jooq.impl.Internal; -import org.jooq.types.UInteger; -import org.jooq.types.ULong; /** @@ -62,139 +60,139 @@ public class Keys { // IDENTITY definitions // ------------------------------------------------------------------------- - public static final Identity IDENTITY_DATASET = Identities0.IDENTITY_DATASET; - public static final Identity IDENTITY_DATASET_VERSION = Identities0.IDENTITY_DATASET_VERSION; - public static final Identity IDENTITY_OPERATOR_EXECUTIONS = Identities0.IDENTITY_OPERATOR_EXECUTIONS; - public static final Identity IDENTITY_PROJECT = Identities0.IDENTITY_PROJECT; - public static final Identity IDENTITY_USER = Identities0.IDENTITY_USER; - public static final Identity IDENTITY_WORKFLOW = Identities0.IDENTITY_WORKFLOW; - public static final Identity IDENTITY_WORKFLOW_EXECUTIONS = Identities0.IDENTITY_WORKFLOW_EXECUTIONS; - public static final Identity IDENTITY_WORKFLOW_VERSION = Identities0.IDENTITY_WORKFLOW_VERSION; + public static final Identity IDENTITY_DATASET = Identities0.IDENTITY_DATASET; + public static final Identity IDENTITY_DATASET_VERSION = Identities0.IDENTITY_DATASET_VERSION; + public static final Identity IDENTITY_OPERATOR_EXECUTIONS = Identities0.IDENTITY_OPERATOR_EXECUTIONS; + public static final Identity IDENTITY_PROJECT = Identities0.IDENTITY_PROJECT; + public static final Identity IDENTITY_USER = Identities0.IDENTITY_USER; + public static final Identity IDENTITY_WORKFLOW = Identities0.IDENTITY_WORKFLOW; + public static final Identity IDENTITY_WORKFLOW_EXECUTIONS = Identities0.IDENTITY_WORKFLOW_EXECUTIONS; + public static final Identity IDENTITY_WORKFLOW_VERSION = Identities0.IDENTITY_WORKFLOW_VERSION; // ------------------------------------------------------------------------- // UNIQUE and PRIMARY KEY definitions // ------------------------------------------------------------------------- - public static final UniqueKey KEY_DATASET_PRIMARY = UniqueKeys0.KEY_DATASET_PRIMARY; - public static final UniqueKey KEY_DATASET_USER_ACCESS_PRIMARY = UniqueKeys0.KEY_DATASET_USER_ACCESS_PRIMARY; - public static final UniqueKey KEY_DATASET_VERSION_PRIMARY = UniqueKeys0.KEY_DATASET_VERSION_PRIMARY; - public static final UniqueKey KEY_OPERATOR_EXECUTIONS_PRIMARY = UniqueKeys0.KEY_OPERATOR_EXECUTIONS_PRIMARY; - public static final UniqueKey KEY_OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID = UniqueKeys0.KEY_OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID; - public static final UniqueKey KEY_OPERATOR_RUNTIME_STATISTICS_PRIMARY = UniqueKeys0.KEY_OPERATOR_RUNTIME_STATISTICS_PRIMARY; - public static final UniqueKey KEY_PROJECT_PRIMARY = UniqueKeys0.KEY_PROJECT_PRIMARY; - public static final UniqueKey KEY_PROJECT_OWNER_ID = UniqueKeys0.KEY_PROJECT_OWNER_ID; - public static final UniqueKey KEY_PROJECT_USER_ACCESS_PRIMARY = UniqueKeys0.KEY_PROJECT_USER_ACCESS_PRIMARY; - public static final UniqueKey KEY_PUBLIC_PROJECT_PRIMARY = UniqueKeys0.KEY_PUBLIC_PROJECT_PRIMARY; - public static final UniqueKey KEY_USER_PRIMARY = UniqueKeys0.KEY_USER_PRIMARY; - public static final UniqueKey KEY_USER_EMAIL = UniqueKeys0.KEY_USER_EMAIL; - public static final UniqueKey KEY_USER_GOOGLE_ID = UniqueKeys0.KEY_USER_GOOGLE_ID; - public static final UniqueKey KEY_USER_CONFIG_PRIMARY = UniqueKeys0.KEY_USER_CONFIG_PRIMARY; - public static final UniqueKey KEY_WORKFLOW_PRIMARY = UniqueKeys0.KEY_WORKFLOW_PRIMARY; - public static final UniqueKey KEY_WORKFLOW_EXECUTIONS_PRIMARY = UniqueKeys0.KEY_WORKFLOW_EXECUTIONS_PRIMARY; - public static final UniqueKey KEY_WORKFLOW_OF_PROJECT_PRIMARY = UniqueKeys0.KEY_WORKFLOW_OF_PROJECT_PRIMARY; - public static final UniqueKey KEY_WORKFLOW_OF_USER_PRIMARY = UniqueKeys0.KEY_WORKFLOW_OF_USER_PRIMARY; - public static final UniqueKey KEY_WORKFLOW_USER_ACCESS_PRIMARY = UniqueKeys0.KEY_WORKFLOW_USER_ACCESS_PRIMARY; - public static final UniqueKey KEY_WORKFLOW_USER_CLONES_PRIMARY = UniqueKeys0.KEY_WORKFLOW_USER_CLONES_PRIMARY; - public static final UniqueKey KEY_WORKFLOW_USER_LIKES_PRIMARY = UniqueKeys0.KEY_WORKFLOW_USER_LIKES_PRIMARY; - public static final UniqueKey KEY_WORKFLOW_VERSION_PRIMARY = UniqueKeys0.KEY_WORKFLOW_VERSION_PRIMARY; - public static final UniqueKey KEY_WORKFLOW_VIEW_COUNT_PRIMARY = UniqueKeys0.KEY_WORKFLOW_VIEW_COUNT_PRIMARY; + public static final UniqueKey DATASET_PKEY = UniqueKeys0.DATASET_PKEY; + public static final UniqueKey DATASET_USER_ACCESS_PKEY = UniqueKeys0.DATASET_USER_ACCESS_PKEY; + public static final UniqueKey DATASET_VERSION_PKEY = UniqueKeys0.DATASET_VERSION_PKEY; + public static final UniqueKey OPERATOR_EXECUTIONS_PKEY = UniqueKeys0.OPERATOR_EXECUTIONS_PKEY; + public static final UniqueKey OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID_KEY = UniqueKeys0.OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID_KEY; + public static final UniqueKey OPERATOR_RUNTIME_STATISTICS_PKEY = UniqueKeys0.OPERATOR_RUNTIME_STATISTICS_PKEY; + public static final UniqueKey PROJECT_PKEY = UniqueKeys0.PROJECT_PKEY; + public static final UniqueKey PROJECT_OWNER_ID_NAME_KEY = UniqueKeys0.PROJECT_OWNER_ID_NAME_KEY; + public static final UniqueKey PROJECT_USER_ACCESS_PKEY = UniqueKeys0.PROJECT_USER_ACCESS_PKEY; + public static final UniqueKey PUBLIC_PROJECT_PKEY = UniqueKeys0.PUBLIC_PROJECT_PKEY; + public static final UniqueKey USER_PKEY = UniqueKeys0.USER_PKEY; + public static final UniqueKey USER_EMAIL_KEY = UniqueKeys0.USER_EMAIL_KEY; + public static final UniqueKey USER_GOOGLE_ID_KEY = UniqueKeys0.USER_GOOGLE_ID_KEY; + public static final UniqueKey USER_CONFIG_PKEY = UniqueKeys0.USER_CONFIG_PKEY; + public static final UniqueKey WORKFLOW_PKEY = UniqueKeys0.WORKFLOW_PKEY; + public static final UniqueKey WORKFLOW_EXECUTIONS_PKEY = UniqueKeys0.WORKFLOW_EXECUTIONS_PKEY; + public static final UniqueKey WORKFLOW_OF_PROJECT_PKEY = UniqueKeys0.WORKFLOW_OF_PROJECT_PKEY; + public static final UniqueKey WORKFLOW_OF_USER_PKEY = UniqueKeys0.WORKFLOW_OF_USER_PKEY; + public static final UniqueKey WORKFLOW_USER_ACCESS_PKEY = UniqueKeys0.WORKFLOW_USER_ACCESS_PKEY; + public static final UniqueKey WORKFLOW_USER_CLONES_PKEY = UniqueKeys0.WORKFLOW_USER_CLONES_PKEY; + public static final UniqueKey WORKFLOW_USER_LIKES_PKEY = UniqueKeys0.WORKFLOW_USER_LIKES_PKEY; + public static final UniqueKey WORKFLOW_VERSION_PKEY = UniqueKeys0.WORKFLOW_VERSION_PKEY; + public static final UniqueKey WORKFLOW_VIEW_COUNT_PKEY = UniqueKeys0.WORKFLOW_VIEW_COUNT_PKEY; // ------------------------------------------------------------------------- // FOREIGN KEY definitions // ------------------------------------------------------------------------- - public static final ForeignKey DATASET_IBFK_1 = ForeignKeys0.DATASET_IBFK_1; - public static final ForeignKey DATASET_USER_ACCESS_IBFK_1 = ForeignKeys0.DATASET_USER_ACCESS_IBFK_1; - public static final ForeignKey DATASET_USER_ACCESS_IBFK_2 = ForeignKeys0.DATASET_USER_ACCESS_IBFK_2; - public static final ForeignKey DATASET_VERSION_IBFK_1 = ForeignKeys0.DATASET_VERSION_IBFK_1; - public static final ForeignKey OPERATOR_EXECUTIONS_IBFK_1 = ForeignKeys0.OPERATOR_EXECUTIONS_IBFK_1; - public static final ForeignKey OPERATOR_RUNTIME_STATISTICS_IBFK_1 = ForeignKeys0.OPERATOR_RUNTIME_STATISTICS_IBFK_1; - public static final ForeignKey PROJECT_IBFK_1 = ForeignKeys0.PROJECT_IBFK_1; - public static final ForeignKey PROJECT_USER_ACCESS_IBFK_1 = ForeignKeys0.PROJECT_USER_ACCESS_IBFK_1; - public static final ForeignKey PROJECT_USER_ACCESS_IBFK_2 = ForeignKeys0.PROJECT_USER_ACCESS_IBFK_2; - public static final ForeignKey PUBLIC_PROJECT_IBFK_1 = ForeignKeys0.PUBLIC_PROJECT_IBFK_1; - public static final ForeignKey USER_CONFIG_IBFK_1 = ForeignKeys0.USER_CONFIG_IBFK_1; - public static final ForeignKey WORKFLOW_EXECUTIONS_IBFK_1 = ForeignKeys0.WORKFLOW_EXECUTIONS_IBFK_1; - public static final ForeignKey WORKFLOW_EXECUTIONS_IBFK_2 = ForeignKeys0.WORKFLOW_EXECUTIONS_IBFK_2; - public static final ForeignKey WORKFLOW_OF_PROJECT_IBFK_1 = ForeignKeys0.WORKFLOW_OF_PROJECT_IBFK_1; - public static final ForeignKey WORKFLOW_OF_PROJECT_IBFK_2 = ForeignKeys0.WORKFLOW_OF_PROJECT_IBFK_2; - public static final ForeignKey WORKFLOW_OF_USER_IBFK_1 = ForeignKeys0.WORKFLOW_OF_USER_IBFK_1; - public static final ForeignKey WORKFLOW_OF_USER_IBFK_2 = ForeignKeys0.WORKFLOW_OF_USER_IBFK_2; - public static final ForeignKey WORKFLOW_USER_ACCESS_IBFK_1 = ForeignKeys0.WORKFLOW_USER_ACCESS_IBFK_1; - public static final ForeignKey WORKFLOW_USER_ACCESS_IBFK_2 = ForeignKeys0.WORKFLOW_USER_ACCESS_IBFK_2; - public static final ForeignKey WORKFLOW_USER_CLONES_IBFK_1 = ForeignKeys0.WORKFLOW_USER_CLONES_IBFK_1; - public static final ForeignKey WORKFLOW_USER_CLONES_IBFK_2 = ForeignKeys0.WORKFLOW_USER_CLONES_IBFK_2; - public static final ForeignKey WORKFLOW_USER_LIKES_IBFK_1 = ForeignKeys0.WORKFLOW_USER_LIKES_IBFK_1; - public static final ForeignKey WORKFLOW_USER_LIKES_IBFK_2 = ForeignKeys0.WORKFLOW_USER_LIKES_IBFK_2; - public static final ForeignKey WORKFLOW_VERSION_IBFK_1 = ForeignKeys0.WORKFLOW_VERSION_IBFK_1; - public static final ForeignKey WORKFLOW_VIEW_COUNT_IBFK_1 = ForeignKeys0.WORKFLOW_VIEW_COUNT_IBFK_1; + public static final ForeignKey DATASET__DATASET_OWNER_UID_FKEY = ForeignKeys0.DATASET__DATASET_OWNER_UID_FKEY; + public static final ForeignKey DATASET_USER_ACCESS__DATASET_USER_ACCESS_DID_FKEY = ForeignKeys0.DATASET_USER_ACCESS__DATASET_USER_ACCESS_DID_FKEY; + public static final ForeignKey DATASET_USER_ACCESS__DATASET_USER_ACCESS_UID_FKEY = ForeignKeys0.DATASET_USER_ACCESS__DATASET_USER_ACCESS_UID_FKEY; + public static final ForeignKey DATASET_VERSION__DATASET_VERSION_DID_FKEY = ForeignKeys0.DATASET_VERSION__DATASET_VERSION_DID_FKEY; + public static final ForeignKey OPERATOR_EXECUTIONS__OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_FKEY = ForeignKeys0.OPERATOR_EXECUTIONS__OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_FKEY; + public static final ForeignKey OPERATOR_RUNTIME_STATISTICS__OPERATOR_RUNTIME_STATISTICS_OPERATOR_EXECUTION_ID_FKEY = ForeignKeys0.OPERATOR_RUNTIME_STATISTICS__OPERATOR_RUNTIME_STATISTICS_OPERATOR_EXECUTION_ID_FKEY; + public static final ForeignKey PROJECT__PROJECT_OWNER_ID_FKEY = ForeignKeys0.PROJECT__PROJECT_OWNER_ID_FKEY; + public static final ForeignKey PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_UID_FKEY = ForeignKeys0.PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_UID_FKEY; + public static final ForeignKey PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_PID_FKEY = ForeignKeys0.PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_PID_FKEY; + public static final ForeignKey PUBLIC_PROJECT__PUBLIC_PROJECT_PID_FKEY = ForeignKeys0.PUBLIC_PROJECT__PUBLIC_PROJECT_PID_FKEY; + public static final ForeignKey USER_CONFIG__USER_CONFIG_UID_FKEY = ForeignKeys0.USER_CONFIG__USER_CONFIG_UID_FKEY; + public static final ForeignKey WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_VID_FKEY = ForeignKeys0.WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_VID_FKEY; + public static final ForeignKey WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_UID_FKEY = ForeignKeys0.WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_UID_FKEY; + public static final ForeignKey WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_WID_FKEY = ForeignKeys0.WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_WID_FKEY; + public static final ForeignKey WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_PID_FKEY = ForeignKeys0.WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_PID_FKEY; + public static final ForeignKey WORKFLOW_OF_USER__WORKFLOW_OF_USER_UID_FKEY = ForeignKeys0.WORKFLOW_OF_USER__WORKFLOW_OF_USER_UID_FKEY; + public static final ForeignKey WORKFLOW_OF_USER__WORKFLOW_OF_USER_WID_FKEY = ForeignKeys0.WORKFLOW_OF_USER__WORKFLOW_OF_USER_WID_FKEY; + public static final ForeignKey WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_UID_FKEY = ForeignKeys0.WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_UID_FKEY; + public static final ForeignKey WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_WID_FKEY = ForeignKeys0.WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_WID_FKEY; + public static final ForeignKey WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_UID_FKEY = ForeignKeys0.WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_UID_FKEY; + public static final ForeignKey WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_WID_FKEY = ForeignKeys0.WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_WID_FKEY; + public static final ForeignKey WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_UID_FKEY = ForeignKeys0.WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_UID_FKEY; + public static final ForeignKey WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_WID_FKEY = ForeignKeys0.WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_WID_FKEY; + public static final ForeignKey WORKFLOW_VERSION__WORKFLOW_VERSION_WID_FKEY = ForeignKeys0.WORKFLOW_VERSION__WORKFLOW_VERSION_WID_FKEY; + public static final ForeignKey WORKFLOW_VIEW_COUNT__WORKFLOW_VIEW_COUNT_WID_FKEY = ForeignKeys0.WORKFLOW_VIEW_COUNT__WORKFLOW_VIEW_COUNT_WID_FKEY; // ------------------------------------------------------------------------- // [#1459] distribute members to avoid static initialisers > 64kb // ------------------------------------------------------------------------- private static class Identities0 { - public static Identity IDENTITY_DATASET = Internal.createIdentity(Dataset.DATASET, Dataset.DATASET.DID); - public static Identity IDENTITY_DATASET_VERSION = Internal.createIdentity(DatasetVersion.DATASET_VERSION, DatasetVersion.DATASET_VERSION.DVID); - public static Identity IDENTITY_OPERATOR_EXECUTIONS = Internal.createIdentity(OperatorExecutions.OPERATOR_EXECUTIONS, OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID); - public static Identity IDENTITY_PROJECT = Internal.createIdentity(Project.PROJECT, Project.PROJECT.PID); - public static Identity IDENTITY_USER = Internal.createIdentity(User.USER, User.USER.UID); - public static Identity IDENTITY_WORKFLOW = Internal.createIdentity(Workflow.WORKFLOW, Workflow.WORKFLOW.WID); - public static Identity IDENTITY_WORKFLOW_EXECUTIONS = Internal.createIdentity(WorkflowExecutions.WORKFLOW_EXECUTIONS, WorkflowExecutions.WORKFLOW_EXECUTIONS.EID); - public static Identity IDENTITY_WORKFLOW_VERSION = Internal.createIdentity(WorkflowVersion.WORKFLOW_VERSION, WorkflowVersion.WORKFLOW_VERSION.VID); + public static Identity IDENTITY_DATASET = Internal.createIdentity(Dataset.DATASET, Dataset.DATASET.DID); + public static Identity IDENTITY_DATASET_VERSION = Internal.createIdentity(DatasetVersion.DATASET_VERSION, DatasetVersion.DATASET_VERSION.DVID); + public static Identity IDENTITY_OPERATOR_EXECUTIONS = Internal.createIdentity(OperatorExecutions.OPERATOR_EXECUTIONS, OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID); + public static Identity IDENTITY_PROJECT = Internal.createIdentity(Project.PROJECT, Project.PROJECT.PID); + public static Identity IDENTITY_USER = Internal.createIdentity(User.USER, User.USER.UID); + public static Identity IDENTITY_WORKFLOW = Internal.createIdentity(Workflow.WORKFLOW, Workflow.WORKFLOW.WID); + public static Identity IDENTITY_WORKFLOW_EXECUTIONS = Internal.createIdentity(WorkflowExecutions.WORKFLOW_EXECUTIONS, WorkflowExecutions.WORKFLOW_EXECUTIONS.EID); + public static Identity IDENTITY_WORKFLOW_VERSION = Internal.createIdentity(WorkflowVersion.WORKFLOW_VERSION, WorkflowVersion.WORKFLOW_VERSION.VID); } private static class UniqueKeys0 { - public static final UniqueKey KEY_DATASET_PRIMARY = Internal.createUniqueKey(Dataset.DATASET, "KEY_dataset_PRIMARY", Dataset.DATASET.DID); - public static final UniqueKey KEY_DATASET_USER_ACCESS_PRIMARY = Internal.createUniqueKey(DatasetUserAccess.DATASET_USER_ACCESS, "KEY_dataset_user_access_PRIMARY", DatasetUserAccess.DATASET_USER_ACCESS.DID, DatasetUserAccess.DATASET_USER_ACCESS.UID); - public static final UniqueKey KEY_DATASET_VERSION_PRIMARY = Internal.createUniqueKey(DatasetVersion.DATASET_VERSION, "KEY_dataset_version_PRIMARY", DatasetVersion.DATASET_VERSION.DVID); - public static final UniqueKey KEY_OPERATOR_EXECUTIONS_PRIMARY = Internal.createUniqueKey(OperatorExecutions.OPERATOR_EXECUTIONS, "KEY_operator_executions_PRIMARY", OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID); - public static final UniqueKey KEY_OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID = Internal.createUniqueKey(OperatorExecutions.OPERATOR_EXECUTIONS, "KEY_operator_executions_workflow_execution_id", OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID, OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_ID); - public static final UniqueKey KEY_OPERATOR_RUNTIME_STATISTICS_PRIMARY = Internal.createUniqueKey(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS, "KEY_operator_runtime_statistics_PRIMARY", OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OPERATOR_EXECUTION_ID, OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.TIME); - public static final UniqueKey KEY_PROJECT_PRIMARY = Internal.createUniqueKey(Project.PROJECT, "KEY_project_PRIMARY", Project.PROJECT.PID); - public static final UniqueKey KEY_PROJECT_OWNER_ID = Internal.createUniqueKey(Project.PROJECT, "KEY_project_owner_id", Project.PROJECT.OWNER_ID, Project.PROJECT.NAME); - public static final UniqueKey KEY_PROJECT_USER_ACCESS_PRIMARY = Internal.createUniqueKey(ProjectUserAccess.PROJECT_USER_ACCESS, "KEY_project_user_access_PRIMARY", ProjectUserAccess.PROJECT_USER_ACCESS.UID, ProjectUserAccess.PROJECT_USER_ACCESS.PID); - public static final UniqueKey KEY_PUBLIC_PROJECT_PRIMARY = Internal.createUniqueKey(PublicProject.PUBLIC_PROJECT, "KEY_public_project_PRIMARY", PublicProject.PUBLIC_PROJECT.PID); - public static final UniqueKey KEY_USER_PRIMARY = Internal.createUniqueKey(User.USER, "KEY_user_PRIMARY", User.USER.UID); - public static final UniqueKey KEY_USER_EMAIL = Internal.createUniqueKey(User.USER, "KEY_user_email", User.USER.EMAIL); - public static final UniqueKey KEY_USER_GOOGLE_ID = Internal.createUniqueKey(User.USER, "KEY_user_google_id", User.USER.GOOGLE_ID); - public static final UniqueKey KEY_USER_CONFIG_PRIMARY = Internal.createUniqueKey(UserConfig.USER_CONFIG, "KEY_user_config_PRIMARY", UserConfig.USER_CONFIG.UID, UserConfig.USER_CONFIG.KEY); - public static final UniqueKey KEY_WORKFLOW_PRIMARY = Internal.createUniqueKey(Workflow.WORKFLOW, "KEY_workflow_PRIMARY", Workflow.WORKFLOW.WID); - public static final UniqueKey KEY_WORKFLOW_EXECUTIONS_PRIMARY = Internal.createUniqueKey(WorkflowExecutions.WORKFLOW_EXECUTIONS, "KEY_workflow_executions_PRIMARY", WorkflowExecutions.WORKFLOW_EXECUTIONS.EID); - public static final UniqueKey KEY_WORKFLOW_OF_PROJECT_PRIMARY = Internal.createUniqueKey(WorkflowOfProject.WORKFLOW_OF_PROJECT, "KEY_workflow_of_project_PRIMARY", WorkflowOfProject.WORKFLOW_OF_PROJECT.WID, WorkflowOfProject.WORKFLOW_OF_PROJECT.PID); - public static final UniqueKey KEY_WORKFLOW_OF_USER_PRIMARY = Internal.createUniqueKey(WorkflowOfUser.WORKFLOW_OF_USER, "KEY_workflow_of_user_PRIMARY", WorkflowOfUser.WORKFLOW_OF_USER.UID, WorkflowOfUser.WORKFLOW_OF_USER.WID); - public static final UniqueKey KEY_WORKFLOW_USER_ACCESS_PRIMARY = Internal.createUniqueKey(WorkflowUserAccess.WORKFLOW_USER_ACCESS, "KEY_workflow_user_access_PRIMARY", WorkflowUserAccess.WORKFLOW_USER_ACCESS.UID, WorkflowUserAccess.WORKFLOW_USER_ACCESS.WID); - public static final UniqueKey KEY_WORKFLOW_USER_CLONES_PRIMARY = Internal.createUniqueKey(WorkflowUserClones.WORKFLOW_USER_CLONES, "KEY_workflow_user_clones_PRIMARY", WorkflowUserClones.WORKFLOW_USER_CLONES.UID, WorkflowUserClones.WORKFLOW_USER_CLONES.WID); - public static final UniqueKey KEY_WORKFLOW_USER_LIKES_PRIMARY = Internal.createUniqueKey(WorkflowUserLikes.WORKFLOW_USER_LIKES, "KEY_workflow_user_likes_PRIMARY", WorkflowUserLikes.WORKFLOW_USER_LIKES.UID, WorkflowUserLikes.WORKFLOW_USER_LIKES.WID); - public static final UniqueKey KEY_WORKFLOW_VERSION_PRIMARY = Internal.createUniqueKey(WorkflowVersion.WORKFLOW_VERSION, "KEY_workflow_version_PRIMARY", WorkflowVersion.WORKFLOW_VERSION.VID); - public static final UniqueKey KEY_WORKFLOW_VIEW_COUNT_PRIMARY = Internal.createUniqueKey(WorkflowViewCount.WORKFLOW_VIEW_COUNT, "KEY_workflow_view_count_PRIMARY", WorkflowViewCount.WORKFLOW_VIEW_COUNT.WID); + public static final UniqueKey DATASET_PKEY = Internal.createUniqueKey(Dataset.DATASET, "dataset_pkey", Dataset.DATASET.DID); + public static final UniqueKey DATASET_USER_ACCESS_PKEY = Internal.createUniqueKey(DatasetUserAccess.DATASET_USER_ACCESS, "dataset_user_access_pkey", DatasetUserAccess.DATASET_USER_ACCESS.DID, DatasetUserAccess.DATASET_USER_ACCESS.UID); + public static final UniqueKey DATASET_VERSION_PKEY = Internal.createUniqueKey(DatasetVersion.DATASET_VERSION, "dataset_version_pkey", DatasetVersion.DATASET_VERSION.DVID); + public static final UniqueKey OPERATOR_EXECUTIONS_PKEY = Internal.createUniqueKey(OperatorExecutions.OPERATOR_EXECUTIONS, "operator_executions_pkey", OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID); + public static final UniqueKey OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID_KEY = Internal.createUniqueKey(OperatorExecutions.OPERATOR_EXECUTIONS, "operator_executions_workflow_execution_id_operator_id_key", OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID, OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_ID); + public static final UniqueKey OPERATOR_RUNTIME_STATISTICS_PKEY = Internal.createUniqueKey(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS, "operator_runtime_statistics_pkey", OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OPERATOR_EXECUTION_ID, OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.TIME); + public static final UniqueKey PROJECT_PKEY = Internal.createUniqueKey(Project.PROJECT, "project_pkey", Project.PROJECT.PID); + public static final UniqueKey PROJECT_OWNER_ID_NAME_KEY = Internal.createUniqueKey(Project.PROJECT, "project_owner_id_name_key", Project.PROJECT.OWNER_ID, Project.PROJECT.NAME); + public static final UniqueKey PROJECT_USER_ACCESS_PKEY = Internal.createUniqueKey(ProjectUserAccess.PROJECT_USER_ACCESS, "project_user_access_pkey", ProjectUserAccess.PROJECT_USER_ACCESS.UID, ProjectUserAccess.PROJECT_USER_ACCESS.PID); + public static final UniqueKey PUBLIC_PROJECT_PKEY = Internal.createUniqueKey(PublicProject.PUBLIC_PROJECT, "public_project_pkey", PublicProject.PUBLIC_PROJECT.PID); + public static final UniqueKey USER_PKEY = Internal.createUniqueKey(User.USER, "user_pkey", User.USER.UID); + public static final UniqueKey USER_EMAIL_KEY = Internal.createUniqueKey(User.USER, "user_email_key", User.USER.EMAIL); + public static final UniqueKey USER_GOOGLE_ID_KEY = Internal.createUniqueKey(User.USER, "user_google_id_key", User.USER.GOOGLE_ID); + public static final UniqueKey USER_CONFIG_PKEY = Internal.createUniqueKey(UserConfig.USER_CONFIG, "user_config_pkey", UserConfig.USER_CONFIG.UID, UserConfig.USER_CONFIG.KEY); + public static final UniqueKey WORKFLOW_PKEY = Internal.createUniqueKey(Workflow.WORKFLOW, "workflow_pkey", Workflow.WORKFLOW.WID); + public static final UniqueKey WORKFLOW_EXECUTIONS_PKEY = Internal.createUniqueKey(WorkflowExecutions.WORKFLOW_EXECUTIONS, "workflow_executions_pkey", WorkflowExecutions.WORKFLOW_EXECUTIONS.EID); + public static final UniqueKey WORKFLOW_OF_PROJECT_PKEY = Internal.createUniqueKey(WorkflowOfProject.WORKFLOW_OF_PROJECT, "workflow_of_project_pkey", WorkflowOfProject.WORKFLOW_OF_PROJECT.WID, WorkflowOfProject.WORKFLOW_OF_PROJECT.PID); + public static final UniqueKey WORKFLOW_OF_USER_PKEY = Internal.createUniqueKey(WorkflowOfUser.WORKFLOW_OF_USER, "workflow_of_user_pkey", WorkflowOfUser.WORKFLOW_OF_USER.UID, WorkflowOfUser.WORKFLOW_OF_USER.WID); + public static final UniqueKey WORKFLOW_USER_ACCESS_PKEY = Internal.createUniqueKey(WorkflowUserAccess.WORKFLOW_USER_ACCESS, "workflow_user_access_pkey", WorkflowUserAccess.WORKFLOW_USER_ACCESS.UID, WorkflowUserAccess.WORKFLOW_USER_ACCESS.WID); + public static final UniqueKey WORKFLOW_USER_CLONES_PKEY = Internal.createUniqueKey(WorkflowUserClones.WORKFLOW_USER_CLONES, "workflow_user_clones_pkey", WorkflowUserClones.WORKFLOW_USER_CLONES.UID, WorkflowUserClones.WORKFLOW_USER_CLONES.WID); + public static final UniqueKey WORKFLOW_USER_LIKES_PKEY = Internal.createUniqueKey(WorkflowUserLikes.WORKFLOW_USER_LIKES, "workflow_user_likes_pkey", WorkflowUserLikes.WORKFLOW_USER_LIKES.UID, WorkflowUserLikes.WORKFLOW_USER_LIKES.WID); + public static final UniqueKey WORKFLOW_VERSION_PKEY = Internal.createUniqueKey(WorkflowVersion.WORKFLOW_VERSION, "workflow_version_pkey", WorkflowVersion.WORKFLOW_VERSION.VID); + public static final UniqueKey WORKFLOW_VIEW_COUNT_PKEY = Internal.createUniqueKey(WorkflowViewCount.WORKFLOW_VIEW_COUNT, "workflow_view_count_pkey", WorkflowViewCount.WORKFLOW_VIEW_COUNT.WID); } private static class ForeignKeys0 { - public static final ForeignKey DATASET_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_USER_PRIMARY, Dataset.DATASET, "dataset_ibfk_1", Dataset.DATASET.OWNER_UID); - public static final ForeignKey DATASET_USER_ACCESS_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_DATASET_PRIMARY, DatasetUserAccess.DATASET_USER_ACCESS, "dataset_user_access_ibfk_1", DatasetUserAccess.DATASET_USER_ACCESS.DID); - public static final ForeignKey DATASET_USER_ACCESS_IBFK_2 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_USER_PRIMARY, DatasetUserAccess.DATASET_USER_ACCESS, "dataset_user_access_ibfk_2", DatasetUserAccess.DATASET_USER_ACCESS.UID); - public static final ForeignKey DATASET_VERSION_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_DATASET_PRIMARY, DatasetVersion.DATASET_VERSION, "dataset_version_ibfk_1", DatasetVersion.DATASET_VERSION.DID); - public static final ForeignKey OPERATOR_EXECUTIONS_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_WORKFLOW_EXECUTIONS_PRIMARY, OperatorExecutions.OPERATOR_EXECUTIONS, "operator_executions_ibfk_1", OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID); - public static final ForeignKey OPERATOR_RUNTIME_STATISTICS_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_OPERATOR_EXECUTIONS_PRIMARY, OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS, "operator_runtime_statistics_ibfk_1", OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OPERATOR_EXECUTION_ID); - public static final ForeignKey PROJECT_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_USER_PRIMARY, Project.PROJECT, "project_ibfk_1", Project.PROJECT.OWNER_ID); - public static final ForeignKey PROJECT_USER_ACCESS_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_USER_PRIMARY, ProjectUserAccess.PROJECT_USER_ACCESS, "project_user_access_ibfk_1", ProjectUserAccess.PROJECT_USER_ACCESS.UID); - public static final ForeignKey PROJECT_USER_ACCESS_IBFK_2 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_PROJECT_PRIMARY, ProjectUserAccess.PROJECT_USER_ACCESS, "project_user_access_ibfk_2", ProjectUserAccess.PROJECT_USER_ACCESS.PID); - public static final ForeignKey PUBLIC_PROJECT_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_PROJECT_PRIMARY, PublicProject.PUBLIC_PROJECT, "public_project_ibfk_1", PublicProject.PUBLIC_PROJECT.PID); - public static final ForeignKey USER_CONFIG_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_USER_PRIMARY, UserConfig.USER_CONFIG, "user_config_ibfk_1", UserConfig.USER_CONFIG.UID); - public static final ForeignKey WORKFLOW_EXECUTIONS_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_WORKFLOW_VERSION_PRIMARY, WorkflowExecutions.WORKFLOW_EXECUTIONS, "workflow_executions_ibfk_1", WorkflowExecutions.WORKFLOW_EXECUTIONS.VID); - public static final ForeignKey WORKFLOW_EXECUTIONS_IBFK_2 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_USER_PRIMARY, WorkflowExecutions.WORKFLOW_EXECUTIONS, "workflow_executions_ibfk_2", WorkflowExecutions.WORKFLOW_EXECUTIONS.UID); - public static final ForeignKey WORKFLOW_OF_PROJECT_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_WORKFLOW_PRIMARY, WorkflowOfProject.WORKFLOW_OF_PROJECT, "workflow_of_project_ibfk_1", WorkflowOfProject.WORKFLOW_OF_PROJECT.WID); - public static final ForeignKey WORKFLOW_OF_PROJECT_IBFK_2 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_PROJECT_PRIMARY, WorkflowOfProject.WORKFLOW_OF_PROJECT, "workflow_of_project_ibfk_2", WorkflowOfProject.WORKFLOW_OF_PROJECT.PID); - public static final ForeignKey WORKFLOW_OF_USER_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_USER_PRIMARY, WorkflowOfUser.WORKFLOW_OF_USER, "workflow_of_user_ibfk_1", WorkflowOfUser.WORKFLOW_OF_USER.UID); - public static final ForeignKey WORKFLOW_OF_USER_IBFK_2 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_WORKFLOW_PRIMARY, WorkflowOfUser.WORKFLOW_OF_USER, "workflow_of_user_ibfk_2", WorkflowOfUser.WORKFLOW_OF_USER.WID); - public static final ForeignKey WORKFLOW_USER_ACCESS_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_USER_PRIMARY, WorkflowUserAccess.WORKFLOW_USER_ACCESS, "workflow_user_access_ibfk_1", WorkflowUserAccess.WORKFLOW_USER_ACCESS.UID); - public static final ForeignKey WORKFLOW_USER_ACCESS_IBFK_2 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_WORKFLOW_PRIMARY, WorkflowUserAccess.WORKFLOW_USER_ACCESS, "workflow_user_access_ibfk_2", WorkflowUserAccess.WORKFLOW_USER_ACCESS.WID); - public static final ForeignKey WORKFLOW_USER_CLONES_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_USER_PRIMARY, WorkflowUserClones.WORKFLOW_USER_CLONES, "workflow_user_clones_ibfk_1", WorkflowUserClones.WORKFLOW_USER_CLONES.UID); - public static final ForeignKey WORKFLOW_USER_CLONES_IBFK_2 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_WORKFLOW_PRIMARY, WorkflowUserClones.WORKFLOW_USER_CLONES, "workflow_user_clones_ibfk_2", WorkflowUserClones.WORKFLOW_USER_CLONES.WID); - public static final ForeignKey WORKFLOW_USER_LIKES_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_USER_PRIMARY, WorkflowUserLikes.WORKFLOW_USER_LIKES, "workflow_user_likes_ibfk_1", WorkflowUserLikes.WORKFLOW_USER_LIKES.UID); - public static final ForeignKey WORKFLOW_USER_LIKES_IBFK_2 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_WORKFLOW_PRIMARY, WorkflowUserLikes.WORKFLOW_USER_LIKES, "workflow_user_likes_ibfk_2", WorkflowUserLikes.WORKFLOW_USER_LIKES.WID); - public static final ForeignKey WORKFLOW_VERSION_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_WORKFLOW_PRIMARY, WorkflowVersion.WORKFLOW_VERSION, "workflow_version_ibfk_1", WorkflowVersion.WORKFLOW_VERSION.WID); - public static final ForeignKey WORKFLOW_VIEW_COUNT_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_WORKFLOW_PRIMARY, WorkflowViewCount.WORKFLOW_VIEW_COUNT, "workflow_view_count_ibfk_1", WorkflowViewCount.WORKFLOW_VIEW_COUNT.WID); + public static final ForeignKey DATASET__DATASET_OWNER_UID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.USER_PKEY, Dataset.DATASET, "dataset__dataset_owner_uid_fkey", Dataset.DATASET.OWNER_UID); + public static final ForeignKey DATASET_USER_ACCESS__DATASET_USER_ACCESS_DID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.DATASET_PKEY, DatasetUserAccess.DATASET_USER_ACCESS, "dataset_user_access__dataset_user_access_did_fkey", DatasetUserAccess.DATASET_USER_ACCESS.DID); + public static final ForeignKey DATASET_USER_ACCESS__DATASET_USER_ACCESS_UID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.USER_PKEY, DatasetUserAccess.DATASET_USER_ACCESS, "dataset_user_access__dataset_user_access_uid_fkey", DatasetUserAccess.DATASET_USER_ACCESS.UID); + public static final ForeignKey DATASET_VERSION__DATASET_VERSION_DID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.DATASET_PKEY, DatasetVersion.DATASET_VERSION, "dataset_version__dataset_version_did_fkey", DatasetVersion.DATASET_VERSION.DID); + public static final ForeignKey OPERATOR_EXECUTIONS__OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.WORKFLOW_EXECUTIONS_PKEY, OperatorExecutions.OPERATOR_EXECUTIONS, "operator_executions__operator_executions_workflow_execution_id_fkey", OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID); + public static final ForeignKey OPERATOR_RUNTIME_STATISTICS__OPERATOR_RUNTIME_STATISTICS_OPERATOR_EXECUTION_ID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.OPERATOR_EXECUTIONS_PKEY, OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS, "operator_runtime_statistics__operator_runtime_statistics_operator_execution_id_fkey", OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OPERATOR_EXECUTION_ID); + public static final ForeignKey PROJECT__PROJECT_OWNER_ID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.USER_PKEY, Project.PROJECT, "project__project_owner_id_fkey", Project.PROJECT.OWNER_ID); + public static final ForeignKey PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_UID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.USER_PKEY, ProjectUserAccess.PROJECT_USER_ACCESS, "project_user_access__project_user_access_uid_fkey", ProjectUserAccess.PROJECT_USER_ACCESS.UID); + public static final ForeignKey PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_PID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.PROJECT_PKEY, ProjectUserAccess.PROJECT_USER_ACCESS, "project_user_access__project_user_access_pid_fkey", ProjectUserAccess.PROJECT_USER_ACCESS.PID); + public static final ForeignKey PUBLIC_PROJECT__PUBLIC_PROJECT_PID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.PROJECT_PKEY, PublicProject.PUBLIC_PROJECT, "public_project__public_project_pid_fkey", PublicProject.PUBLIC_PROJECT.PID); + public static final ForeignKey USER_CONFIG__USER_CONFIG_UID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.USER_PKEY, UserConfig.USER_CONFIG, "user_config__user_config_uid_fkey", UserConfig.USER_CONFIG.UID); + public static final ForeignKey WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_VID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.WORKFLOW_VERSION_PKEY, WorkflowExecutions.WORKFLOW_EXECUTIONS, "workflow_executions__workflow_executions_vid_fkey", WorkflowExecutions.WORKFLOW_EXECUTIONS.VID); + public static final ForeignKey WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_UID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.USER_PKEY, WorkflowExecutions.WORKFLOW_EXECUTIONS, "workflow_executions__workflow_executions_uid_fkey", WorkflowExecutions.WORKFLOW_EXECUTIONS.UID); + public static final ForeignKey WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_WID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.WORKFLOW_PKEY, WorkflowOfProject.WORKFLOW_OF_PROJECT, "workflow_of_project__workflow_of_project_wid_fkey", WorkflowOfProject.WORKFLOW_OF_PROJECT.WID); + public static final ForeignKey WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_PID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.PROJECT_PKEY, WorkflowOfProject.WORKFLOW_OF_PROJECT, "workflow_of_project__workflow_of_project_pid_fkey", WorkflowOfProject.WORKFLOW_OF_PROJECT.PID); + public static final ForeignKey WORKFLOW_OF_USER__WORKFLOW_OF_USER_UID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.USER_PKEY, WorkflowOfUser.WORKFLOW_OF_USER, "workflow_of_user__workflow_of_user_uid_fkey", WorkflowOfUser.WORKFLOW_OF_USER.UID); + public static final ForeignKey WORKFLOW_OF_USER__WORKFLOW_OF_USER_WID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.WORKFLOW_PKEY, WorkflowOfUser.WORKFLOW_OF_USER, "workflow_of_user__workflow_of_user_wid_fkey", WorkflowOfUser.WORKFLOW_OF_USER.WID); + public static final ForeignKey WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_UID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.USER_PKEY, WorkflowUserAccess.WORKFLOW_USER_ACCESS, "workflow_user_access__workflow_user_access_uid_fkey", WorkflowUserAccess.WORKFLOW_USER_ACCESS.UID); + public static final ForeignKey WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_WID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.WORKFLOW_PKEY, WorkflowUserAccess.WORKFLOW_USER_ACCESS, "workflow_user_access__workflow_user_access_wid_fkey", WorkflowUserAccess.WORKFLOW_USER_ACCESS.WID); + public static final ForeignKey WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_UID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.USER_PKEY, WorkflowUserClones.WORKFLOW_USER_CLONES, "workflow_user_clones__workflow_user_clones_uid_fkey", WorkflowUserClones.WORKFLOW_USER_CLONES.UID); + public static final ForeignKey WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_WID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.WORKFLOW_PKEY, WorkflowUserClones.WORKFLOW_USER_CLONES, "workflow_user_clones__workflow_user_clones_wid_fkey", WorkflowUserClones.WORKFLOW_USER_CLONES.WID); + public static final ForeignKey WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_UID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.USER_PKEY, WorkflowUserLikes.WORKFLOW_USER_LIKES, "workflow_user_likes__workflow_user_likes_uid_fkey", WorkflowUserLikes.WORKFLOW_USER_LIKES.UID); + public static final ForeignKey WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_WID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.WORKFLOW_PKEY, WorkflowUserLikes.WORKFLOW_USER_LIKES, "workflow_user_likes__workflow_user_likes_wid_fkey", WorkflowUserLikes.WORKFLOW_USER_LIKES.WID); + public static final ForeignKey WORKFLOW_VERSION__WORKFLOW_VERSION_WID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.WORKFLOW_PKEY, WorkflowVersion.WORKFLOW_VERSION, "workflow_version__workflow_version_wid_fkey", WorkflowVersion.WORKFLOW_VERSION.WID); + public static final ForeignKey WORKFLOW_VIEW_COUNT__WORKFLOW_VIEW_COUNT_WID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.WORKFLOW_PKEY, WorkflowViewCount.WORKFLOW_VIEW_COUNT, "workflow_view_count__workflow_view_count_wid_fkey", WorkflowViewCount.WORKFLOW_VIEW_COUNT.WID); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Sequences.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Sequences.java new file mode 100644 index 00000000000..d19c9bc2660 --- /dev/null +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Sequences.java @@ -0,0 +1,56 @@ +/* + * This file is generated by jOOQ. + */ +package edu.uci.ics.texera.dao.jooq.generated; + + +import org.jooq.Sequence; +import org.jooq.impl.SequenceImpl; + + +/** + * Convenience access to all sequences in texera_db + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class Sequences { + + /** + * The sequence texera_db.dataset_did_seq + */ + public static final Sequence DATASET_DID_SEQ = new SequenceImpl("dataset_did_seq", TexeraDb.TEXERA_DB, org.jooq.impl.SQLDataType.INTEGER.nullable(false)); + + /** + * The sequence texera_db.dataset_version_dvid_seq + */ + public static final Sequence DATASET_VERSION_DVID_SEQ = new SequenceImpl("dataset_version_dvid_seq", TexeraDb.TEXERA_DB, org.jooq.impl.SQLDataType.INTEGER.nullable(false)); + + /** + * The sequence texera_db.operator_executions_operator_execution_id_seq + */ + public static final Sequence OPERATOR_EXECUTIONS_OPERATOR_EXECUTION_ID_SEQ = new SequenceImpl("operator_executions_operator_execution_id_seq", TexeraDb.TEXERA_DB, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); + + /** + * The sequence texera_db.project_pid_seq + */ + public static final Sequence PROJECT_PID_SEQ = new SequenceImpl("project_pid_seq", TexeraDb.TEXERA_DB, org.jooq.impl.SQLDataType.INTEGER.nullable(false)); + + /** + * The sequence texera_db.user_uid_seq + */ + public static final Sequence USER_UID_SEQ = new SequenceImpl("user_uid_seq", TexeraDb.TEXERA_DB, org.jooq.impl.SQLDataType.INTEGER.nullable(false)); + + /** + * The sequence texera_db.workflow_executions_eid_seq + */ + public static final Sequence WORKFLOW_EXECUTIONS_EID_SEQ = new SequenceImpl("workflow_executions_eid_seq", TexeraDb.TEXERA_DB, org.jooq.impl.SQLDataType.INTEGER.nullable(false)); + + /** + * The sequence texera_db.workflow_version_vid_seq + */ + public static final Sequence WORKFLOW_VERSION_VID_SEQ = new SequenceImpl("workflow_version_vid_seq", TexeraDb.TEXERA_DB, org.jooq.impl.SQLDataType.INTEGER.nullable(false)); + + /** + * The sequence texera_db.workflow_wid_seq + */ + public static final Sequence WORKFLOW_WID_SEQ = new SequenceImpl("workflow_wid_seq", TexeraDb.TEXERA_DB, org.jooq.impl.SQLDataType.INTEGER.nullable(false)); +} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/TexeraDb.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/TexeraDb.java index a8b7eb8520b..91ba30fc2c4 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/TexeraDb.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/TexeraDb.java @@ -30,6 +30,7 @@ import java.util.List; import org.jooq.Catalog; +import org.jooq.Sequence; import org.jooq.Table; import org.jooq.impl.SchemaImpl; @@ -40,7 +41,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class TexeraDb extends SchemaImpl { - private static final long serialVersionUID = 395155886; + private static final long serialVersionUID = 1901866689; /** * The reference instance of texera_db @@ -160,6 +161,25 @@ public Catalog getCatalog() { return DefaultCatalog.DEFAULT_CATALOG; } + @Override + public final List> getSequences() { + List result = new ArrayList(); + result.addAll(getSequences0()); + return result; + } + + private final List> getSequences0() { + return Arrays.>asList( + Sequences.DATASET_DID_SEQ, + Sequences.DATASET_VERSION_DVID_SEQ, + Sequences.OPERATOR_EXECUTIONS_OPERATOR_EXECUTION_ID_SEQ, + Sequences.PROJECT_PID_SEQ, + Sequences.USER_UID_SEQ, + Sequences.WORKFLOW_EXECUTIONS_EID_SEQ, + Sequences.WORKFLOW_VERSION_VID_SEQ, + Sequences.WORKFLOW_WID_SEQ); + } + @Override public final List> getTables() { List result = new ArrayList(); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/DatasetUserAccessPrivilege.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/PrivilegeEnum.java similarity index 69% rename from core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/DatasetUserAccessPrivilege.java rename to core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/PrivilegeEnum.java index cdc1b72822f..3a983d7d136 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/DatasetUserAccessPrivilege.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/PrivilegeEnum.java @@ -4,6 +4,8 @@ package edu.uci.ics.texera.dao.jooq.generated.enums; +import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; + import org.jooq.Catalog; import org.jooq.EnumType; import org.jooq.Schema; @@ -13,7 +15,7 @@ * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public enum DatasetUserAccessPrivilege implements EnumType { +public enum PrivilegeEnum implements EnumType { NONE("NONE"), @@ -23,23 +25,23 @@ public enum DatasetUserAccessPrivilege implements EnumType { private final String literal; - private DatasetUserAccessPrivilege(String literal) { + private PrivilegeEnum(String literal) { this.literal = literal; } @Override public Catalog getCatalog() { - return null; + return getSchema() == null ? null : getSchema().getCatalog(); } @Override public Schema getSchema() { - return null; + return TexeraDb.TEXERA_DB; } @Override public String getName() { - return "dataset_user_access_privilege"; + return "privilege_enum"; } @Override diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/ProjectUserAccessPrivilege.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/ProjectUserAccessPrivilege.java deleted file mode 100644 index 180ae85380e..00000000000 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/ProjectUserAccessPrivilege.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package edu.uci.ics.texera.dao.jooq.generated.enums; - - -import org.jooq.Catalog; -import org.jooq.EnumType; -import org.jooq.Schema; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public enum ProjectUserAccessPrivilege implements EnumType { - - NONE("NONE"), - - READ("READ"), - - WRITE("WRITE"); - - private final String literal; - - private ProjectUserAccessPrivilege(String literal) { - this.literal = literal; - } - - @Override - public Catalog getCatalog() { - return null; - } - - @Override - public Schema getSchema() { - return null; - } - - @Override - public String getName() { - return "project_user_access_privilege"; - } - - @Override - public String getLiteral() { - return literal; - } -} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/UserRole.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/UserRoleEnum.java similarity index 70% rename from core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/UserRole.java rename to core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/UserRoleEnum.java index b171b040320..326c11ec1ad 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/UserRole.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/UserRoleEnum.java @@ -4,6 +4,8 @@ package edu.uci.ics.texera.dao.jooq.generated.enums; +import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; + import org.jooq.Catalog; import org.jooq.EnumType; import org.jooq.Schema; @@ -13,7 +15,7 @@ * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public enum UserRole implements EnumType { +public enum UserRoleEnum implements EnumType { INACTIVE("INACTIVE"), @@ -25,23 +27,23 @@ public enum UserRole implements EnumType { private final String literal; - private UserRole(String literal) { + private UserRoleEnum(String literal) { this.literal = literal; } @Override public Catalog getCatalog() { - return null; + return getSchema() == null ? null : getSchema().getCatalog(); } @Override public Schema getSchema() { - return null; + return TexeraDb.TEXERA_DB; } @Override public String getName() { - return "user_role"; + return "user_role_enum"; } @Override diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/WorkflowUserAccessPrivilege.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/WorkflowUserAccessPrivilege.java deleted file mode 100644 index eb7f0f96eb0..00000000000 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/WorkflowUserAccessPrivilege.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package edu.uci.ics.texera.dao.jooq.generated.enums; - - -import org.jooq.Catalog; -import org.jooq.EnumType; -import org.jooq.Schema; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public enum WorkflowUserAccessPrivilege implements EnumType { - - NONE("NONE"), - - READ("READ"), - - WRITE("WRITE"); - - private final String literal; - - private WorkflowUserAccessPrivilege(String literal) { - this.literal = literal; - } - - @Override - public Catalog getCatalog() { - return null; - } - - @Override - public Schema getSchema() { - return null; - } - - @Override - public String getName() { - return "workflow_user_access_privilege"; - } - - @Override - public String getLiteral() { - return literal; - } -} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Dataset.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Dataset.java index df1ec6af9ec..ec5c9864f3b 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Dataset.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Dataset.java @@ -26,7 +26,6 @@ import org.jooq.UniqueKey; import org.jooq.impl.DSL; import org.jooq.impl.TableImpl; -import org.jooq.types.UInteger; /** @@ -35,7 +34,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Dataset extends TableImpl { - private static final long serialVersionUID = 1458628918; + private static final long serialVersionUID = -1835472774; /** * The reference instance of texera_db.dataset @@ -53,12 +52,12 @@ public Class getRecordType() { /** * The column texera_db.dataset.did. */ - public final TableField DID = createField(DSL.name("did"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false).identity(true), this, ""); + public final TableField DID = createField(DSL.name("did"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true).defaultValue(org.jooq.impl.DSL.field("nextval('texera_db.dataset_did_seq'::regclass)", org.jooq.impl.SQLDataType.INTEGER)), this, ""); /** * The column texera_db.dataset.owner_uid. */ - public final TableField OWNER_UID = createField(DSL.name("owner_uid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField OWNER_UID = createField(DSL.name("owner_uid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.dataset.name. @@ -68,7 +67,7 @@ public Class getRecordType() { /** * The column texera_db.dataset.is_public. */ - public final TableField IS_PUBLIC = createField(DSL.name("is_public"), org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaultValue(org.jooq.impl.DSL.inline("1", org.jooq.impl.SQLDataType.TINYINT)), this, ""); + public final TableField IS_PUBLIC = createField(DSL.name("is_public"), org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("true", org.jooq.impl.SQLDataType.BOOLEAN)), this, ""); /** * The column texera_db.dataset.description. @@ -120,31 +119,31 @@ public Schema getSchema() { @Override public List getIndexes() { - return Arrays.asList(Indexes.DATASET_IDX_DATASET_NAME_DESCRIPTION, Indexes.DATASET_OWNER_UID, Indexes.DATASET_PRIMARY); + return Arrays.asList(Indexes.DATASET_PKEY); } @Override - public Identity getIdentity() { + public Identity getIdentity() { return Keys.IDENTITY_DATASET; } @Override public UniqueKey getPrimaryKey() { - return Keys.KEY_DATASET_PRIMARY; + return Keys.DATASET_PKEY; } @Override public List> getKeys() { - return Arrays.>asList(Keys.KEY_DATASET_PRIMARY); + return Arrays.>asList(Keys.DATASET_PKEY); } @Override public List> getReferences() { - return Arrays.>asList(Keys.DATASET_IBFK_1); + return Arrays.>asList(Keys.DATASET__DATASET_OWNER_UID_FKEY); } public User user() { - return new User(this, Keys.DATASET_IBFK_1); + return new User(this, Keys.DATASET__DATASET_OWNER_UID_FKEY); } @Override @@ -178,7 +177,7 @@ public Dataset rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row6 fieldsRow() { + public Row6 fieldsRow() { return (Row6) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetUserAccess.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetUserAccess.java index 21f0c20461c..39e186accc6 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetUserAccess.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetUserAccess.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.Indexes; import edu.uci.ics.texera.dao.jooq.generated.Keys; import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; -import edu.uci.ics.texera.dao.jooq.generated.enums.DatasetUserAccessPrivilege; +import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum; import edu.uci.ics.texera.dao.jooq.generated.tables.records.DatasetUserAccessRecord; import java.util.Arrays; @@ -25,7 +25,6 @@ import org.jooq.UniqueKey; import org.jooq.impl.DSL; import org.jooq.impl.TableImpl; -import org.jooq.types.UInteger; /** @@ -34,7 +33,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class DatasetUserAccess extends TableImpl { - private static final long serialVersionUID = -1056803018; + private static final long serialVersionUID = -2146163040; /** * The reference instance of texera_db.dataset_user_access @@ -52,17 +51,17 @@ public Class getRecordType() { /** * The column texera_db.dataset_user_access.did. */ - public final TableField DID = createField(DSL.name("did"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField DID = createField(DSL.name("did"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.dataset_user_access.uid. */ - public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.dataset_user_access.privilege. */ - public final TableField PRIVILEGE = createField(DSL.name("privilege"), org.jooq.impl.SQLDataType.VARCHAR(5).nullable(false).defaultValue(org.jooq.impl.DSL.inline("NONE", org.jooq.impl.SQLDataType.VARCHAR)).asEnumDataType(edu.uci.ics.texera.dao.jooq.generated.enums.DatasetUserAccessPrivilege.class), this, ""); + public final TableField PRIVILEGE = createField(DSL.name("privilege"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false).defaultValue(org.jooq.impl.DSL.field("'NONE'::texera_db.privilege_enum", org.jooq.impl.SQLDataType.VARCHAR)).asEnumDataType(edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum.class), this, ""); /** * Create a texera_db.dataset_user_access table reference @@ -104,30 +103,30 @@ public Schema getSchema() { @Override public List getIndexes() { - return Arrays.asList(Indexes.DATASET_USER_ACCESS_PRIMARY, Indexes.DATASET_USER_ACCESS_UID); + return Arrays.asList(Indexes.DATASET_USER_ACCESS_PKEY); } @Override public UniqueKey getPrimaryKey() { - return Keys.KEY_DATASET_USER_ACCESS_PRIMARY; + return Keys.DATASET_USER_ACCESS_PKEY; } @Override public List> getKeys() { - return Arrays.>asList(Keys.KEY_DATASET_USER_ACCESS_PRIMARY); + return Arrays.>asList(Keys.DATASET_USER_ACCESS_PKEY); } @Override public List> getReferences() { - return Arrays.>asList(Keys.DATASET_USER_ACCESS_IBFK_1, Keys.DATASET_USER_ACCESS_IBFK_2); + return Arrays.>asList(Keys.DATASET_USER_ACCESS__DATASET_USER_ACCESS_DID_FKEY, Keys.DATASET_USER_ACCESS__DATASET_USER_ACCESS_UID_FKEY); } public Dataset dataset() { - return new Dataset(this, Keys.DATASET_USER_ACCESS_IBFK_1); + return new Dataset(this, Keys.DATASET_USER_ACCESS__DATASET_USER_ACCESS_DID_FKEY); } public User user() { - return new User(this, Keys.DATASET_USER_ACCESS_IBFK_2); + return new User(this, Keys.DATASET_USER_ACCESS__DATASET_USER_ACCESS_UID_FKEY); } @Override @@ -161,7 +160,7 @@ public DatasetUserAccess rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row3 fieldsRow() { + public Row3 fieldsRow() { return (Row3) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetVersion.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetVersion.java index e354990adc6..c175b45d9c7 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetVersion.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetVersion.java @@ -26,7 +26,6 @@ import org.jooq.UniqueKey; import org.jooq.impl.DSL; import org.jooq.impl.TableImpl; -import org.jooq.types.UInteger; /** @@ -35,7 +34,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class DatasetVersion extends TableImpl { - private static final long serialVersionUID = 546683186; + private static final long serialVersionUID = 1554874669; /** * The reference instance of texera_db.dataset_version @@ -53,17 +52,17 @@ public Class getRecordType() { /** * The column texera_db.dataset_version.dvid. */ - public final TableField DVID = createField(DSL.name("dvid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false).identity(true), this, ""); + public final TableField DVID = createField(DSL.name("dvid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true).defaultValue(org.jooq.impl.DSL.field("nextval('texera_db.dataset_version_dvid_seq'::regclass)", org.jooq.impl.SQLDataType.INTEGER)), this, ""); /** * The column texera_db.dataset_version.did. */ - public final TableField DID = createField(DSL.name("did"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField DID = createField(DSL.name("did"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.dataset_version.creator_uid. */ - public final TableField CREATOR_UID = createField(DSL.name("creator_uid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField CREATOR_UID = createField(DSL.name("creator_uid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.dataset_version.name. @@ -120,31 +119,31 @@ public Schema getSchema() { @Override public List getIndexes() { - return Arrays.asList(Indexes.DATASET_VERSION_DID, Indexes.DATASET_VERSION_IDX_DATASET_VERSION_NAME, Indexes.DATASET_VERSION_PRIMARY); + return Arrays.asList(Indexes.DATASET_VERSION_PKEY); } @Override - public Identity getIdentity() { + public Identity getIdentity() { return Keys.IDENTITY_DATASET_VERSION; } @Override public UniqueKey getPrimaryKey() { - return Keys.KEY_DATASET_VERSION_PRIMARY; + return Keys.DATASET_VERSION_PKEY; } @Override public List> getKeys() { - return Arrays.>asList(Keys.KEY_DATASET_VERSION_PRIMARY); + return Arrays.>asList(Keys.DATASET_VERSION_PKEY); } @Override public List> getReferences() { - return Arrays.>asList(Keys.DATASET_VERSION_IBFK_1); + return Arrays.>asList(Keys.DATASET_VERSION__DATASET_VERSION_DID_FKEY); } public Dataset dataset() { - return new Dataset(this, Keys.DATASET_VERSION_IBFK_1); + return new Dataset(this, Keys.DATASET_VERSION__DATASET_VERSION_DID_FKEY); } @Override @@ -178,7 +177,7 @@ public DatasetVersion rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row6 fieldsRow() { + public Row6 fieldsRow() { return (Row6) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorExecutions.java index 68c4a86caf8..0adcc1a8ecf 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorExecutions.java @@ -25,8 +25,6 @@ import org.jooq.UniqueKey; import org.jooq.impl.DSL; import org.jooq.impl.TableImpl; -import org.jooq.types.UInteger; -import org.jooq.types.ULong; /** @@ -35,7 +33,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class OperatorExecutions extends TableImpl { - private static final long serialVersionUID = 1254946167; + private static final long serialVersionUID = -182123064; /** * The reference instance of texera_db.operator_executions @@ -53,12 +51,12 @@ public Class getRecordType() { /** * The column texera_db.operator_executions.operator_execution_id. */ - public final TableField OPERATOR_EXECUTION_ID = createField(DSL.name("operator_execution_id"), org.jooq.impl.SQLDataType.BIGINTUNSIGNED.nullable(false).identity(true), this, ""); + public final TableField OPERATOR_EXECUTION_ID = createField(DSL.name("operator_execution_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).identity(true).defaultValue(org.jooq.impl.DSL.field("nextval('texera_db.operator_executions_operator_execution_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); /** * The column texera_db.operator_executions.workflow_execution_id. */ - public final TableField WORKFLOW_EXECUTION_ID = createField(DSL.name("workflow_execution_id"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField WORKFLOW_EXECUTION_ID = createField(DSL.name("workflow_execution_id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.operator_executions.operator_id. @@ -105,31 +103,31 @@ public Schema getSchema() { @Override public List getIndexes() { - return Arrays.asList(Indexes.OPERATOR_EXECUTIONS_PRIMARY, Indexes.OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID); + return Arrays.asList(Indexes.OPERATOR_EXECUTIONS_PKEY, Indexes.OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID_KEY); } @Override - public Identity getIdentity() { + public Identity getIdentity() { return Keys.IDENTITY_OPERATOR_EXECUTIONS; } @Override public UniqueKey getPrimaryKey() { - return Keys.KEY_OPERATOR_EXECUTIONS_PRIMARY; + return Keys.OPERATOR_EXECUTIONS_PKEY; } @Override public List> getKeys() { - return Arrays.>asList(Keys.KEY_OPERATOR_EXECUTIONS_PRIMARY, Keys.KEY_OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID); + return Arrays.>asList(Keys.OPERATOR_EXECUTIONS_PKEY, Keys.OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID_KEY); } @Override public List> getReferences() { - return Arrays.>asList(Keys.OPERATOR_EXECUTIONS_IBFK_1); + return Arrays.>asList(Keys.OPERATOR_EXECUTIONS__OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_FKEY); } public WorkflowExecutions workflowExecutions() { - return new WorkflowExecutions(this, Keys.OPERATOR_EXECUTIONS_IBFK_1); + return new WorkflowExecutions(this, Keys.OPERATOR_EXECUTIONS__OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_FKEY); } @Override @@ -163,7 +161,7 @@ public OperatorExecutions rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row3 fieldsRow() { + public Row3 fieldsRow() { return (Row3) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorRuntimeStatistics.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorRuntimeStatistics.java index 940d6a515a9..1eda68c2ec5 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorRuntimeStatistics.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorRuntimeStatistics.java @@ -4,7 +4,6 @@ package edu.uci.ics.texera.dao.jooq.generated.tables; -import edu.uci.ics.texera.dao.jooq.generated.Indexes; import edu.uci.ics.texera.dao.jooq.generated.Keys; import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.OperatorRuntimeStatisticsRecord; @@ -15,7 +14,6 @@ import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Index; import org.jooq.Name; import org.jooq.Record; import org.jooq.Row9; @@ -25,8 +23,6 @@ import org.jooq.UniqueKey; import org.jooq.impl.DSL; import org.jooq.impl.TableImpl; -import org.jooq.types.UInteger; -import org.jooq.types.ULong; /** @@ -35,7 +31,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class OperatorRuntimeStatistics extends TableImpl { - private static final long serialVersionUID = -697570718; + private static final long serialVersionUID = 1626867448; /** * The reference instance of texera_db.operator_runtime_statistics @@ -53,7 +49,7 @@ public Class getRecordType() { /** * The column texera_db.operator_runtime_statistics.operator_execution_id. */ - public final TableField OPERATOR_EXECUTION_ID = createField(DSL.name("operator_execution_id"), org.jooq.impl.SQLDataType.BIGINTUNSIGNED.nullable(false), this, ""); + public final TableField OPERATOR_EXECUTION_ID = createField(DSL.name("operator_execution_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); /** * The column texera_db.operator_runtime_statistics.time. @@ -63,37 +59,37 @@ public Class getRecordType() { /** * The column texera_db.operator_runtime_statistics.input_tuple_cnt. */ - public final TableField INPUT_TUPLE_CNT = createField(DSL.name("input_tuple_cnt"), org.jooq.impl.SQLDataType.BIGINTUNSIGNED.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.BIGINTUNSIGNED)), this, ""); + public final TableField INPUT_TUPLE_CNT = createField(DSL.name("input_tuple_cnt"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("0", org.jooq.impl.SQLDataType.BIGINT)), this, ""); /** * The column texera_db.operator_runtime_statistics.output_tuple_cnt. */ - public final TableField OUTPUT_TUPLE_CNT = createField(DSL.name("output_tuple_cnt"), org.jooq.impl.SQLDataType.BIGINTUNSIGNED.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.BIGINTUNSIGNED)), this, ""); + public final TableField OUTPUT_TUPLE_CNT = createField(DSL.name("output_tuple_cnt"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("0", org.jooq.impl.SQLDataType.BIGINT)), this, ""); /** * The column texera_db.operator_runtime_statistics.status. */ - public final TableField STATUS = createField(DSL.name("status"), org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaultValue(org.jooq.impl.DSL.inline("1", org.jooq.impl.SQLDataType.TINYINT)), this, ""); + public final TableField STATUS = createField(DSL.name("status"), org.jooq.impl.SQLDataType.SMALLINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("1", org.jooq.impl.SQLDataType.SMALLINT)), this, ""); /** * The column texera_db.operator_runtime_statistics.data_processing_time. */ - public final TableField DATA_PROCESSING_TIME = createField(DSL.name("data_processing_time"), org.jooq.impl.SQLDataType.BIGINTUNSIGNED.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.BIGINTUNSIGNED)), this, ""); + public final TableField DATA_PROCESSING_TIME = createField(DSL.name("data_processing_time"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("0", org.jooq.impl.SQLDataType.BIGINT)), this, ""); /** * The column texera_db.operator_runtime_statistics.control_processing_time. */ - public final TableField CONTROL_PROCESSING_TIME = createField(DSL.name("control_processing_time"), org.jooq.impl.SQLDataType.BIGINTUNSIGNED.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.BIGINTUNSIGNED)), this, ""); + public final TableField CONTROL_PROCESSING_TIME = createField(DSL.name("control_processing_time"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("0", org.jooq.impl.SQLDataType.BIGINT)), this, ""); /** * The column texera_db.operator_runtime_statistics.idle_time. */ - public final TableField IDLE_TIME = createField(DSL.name("idle_time"), org.jooq.impl.SQLDataType.BIGINTUNSIGNED.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.BIGINTUNSIGNED)), this, ""); + public final TableField IDLE_TIME = createField(DSL.name("idle_time"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("0", org.jooq.impl.SQLDataType.BIGINT)), this, ""); /** * The column texera_db.operator_runtime_statistics.num_workers. */ - public final TableField NUM_WORKERS = createField(DSL.name("num_workers"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGERUNSIGNED)), this, ""); + public final TableField NUM_WORKERS = createField(DSL.name("num_workers"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.field("0", org.jooq.impl.SQLDataType.INTEGER)), this, ""); /** * Create a texera_db.operator_runtime_statistics table reference @@ -133,28 +129,23 @@ public Schema getSchema() { return TexeraDb.TEXERA_DB; } - @Override - public List getIndexes() { - return Arrays.asList(Indexes.OPERATOR_RUNTIME_STATISTICS_PRIMARY); - } - @Override public UniqueKey getPrimaryKey() { - return Keys.KEY_OPERATOR_RUNTIME_STATISTICS_PRIMARY; + return Keys.OPERATOR_RUNTIME_STATISTICS_PKEY; } @Override public List> getKeys() { - return Arrays.>asList(Keys.KEY_OPERATOR_RUNTIME_STATISTICS_PRIMARY); + return Arrays.>asList(Keys.OPERATOR_RUNTIME_STATISTICS_PKEY); } @Override public List> getReferences() { - return Arrays.>asList(Keys.OPERATOR_RUNTIME_STATISTICS_IBFK_1); + return Arrays.>asList(Keys.OPERATOR_RUNTIME_STATISTICS__OPERATOR_RUNTIME_STATISTICS_OPERATOR_EXECUTION_ID_FKEY); } public OperatorExecutions operatorExecutions() { - return new OperatorExecutions(this, Keys.OPERATOR_RUNTIME_STATISTICS_IBFK_1); + return new OperatorExecutions(this, Keys.OPERATOR_RUNTIME_STATISTICS__OPERATOR_RUNTIME_STATISTICS_OPERATOR_EXECUTION_ID_FKEY); } @Override @@ -188,7 +179,7 @@ public OperatorRuntimeStatistics rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row9 fieldsRow() { + public Row9 fieldsRow() { return (Row9) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Project.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Project.java index 15b61d5da07..ec35fb7cd35 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Project.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Project.java @@ -26,7 +26,6 @@ import org.jooq.UniqueKey; import org.jooq.impl.DSL; import org.jooq.impl.TableImpl; -import org.jooq.types.UInteger; /** @@ -35,7 +34,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Project extends TableImpl { - private static final long serialVersionUID = 586105130; + private static final long serialVersionUID = -1098497844; /** * The reference instance of texera_db.project @@ -53,7 +52,7 @@ public Class getRecordType() { /** * The column texera_db.project.pid. */ - public final TableField PID = createField(DSL.name("pid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false).identity(true), this, ""); + public final TableField PID = createField(DSL.name("pid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true).defaultValue(org.jooq.impl.DSL.field("nextval('texera_db.project_pid_seq'::regclass)", org.jooq.impl.SQLDataType.INTEGER)), this, ""); /** * The column texera_db.project.name. @@ -68,7 +67,7 @@ public Class getRecordType() { /** * The column texera_db.project.owner_id. */ - public final TableField OWNER_ID = createField(DSL.name("owner_id"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField OWNER_ID = createField(DSL.name("owner_id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.project.creation_time. @@ -120,31 +119,31 @@ public Schema getSchema() { @Override public List getIndexes() { - return Arrays.asList(Indexes.PROJECT_IDX_USER_PROJECT_NAME_DESCRIPTION, Indexes.PROJECT_OWNER_ID, Indexes.PROJECT_PRIMARY); + return Arrays.asList(Indexes.PROJECT_OWNER_ID_NAME_KEY, Indexes.PROJECT_PKEY); } @Override - public Identity getIdentity() { + public Identity getIdentity() { return Keys.IDENTITY_PROJECT; } @Override public UniqueKey getPrimaryKey() { - return Keys.KEY_PROJECT_PRIMARY; + return Keys.PROJECT_PKEY; } @Override public List> getKeys() { - return Arrays.>asList(Keys.KEY_PROJECT_PRIMARY, Keys.KEY_PROJECT_OWNER_ID); + return Arrays.>asList(Keys.PROJECT_PKEY, Keys.PROJECT_OWNER_ID_NAME_KEY); } @Override public List> getReferences() { - return Arrays.>asList(Keys.PROJECT_IBFK_1); + return Arrays.>asList(Keys.PROJECT__PROJECT_OWNER_ID_FKEY); } public User user() { - return new User(this, Keys.PROJECT_IBFK_1); + return new User(this, Keys.PROJECT__PROJECT_OWNER_ID_FKEY); } @Override @@ -178,7 +177,7 @@ public Project rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row6 fieldsRow() { + public Row6 fieldsRow() { return (Row6) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/ProjectUserAccess.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/ProjectUserAccess.java index df930ea1982..bad8b021a81 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/ProjectUserAccess.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/ProjectUserAccess.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.Indexes; import edu.uci.ics.texera.dao.jooq.generated.Keys; import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; -import edu.uci.ics.texera.dao.jooq.generated.enums.ProjectUserAccessPrivilege; +import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum; import edu.uci.ics.texera.dao.jooq.generated.tables.records.ProjectUserAccessRecord; import java.util.Arrays; @@ -25,7 +25,6 @@ import org.jooq.UniqueKey; import org.jooq.impl.DSL; import org.jooq.impl.TableImpl; -import org.jooq.types.UInteger; /** @@ -34,7 +33,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class ProjectUserAccess extends TableImpl { - private static final long serialVersionUID = 1043932682; + private static final long serialVersionUID = -929790580; /** * The reference instance of texera_db.project_user_access @@ -52,17 +51,17 @@ public Class getRecordType() { /** * The column texera_db.project_user_access.uid. */ - public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.project_user_access.pid. */ - public final TableField PID = createField(DSL.name("pid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField PID = createField(DSL.name("pid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.project_user_access.privilege. */ - public final TableField PRIVILEGE = createField(DSL.name("privilege"), org.jooq.impl.SQLDataType.VARCHAR(5).nullable(false).defaultValue(org.jooq.impl.DSL.inline("NONE", org.jooq.impl.SQLDataType.VARCHAR)).asEnumDataType(edu.uci.ics.texera.dao.jooq.generated.enums.ProjectUserAccessPrivilege.class), this, ""); + public final TableField PRIVILEGE = createField(DSL.name("privilege"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false).defaultValue(org.jooq.impl.DSL.field("'NONE'::texera_db.privilege_enum", org.jooq.impl.SQLDataType.VARCHAR)).asEnumDataType(edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum.class), this, ""); /** * Create a texera_db.project_user_access table reference @@ -104,30 +103,30 @@ public Schema getSchema() { @Override public List getIndexes() { - return Arrays.asList(Indexes.PROJECT_USER_ACCESS_PID, Indexes.PROJECT_USER_ACCESS_PRIMARY); + return Arrays.asList(Indexes.PROJECT_USER_ACCESS_PKEY); } @Override public UniqueKey getPrimaryKey() { - return Keys.KEY_PROJECT_USER_ACCESS_PRIMARY; + return Keys.PROJECT_USER_ACCESS_PKEY; } @Override public List> getKeys() { - return Arrays.>asList(Keys.KEY_PROJECT_USER_ACCESS_PRIMARY); + return Arrays.>asList(Keys.PROJECT_USER_ACCESS_PKEY); } @Override public List> getReferences() { - return Arrays.>asList(Keys.PROJECT_USER_ACCESS_IBFK_1, Keys.PROJECT_USER_ACCESS_IBFK_2); + return Arrays.>asList(Keys.PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_UID_FKEY, Keys.PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_PID_FKEY); } public User user() { - return new User(this, Keys.PROJECT_USER_ACCESS_IBFK_1); + return new User(this, Keys.PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_UID_FKEY); } public Project project() { - return new Project(this, Keys.PROJECT_USER_ACCESS_IBFK_2); + return new Project(this, Keys.PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_PID_FKEY); } @Override @@ -161,7 +160,7 @@ public ProjectUserAccess rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row3 fieldsRow() { + public Row3 fieldsRow() { return (Row3) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/PublicProject.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/PublicProject.java index 91eb9e5d10e..23cd2762fba 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/PublicProject.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/PublicProject.java @@ -24,7 +24,6 @@ import org.jooq.UniqueKey; import org.jooq.impl.DSL; import org.jooq.impl.TableImpl; -import org.jooq.types.UInteger; /** @@ -33,7 +32,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class PublicProject extends TableImpl { - private static final long serialVersionUID = -1376825429; + private static final long serialVersionUID = -400941639; /** * The reference instance of texera_db.public_project @@ -51,12 +50,12 @@ public Class getRecordType() { /** * The column texera_db.public_project.pid. */ - public final TableField PID = createField(DSL.name("pid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField PID = createField(DSL.name("pid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.public_project.uid. */ - public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED, this, ""); + public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGER, this, ""); /** * Create a texera_db.public_project table reference @@ -98,26 +97,26 @@ public Schema getSchema() { @Override public List getIndexes() { - return Arrays.asList(Indexes.PUBLIC_PROJECT_PRIMARY); + return Arrays.asList(Indexes.PUBLIC_PROJECT_PKEY); } @Override public UniqueKey getPrimaryKey() { - return Keys.KEY_PUBLIC_PROJECT_PRIMARY; + return Keys.PUBLIC_PROJECT_PKEY; } @Override public List> getKeys() { - return Arrays.>asList(Keys.KEY_PUBLIC_PROJECT_PRIMARY); + return Arrays.>asList(Keys.PUBLIC_PROJECT_PKEY); } @Override public List> getReferences() { - return Arrays.>asList(Keys.PUBLIC_PROJECT_IBFK_1); + return Arrays.>asList(Keys.PUBLIC_PROJECT__PUBLIC_PROJECT_PID_FKEY); } public Project project() { - return new Project(this, Keys.PUBLIC_PROJECT_IBFK_1); + return new Project(this, Keys.PUBLIC_PROJECT__PUBLIC_PROJECT_PID_FKEY); } @Override @@ -151,7 +150,7 @@ public PublicProject rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row2 fieldsRow() { + public Row2 fieldsRow() { return (Row2) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/User.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/User.java index f750cadb718..ec149556c94 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/User.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/User.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.Indexes; import edu.uci.ics.texera.dao.jooq.generated.Keys; import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; -import edu.uci.ics.texera.dao.jooq.generated.enums.UserRole; +import edu.uci.ics.texera.dao.jooq.generated.enums.UserRoleEnum; import edu.uci.ics.texera.dao.jooq.generated.tables.records.UserRecord; import java.util.Arrays; @@ -26,7 +26,6 @@ import org.jooq.UniqueKey; import org.jooq.impl.DSL; import org.jooq.impl.TableImpl; -import org.jooq.types.UInteger; /** @@ -35,7 +34,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class User extends TableImpl { - private static final long serialVersionUID = 1447964225; + private static final long serialVersionUID = -544130431; /** * The reference instance of texera_db.user @@ -53,7 +52,7 @@ public Class getRecordType() { /** * The column texera_db.user.uid. */ - public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false).identity(true), this, ""); + public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true).defaultValue(org.jooq.impl.DSL.field("nextval('texera_db.user_uid_seq'::regclass)", org.jooq.impl.SQLDataType.INTEGER)), this, ""); /** * The column texera_db.user.name. @@ -78,7 +77,7 @@ public Class getRecordType() { /** * The column texera_db.user.role. */ - public final TableField ROLE = createField(DSL.name("role"), org.jooq.impl.SQLDataType.VARCHAR(10).nullable(false).defaultValue(org.jooq.impl.DSL.inline("INACTIVE", org.jooq.impl.SQLDataType.VARCHAR)).asEnumDataType(edu.uci.ics.texera.dao.jooq.generated.enums.UserRole.class), this, ""); + public final TableField ROLE = createField(DSL.name("role"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false).defaultValue(org.jooq.impl.DSL.field("'INACTIVE'::texera_db.user_role_enum", org.jooq.impl.SQLDataType.VARCHAR)).asEnumDataType(edu.uci.ics.texera.dao.jooq.generated.enums.UserRoleEnum.class), this, ""); /** * The column texera_db.user.google_avatar. @@ -125,22 +124,22 @@ public Schema getSchema() { @Override public List getIndexes() { - return Arrays.asList(Indexes.USER_EMAIL, Indexes.USER_GOOGLE_ID, Indexes.USER_IDX_USER_NAME, Indexes.USER_PRIMARY); + return Arrays.asList(Indexes.USER_EMAIL_KEY, Indexes.USER_GOOGLE_ID_KEY, Indexes.USER_PKEY); } @Override - public Identity getIdentity() { + public Identity getIdentity() { return Keys.IDENTITY_USER; } @Override public UniqueKey getPrimaryKey() { - return Keys.KEY_USER_PRIMARY; + return Keys.USER_PKEY; } @Override public List> getKeys() { - return Arrays.>asList(Keys.KEY_USER_PRIMARY, Keys.KEY_USER_EMAIL, Keys.KEY_USER_GOOGLE_ID); + return Arrays.>asList(Keys.USER_PKEY, Keys.USER_EMAIL_KEY, Keys.USER_GOOGLE_ID_KEY); } @Override @@ -174,7 +173,7 @@ public User rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row7 fieldsRow() { + public Row7 fieldsRow() { return (Row7) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserActivity.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserActivity.java index 3e2f18c29d7..e060b7d1a3f 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserActivity.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserActivity.java @@ -19,7 +19,6 @@ import org.jooq.TableField; import org.jooq.impl.DSL; import org.jooq.impl.TableImpl; -import org.jooq.types.UInteger; /** @@ -28,7 +27,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class UserActivity extends TableImpl { - private static final long serialVersionUID = -891466166; + private static final long serialVersionUID = -1337502871; /** * The reference instance of texera_db.user_activity @@ -46,12 +45,12 @@ public Class getRecordType() { /** * The column texera_db.user_activity.uid. */ - public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGERUNSIGNED)), this, ""); + public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.field("0", org.jooq.impl.SQLDataType.INTEGER)), this, ""); /** * The column texera_db.user_activity.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.user_activity.type. @@ -142,7 +141,7 @@ public UserActivity rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row6 fieldsRow() { + public Row6 fieldsRow() { return (Row6) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserConfig.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserConfig.java index f1a1e63e110..1fe6ee571a6 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserConfig.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserConfig.java @@ -24,7 +24,6 @@ import org.jooq.UniqueKey; import org.jooq.impl.DSL; import org.jooq.impl.TableImpl; -import org.jooq.types.UInteger; /** @@ -33,7 +32,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class UserConfig extends TableImpl { - private static final long serialVersionUID = 585099027; + private static final long serialVersionUID = 147042662; /** * The reference instance of texera_db.user_config @@ -51,7 +50,7 @@ public Class getRecordType() { /** * The column texera_db.user_config.uid. */ - public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.user_config.key. @@ -103,26 +102,26 @@ public Schema getSchema() { @Override public List getIndexes() { - return Arrays.asList(Indexes.USER_CONFIG_PRIMARY); + return Arrays.asList(Indexes.USER_CONFIG_PKEY); } @Override public UniqueKey getPrimaryKey() { - return Keys.KEY_USER_CONFIG_PRIMARY; + return Keys.USER_CONFIG_PKEY; } @Override public List> getKeys() { - return Arrays.>asList(Keys.KEY_USER_CONFIG_PRIMARY); + return Arrays.>asList(Keys.USER_CONFIG_PKEY); } @Override public List> getReferences() { - return Arrays.>asList(Keys.USER_CONFIG_IBFK_1); + return Arrays.>asList(Keys.USER_CONFIG__USER_CONFIG_UID_FKEY); } public User user() { - return new User(this, Keys.USER_CONFIG_IBFK_1); + return new User(this, Keys.USER_CONFIG__USER_CONFIG_UID_FKEY); } @Override @@ -156,7 +155,7 @@ public UserConfig rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row3 fieldsRow() { + public Row3 fieldsRow() { return (Row3) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Workflow.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Workflow.java index e730b28063e..7517516c128 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Workflow.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Workflow.java @@ -26,7 +26,6 @@ import org.jooq.UniqueKey; import org.jooq.impl.DSL; import org.jooq.impl.TableImpl; -import org.jooq.types.UInteger; /** @@ -35,7 +34,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Workflow extends TableImpl { - private static final long serialVersionUID = 1942522218; + private static final long serialVersionUID = 563652100; /** * The reference instance of texera_db.workflow @@ -50,6 +49,11 @@ public Class getRecordType() { return WorkflowRecord.class; } + /** + * The column texera_db.workflow.wid. + */ + public final TableField WID = createField(DSL.name("wid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true).defaultValue(org.jooq.impl.DSL.field("nextval('texera_db.workflow_wid_seq'::regclass)", org.jooq.impl.SQLDataType.INTEGER)), this, ""); + /** * The column texera_db.workflow.name. */ @@ -60,11 +64,6 @@ public Class getRecordType() { */ public final TableField DESCRIPTION = createField(DSL.name("description"), org.jooq.impl.SQLDataType.VARCHAR(500), this, ""); - /** - * The column texera_db.workflow.wid. - */ - public final TableField WID = createField(DSL.name("wid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false).identity(true), this, ""); - /** * The column texera_db.workflow.content. */ @@ -83,7 +82,7 @@ public Class getRecordType() { /** * The column texera_db.workflow.is_public. */ - public final TableField IS_PUBLIC = createField(DSL.name("is_public"), org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.TINYINT)), this, ""); + public final TableField IS_PUBLIC = createField(DSL.name("is_public"), org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("false", org.jooq.impl.SQLDataType.BOOLEAN)), this, ""); /** * Create a texera_db.workflow table reference @@ -125,22 +124,22 @@ public Schema getSchema() { @Override public List getIndexes() { - return Arrays.asList(Indexes.WORKFLOW_IDX_WORKFLOW_NAME_DESCRIPTION_CONTENT, Indexes.WORKFLOW_PRIMARY); + return Arrays.asList(Indexes.WORKFLOW_PKEY); } @Override - public Identity getIdentity() { + public Identity getIdentity() { return Keys.IDENTITY_WORKFLOW; } @Override public UniqueKey getPrimaryKey() { - return Keys.KEY_WORKFLOW_PRIMARY; + return Keys.WORKFLOW_PKEY; } @Override public List> getKeys() { - return Arrays.>asList(Keys.KEY_WORKFLOW_PRIMARY); + return Arrays.>asList(Keys.WORKFLOW_PKEY); } @Override @@ -174,7 +173,7 @@ public Workflow rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row7 fieldsRow() { + public Row7 fieldsRow() { return (Row7) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowExecutions.java index 2e30b3f3079..11325dc83ac 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowExecutions.java @@ -26,7 +26,6 @@ import org.jooq.UniqueKey; import org.jooq.impl.DSL; import org.jooq.impl.TableImpl; -import org.jooq.types.UInteger; /** @@ -35,7 +34,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowExecutions extends TableImpl { - private static final long serialVersionUID = 218864612; + private static final long serialVersionUID = -667560618; /** * The reference instance of texera_db.workflow_executions @@ -53,22 +52,22 @@ public Class getRecordType() { /** * The column texera_db.workflow_executions.eid. */ - public final TableField EID = createField(DSL.name("eid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false).identity(true), this, ""); + public final TableField EID = createField(DSL.name("eid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true).defaultValue(org.jooq.impl.DSL.field("nextval('texera_db.workflow_executions_eid_seq'::regclass)", org.jooq.impl.SQLDataType.INTEGER)), this, ""); /** * The column texera_db.workflow_executions.vid. */ - public final TableField VID = createField(DSL.name("vid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField VID = createField(DSL.name("vid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.workflow_executions.uid. */ - public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.workflow_executions.status. */ - public final TableField STATUS = createField(DSL.name("status"), org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaultValue(org.jooq.impl.DSL.inline("1", org.jooq.impl.SQLDataType.TINYINT)), this, ""); + public final TableField STATUS = createField(DSL.name("status"), org.jooq.impl.SQLDataType.SMALLINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("1", org.jooq.impl.SQLDataType.SMALLINT)), this, ""); /** * The column texera_db.workflow_executions.result. @@ -88,12 +87,12 @@ public Class getRecordType() { /** * The column texera_db.workflow_executions.bookmarked. */ - public final TableField BOOKMARKED = createField(DSL.name("bookmarked"), org.jooq.impl.SQLDataType.TINYINT.defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.TINYINT)), this, ""); + public final TableField BOOKMARKED = createField(DSL.name("bookmarked"), org.jooq.impl.SQLDataType.BOOLEAN.defaultValue(org.jooq.impl.DSL.field("false", org.jooq.impl.SQLDataType.BOOLEAN)), this, ""); /** * The column texera_db.workflow_executions.name. */ - public final TableField NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.VARCHAR(128).nullable(false).defaultValue(org.jooq.impl.DSL.inline("Untitled Execution", org.jooq.impl.SQLDataType.VARCHAR)), this, ""); + public final TableField NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.VARCHAR(128).nullable(false).defaultValue(org.jooq.impl.DSL.field("'Untitled Execution'::character varying", org.jooq.impl.SQLDataType.VARCHAR)), this, ""); /** * The column texera_db.workflow_executions.environment_version. @@ -145,35 +144,35 @@ public Schema getSchema() { @Override public List getIndexes() { - return Arrays.asList(Indexes.WORKFLOW_EXECUTIONS_PRIMARY, Indexes.WORKFLOW_EXECUTIONS_UID, Indexes.WORKFLOW_EXECUTIONS_VID); + return Arrays.asList(Indexes.WORKFLOW_EXECUTIONS_PKEY); } @Override - public Identity getIdentity() { + public Identity getIdentity() { return Keys.IDENTITY_WORKFLOW_EXECUTIONS; } @Override public UniqueKey getPrimaryKey() { - return Keys.KEY_WORKFLOW_EXECUTIONS_PRIMARY; + return Keys.WORKFLOW_EXECUTIONS_PKEY; } @Override public List> getKeys() { - return Arrays.>asList(Keys.KEY_WORKFLOW_EXECUTIONS_PRIMARY); + return Arrays.>asList(Keys.WORKFLOW_EXECUTIONS_PKEY); } @Override public List> getReferences() { - return Arrays.>asList(Keys.WORKFLOW_EXECUTIONS_IBFK_1, Keys.WORKFLOW_EXECUTIONS_IBFK_2); + return Arrays.>asList(Keys.WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_VID_FKEY, Keys.WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_UID_FKEY); } public WorkflowVersion workflowVersion() { - return new WorkflowVersion(this, Keys.WORKFLOW_EXECUTIONS_IBFK_1); + return new WorkflowVersion(this, Keys.WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_VID_FKEY); } public User user() { - return new User(this, Keys.WORKFLOW_EXECUTIONS_IBFK_2); + return new User(this, Keys.WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_UID_FKEY); } @Override @@ -207,7 +206,7 @@ public WorkflowExecutions rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row11 fieldsRow() { + public Row11 fieldsRow() { return (Row11) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowOfProject.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowOfProject.java index 7d44d5ce922..4c85189dacd 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowOfProject.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowOfProject.java @@ -24,7 +24,6 @@ import org.jooq.UniqueKey; import org.jooq.impl.DSL; import org.jooq.impl.TableImpl; -import org.jooq.types.UInteger; /** @@ -33,7 +32,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowOfProject extends TableImpl { - private static final long serialVersionUID = 264282867; + private static final long serialVersionUID = -1484117734; /** * The reference instance of texera_db.workflow_of_project @@ -51,12 +50,12 @@ public Class getRecordType() { /** * The column texera_db.workflow_of_project.wid. */ - public final TableField WID = createField(DSL.name("wid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField WID = createField(DSL.name("wid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.workflow_of_project.pid. */ - public final TableField PID = createField(DSL.name("pid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField PID = createField(DSL.name("pid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * Create a texera_db.workflow_of_project table reference @@ -98,30 +97,30 @@ public Schema getSchema() { @Override public List getIndexes() { - return Arrays.asList(Indexes.WORKFLOW_OF_PROJECT_PID, Indexes.WORKFLOW_OF_PROJECT_PRIMARY); + return Arrays.asList(Indexes.WORKFLOW_OF_PROJECT_PKEY); } @Override public UniqueKey getPrimaryKey() { - return Keys.KEY_WORKFLOW_OF_PROJECT_PRIMARY; + return Keys.WORKFLOW_OF_PROJECT_PKEY; } @Override public List> getKeys() { - return Arrays.>asList(Keys.KEY_WORKFLOW_OF_PROJECT_PRIMARY); + return Arrays.>asList(Keys.WORKFLOW_OF_PROJECT_PKEY); } @Override public List> getReferences() { - return Arrays.>asList(Keys.WORKFLOW_OF_PROJECT_IBFK_1, Keys.WORKFLOW_OF_PROJECT_IBFK_2); + return Arrays.>asList(Keys.WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_WID_FKEY, Keys.WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_PID_FKEY); } public Workflow workflow() { - return new Workflow(this, Keys.WORKFLOW_OF_PROJECT_IBFK_1); + return new Workflow(this, Keys.WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_WID_FKEY); } public Project project() { - return new Project(this, Keys.WORKFLOW_OF_PROJECT_IBFK_2); + return new Project(this, Keys.WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_PID_FKEY); } @Override @@ -155,7 +154,7 @@ public WorkflowOfProject rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row2 fieldsRow() { + public Row2 fieldsRow() { return (Row2) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowOfUser.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowOfUser.java index f8487019ef2..d9c48ee567f 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowOfUser.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowOfUser.java @@ -24,7 +24,6 @@ import org.jooq.UniqueKey; import org.jooq.impl.DSL; import org.jooq.impl.TableImpl; -import org.jooq.types.UInteger; /** @@ -33,7 +32,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowOfUser extends TableImpl { - private static final long serialVersionUID = 754261799; + private static final long serialVersionUID = -917749367; /** * The reference instance of texera_db.workflow_of_user @@ -51,12 +50,12 @@ public Class getRecordType() { /** * The column texera_db.workflow_of_user.uid. */ - public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.workflow_of_user.wid. */ - public final TableField WID = createField(DSL.name("wid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField WID = createField(DSL.name("wid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * Create a texera_db.workflow_of_user table reference @@ -98,30 +97,30 @@ public Schema getSchema() { @Override public List getIndexes() { - return Arrays.asList(Indexes.WORKFLOW_OF_USER_PRIMARY, Indexes.WORKFLOW_OF_USER_WID); + return Arrays.asList(Indexes.WORKFLOW_OF_USER_PKEY); } @Override public UniqueKey getPrimaryKey() { - return Keys.KEY_WORKFLOW_OF_USER_PRIMARY; + return Keys.WORKFLOW_OF_USER_PKEY; } @Override public List> getKeys() { - return Arrays.>asList(Keys.KEY_WORKFLOW_OF_USER_PRIMARY); + return Arrays.>asList(Keys.WORKFLOW_OF_USER_PKEY); } @Override public List> getReferences() { - return Arrays.>asList(Keys.WORKFLOW_OF_USER_IBFK_1, Keys.WORKFLOW_OF_USER_IBFK_2); + return Arrays.>asList(Keys.WORKFLOW_OF_USER__WORKFLOW_OF_USER_UID_FKEY, Keys.WORKFLOW_OF_USER__WORKFLOW_OF_USER_WID_FKEY); } public User user() { - return new User(this, Keys.WORKFLOW_OF_USER_IBFK_1); + return new User(this, Keys.WORKFLOW_OF_USER__WORKFLOW_OF_USER_UID_FKEY); } public Workflow workflow() { - return new Workflow(this, Keys.WORKFLOW_OF_USER_IBFK_2); + return new Workflow(this, Keys.WORKFLOW_OF_USER__WORKFLOW_OF_USER_WID_FKEY); } @Override @@ -155,7 +154,7 @@ public WorkflowOfUser rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row2 fieldsRow() { + public Row2 fieldsRow() { return (Row2) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowUserAccess.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowUserAccess.java index 27ed271e6eb..8ba7eb0ada4 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowUserAccess.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowUserAccess.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.Indexes; import edu.uci.ics.texera.dao.jooq.generated.Keys; import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; -import edu.uci.ics.texera.dao.jooq.generated.enums.WorkflowUserAccessPrivilege; +import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum; import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowUserAccessRecord; import java.util.Arrays; @@ -25,7 +25,6 @@ import org.jooq.UniqueKey; import org.jooq.impl.DSL; import org.jooq.impl.TableImpl; -import org.jooq.types.UInteger; /** @@ -34,7 +33,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowUserAccess extends TableImpl { - private static final long serialVersionUID = 349641006; + private static final long serialVersionUID = 1690745287; /** * The reference instance of texera_db.workflow_user_access @@ -52,17 +51,17 @@ public Class getRecordType() { /** * The column texera_db.workflow_user_access.uid. */ - public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.workflow_user_access.wid. */ - public final TableField WID = createField(DSL.name("wid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField WID = createField(DSL.name("wid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.workflow_user_access.privilege. */ - public final TableField PRIVILEGE = createField(DSL.name("privilege"), org.jooq.impl.SQLDataType.VARCHAR(5).nullable(false).defaultValue(org.jooq.impl.DSL.inline("NONE", org.jooq.impl.SQLDataType.VARCHAR)).asEnumDataType(edu.uci.ics.texera.dao.jooq.generated.enums.WorkflowUserAccessPrivilege.class), this, ""); + public final TableField PRIVILEGE = createField(DSL.name("privilege"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false).defaultValue(org.jooq.impl.DSL.field("'NONE'::texera_db.privilege_enum", org.jooq.impl.SQLDataType.VARCHAR)).asEnumDataType(edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum.class), this, ""); /** * Create a texera_db.workflow_user_access table reference @@ -104,30 +103,30 @@ public Schema getSchema() { @Override public List getIndexes() { - return Arrays.asList(Indexes.WORKFLOW_USER_ACCESS_PRIMARY, Indexes.WORKFLOW_USER_ACCESS_WID); + return Arrays.asList(Indexes.WORKFLOW_USER_ACCESS_PKEY); } @Override public UniqueKey getPrimaryKey() { - return Keys.KEY_WORKFLOW_USER_ACCESS_PRIMARY; + return Keys.WORKFLOW_USER_ACCESS_PKEY; } @Override public List> getKeys() { - return Arrays.>asList(Keys.KEY_WORKFLOW_USER_ACCESS_PRIMARY); + return Arrays.>asList(Keys.WORKFLOW_USER_ACCESS_PKEY); } @Override public List> getReferences() { - return Arrays.>asList(Keys.WORKFLOW_USER_ACCESS_IBFK_1, Keys.WORKFLOW_USER_ACCESS_IBFK_2); + return Arrays.>asList(Keys.WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_UID_FKEY, Keys.WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_WID_FKEY); } public User user() { - return new User(this, Keys.WORKFLOW_USER_ACCESS_IBFK_1); + return new User(this, Keys.WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_UID_FKEY); } public Workflow workflow() { - return new Workflow(this, Keys.WORKFLOW_USER_ACCESS_IBFK_2); + return new Workflow(this, Keys.WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_WID_FKEY); } @Override @@ -161,7 +160,7 @@ public WorkflowUserAccess rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row3 fieldsRow() { + public Row3 fieldsRow() { return (Row3) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowUserClones.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowUserClones.java index 116c6e22db4..f1c5bc22009 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowUserClones.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowUserClones.java @@ -24,7 +24,6 @@ import org.jooq.UniqueKey; import org.jooq.impl.DSL; import org.jooq.impl.TableImpl; -import org.jooq.types.UInteger; /** @@ -33,7 +32,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowUserClones extends TableImpl { - private static final long serialVersionUID = 2096098879; + private static final long serialVersionUID = 276154650; /** * The reference instance of texera_db.workflow_user_clones @@ -51,12 +50,12 @@ public Class getRecordType() { /** * The column texera_db.workflow_user_clones.uid. */ - public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.workflow_user_clones.wid. */ - public final TableField WID = createField(DSL.name("wid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField WID = createField(DSL.name("wid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * Create a texera_db.workflow_user_clones table reference @@ -98,30 +97,30 @@ public Schema getSchema() { @Override public List getIndexes() { - return Arrays.asList(Indexes.WORKFLOW_USER_CLONES_PRIMARY, Indexes.WORKFLOW_USER_CLONES_WID); + return Arrays.asList(Indexes.WORKFLOW_USER_CLONES_PKEY); } @Override public UniqueKey getPrimaryKey() { - return Keys.KEY_WORKFLOW_USER_CLONES_PRIMARY; + return Keys.WORKFLOW_USER_CLONES_PKEY; } @Override public List> getKeys() { - return Arrays.>asList(Keys.KEY_WORKFLOW_USER_CLONES_PRIMARY); + return Arrays.>asList(Keys.WORKFLOW_USER_CLONES_PKEY); } @Override public List> getReferences() { - return Arrays.>asList(Keys.WORKFLOW_USER_CLONES_IBFK_1, Keys.WORKFLOW_USER_CLONES_IBFK_2); + return Arrays.>asList(Keys.WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_UID_FKEY, Keys.WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_WID_FKEY); } public User user() { - return new User(this, Keys.WORKFLOW_USER_CLONES_IBFK_1); + return new User(this, Keys.WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_UID_FKEY); } public Workflow workflow() { - return new Workflow(this, Keys.WORKFLOW_USER_CLONES_IBFK_2); + return new Workflow(this, Keys.WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_WID_FKEY); } @Override @@ -155,7 +154,7 @@ public WorkflowUserClones rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row2 fieldsRow() { + public Row2 fieldsRow() { return (Row2) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowUserLikes.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowUserLikes.java index 38fd8010ca3..7703af70196 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowUserLikes.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowUserLikes.java @@ -24,7 +24,6 @@ import org.jooq.UniqueKey; import org.jooq.impl.DSL; import org.jooq.impl.TableImpl; -import org.jooq.types.UInteger; /** @@ -33,7 +32,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowUserLikes extends TableImpl { - private static final long serialVersionUID = -1712382581; + private static final long serialVersionUID = -1591665538; /** * The reference instance of texera_db.workflow_user_likes @@ -51,12 +50,12 @@ public Class getRecordType() { /** * The column texera_db.workflow_user_likes.uid. */ - public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.workflow_user_likes.wid. */ - public final TableField WID = createField(DSL.name("wid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField WID = createField(DSL.name("wid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * Create a texera_db.workflow_user_likes table reference @@ -98,30 +97,30 @@ public Schema getSchema() { @Override public List getIndexes() { - return Arrays.asList(Indexes.WORKFLOW_USER_LIKES_PRIMARY, Indexes.WORKFLOW_USER_LIKES_WID); + return Arrays.asList(Indexes.WORKFLOW_USER_LIKES_PKEY); } @Override public UniqueKey getPrimaryKey() { - return Keys.KEY_WORKFLOW_USER_LIKES_PRIMARY; + return Keys.WORKFLOW_USER_LIKES_PKEY; } @Override public List> getKeys() { - return Arrays.>asList(Keys.KEY_WORKFLOW_USER_LIKES_PRIMARY); + return Arrays.>asList(Keys.WORKFLOW_USER_LIKES_PKEY); } @Override public List> getReferences() { - return Arrays.>asList(Keys.WORKFLOW_USER_LIKES_IBFK_1, Keys.WORKFLOW_USER_LIKES_IBFK_2); + return Arrays.>asList(Keys.WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_UID_FKEY, Keys.WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_WID_FKEY); } public User user() { - return new User(this, Keys.WORKFLOW_USER_LIKES_IBFK_1); + return new User(this, Keys.WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_UID_FKEY); } public Workflow workflow() { - return new Workflow(this, Keys.WORKFLOW_USER_LIKES_IBFK_2); + return new Workflow(this, Keys.WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_WID_FKEY); } @Override @@ -155,7 +154,7 @@ public WorkflowUserLikes rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row2 fieldsRow() { + public Row2 fieldsRow() { return (Row2) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowVersion.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowVersion.java index 7f0fe1e3275..34804b38b7d 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowVersion.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowVersion.java @@ -26,7 +26,6 @@ import org.jooq.UniqueKey; import org.jooq.impl.DSL; import org.jooq.impl.TableImpl; -import org.jooq.types.UInteger; /** @@ -35,7 +34,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowVersion extends TableImpl { - private static final long serialVersionUID = -1813902570; + private static final long serialVersionUID = -1500066128; /** * The reference instance of texera_db.workflow_version @@ -53,12 +52,12 @@ public Class getRecordType() { /** * The column texera_db.workflow_version.vid. */ - public final TableField VID = createField(DSL.name("vid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false).identity(true), this, ""); + public final TableField VID = createField(DSL.name("vid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true).defaultValue(org.jooq.impl.DSL.field("nextval('texera_db.workflow_version_vid_seq'::regclass)", org.jooq.impl.SQLDataType.INTEGER)), this, ""); /** * The column texera_db.workflow_version.wid. */ - public final TableField WID = createField(DSL.name("wid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField WID = createField(DSL.name("wid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.workflow_version.content. @@ -110,31 +109,31 @@ public Schema getSchema() { @Override public List getIndexes() { - return Arrays.asList(Indexes.WORKFLOW_VERSION_PRIMARY, Indexes.WORKFLOW_VERSION_WID); + return Arrays.asList(Indexes.WORKFLOW_VERSION_PKEY); } @Override - public Identity getIdentity() { + public Identity getIdentity() { return Keys.IDENTITY_WORKFLOW_VERSION; } @Override public UniqueKey getPrimaryKey() { - return Keys.KEY_WORKFLOW_VERSION_PRIMARY; + return Keys.WORKFLOW_VERSION_PKEY; } @Override public List> getKeys() { - return Arrays.>asList(Keys.KEY_WORKFLOW_VERSION_PRIMARY); + return Arrays.>asList(Keys.WORKFLOW_VERSION_PKEY); } @Override public List> getReferences() { - return Arrays.>asList(Keys.WORKFLOW_VERSION_IBFK_1); + return Arrays.>asList(Keys.WORKFLOW_VERSION__WORKFLOW_VERSION_WID_FKEY); } public Workflow workflow() { - return new Workflow(this, Keys.WORKFLOW_VERSION_IBFK_1); + return new Workflow(this, Keys.WORKFLOW_VERSION__WORKFLOW_VERSION_WID_FKEY); } @Override @@ -168,7 +167,7 @@ public WorkflowVersion rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row4 fieldsRow() { + public Row4 fieldsRow() { return (Row4) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowViewCount.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowViewCount.java index 4e920b53b45..baf44719719 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowViewCount.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowViewCount.java @@ -24,7 +24,6 @@ import org.jooq.UniqueKey; import org.jooq.impl.DSL; import org.jooq.impl.TableImpl; -import org.jooq.types.UInteger; /** @@ -33,7 +32,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowViewCount extends TableImpl { - private static final long serialVersionUID = -1514441832; + private static final long serialVersionUID = 1518799894; /** * The reference instance of texera_db.workflow_view_count @@ -51,12 +50,12 @@ public Class getRecordType() { /** * The column texera_db.workflow_view_count.wid. */ - public final TableField WID = createField(DSL.name("wid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField WID = createField(DSL.name("wid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.workflow_view_count.view_count. */ - public final TableField VIEW_COUNT = createField(DSL.name("view_count"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGERUNSIGNED)), this, ""); + public final TableField VIEW_COUNT = createField(DSL.name("view_count"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.field("0", org.jooq.impl.SQLDataType.INTEGER)), this, ""); /** * Create a texera_db.workflow_view_count table reference @@ -98,26 +97,26 @@ public Schema getSchema() { @Override public List getIndexes() { - return Arrays.asList(Indexes.WORKFLOW_VIEW_COUNT_PRIMARY); + return Arrays.asList(Indexes.WORKFLOW_VIEW_COUNT_PKEY); } @Override public UniqueKey getPrimaryKey() { - return Keys.KEY_WORKFLOW_VIEW_COUNT_PRIMARY; + return Keys.WORKFLOW_VIEW_COUNT_PKEY; } @Override public List> getKeys() { - return Arrays.>asList(Keys.KEY_WORKFLOW_VIEW_COUNT_PRIMARY); + return Arrays.>asList(Keys.WORKFLOW_VIEW_COUNT_PKEY); } @Override public List> getReferences() { - return Arrays.>asList(Keys.WORKFLOW_VIEW_COUNT_IBFK_1); + return Arrays.>asList(Keys.WORKFLOW_VIEW_COUNT__WORKFLOW_VIEW_COUNT_WID_FKEY); } public Workflow workflow() { - return new Workflow(this, Keys.WORKFLOW_VIEW_COUNT_IBFK_1); + return new Workflow(this, Keys.WORKFLOW_VIEW_COUNT__WORKFLOW_VIEW_COUNT_WID_FKEY); } @Override @@ -151,7 +150,7 @@ public WorkflowViewCount rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row2 fieldsRow() { + public Row2 fieldsRow() { return (Row2) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetDao.java index 4668bef3a36..cda0961e0c9 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetDao.java @@ -12,14 +12,13 @@ import org.jooq.Configuration; import org.jooq.impl.DAOImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class DatasetDao extends DAOImpl { +public class DatasetDao extends DAOImpl { /** * Create a new DatasetDao without any configuration @@ -36,42 +35,42 @@ public DatasetDao(Configuration configuration) { } @Override - public UInteger getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.Dataset object) { + public Integer getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.Dataset object) { return object.getDid(); } /** * Fetch records that have did BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfDid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfDid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(Dataset.DATASET.DID, lowerInclusive, upperInclusive); } /** * Fetch records that have did IN (values) */ - public List fetchByDid(UInteger... values) { + public List fetchByDid(Integer... values) { return fetch(Dataset.DATASET.DID, values); } /** * Fetch a unique record that has did = value */ - public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.Dataset fetchOneByDid(UInteger value) { + public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.Dataset fetchOneByDid(Integer value) { return fetchOne(Dataset.DATASET.DID, value); } /** * Fetch records that have owner_uid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfOwnerUid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfOwnerUid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(Dataset.DATASET.OWNER_UID, lowerInclusive, upperInclusive); } /** * Fetch records that have owner_uid IN (values) */ - public List fetchByOwnerUid(UInteger... values) { + public List fetchByOwnerUid(Integer... values) { return fetch(Dataset.DATASET.OWNER_UID, values); } @@ -92,14 +91,14 @@ public List fetchByN /** * Fetch records that have is_public BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfIsPublic(Byte lowerInclusive, Byte upperInclusive) { + public List fetchRangeOfIsPublic(Boolean lowerInclusive, Boolean upperInclusive) { return fetchRange(Dataset.DATASET.IS_PUBLIC, lowerInclusive, upperInclusive); } /** * Fetch records that have is_public IN (values) */ - public List fetchByIsPublic(Byte... values) { + public List fetchByIsPublic(Boolean... values) { return fetch(Dataset.DATASET.IS_PUBLIC, values); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetUserAccessDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetUserAccessDao.java index b427d9a4f25..b50c350af5c 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetUserAccessDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetUserAccessDao.java @@ -4,7 +4,7 @@ package edu.uci.ics.texera.dao.jooq.generated.tables.daos; -import edu.uci.ics.texera.dao.jooq.generated.enums.DatasetUserAccessPrivilege; +import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum; import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetUserAccess; import edu.uci.ics.texera.dao.jooq.generated.tables.records.DatasetUserAccessRecord; @@ -13,14 +13,13 @@ import org.jooq.Configuration; import org.jooq.Record2; import org.jooq.impl.DAOImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class DatasetUserAccessDao extends DAOImpl> { +public class DatasetUserAccessDao extends DAOImpl> { /** * Create a new DatasetUserAccessDao without any configuration @@ -37,49 +36,49 @@ public DatasetUserAccessDao(Configuration configuration) { } @Override - public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.DatasetUserAccess object) { + public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.DatasetUserAccess object) { return compositeKeyRecord(object.getDid(), object.getUid()); } /** * Fetch records that have did BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfDid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfDid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(DatasetUserAccess.DATASET_USER_ACCESS.DID, lowerInclusive, upperInclusive); } /** * Fetch records that have did IN (values) */ - public List fetchByDid(UInteger... values) { + public List fetchByDid(Integer... values) { return fetch(DatasetUserAccess.DATASET_USER_ACCESS.DID, values); } /** * Fetch records that have uid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfUid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfUid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(DatasetUserAccess.DATASET_USER_ACCESS.UID, lowerInclusive, upperInclusive); } /** * Fetch records that have uid IN (values) */ - public List fetchByUid(UInteger... values) { + public List fetchByUid(Integer... values) { return fetch(DatasetUserAccess.DATASET_USER_ACCESS.UID, values); } /** * Fetch records that have privilege BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfPrivilege(DatasetUserAccessPrivilege lowerInclusive, DatasetUserAccessPrivilege upperInclusive) { + public List fetchRangeOfPrivilege(PrivilegeEnum lowerInclusive, PrivilegeEnum upperInclusive) { return fetchRange(DatasetUserAccess.DATASET_USER_ACCESS.PRIVILEGE, lowerInclusive, upperInclusive); } /** * Fetch records that have privilege IN (values) */ - public List fetchByPrivilege(DatasetUserAccessPrivilege... values) { + public List fetchByPrivilege(PrivilegeEnum... values) { return fetch(DatasetUserAccess.DATASET_USER_ACCESS.PRIVILEGE, values); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetVersionDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetVersionDao.java index 9f8aca9ab6e..bf44470ed41 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetVersionDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetVersionDao.java @@ -12,14 +12,13 @@ import org.jooq.Configuration; import org.jooq.impl.DAOImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class DatasetVersionDao extends DAOImpl { +public class DatasetVersionDao extends DAOImpl { /** * Create a new DatasetVersionDao without any configuration @@ -36,56 +35,56 @@ public DatasetVersionDao(Configuration configuration) { } @Override - public UInteger getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.DatasetVersion object) { + public Integer getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.DatasetVersion object) { return object.getDvid(); } /** * Fetch records that have dvid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfDvid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfDvid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(DatasetVersion.DATASET_VERSION.DVID, lowerInclusive, upperInclusive); } /** * Fetch records that have dvid IN (values) */ - public List fetchByDvid(UInteger... values) { + public List fetchByDvid(Integer... values) { return fetch(DatasetVersion.DATASET_VERSION.DVID, values); } /** * Fetch a unique record that has dvid = value */ - public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.DatasetVersion fetchOneByDvid(UInteger value) { + public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.DatasetVersion fetchOneByDvid(Integer value) { return fetchOne(DatasetVersion.DATASET_VERSION.DVID, value); } /** * Fetch records that have did BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfDid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfDid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(DatasetVersion.DATASET_VERSION.DID, lowerInclusive, upperInclusive); } /** * Fetch records that have did IN (values) */ - public List fetchByDid(UInteger... values) { + public List fetchByDid(Integer... values) { return fetch(DatasetVersion.DATASET_VERSION.DID, values); } /** * Fetch records that have creator_uid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfCreatorUid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfCreatorUid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(DatasetVersion.DATASET_VERSION.CREATOR_UID, lowerInclusive, upperInclusive); } /** * Fetch records that have creator_uid IN (values) */ - public List fetchByCreatorUid(UInteger... values) { + public List fetchByCreatorUid(Integer... values) { return fetch(DatasetVersion.DATASET_VERSION.CREATOR_UID, values); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorExecutionsDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorExecutionsDao.java index cb63b6b84b5..0b04ba2961c 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorExecutionsDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorExecutionsDao.java @@ -11,15 +11,13 @@ import org.jooq.Configuration; import org.jooq.impl.DAOImpl; -import org.jooq.types.UInteger; -import org.jooq.types.ULong; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class OperatorExecutionsDao extends DAOImpl { +public class OperatorExecutionsDao extends DAOImpl { /** * Create a new OperatorExecutionsDao without any configuration @@ -36,42 +34,42 @@ public OperatorExecutionsDao(Configuration configuration) { } @Override - public ULong getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorExecutions object) { + public Long getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorExecutions object) { return object.getOperatorExecutionId(); } /** * Fetch records that have operator_execution_id BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfOperatorExecutionId(ULong lowerInclusive, ULong upperInclusive) { + public List fetchRangeOfOperatorExecutionId(Long lowerInclusive, Long upperInclusive) { return fetchRange(OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID, lowerInclusive, upperInclusive); } /** * Fetch records that have operator_execution_id IN (values) */ - public List fetchByOperatorExecutionId(ULong... values) { + public List fetchByOperatorExecutionId(Long... values) { return fetch(OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID, values); } /** * Fetch a unique record that has operator_execution_id = value */ - public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorExecutions fetchOneByOperatorExecutionId(ULong value) { + public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorExecutions fetchOneByOperatorExecutionId(Long value) { return fetchOne(OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID, value); } /** * Fetch records that have workflow_execution_id BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfWorkflowExecutionId(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfWorkflowExecutionId(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID, lowerInclusive, upperInclusive); } /** * Fetch records that have workflow_execution_id IN (values) */ - public List fetchByWorkflowExecutionId(UInteger... values) { + public List fetchByWorkflowExecutionId(Integer... values) { return fetch(OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID, values); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorRuntimeStatisticsDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorRuntimeStatisticsDao.java index 8f7a79d5aa6..7fbedf4a3ea 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorRuntimeStatisticsDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorRuntimeStatisticsDao.java @@ -13,15 +13,13 @@ import org.jooq.Configuration; import org.jooq.Record2; import org.jooq.impl.DAOImpl; -import org.jooq.types.UInteger; -import org.jooq.types.ULong; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class OperatorRuntimeStatisticsDao extends DAOImpl> { +public class OperatorRuntimeStatisticsDao extends DAOImpl> { /** * Create a new OperatorRuntimeStatisticsDao without any configuration @@ -38,21 +36,21 @@ public OperatorRuntimeStatisticsDao(Configuration configuration) { } @Override - public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorRuntimeStatistics object) { + public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorRuntimeStatistics object) { return compositeKeyRecord(object.getOperatorExecutionId(), object.getTime()); } /** * Fetch records that have operator_execution_id BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfOperatorExecutionId(ULong lowerInclusive, ULong upperInclusive) { + public List fetchRangeOfOperatorExecutionId(Long lowerInclusive, Long upperInclusive) { return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OPERATOR_EXECUTION_ID, lowerInclusive, upperInclusive); } /** * Fetch records that have operator_execution_id IN (values) */ - public List fetchByOperatorExecutionId(ULong... values) { + public List fetchByOperatorExecutionId(Long... values) { return fetch(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OPERATOR_EXECUTION_ID, values); } @@ -73,98 +71,98 @@ public Listinput_tuple_cnt BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfInputTupleCnt(ULong lowerInclusive, ULong upperInclusive) { + public List fetchRangeOfInputTupleCnt(Long lowerInclusive, Long upperInclusive) { return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.INPUT_TUPLE_CNT, lowerInclusive, upperInclusive); } /** * Fetch records that have input_tuple_cnt IN (values) */ - public List fetchByInputTupleCnt(ULong... values) { + public List fetchByInputTupleCnt(Long... values) { return fetch(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.INPUT_TUPLE_CNT, values); } /** * Fetch records that have output_tuple_cnt BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfOutputTupleCnt(ULong lowerInclusive, ULong upperInclusive) { + public List fetchRangeOfOutputTupleCnt(Long lowerInclusive, Long upperInclusive) { return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OUTPUT_TUPLE_CNT, lowerInclusive, upperInclusive); } /** * Fetch records that have output_tuple_cnt IN (values) */ - public List fetchByOutputTupleCnt(ULong... values) { + public List fetchByOutputTupleCnt(Long... values) { return fetch(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OUTPUT_TUPLE_CNT, values); } /** * Fetch records that have status BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfStatus(Byte lowerInclusive, Byte upperInclusive) { + public List fetchRangeOfStatus(Short lowerInclusive, Short upperInclusive) { return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.STATUS, lowerInclusive, upperInclusive); } /** * Fetch records that have status IN (values) */ - public List fetchByStatus(Byte... values) { + public List fetchByStatus(Short... values) { return fetch(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.STATUS, values); } /** * Fetch records that have data_processing_time BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfDataProcessingTime(ULong lowerInclusive, ULong upperInclusive) { + public List fetchRangeOfDataProcessingTime(Long lowerInclusive, Long upperInclusive) { return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.DATA_PROCESSING_TIME, lowerInclusive, upperInclusive); } /** * Fetch records that have data_processing_time IN (values) */ - public List fetchByDataProcessingTime(ULong... values) { + public List fetchByDataProcessingTime(Long... values) { return fetch(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.DATA_PROCESSING_TIME, values); } /** * Fetch records that have control_processing_time BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfControlProcessingTime(ULong lowerInclusive, ULong upperInclusive) { + public List fetchRangeOfControlProcessingTime(Long lowerInclusive, Long upperInclusive) { return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.CONTROL_PROCESSING_TIME, lowerInclusive, upperInclusive); } /** * Fetch records that have control_processing_time IN (values) */ - public List fetchByControlProcessingTime(ULong... values) { + public List fetchByControlProcessingTime(Long... values) { return fetch(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.CONTROL_PROCESSING_TIME, values); } /** * Fetch records that have idle_time BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfIdleTime(ULong lowerInclusive, ULong upperInclusive) { + public List fetchRangeOfIdleTime(Long lowerInclusive, Long upperInclusive) { return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.IDLE_TIME, lowerInclusive, upperInclusive); } /** * Fetch records that have idle_time IN (values) */ - public List fetchByIdleTime(ULong... values) { + public List fetchByIdleTime(Long... values) { return fetch(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.IDLE_TIME, values); } /** * Fetch records that have num_workers BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfNumWorkers(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfNumWorkers(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.NUM_WORKERS, lowerInclusive, upperInclusive); } /** * Fetch records that have num_workers IN (values) */ - public List fetchByNumWorkers(UInteger... values) { + public List fetchByNumWorkers(Integer... values) { return fetch(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.NUM_WORKERS, values); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/ProjectDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/ProjectDao.java index 75ae6d60732..5608152f6a3 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/ProjectDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/ProjectDao.java @@ -12,14 +12,13 @@ import org.jooq.Configuration; import org.jooq.impl.DAOImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class ProjectDao extends DAOImpl { +public class ProjectDao extends DAOImpl { /** * Create a new ProjectDao without any configuration @@ -36,28 +35,28 @@ public ProjectDao(Configuration configuration) { } @Override - public UInteger getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.Project object) { + public Integer getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.Project object) { return object.getPid(); } /** * Fetch records that have pid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfPid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfPid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(Project.PROJECT.PID, lowerInclusive, upperInclusive); } /** * Fetch records that have pid IN (values) */ - public List fetchByPid(UInteger... values) { + public List fetchByPid(Integer... values) { return fetch(Project.PROJECT.PID, values); } /** * Fetch a unique record that has pid = value */ - public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.Project fetchOneByPid(UInteger value) { + public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.Project fetchOneByPid(Integer value) { return fetchOne(Project.PROJECT.PID, value); } @@ -92,14 +91,14 @@ public List fetchByD /** * Fetch records that have owner_id BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfOwnerId(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfOwnerId(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(Project.PROJECT.OWNER_ID, lowerInclusive, upperInclusive); } /** * Fetch records that have owner_id IN (values) */ - public List fetchByOwnerId(UInteger... values) { + public List fetchByOwnerId(Integer... values) { return fetch(Project.PROJECT.OWNER_ID, values); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/ProjectUserAccessDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/ProjectUserAccessDao.java index fddce2a8022..7bba49ae2c1 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/ProjectUserAccessDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/ProjectUserAccessDao.java @@ -4,7 +4,7 @@ package edu.uci.ics.texera.dao.jooq.generated.tables.daos; -import edu.uci.ics.texera.dao.jooq.generated.enums.ProjectUserAccessPrivilege; +import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum; import edu.uci.ics.texera.dao.jooq.generated.tables.ProjectUserAccess; import edu.uci.ics.texera.dao.jooq.generated.tables.records.ProjectUserAccessRecord; @@ -13,14 +13,13 @@ import org.jooq.Configuration; import org.jooq.Record2; import org.jooq.impl.DAOImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class ProjectUserAccessDao extends DAOImpl> { +public class ProjectUserAccessDao extends DAOImpl> { /** * Create a new ProjectUserAccessDao without any configuration @@ -37,49 +36,49 @@ public ProjectUserAccessDao(Configuration configuration) { } @Override - public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.ProjectUserAccess object) { + public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.ProjectUserAccess object) { return compositeKeyRecord(object.getUid(), object.getPid()); } /** * Fetch records that have uid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfUid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfUid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(ProjectUserAccess.PROJECT_USER_ACCESS.UID, lowerInclusive, upperInclusive); } /** * Fetch records that have uid IN (values) */ - public List fetchByUid(UInteger... values) { + public List fetchByUid(Integer... values) { return fetch(ProjectUserAccess.PROJECT_USER_ACCESS.UID, values); } /** * Fetch records that have pid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfPid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfPid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(ProjectUserAccess.PROJECT_USER_ACCESS.PID, lowerInclusive, upperInclusive); } /** * Fetch records that have pid IN (values) */ - public List fetchByPid(UInteger... values) { + public List fetchByPid(Integer... values) { return fetch(ProjectUserAccess.PROJECT_USER_ACCESS.PID, values); } /** * Fetch records that have privilege BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfPrivilege(ProjectUserAccessPrivilege lowerInclusive, ProjectUserAccessPrivilege upperInclusive) { + public List fetchRangeOfPrivilege(PrivilegeEnum lowerInclusive, PrivilegeEnum upperInclusive) { return fetchRange(ProjectUserAccess.PROJECT_USER_ACCESS.PRIVILEGE, lowerInclusive, upperInclusive); } /** * Fetch records that have privilege IN (values) */ - public List fetchByPrivilege(ProjectUserAccessPrivilege... values) { + public List fetchByPrivilege(PrivilegeEnum... values) { return fetch(ProjectUserAccess.PROJECT_USER_ACCESS.PRIVILEGE, values); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/PublicProjectDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/PublicProjectDao.java index 884133f1d3c..4c148abff39 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/PublicProjectDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/PublicProjectDao.java @@ -11,14 +11,13 @@ import org.jooq.Configuration; import org.jooq.impl.DAOImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class PublicProjectDao extends DAOImpl { +public class PublicProjectDao extends DAOImpl { /** * Create a new PublicProjectDao without any configuration @@ -35,42 +34,42 @@ public PublicProjectDao(Configuration configuration) { } @Override - public UInteger getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.PublicProject object) { + public Integer getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.PublicProject object) { return object.getPid(); } /** * Fetch records that have pid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfPid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfPid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(PublicProject.PUBLIC_PROJECT.PID, lowerInclusive, upperInclusive); } /** * Fetch records that have pid IN (values) */ - public List fetchByPid(UInteger... values) { + public List fetchByPid(Integer... values) { return fetch(PublicProject.PUBLIC_PROJECT.PID, values); } /** * Fetch a unique record that has pid = value */ - public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.PublicProject fetchOneByPid(UInteger value) { + public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.PublicProject fetchOneByPid(Integer value) { return fetchOne(PublicProject.PUBLIC_PROJECT.PID, value); } /** * Fetch records that have uid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfUid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfUid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(PublicProject.PUBLIC_PROJECT.UID, lowerInclusive, upperInclusive); } /** * Fetch records that have uid IN (values) */ - public List fetchByUid(UInteger... values) { + public List fetchByUid(Integer... values) { return fetch(PublicProject.PUBLIC_PROJECT.UID, values); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/UserConfigDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/UserConfigDao.java index 7e24262d35a..ed7d1185669 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/UserConfigDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/UserConfigDao.java @@ -12,14 +12,13 @@ import org.jooq.Configuration; import org.jooq.Record2; import org.jooq.impl.DAOImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class UserConfigDao extends DAOImpl> { +public class UserConfigDao extends DAOImpl> { /** * Create a new UserConfigDao without any configuration @@ -36,21 +35,21 @@ public UserConfigDao(Configuration configuration) { } @Override - public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.UserConfig object) { + public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.UserConfig object) { return compositeKeyRecord(object.getUid(), object.getKey()); } /** * Fetch records that have uid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfUid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfUid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(UserConfig.USER_CONFIG.UID, lowerInclusive, upperInclusive); } /** * Fetch records that have uid IN (values) */ - public List fetchByUid(UInteger... values) { + public List fetchByUid(Integer... values) { return fetch(UserConfig.USER_CONFIG.UID, values); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/UserDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/UserDao.java index 4cc3bdd759c..41190d080bc 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/UserDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/UserDao.java @@ -4,7 +4,7 @@ package edu.uci.ics.texera.dao.jooq.generated.tables.daos; -import edu.uci.ics.texera.dao.jooq.generated.enums.UserRole; +import edu.uci.ics.texera.dao.jooq.generated.enums.UserRoleEnum; import edu.uci.ics.texera.dao.jooq.generated.tables.User; import edu.uci.ics.texera.dao.jooq.generated.tables.records.UserRecord; @@ -12,14 +12,13 @@ import org.jooq.Configuration; import org.jooq.impl.DAOImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class UserDao extends DAOImpl { +public class UserDao extends DAOImpl { /** * Create a new UserDao without any configuration @@ -36,28 +35,28 @@ public UserDao(Configuration configuration) { } @Override - public UInteger getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.User object) { + public Integer getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.User object) { return object.getUid(); } /** * Fetch records that have uid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfUid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfUid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(User.USER.UID, lowerInclusive, upperInclusive); } /** * Fetch records that have uid IN (values) */ - public List fetchByUid(UInteger... values) { + public List fetchByUid(Integer... values) { return fetch(User.USER.UID, values); } /** * Fetch a unique record that has uid = value */ - public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.User fetchOneByUid(UInteger value) { + public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.User fetchOneByUid(Integer value) { return fetchOne(User.USER.UID, value); } @@ -134,14 +133,14 @@ public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.User fetchOneByGoogleI /** * Fetch records that have role BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfRole(UserRole lowerInclusive, UserRole upperInclusive) { + public List fetchRangeOfRole(UserRoleEnum lowerInclusive, UserRoleEnum upperInclusive) { return fetchRange(User.USER.ROLE, lowerInclusive, upperInclusive); } /** * Fetch records that have role IN (values) */ - public List fetchByRole(UserRole... values) { + public List fetchByRole(UserRoleEnum... values) { return fetch(User.USER.ROLE, values); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowDao.java index a17088023ee..1d9fa6dc116 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowDao.java @@ -12,14 +12,13 @@ import org.jooq.Configuration; import org.jooq.impl.DAOImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowDao extends DAOImpl { +public class WorkflowDao extends DAOImpl { /** * Create a new WorkflowDao without any configuration @@ -36,57 +35,57 @@ public WorkflowDao(Configuration configuration) { } @Override - public UInteger getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.Workflow object) { + public Integer getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.Workflow object) { return object.getWid(); } /** - * Fetch records that have name BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have wid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfName(String lowerInclusive, String upperInclusive) { - return fetchRange(Workflow.WORKFLOW.NAME, lowerInclusive, upperInclusive); + public List fetchRangeOfWid(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(Workflow.WORKFLOW.WID, lowerInclusive, upperInclusive); } /** - * Fetch records that have name IN (values) + * Fetch records that have wid IN (values) */ - public List fetchByName(String... values) { - return fetch(Workflow.WORKFLOW.NAME, values); + public List fetchByWid(Integer... values) { + return fetch(Workflow.WORKFLOW.WID, values); } /** - * Fetch records that have description BETWEEN lowerInclusive AND upperInclusive + * Fetch a unique record that has wid = value */ - public List fetchRangeOfDescription(String lowerInclusive, String upperInclusive) { - return fetchRange(Workflow.WORKFLOW.DESCRIPTION, lowerInclusive, upperInclusive); + public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.Workflow fetchOneByWid(Integer value) { + return fetchOne(Workflow.WORKFLOW.WID, value); } /** - * Fetch records that have description IN (values) + * Fetch records that have name BETWEEN lowerInclusive AND upperInclusive */ - public List fetchByDescription(String... values) { - return fetch(Workflow.WORKFLOW.DESCRIPTION, values); + public List fetchRangeOfName(String lowerInclusive, String upperInclusive) { + return fetchRange(Workflow.WORKFLOW.NAME, lowerInclusive, upperInclusive); } /** - * Fetch records that have wid BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have name IN (values) */ - public List fetchRangeOfWid(UInteger lowerInclusive, UInteger upperInclusive) { - return fetchRange(Workflow.WORKFLOW.WID, lowerInclusive, upperInclusive); + public List fetchByName(String... values) { + return fetch(Workflow.WORKFLOW.NAME, values); } /** - * Fetch records that have wid IN (values) + * Fetch records that have description BETWEEN lowerInclusive AND upperInclusive */ - public List fetchByWid(UInteger... values) { - return fetch(Workflow.WORKFLOW.WID, values); + public List fetchRangeOfDescription(String lowerInclusive, String upperInclusive) { + return fetchRange(Workflow.WORKFLOW.DESCRIPTION, lowerInclusive, upperInclusive); } /** - * Fetch a unique record that has wid = value + * Fetch records that have description IN (values) */ - public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.Workflow fetchOneByWid(UInteger value) { - return fetchOne(Workflow.WORKFLOW.WID, value); + public List fetchByDescription(String... values) { + return fetch(Workflow.WORKFLOW.DESCRIPTION, values); } /** @@ -134,14 +133,14 @@ public List fetchBy /** * Fetch records that have is_public BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfIsPublic(Byte lowerInclusive, Byte upperInclusive) { + public List fetchRangeOfIsPublic(Boolean lowerInclusive, Boolean upperInclusive) { return fetchRange(Workflow.WORKFLOW.IS_PUBLIC, lowerInclusive, upperInclusive); } /** * Fetch records that have is_public IN (values) */ - public List fetchByIsPublic(Byte... values) { + public List fetchByIsPublic(Boolean... values) { return fetch(Workflow.WORKFLOW.IS_PUBLIC, values); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowExecutionsDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowExecutionsDao.java index abc8ffd7686..81b7c05c817 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowExecutionsDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowExecutionsDao.java @@ -12,14 +12,13 @@ import org.jooq.Configuration; import org.jooq.impl.DAOImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowExecutionsDao extends DAOImpl { +public class WorkflowExecutionsDao extends DAOImpl { /** * Create a new WorkflowExecutionsDao without any configuration @@ -36,70 +35,70 @@ public WorkflowExecutionsDao(Configuration configuration) { } @Override - public UInteger getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowExecutions object) { + public Integer getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowExecutions object) { return object.getEid(); } /** * Fetch records that have eid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfEid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfEid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowExecutions.WORKFLOW_EXECUTIONS.EID, lowerInclusive, upperInclusive); } /** * Fetch records that have eid IN (values) */ - public List fetchByEid(UInteger... values) { + public List fetchByEid(Integer... values) { return fetch(WorkflowExecutions.WORKFLOW_EXECUTIONS.EID, values); } /** * Fetch a unique record that has eid = value */ - public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowExecutions fetchOneByEid(UInteger value) { + public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowExecutions fetchOneByEid(Integer value) { return fetchOne(WorkflowExecutions.WORKFLOW_EXECUTIONS.EID, value); } /** * Fetch records that have vid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfVid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfVid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowExecutions.WORKFLOW_EXECUTIONS.VID, lowerInclusive, upperInclusive); } /** * Fetch records that have vid IN (values) */ - public List fetchByVid(UInteger... values) { + public List fetchByVid(Integer... values) { return fetch(WorkflowExecutions.WORKFLOW_EXECUTIONS.VID, values); } /** * Fetch records that have uid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfUid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfUid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowExecutions.WORKFLOW_EXECUTIONS.UID, lowerInclusive, upperInclusive); } /** * Fetch records that have uid IN (values) */ - public List fetchByUid(UInteger... values) { + public List fetchByUid(Integer... values) { return fetch(WorkflowExecutions.WORKFLOW_EXECUTIONS.UID, values); } /** * Fetch records that have status BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfStatus(Byte lowerInclusive, Byte upperInclusive) { + public List fetchRangeOfStatus(Short lowerInclusive, Short upperInclusive) { return fetchRange(WorkflowExecutions.WORKFLOW_EXECUTIONS.STATUS, lowerInclusive, upperInclusive); } /** * Fetch records that have status IN (values) */ - public List fetchByStatus(Byte... values) { + public List fetchByStatus(Short... values) { return fetch(WorkflowExecutions.WORKFLOW_EXECUTIONS.STATUS, values); } @@ -148,14 +147,14 @@ public Listbookmarked BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfBookmarked(Byte lowerInclusive, Byte upperInclusive) { + public List fetchRangeOfBookmarked(Boolean lowerInclusive, Boolean upperInclusive) { return fetchRange(WorkflowExecutions.WORKFLOW_EXECUTIONS.BOOKMARKED, lowerInclusive, upperInclusive); } /** * Fetch records that have bookmarked IN (values) */ - public List fetchByBookmarked(Byte... values) { + public List fetchByBookmarked(Boolean... values) { return fetch(WorkflowExecutions.WORKFLOW_EXECUTIONS.BOOKMARKED, values); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowOfProjectDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowOfProjectDao.java index fae51c8553e..c2586f3eab2 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowOfProjectDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowOfProjectDao.java @@ -12,14 +12,13 @@ import org.jooq.Configuration; import org.jooq.Record2; import org.jooq.impl.DAOImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowOfProjectDao extends DAOImpl> { +public class WorkflowOfProjectDao extends DAOImpl> { /** * Create a new WorkflowOfProjectDao without any configuration @@ -36,35 +35,35 @@ public WorkflowOfProjectDao(Configuration configuration) { } @Override - public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowOfProject object) { + public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowOfProject object) { return compositeKeyRecord(object.getWid(), object.getPid()); } /** * Fetch records that have wid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfWid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfWid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowOfProject.WORKFLOW_OF_PROJECT.WID, lowerInclusive, upperInclusive); } /** * Fetch records that have wid IN (values) */ - public List fetchByWid(UInteger... values) { + public List fetchByWid(Integer... values) { return fetch(WorkflowOfProject.WORKFLOW_OF_PROJECT.WID, values); } /** * Fetch records that have pid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfPid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfPid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowOfProject.WORKFLOW_OF_PROJECT.PID, lowerInclusive, upperInclusive); } /** * Fetch records that have pid IN (values) */ - public List fetchByPid(UInteger... values) { + public List fetchByPid(Integer... values) { return fetch(WorkflowOfProject.WORKFLOW_OF_PROJECT.PID, values); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowOfUserDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowOfUserDao.java index 75bcedf31f4..f464e453d54 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowOfUserDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowOfUserDao.java @@ -12,14 +12,13 @@ import org.jooq.Configuration; import org.jooq.Record2; import org.jooq.impl.DAOImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowOfUserDao extends DAOImpl> { +public class WorkflowOfUserDao extends DAOImpl> { /** * Create a new WorkflowOfUserDao without any configuration @@ -36,35 +35,35 @@ public WorkflowOfUserDao(Configuration configuration) { } @Override - public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowOfUser object) { + public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowOfUser object) { return compositeKeyRecord(object.getUid(), object.getWid()); } /** * Fetch records that have uid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfUid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfUid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowOfUser.WORKFLOW_OF_USER.UID, lowerInclusive, upperInclusive); } /** * Fetch records that have uid IN (values) */ - public List fetchByUid(UInteger... values) { + public List fetchByUid(Integer... values) { return fetch(WorkflowOfUser.WORKFLOW_OF_USER.UID, values); } /** * Fetch records that have wid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfWid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfWid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowOfUser.WORKFLOW_OF_USER.WID, lowerInclusive, upperInclusive); } /** * Fetch records that have wid IN (values) */ - public List fetchByWid(UInteger... values) { + public List fetchByWid(Integer... values) { return fetch(WorkflowOfUser.WORKFLOW_OF_USER.WID, values); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowUserAccessDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowUserAccessDao.java index a0dd0d35d1a..ce474301205 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowUserAccessDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowUserAccessDao.java @@ -4,7 +4,7 @@ package edu.uci.ics.texera.dao.jooq.generated.tables.daos; -import edu.uci.ics.texera.dao.jooq.generated.enums.WorkflowUserAccessPrivilege; +import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum; import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowUserAccess; import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowUserAccessRecord; @@ -13,14 +13,13 @@ import org.jooq.Configuration; import org.jooq.Record2; import org.jooq.impl.DAOImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowUserAccessDao extends DAOImpl> { +public class WorkflowUserAccessDao extends DAOImpl> { /** * Create a new WorkflowUserAccessDao without any configuration @@ -37,49 +36,49 @@ public WorkflowUserAccessDao(Configuration configuration) { } @Override - public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowUserAccess object) { + public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowUserAccess object) { return compositeKeyRecord(object.getUid(), object.getWid()); } /** * Fetch records that have uid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfUid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfUid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowUserAccess.WORKFLOW_USER_ACCESS.UID, lowerInclusive, upperInclusive); } /** * Fetch records that have uid IN (values) */ - public List fetchByUid(UInteger... values) { + public List fetchByUid(Integer... values) { return fetch(WorkflowUserAccess.WORKFLOW_USER_ACCESS.UID, values); } /** * Fetch records that have wid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfWid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfWid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowUserAccess.WORKFLOW_USER_ACCESS.WID, lowerInclusive, upperInclusive); } /** * Fetch records that have wid IN (values) */ - public List fetchByWid(UInteger... values) { + public List fetchByWid(Integer... values) { return fetch(WorkflowUserAccess.WORKFLOW_USER_ACCESS.WID, values); } /** * Fetch records that have privilege BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfPrivilege(WorkflowUserAccessPrivilege lowerInclusive, WorkflowUserAccessPrivilege upperInclusive) { + public List fetchRangeOfPrivilege(PrivilegeEnum lowerInclusive, PrivilegeEnum upperInclusive) { return fetchRange(WorkflowUserAccess.WORKFLOW_USER_ACCESS.PRIVILEGE, lowerInclusive, upperInclusive); } /** * Fetch records that have privilege IN (values) */ - public List fetchByPrivilege(WorkflowUserAccessPrivilege... values) { + public List fetchByPrivilege(PrivilegeEnum... values) { return fetch(WorkflowUserAccess.WORKFLOW_USER_ACCESS.PRIVILEGE, values); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowUserClonesDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowUserClonesDao.java index ce65b197454..893a271a9a2 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowUserClonesDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowUserClonesDao.java @@ -12,14 +12,13 @@ import org.jooq.Configuration; import org.jooq.Record2; import org.jooq.impl.DAOImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowUserClonesDao extends DAOImpl> { +public class WorkflowUserClonesDao extends DAOImpl> { /** * Create a new WorkflowUserClonesDao without any configuration @@ -36,35 +35,35 @@ public WorkflowUserClonesDao(Configuration configuration) { } @Override - public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowUserClones object) { + public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowUserClones object) { return compositeKeyRecord(object.getUid(), object.getWid()); } /** * Fetch records that have uid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfUid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfUid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowUserClones.WORKFLOW_USER_CLONES.UID, lowerInclusive, upperInclusive); } /** * Fetch records that have uid IN (values) */ - public List fetchByUid(UInteger... values) { + public List fetchByUid(Integer... values) { return fetch(WorkflowUserClones.WORKFLOW_USER_CLONES.UID, values); } /** * Fetch records that have wid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfWid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfWid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowUserClones.WORKFLOW_USER_CLONES.WID, lowerInclusive, upperInclusive); } /** * Fetch records that have wid IN (values) */ - public List fetchByWid(UInteger... values) { + public List fetchByWid(Integer... values) { return fetch(WorkflowUserClones.WORKFLOW_USER_CLONES.WID, values); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowUserLikesDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowUserLikesDao.java index 318dfa55c79..a2808a5d4c7 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowUserLikesDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowUserLikesDao.java @@ -12,14 +12,13 @@ import org.jooq.Configuration; import org.jooq.Record2; import org.jooq.impl.DAOImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowUserLikesDao extends DAOImpl> { +public class WorkflowUserLikesDao extends DAOImpl> { /** * Create a new WorkflowUserLikesDao without any configuration @@ -36,35 +35,35 @@ public WorkflowUserLikesDao(Configuration configuration) { } @Override - public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowUserLikes object) { + public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowUserLikes object) { return compositeKeyRecord(object.getUid(), object.getWid()); } /** * Fetch records that have uid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfUid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfUid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowUserLikes.WORKFLOW_USER_LIKES.UID, lowerInclusive, upperInclusive); } /** * Fetch records that have uid IN (values) */ - public List fetchByUid(UInteger... values) { + public List fetchByUid(Integer... values) { return fetch(WorkflowUserLikes.WORKFLOW_USER_LIKES.UID, values); } /** * Fetch records that have wid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfWid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfWid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowUserLikes.WORKFLOW_USER_LIKES.WID, lowerInclusive, upperInclusive); } /** * Fetch records that have wid IN (values) */ - public List fetchByWid(UInteger... values) { + public List fetchByWid(Integer... values) { return fetch(WorkflowUserLikes.WORKFLOW_USER_LIKES.WID, values); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowVersionDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowVersionDao.java index 701492f4df0..85b6188f6b0 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowVersionDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowVersionDao.java @@ -12,14 +12,13 @@ import org.jooq.Configuration; import org.jooq.impl.DAOImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowVersionDao extends DAOImpl { +public class WorkflowVersionDao extends DAOImpl { /** * Create a new WorkflowVersionDao without any configuration @@ -36,42 +35,42 @@ public WorkflowVersionDao(Configuration configuration) { } @Override - public UInteger getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowVersion object) { + public Integer getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowVersion object) { return object.getVid(); } /** * Fetch records that have vid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfVid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfVid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowVersion.WORKFLOW_VERSION.VID, lowerInclusive, upperInclusive); } /** * Fetch records that have vid IN (values) */ - public List fetchByVid(UInteger... values) { + public List fetchByVid(Integer... values) { return fetch(WorkflowVersion.WORKFLOW_VERSION.VID, values); } /** * Fetch a unique record that has vid = value */ - public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowVersion fetchOneByVid(UInteger value) { + public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowVersion fetchOneByVid(Integer value) { return fetchOne(WorkflowVersion.WORKFLOW_VERSION.VID, value); } /** * Fetch records that have wid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfWid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfWid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowVersion.WORKFLOW_VERSION.WID, lowerInclusive, upperInclusive); } /** * Fetch records that have wid IN (values) */ - public List fetchByWid(UInteger... values) { + public List fetchByWid(Integer... values) { return fetch(WorkflowVersion.WORKFLOW_VERSION.WID, values); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowViewCountDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowViewCountDao.java index d6a4a681967..1a6422cfdae 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowViewCountDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowViewCountDao.java @@ -11,14 +11,13 @@ import org.jooq.Configuration; import org.jooq.impl.DAOImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowViewCountDao extends DAOImpl { +public class WorkflowViewCountDao extends DAOImpl { /** * Create a new WorkflowViewCountDao without any configuration @@ -35,42 +34,42 @@ public WorkflowViewCountDao(Configuration configuration) { } @Override - public UInteger getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowViewCount object) { + public Integer getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowViewCount object) { return object.getWid(); } /** * Fetch records that have wid BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfWid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfWid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowViewCount.WORKFLOW_VIEW_COUNT.WID, lowerInclusive, upperInclusive); } /** * Fetch records that have wid IN (values) */ - public List fetchByWid(UInteger... values) { + public List fetchByWid(Integer... values) { return fetch(WorkflowViewCount.WORKFLOW_VIEW_COUNT.WID, values); } /** * Fetch a unique record that has wid = value */ - public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowViewCount fetchOneByWid(UInteger value) { + public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowViewCount fetchOneByWid(Integer value) { return fetchOne(WorkflowViewCount.WORKFLOW_VIEW_COUNT.WID, value); } /** * Fetch records that have view_count BETWEEN lowerInclusive AND upperInclusive */ - public List fetchRangeOfViewCount(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfViewCount(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowViewCount.WORKFLOW_VIEW_COUNT.VIEW_COUNT, lowerInclusive, upperInclusive); } /** * Fetch records that have view_count IN (values) */ - public List fetchByViewCount(UInteger... values) { + public List fetchByViewCount(Integer... values) { return fetch(WorkflowViewCount.WORKFLOW_VIEW_COUNT.VIEW_COUNT, values); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDataset.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDataset.java index 474d8e8d887..435e98f756d 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDataset.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDataset.java @@ -7,8 +7,6 @@ import java.io.Serializable; import java.sql.Timestamp; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -19,22 +17,22 @@ public interface IDataset extends Serializable { /** * Setter for texera_db.dataset.did. */ - public void setDid(UInteger value); + public void setDid(Integer value); /** * Getter for texera_db.dataset.did. */ - public UInteger getDid(); + public Integer getDid(); /** * Setter for texera_db.dataset.owner_uid. */ - public void setOwnerUid(UInteger value); + public void setOwnerUid(Integer value); /** * Getter for texera_db.dataset.owner_uid. */ - public UInteger getOwnerUid(); + public Integer getOwnerUid(); /** * Setter for texera_db.dataset.name. @@ -49,12 +47,12 @@ public interface IDataset extends Serializable { /** * Setter for texera_db.dataset.is_public. */ - public void setIsPublic(Byte value); + public void setIsPublic(Boolean value); /** * Getter for texera_db.dataset.is_public. */ - public Byte getIsPublic(); + public Boolean getIsPublic(); /** * Setter for texera_db.dataset.description. diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetUserAccess.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetUserAccess.java index 7b84c962bfc..e509d7a3eb6 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetUserAccess.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetUserAccess.java @@ -4,12 +4,10 @@ package edu.uci.ics.texera.dao.jooq.generated.tables.interfaces; -import edu.uci.ics.texera.dao.jooq.generated.enums.DatasetUserAccessPrivilege; +import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum; import java.io.Serializable; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -20,32 +18,32 @@ public interface IDatasetUserAccess extends Serializable { /** * Setter for texera_db.dataset_user_access.did. */ - public void setDid(UInteger value); + public void setDid(Integer value); /** * Getter for texera_db.dataset_user_access.did. */ - public UInteger getDid(); + public Integer getDid(); /** * Setter for texera_db.dataset_user_access.uid. */ - public void setUid(UInteger value); + public void setUid(Integer value); /** * Getter for texera_db.dataset_user_access.uid. */ - public UInteger getUid(); + public Integer getUid(); /** * Setter for texera_db.dataset_user_access.privilege. */ - public void setPrivilege(DatasetUserAccessPrivilege value); + public void setPrivilege(PrivilegeEnum value); /** * Getter for texera_db.dataset_user_access.privilege. */ - public DatasetUserAccessPrivilege getPrivilege(); + public PrivilegeEnum getPrivilege(); // ------------------------------------------------------------------------- // FROM and INTO diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetVersion.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetVersion.java index 1677f22a706..7c9a7dd803d 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetVersion.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetVersion.java @@ -7,8 +7,6 @@ import java.io.Serializable; import java.sql.Timestamp; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -19,32 +17,32 @@ public interface IDatasetVersion extends Serializable { /** * Setter for texera_db.dataset_version.dvid. */ - public void setDvid(UInteger value); + public void setDvid(Integer value); /** * Getter for texera_db.dataset_version.dvid. */ - public UInteger getDvid(); + public Integer getDvid(); /** * Setter for texera_db.dataset_version.did. */ - public void setDid(UInteger value); + public void setDid(Integer value); /** * Getter for texera_db.dataset_version.did. */ - public UInteger getDid(); + public Integer getDid(); /** * Setter for texera_db.dataset_version.creator_uid. */ - public void setCreatorUid(UInteger value); + public void setCreatorUid(Integer value); /** * Getter for texera_db.dataset_version.creator_uid. */ - public UInteger getCreatorUid(); + public Integer getCreatorUid(); /** * Setter for texera_db.dataset_version.name. diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorExecutions.java index c7582ef90e3..2327f845804 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorExecutions.java @@ -6,9 +6,6 @@ import java.io.Serializable; -import org.jooq.types.UInteger; -import org.jooq.types.ULong; - /** * This class is generated by jOOQ. @@ -19,22 +16,22 @@ public interface IOperatorExecutions extends Serializable { /** * Setter for texera_db.operator_executions.operator_execution_id. */ - public void setOperatorExecutionId(ULong value); + public void setOperatorExecutionId(Long value); /** * Getter for texera_db.operator_executions.operator_execution_id. */ - public ULong getOperatorExecutionId(); + public Long getOperatorExecutionId(); /** * Setter for texera_db.operator_executions.workflow_execution_id. */ - public void setWorkflowExecutionId(UInteger value); + public void setWorkflowExecutionId(Integer value); /** * Getter for texera_db.operator_executions.workflow_execution_id. */ - public UInteger getWorkflowExecutionId(); + public Integer getWorkflowExecutionId(); /** * Setter for texera_db.operator_executions.operator_id. diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorRuntimeStatistics.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorRuntimeStatistics.java index b499211e442..7e04f655580 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorRuntimeStatistics.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorRuntimeStatistics.java @@ -7,9 +7,6 @@ import java.io.Serializable; import java.sql.Timestamp; -import org.jooq.types.UInteger; -import org.jooq.types.ULong; - /** * This class is generated by jOOQ. @@ -20,12 +17,12 @@ public interface IOperatorRuntimeStatistics extends Serializable { /** * Setter for texera_db.operator_runtime_statistics.operator_execution_id. */ - public void setOperatorExecutionId(ULong value); + public void setOperatorExecutionId(Long value); /** * Getter for texera_db.operator_runtime_statistics.operator_execution_id. */ - public ULong getOperatorExecutionId(); + public Long getOperatorExecutionId(); /** * Setter for texera_db.operator_runtime_statistics.time. @@ -40,72 +37,72 @@ public interface IOperatorRuntimeStatistics extends Serializable { /** * Setter for texera_db.operator_runtime_statistics.input_tuple_cnt. */ - public void setInputTupleCnt(ULong value); + public void setInputTupleCnt(Long value); /** * Getter for texera_db.operator_runtime_statistics.input_tuple_cnt. */ - public ULong getInputTupleCnt(); + public Long getInputTupleCnt(); /** * Setter for texera_db.operator_runtime_statistics.output_tuple_cnt. */ - public void setOutputTupleCnt(ULong value); + public void setOutputTupleCnt(Long value); /** * Getter for texera_db.operator_runtime_statistics.output_tuple_cnt. */ - public ULong getOutputTupleCnt(); + public Long getOutputTupleCnt(); /** * Setter for texera_db.operator_runtime_statistics.status. */ - public void setStatus(Byte value); + public void setStatus(Short value); /** * Getter for texera_db.operator_runtime_statistics.status. */ - public Byte getStatus(); + public Short getStatus(); /** * Setter for texera_db.operator_runtime_statistics.data_processing_time. */ - public void setDataProcessingTime(ULong value); + public void setDataProcessingTime(Long value); /** * Getter for texera_db.operator_runtime_statistics.data_processing_time. */ - public ULong getDataProcessingTime(); + public Long getDataProcessingTime(); /** * Setter for texera_db.operator_runtime_statistics.control_processing_time. */ - public void setControlProcessingTime(ULong value); + public void setControlProcessingTime(Long value); /** * Getter for texera_db.operator_runtime_statistics.control_processing_time. */ - public ULong getControlProcessingTime(); + public Long getControlProcessingTime(); /** * Setter for texera_db.operator_runtime_statistics.idle_time. */ - public void setIdleTime(ULong value); + public void setIdleTime(Long value); /** * Getter for texera_db.operator_runtime_statistics.idle_time. */ - public ULong getIdleTime(); + public Long getIdleTime(); /** * Setter for texera_db.operator_runtime_statistics.num_workers. */ - public void setNumWorkers(UInteger value); + public void setNumWorkers(Integer value); /** * Getter for texera_db.operator_runtime_statistics.num_workers. */ - public UInteger getNumWorkers(); + public Integer getNumWorkers(); // ------------------------------------------------------------------------- // FROM and INTO diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IProject.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IProject.java index 7344ad7cba0..1d971c44c7b 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IProject.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IProject.java @@ -7,8 +7,6 @@ import java.io.Serializable; import java.sql.Timestamp; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -19,12 +17,12 @@ public interface IProject extends Serializable { /** * Setter for texera_db.project.pid. */ - public void setPid(UInteger value); + public void setPid(Integer value); /** * Getter for texera_db.project.pid. */ - public UInteger getPid(); + public Integer getPid(); /** * Setter for texera_db.project.name. @@ -49,12 +47,12 @@ public interface IProject extends Serializable { /** * Setter for texera_db.project.owner_id. */ - public void setOwnerId(UInteger value); + public void setOwnerId(Integer value); /** * Getter for texera_db.project.owner_id. */ - public UInteger getOwnerId(); + public Integer getOwnerId(); /** * Setter for texera_db.project.creation_time. diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IProjectUserAccess.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IProjectUserAccess.java index 4be5f18f2d8..9f7ffbfe4ab 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IProjectUserAccess.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IProjectUserAccess.java @@ -4,12 +4,10 @@ package edu.uci.ics.texera.dao.jooq.generated.tables.interfaces; -import edu.uci.ics.texera.dao.jooq.generated.enums.ProjectUserAccessPrivilege; +import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum; import java.io.Serializable; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -20,32 +18,32 @@ public interface IProjectUserAccess extends Serializable { /** * Setter for texera_db.project_user_access.uid. */ - public void setUid(UInteger value); + public void setUid(Integer value); /** * Getter for texera_db.project_user_access.uid. */ - public UInteger getUid(); + public Integer getUid(); /** * Setter for texera_db.project_user_access.pid. */ - public void setPid(UInteger value); + public void setPid(Integer value); /** * Getter for texera_db.project_user_access.pid. */ - public UInteger getPid(); + public Integer getPid(); /** * Setter for texera_db.project_user_access.privilege. */ - public void setPrivilege(ProjectUserAccessPrivilege value); + public void setPrivilege(PrivilegeEnum value); /** * Getter for texera_db.project_user_access.privilege. */ - public ProjectUserAccessPrivilege getPrivilege(); + public PrivilegeEnum getPrivilege(); // ------------------------------------------------------------------------- // FROM and INTO diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IPublicProject.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IPublicProject.java index 7193c30d86c..9bb16add02e 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IPublicProject.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IPublicProject.java @@ -6,8 +6,6 @@ import java.io.Serializable; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -18,22 +16,22 @@ public interface IPublicProject extends Serializable { /** * Setter for texera_db.public_project.pid. */ - public void setPid(UInteger value); + public void setPid(Integer value); /** * Getter for texera_db.public_project.pid. */ - public UInteger getPid(); + public Integer getPid(); /** * Setter for texera_db.public_project.uid. */ - public void setUid(UInteger value); + public void setUid(Integer value); /** * Getter for texera_db.public_project.uid. */ - public UInteger getUid(); + public Integer getUid(); // ------------------------------------------------------------------------- // FROM and INTO diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUser.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUser.java index bc40987f5c7..28803d32419 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUser.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUser.java @@ -4,12 +4,10 @@ package edu.uci.ics.texera.dao.jooq.generated.tables.interfaces; -import edu.uci.ics.texera.dao.jooq.generated.enums.UserRole; +import edu.uci.ics.texera.dao.jooq.generated.enums.UserRoleEnum; import java.io.Serializable; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -20,12 +18,12 @@ public interface IUser extends Serializable { /** * Setter for texera_db.user.uid. */ - public void setUid(UInteger value); + public void setUid(Integer value); /** * Getter for texera_db.user.uid. */ - public UInteger getUid(); + public Integer getUid(); /** * Setter for texera_db.user.name. @@ -70,12 +68,12 @@ public interface IUser extends Serializable { /** * Setter for texera_db.user.role. */ - public void setRole(UserRole value); + public void setRole(UserRoleEnum value); /** * Getter for texera_db.user.role. */ - public UserRole getRole(); + public UserRoleEnum getRole(); /** * Setter for texera_db.user.google_avatar. diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUserActivity.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUserActivity.java index 97f2b1e757f..72531c85b56 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUserActivity.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUserActivity.java @@ -7,8 +7,6 @@ import java.io.Serializable; import java.sql.Timestamp; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -19,22 +17,22 @@ public interface IUserActivity extends Serializable { /** * Setter for texera_db.user_activity.uid. */ - public void setUid(UInteger value); + public void setUid(Integer value); /** * Getter for texera_db.user_activity.uid. */ - public UInteger getUid(); + public Integer getUid(); /** * Setter for texera_db.user_activity.id. */ - public void setId(UInteger value); + public void setId(Integer value); /** * Getter for texera_db.user_activity.id. */ - public UInteger getId(); + public Integer getId(); /** * Setter for texera_db.user_activity.type. diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUserConfig.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUserConfig.java index 32d1c46d3ba..a916afd44ec 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUserConfig.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUserConfig.java @@ -6,8 +6,6 @@ import java.io.Serializable; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -18,12 +16,12 @@ public interface IUserConfig extends Serializable { /** * Setter for texera_db.user_config.uid. */ - public void setUid(UInteger value); + public void setUid(Integer value); /** * Getter for texera_db.user_config.uid. */ - public UInteger getUid(); + public Integer getUid(); /** * Setter for texera_db.user_config.key. diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflow.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflow.java index 36206e6a0d2..411e892ff73 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflow.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflow.java @@ -7,8 +7,6 @@ import java.io.Serializable; import java.sql.Timestamp; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -16,6 +14,16 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public interface IWorkflow extends Serializable { + /** + * Setter for texera_db.workflow.wid. + */ + public void setWid(Integer value); + + /** + * Getter for texera_db.workflow.wid. + */ + public Integer getWid(); + /** * Setter for texera_db.workflow.name. */ @@ -36,16 +44,6 @@ public interface IWorkflow extends Serializable { */ public String getDescription(); - /** - * Setter for texera_db.workflow.wid. - */ - public void setWid(UInteger value); - - /** - * Getter for texera_db.workflow.wid. - */ - public UInteger getWid(); - /** * Setter for texera_db.workflow.content. */ @@ -79,12 +77,12 @@ public interface IWorkflow extends Serializable { /** * Setter for texera_db.workflow.is_public. */ - public void setIsPublic(Byte value); + public void setIsPublic(Boolean value); /** * Getter for texera_db.workflow.is_public. */ - public Byte getIsPublic(); + public Boolean getIsPublic(); // ------------------------------------------------------------------------- // FROM and INTO diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowExecutions.java index 2dabcd9d01a..8568055f090 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowExecutions.java @@ -7,8 +7,6 @@ import java.io.Serializable; import java.sql.Timestamp; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -19,42 +17,42 @@ public interface IWorkflowExecutions extends Serializable { /** * Setter for texera_db.workflow_executions.eid. */ - public void setEid(UInteger value); + public void setEid(Integer value); /** * Getter for texera_db.workflow_executions.eid. */ - public UInteger getEid(); + public Integer getEid(); /** * Setter for texera_db.workflow_executions.vid. */ - public void setVid(UInteger value); + public void setVid(Integer value); /** * Getter for texera_db.workflow_executions.vid. */ - public UInteger getVid(); + public Integer getVid(); /** * Setter for texera_db.workflow_executions.uid. */ - public void setUid(UInteger value); + public void setUid(Integer value); /** * Getter for texera_db.workflow_executions.uid. */ - public UInteger getUid(); + public Integer getUid(); /** * Setter for texera_db.workflow_executions.status. */ - public void setStatus(Byte value); + public void setStatus(Short value); /** * Getter for texera_db.workflow_executions.status. */ - public Byte getStatus(); + public Short getStatus(); /** * Setter for texera_db.workflow_executions.result. @@ -89,12 +87,12 @@ public interface IWorkflowExecutions extends Serializable { /** * Setter for texera_db.workflow_executions.bookmarked. */ - public void setBookmarked(Byte value); + public void setBookmarked(Boolean value); /** * Getter for texera_db.workflow_executions.bookmarked. */ - public Byte getBookmarked(); + public Boolean getBookmarked(); /** * Setter for texera_db.workflow_executions.name. diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowOfProject.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowOfProject.java index 4af32bf4ad0..12e008f7c23 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowOfProject.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowOfProject.java @@ -6,8 +6,6 @@ import java.io.Serializable; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -18,22 +16,22 @@ public interface IWorkflowOfProject extends Serializable { /** * Setter for texera_db.workflow_of_project.wid. */ - public void setWid(UInteger value); + public void setWid(Integer value); /** * Getter for texera_db.workflow_of_project.wid. */ - public UInteger getWid(); + public Integer getWid(); /** * Setter for texera_db.workflow_of_project.pid. */ - public void setPid(UInteger value); + public void setPid(Integer value); /** * Getter for texera_db.workflow_of_project.pid. */ - public UInteger getPid(); + public Integer getPid(); // ------------------------------------------------------------------------- // FROM and INTO diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowOfUser.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowOfUser.java index 12302a54f40..716136510ed 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowOfUser.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowOfUser.java @@ -6,8 +6,6 @@ import java.io.Serializable; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -18,22 +16,22 @@ public interface IWorkflowOfUser extends Serializable { /** * Setter for texera_db.workflow_of_user.uid. */ - public void setUid(UInteger value); + public void setUid(Integer value); /** * Getter for texera_db.workflow_of_user.uid. */ - public UInteger getUid(); + public Integer getUid(); /** * Setter for texera_db.workflow_of_user.wid. */ - public void setWid(UInteger value); + public void setWid(Integer value); /** * Getter for texera_db.workflow_of_user.wid. */ - public UInteger getWid(); + public Integer getWid(); // ------------------------------------------------------------------------- // FROM and INTO diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowUserAccess.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowUserAccess.java index 266d55a8e0c..1ca1c59b543 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowUserAccess.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowUserAccess.java @@ -4,12 +4,10 @@ package edu.uci.ics.texera.dao.jooq.generated.tables.interfaces; -import edu.uci.ics.texera.dao.jooq.generated.enums.WorkflowUserAccessPrivilege; +import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum; import java.io.Serializable; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -20,32 +18,32 @@ public interface IWorkflowUserAccess extends Serializable { /** * Setter for texera_db.workflow_user_access.uid. */ - public void setUid(UInteger value); + public void setUid(Integer value); /** * Getter for texera_db.workflow_user_access.uid. */ - public UInteger getUid(); + public Integer getUid(); /** * Setter for texera_db.workflow_user_access.wid. */ - public void setWid(UInteger value); + public void setWid(Integer value); /** * Getter for texera_db.workflow_user_access.wid. */ - public UInteger getWid(); + public Integer getWid(); /** * Setter for texera_db.workflow_user_access.privilege. */ - public void setPrivilege(WorkflowUserAccessPrivilege value); + public void setPrivilege(PrivilegeEnum value); /** * Getter for texera_db.workflow_user_access.privilege. */ - public WorkflowUserAccessPrivilege getPrivilege(); + public PrivilegeEnum getPrivilege(); // ------------------------------------------------------------------------- // FROM and INTO diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowUserClones.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowUserClones.java index 28340c850b4..615d43cfb6e 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowUserClones.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowUserClones.java @@ -6,8 +6,6 @@ import java.io.Serializable; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -18,22 +16,22 @@ public interface IWorkflowUserClones extends Serializable { /** * Setter for texera_db.workflow_user_clones.uid. */ - public void setUid(UInteger value); + public void setUid(Integer value); /** * Getter for texera_db.workflow_user_clones.uid. */ - public UInteger getUid(); + public Integer getUid(); /** * Setter for texera_db.workflow_user_clones.wid. */ - public void setWid(UInteger value); + public void setWid(Integer value); /** * Getter for texera_db.workflow_user_clones.wid. */ - public UInteger getWid(); + public Integer getWid(); // ------------------------------------------------------------------------- // FROM and INTO diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowUserLikes.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowUserLikes.java index d796b913e1b..431e9b3e3f7 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowUserLikes.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowUserLikes.java @@ -6,8 +6,6 @@ import java.io.Serializable; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -18,22 +16,22 @@ public interface IWorkflowUserLikes extends Serializable { /** * Setter for texera_db.workflow_user_likes.uid. */ - public void setUid(UInteger value); + public void setUid(Integer value); /** * Getter for texera_db.workflow_user_likes.uid. */ - public UInteger getUid(); + public Integer getUid(); /** * Setter for texera_db.workflow_user_likes.wid. */ - public void setWid(UInteger value); + public void setWid(Integer value); /** * Getter for texera_db.workflow_user_likes.wid. */ - public UInteger getWid(); + public Integer getWid(); // ------------------------------------------------------------------------- // FROM and INTO diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowVersion.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowVersion.java index d44cf652568..d966a6bafe7 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowVersion.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowVersion.java @@ -7,8 +7,6 @@ import java.io.Serializable; import java.sql.Timestamp; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -19,22 +17,22 @@ public interface IWorkflowVersion extends Serializable { /** * Setter for texera_db.workflow_version.vid. */ - public void setVid(UInteger value); + public void setVid(Integer value); /** * Getter for texera_db.workflow_version.vid. */ - public UInteger getVid(); + public Integer getVid(); /** * Setter for texera_db.workflow_version.wid. */ - public void setWid(UInteger value); + public void setWid(Integer value); /** * Getter for texera_db.workflow_version.wid. */ - public UInteger getWid(); + public Integer getWid(); /** * Setter for texera_db.workflow_version.content. diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowViewCount.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowViewCount.java index 6471013ec41..439a56731f5 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowViewCount.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowViewCount.java @@ -6,8 +6,6 @@ import java.io.Serializable; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -18,22 +16,22 @@ public interface IWorkflowViewCount extends Serializable { /** * Setter for texera_db.workflow_view_count.wid. */ - public void setWid(UInteger value); + public void setWid(Integer value); /** * Getter for texera_db.workflow_view_count.wid. */ - public UInteger getWid(); + public Integer getWid(); /** * Setter for texera_db.workflow_view_count.view_count. */ - public void setViewCount(UInteger value); + public void setViewCount(Integer value); /** * Getter for texera_db.workflow_view_count.view_count. */ - public UInteger getViewCount(); + public Integer getViewCount(); // ------------------------------------------------------------------------- // FROM and INTO diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Dataset.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Dataset.java index 71854c0adab..7005e949770 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Dataset.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Dataset.java @@ -8,8 +8,6 @@ import java.sql.Timestamp; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -17,12 +15,12 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Dataset implements IDataset { - private static final long serialVersionUID = -1220666229; + private static final long serialVersionUID = 1634678720; - private UInteger did; - private UInteger ownerUid; + private Integer did; + private Integer ownerUid; private String name; - private Byte isPublic; + private Boolean isPublic; private String description; private Timestamp creationTime; @@ -38,10 +36,10 @@ public Dataset(IDataset value) { } public Dataset( - UInteger did, - UInteger ownerUid, + Integer did, + Integer ownerUid, String name, - Byte isPublic, + Boolean isPublic, String description, Timestamp creationTime ) { @@ -54,22 +52,22 @@ public Dataset( } @Override - public UInteger getDid() { + public Integer getDid() { return this.did; } @Override - public void setDid(UInteger did) { + public void setDid(Integer did) { this.did = did; } @Override - public UInteger getOwnerUid() { + public Integer getOwnerUid() { return this.ownerUid; } @Override - public void setOwnerUid(UInteger ownerUid) { + public void setOwnerUid(Integer ownerUid) { this.ownerUid = ownerUid; } @@ -84,12 +82,12 @@ public void setName(String name) { } @Override - public Byte getIsPublic() { + public Boolean getIsPublic() { return this.isPublic; } @Override - public void setIsPublic(Byte isPublic) { + public void setIsPublic(Boolean isPublic) { this.isPublic = isPublic; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetUserAccess.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetUserAccess.java index ec653d1e767..0b2a6923768 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetUserAccess.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetUserAccess.java @@ -4,11 +4,9 @@ package edu.uci.ics.texera.dao.jooq.generated.tables.pojos; -import edu.uci.ics.texera.dao.jooq.generated.enums.DatasetUserAccessPrivilege; +import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum; import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IDatasetUserAccess; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -16,11 +14,11 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class DatasetUserAccess implements IDatasetUserAccess { - private static final long serialVersionUID = -529435584; + private static final long serialVersionUID = 1259817283; - private UInteger did; - private UInteger uid; - private DatasetUserAccessPrivilege privilege; + private Integer did; + private Integer uid; + private PrivilegeEnum privilege; public DatasetUserAccess() {} @@ -31,9 +29,9 @@ public DatasetUserAccess(IDatasetUserAccess value) { } public DatasetUserAccess( - UInteger did, - UInteger uid, - DatasetUserAccessPrivilege privilege + Integer did, + Integer uid, + PrivilegeEnum privilege ) { this.did = did; this.uid = uid; @@ -41,32 +39,32 @@ public DatasetUserAccess( } @Override - public UInteger getDid() { + public Integer getDid() { return this.did; } @Override - public void setDid(UInteger did) { + public void setDid(Integer did) { this.did = did; } @Override - public UInteger getUid() { + public Integer getUid() { return this.uid; } @Override - public void setUid(UInteger uid) { + public void setUid(Integer uid) { this.uid = uid; } @Override - public DatasetUserAccessPrivilege getPrivilege() { + public PrivilegeEnum getPrivilege() { return this.privilege; } @Override - public void setPrivilege(DatasetUserAccessPrivilege privilege) { + public void setPrivilege(PrivilegeEnum privilege) { this.privilege = privilege; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetVersion.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetVersion.java index e2cb6751741..34e33e7e9e7 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetVersion.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetVersion.java @@ -8,8 +8,6 @@ import java.sql.Timestamp; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -17,11 +15,11 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class DatasetVersion implements IDatasetVersion { - private static final long serialVersionUID = 1052637628; + private static final long serialVersionUID = -1130559939; - private UInteger dvid; - private UInteger did; - private UInteger creatorUid; + private Integer dvid; + private Integer did; + private Integer creatorUid; private String name; private String versionHash; private Timestamp creationTime; @@ -38,9 +36,9 @@ public DatasetVersion(IDatasetVersion value) { } public DatasetVersion( - UInteger dvid, - UInteger did, - UInteger creatorUid, + Integer dvid, + Integer did, + Integer creatorUid, String name, String versionHash, Timestamp creationTime @@ -54,32 +52,32 @@ public DatasetVersion( } @Override - public UInteger getDvid() { + public Integer getDvid() { return this.dvid; } @Override - public void setDvid(UInteger dvid) { + public void setDvid(Integer dvid) { this.dvid = dvid; } @Override - public UInteger getDid() { + public Integer getDid() { return this.did; } @Override - public void setDid(UInteger did) { + public void setDid(Integer did) { this.did = did; } @Override - public UInteger getCreatorUid() { + public Integer getCreatorUid() { return this.creatorUid; } @Override - public void setCreatorUid(UInteger creatorUid) { + public void setCreatorUid(Integer creatorUid) { this.creatorUid = creatorUid; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorExecutions.java index 4d7b40c2db1..f18bce17347 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorExecutions.java @@ -6,9 +6,6 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IOperatorExecutions; -import org.jooq.types.UInteger; -import org.jooq.types.ULong; - /** * This class is generated by jOOQ. @@ -16,11 +13,11 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class OperatorExecutions implements IOperatorExecutions { - private static final long serialVersionUID = -1568831818; + private static final long serialVersionUID = -216049396; - private ULong operatorExecutionId; - private UInteger workflowExecutionId; - private String operatorId; + private Long operatorExecutionId; + private Integer workflowExecutionId; + private String operatorId; public OperatorExecutions() {} @@ -31,9 +28,9 @@ public OperatorExecutions(IOperatorExecutions value) { } public OperatorExecutions( - ULong operatorExecutionId, - UInteger workflowExecutionId, - String operatorId + Long operatorExecutionId, + Integer workflowExecutionId, + String operatorId ) { this.operatorExecutionId = operatorExecutionId; this.workflowExecutionId = workflowExecutionId; @@ -41,22 +38,22 @@ public OperatorExecutions( } @Override - public ULong getOperatorExecutionId() { + public Long getOperatorExecutionId() { return this.operatorExecutionId; } @Override - public void setOperatorExecutionId(ULong operatorExecutionId) { + public void setOperatorExecutionId(Long operatorExecutionId) { this.operatorExecutionId = operatorExecutionId; } @Override - public UInteger getWorkflowExecutionId() { + public Integer getWorkflowExecutionId() { return this.workflowExecutionId; } @Override - public void setWorkflowExecutionId(UInteger workflowExecutionId) { + public void setWorkflowExecutionId(Integer workflowExecutionId) { this.workflowExecutionId = workflowExecutionId; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorRuntimeStatistics.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorRuntimeStatistics.java index f48c3df1046..0fb34ea53fc 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorRuntimeStatistics.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorRuntimeStatistics.java @@ -8,9 +8,6 @@ import java.sql.Timestamp; -import org.jooq.types.UInteger; -import org.jooq.types.ULong; - /** * This class is generated by jOOQ. @@ -18,17 +15,17 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class OperatorRuntimeStatistics implements IOperatorRuntimeStatistics { - private static final long serialVersionUID = -175115514; + private static final long serialVersionUID = -1223233402; - private ULong operatorExecutionId; + private Long operatorExecutionId; private Timestamp time; - private ULong inputTupleCnt; - private ULong outputTupleCnt; - private Byte status; - private ULong dataProcessingTime; - private ULong controlProcessingTime; - private ULong idleTime; - private UInteger numWorkers; + private Long inputTupleCnt; + private Long outputTupleCnt; + private Short status; + private Long dataProcessingTime; + private Long controlProcessingTime; + private Long idleTime; + private Integer numWorkers; public OperatorRuntimeStatistics() {} @@ -45,15 +42,15 @@ public OperatorRuntimeStatistics(IOperatorRuntimeStatistics value) { } public OperatorRuntimeStatistics( - ULong operatorExecutionId, + Long operatorExecutionId, Timestamp time, - ULong inputTupleCnt, - ULong outputTupleCnt, - Byte status, - ULong dataProcessingTime, - ULong controlProcessingTime, - ULong idleTime, - UInteger numWorkers + Long inputTupleCnt, + Long outputTupleCnt, + Short status, + Long dataProcessingTime, + Long controlProcessingTime, + Long idleTime, + Integer numWorkers ) { this.operatorExecutionId = operatorExecutionId; this.time = time; @@ -67,12 +64,12 @@ public OperatorRuntimeStatistics( } @Override - public ULong getOperatorExecutionId() { + public Long getOperatorExecutionId() { return this.operatorExecutionId; } @Override - public void setOperatorExecutionId(ULong operatorExecutionId) { + public void setOperatorExecutionId(Long operatorExecutionId) { this.operatorExecutionId = operatorExecutionId; } @@ -87,72 +84,72 @@ public void setTime(Timestamp time) { } @Override - public ULong getInputTupleCnt() { + public Long getInputTupleCnt() { return this.inputTupleCnt; } @Override - public void setInputTupleCnt(ULong inputTupleCnt) { + public void setInputTupleCnt(Long inputTupleCnt) { this.inputTupleCnt = inputTupleCnt; } @Override - public ULong getOutputTupleCnt() { + public Long getOutputTupleCnt() { return this.outputTupleCnt; } @Override - public void setOutputTupleCnt(ULong outputTupleCnt) { + public void setOutputTupleCnt(Long outputTupleCnt) { this.outputTupleCnt = outputTupleCnt; } @Override - public Byte getStatus() { + public Short getStatus() { return this.status; } @Override - public void setStatus(Byte status) { + public void setStatus(Short status) { this.status = status; } @Override - public ULong getDataProcessingTime() { + public Long getDataProcessingTime() { return this.dataProcessingTime; } @Override - public void setDataProcessingTime(ULong dataProcessingTime) { + public void setDataProcessingTime(Long dataProcessingTime) { this.dataProcessingTime = dataProcessingTime; } @Override - public ULong getControlProcessingTime() { + public Long getControlProcessingTime() { return this.controlProcessingTime; } @Override - public void setControlProcessingTime(ULong controlProcessingTime) { + public void setControlProcessingTime(Long controlProcessingTime) { this.controlProcessingTime = controlProcessingTime; } @Override - public ULong getIdleTime() { + public Long getIdleTime() { return this.idleTime; } @Override - public void setIdleTime(ULong idleTime) { + public void setIdleTime(Long idleTime) { this.idleTime = idleTime; } @Override - public UInteger getNumWorkers() { + public Integer getNumWorkers() { return this.numWorkers; } @Override - public void setNumWorkers(UInteger numWorkers) { + public void setNumWorkers(Integer numWorkers) { this.numWorkers = numWorkers; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Project.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Project.java index be550be95a6..1fbb148ec01 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Project.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Project.java @@ -8,8 +8,6 @@ import java.sql.Timestamp; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -17,12 +15,12 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Project implements IProject { - private static final long serialVersionUID = 1518881636; + private static final long serialVersionUID = -554987569; - private UInteger pid; + private Integer pid; private String name; private String description; - private UInteger ownerId; + private Integer ownerId; private Timestamp creationTime; private String color; @@ -38,10 +36,10 @@ public Project(IProject value) { } public Project( - UInteger pid, + Integer pid, String name, String description, - UInteger ownerId, + Integer ownerId, Timestamp creationTime, String color ) { @@ -54,12 +52,12 @@ public Project( } @Override - public UInteger getPid() { + public Integer getPid() { return this.pid; } @Override - public void setPid(UInteger pid) { + public void setPid(Integer pid) { this.pid = pid; } @@ -84,12 +82,12 @@ public void setDescription(String description) { } @Override - public UInteger getOwnerId() { + public Integer getOwnerId() { return this.ownerId; } @Override - public void setOwnerId(UInteger ownerId) { + public void setOwnerId(Integer ownerId) { this.ownerId = ownerId; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/ProjectUserAccess.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/ProjectUserAccess.java index 203ea4dd8d7..9d76a135446 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/ProjectUserAccess.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/ProjectUserAccess.java @@ -4,11 +4,9 @@ package edu.uci.ics.texera.dao.jooq.generated.tables.pojos; -import edu.uci.ics.texera.dao.jooq.generated.enums.ProjectUserAccessPrivilege; +import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum; import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IProjectUserAccess; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -16,11 +14,11 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class ProjectUserAccess implements IProjectUserAccess { - private static final long serialVersionUID = 1449179369; + private static final long serialVersionUID = 190987603; - private UInteger uid; - private UInteger pid; - private ProjectUserAccessPrivilege privilege; + private Integer uid; + private Integer pid; + private PrivilegeEnum privilege; public ProjectUserAccess() {} @@ -31,9 +29,9 @@ public ProjectUserAccess(IProjectUserAccess value) { } public ProjectUserAccess( - UInteger uid, - UInteger pid, - ProjectUserAccessPrivilege privilege + Integer uid, + Integer pid, + PrivilegeEnum privilege ) { this.uid = uid; this.pid = pid; @@ -41,32 +39,32 @@ public ProjectUserAccess( } @Override - public UInteger getUid() { + public Integer getUid() { return this.uid; } @Override - public void setUid(UInteger uid) { + public void setUid(Integer uid) { this.uid = uid; } @Override - public UInteger getPid() { + public Integer getPid() { return this.pid; } @Override - public void setPid(UInteger pid) { + public void setPid(Integer pid) { this.pid = pid; } @Override - public ProjectUserAccessPrivilege getPrivilege() { + public PrivilegeEnum getPrivilege() { return this.privilege; } @Override - public void setPrivilege(ProjectUserAccessPrivilege privilege) { + public void setPrivilege(PrivilegeEnum privilege) { this.privilege = privilege; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/PublicProject.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/PublicProject.java index 8829cd4d533..1f128491093 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/PublicProject.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/PublicProject.java @@ -6,8 +6,6 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IPublicProject; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -15,10 +13,10 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class PublicProject implements IPublicProject { - private static final long serialVersionUID = -922400626; + private static final long serialVersionUID = 52156527; - private UInteger pid; - private UInteger uid; + private Integer pid; + private Integer uid; public PublicProject() {} @@ -28,30 +26,30 @@ public PublicProject(IPublicProject value) { } public PublicProject( - UInteger pid, - UInteger uid + Integer pid, + Integer uid ) { this.pid = pid; this.uid = uid; } @Override - public UInteger getPid() { + public Integer getPid() { return this.pid; } @Override - public void setPid(UInteger pid) { + public void setPid(Integer pid) { this.pid = pid; } @Override - public UInteger getUid() { + public Integer getUid() { return this.uid; } @Override - public void setUid(UInteger uid) { + public void setUid(Integer uid) { this.uid = uid; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/User.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/User.java index bf24d0cdbcb..33afcef4abf 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/User.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/User.java @@ -4,11 +4,9 @@ package edu.uci.ics.texera.dao.jooq.generated.tables.pojos; -import edu.uci.ics.texera.dao.jooq.generated.enums.UserRole; +import edu.uci.ics.texera.dao.jooq.generated.enums.UserRoleEnum; import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IUser; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -16,15 +14,15 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class User implements IUser { - private static final long serialVersionUID = -51594379; + private static final long serialVersionUID = 1743077803; - private UInteger uid; - private String name; - private String email; - private String password; - private String googleId; - private UserRole role; - private String googleAvatar; + private Integer uid; + private String name; + private String email; + private String password; + private String googleId; + private UserRoleEnum role; + private String googleAvatar; public User() {} @@ -39,13 +37,13 @@ public User(IUser value) { } public User( - UInteger uid, - String name, - String email, - String password, - String googleId, - UserRole role, - String googleAvatar + Integer uid, + String name, + String email, + String password, + String googleId, + UserRoleEnum role, + String googleAvatar ) { this.uid = uid; this.name = name; @@ -57,12 +55,12 @@ public User( } @Override - public UInteger getUid() { + public Integer getUid() { return this.uid; } @Override - public void setUid(UInteger uid) { + public void setUid(Integer uid) { this.uid = uid; } @@ -107,12 +105,12 @@ public void setGoogleId(String googleId) { } @Override - public UserRole getRole() { + public UserRoleEnum getRole() { return this.role; } @Override - public void setRole(UserRole role) { + public void setRole(UserRoleEnum role) { this.role = role; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/UserActivity.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/UserActivity.java index a8c1914216f..2e33c5a1165 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/UserActivity.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/UserActivity.java @@ -8,8 +8,6 @@ import java.sql.Timestamp; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -17,10 +15,10 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class UserActivity implements IUserActivity { - private static final long serialVersionUID = -312641480; + private static final long serialVersionUID = -2119184409; - private UInteger uid; - private UInteger id; + private Integer uid; + private Integer id; private String type; private String ip; private String activate; @@ -38,8 +36,8 @@ public UserActivity(IUserActivity value) { } public UserActivity( - UInteger uid, - UInteger id, + Integer uid, + Integer id, String type, String ip, String activate, @@ -54,22 +52,22 @@ public UserActivity( } @Override - public UInteger getUid() { + public Integer getUid() { return this.uid; } @Override - public void setUid(UInteger uid) { + public void setUid(Integer uid) { this.uid = uid; } @Override - public UInteger getId() { + public Integer getId() { return this.id; } @Override - public void setId(UInteger id) { + public void setId(Integer id) { this.id = id; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/UserConfig.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/UserConfig.java index 27192fef616..8d39d089711 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/UserConfig.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/UserConfig.java @@ -6,8 +6,6 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IUserConfig; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -15,11 +13,11 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class UserConfig implements IUserConfig { - private static final long serialVersionUID = -1727133341; + private static final long serialVersionUID = 1430065156; - private UInteger uid; - private String key; - private String value; + private Integer uid; + private String key; + private String value; public UserConfig() {} @@ -30,9 +28,9 @@ public UserConfig(IUserConfig value) { } public UserConfig( - UInteger uid, - String key, - String value + Integer uid, + String key, + String value ) { this.uid = uid; this.key = key; @@ -40,12 +38,12 @@ public UserConfig( } @Override - public UInteger getUid() { + public Integer getUid() { return this.uid; } @Override - public void setUid(UInteger uid) { + public void setUid(Integer uid) { this.uid = uid; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Workflow.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Workflow.java index bdd7236748d..37e0f269805 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Workflow.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Workflow.java @@ -8,8 +8,6 @@ import java.sql.Timestamp; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -17,22 +15,22 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Workflow implements IWorkflow { - private static final long serialVersionUID = 1973264418; + private static final long serialVersionUID = -835911825; + private Integer wid; private String name; private String description; - private UInteger wid; private String content; private Timestamp creationTime; private Timestamp lastModifiedTime; - private Byte isPublic; + private Boolean isPublic; public Workflow() {} public Workflow(IWorkflow value) { + this.wid = value.getWid(); this.name = value.getName(); this.description = value.getDescription(); - this.wid = value.getWid(); this.content = value.getContent(); this.creationTime = value.getCreationTime(); this.lastModifiedTime = value.getLastModifiedTime(); @@ -40,23 +38,33 @@ public Workflow(IWorkflow value) { } public Workflow( + Integer wid, String name, String description, - UInteger wid, String content, Timestamp creationTime, Timestamp lastModifiedTime, - Byte isPublic + Boolean isPublic ) { + this.wid = wid; this.name = name; this.description = description; - this.wid = wid; this.content = content; this.creationTime = creationTime; this.lastModifiedTime = lastModifiedTime; this.isPublic = isPublic; } + @Override + public Integer getWid() { + return this.wid; + } + + @Override + public void setWid(Integer wid) { + this.wid = wid; + } + @Override public String getName() { return this.name; @@ -77,16 +85,6 @@ public void setDescription(String description) { this.description = description; } - @Override - public UInteger getWid() { - return this.wid; - } - - @Override - public void setWid(UInteger wid) { - this.wid = wid; - } - @Override public String getContent() { return this.content; @@ -118,12 +116,12 @@ public void setLastModifiedTime(Timestamp lastModifiedTime) { } @Override - public Byte getIsPublic() { + public Boolean getIsPublic() { return this.isPublic; } @Override - public void setIsPublic(Byte isPublic) { + public void setIsPublic(Boolean isPublic) { this.isPublic = isPublic; } @@ -131,9 +129,9 @@ public void setIsPublic(Byte isPublic) { public String toString() { StringBuilder sb = new StringBuilder("Workflow ("); - sb.append(name); + sb.append(wid); + sb.append(", ").append(name); sb.append(", ").append(description); - sb.append(", ").append(wid); sb.append(", ").append(content); sb.append(", ").append(creationTime); sb.append(", ").append(lastModifiedTime); @@ -149,9 +147,9 @@ public String toString() { @Override public void from(IWorkflow from) { + setWid(from.getWid()); setName(from.getName()); setDescription(from.getDescription()); - setWid(from.getWid()); setContent(from.getContent()); setCreationTime(from.getCreationTime()); setLastModifiedTime(from.getLastModifiedTime()); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowExecutions.java index 093c89a26ed..a6779b66e98 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowExecutions.java @@ -8,8 +8,6 @@ import java.sql.Timestamp; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -17,16 +15,16 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowExecutions implements IWorkflowExecutions { - private static final long serialVersionUID = -1459052104; + private static final long serialVersionUID = 2121798601; - private UInteger eid; - private UInteger vid; - private UInteger uid; - private Byte status; + private Integer eid; + private Integer vid; + private Integer uid; + private Short status; private String result; private Timestamp startingTime; private Timestamp lastUpdateTime; - private Byte bookmarked; + private Boolean bookmarked; private String name; private String environmentVersion; private String logLocation; @@ -48,14 +46,14 @@ public WorkflowExecutions(IWorkflowExecutions value) { } public WorkflowExecutions( - UInteger eid, - UInteger vid, - UInteger uid, - Byte status, + Integer eid, + Integer vid, + Integer uid, + Short status, String result, Timestamp startingTime, Timestamp lastUpdateTime, - Byte bookmarked, + Boolean bookmarked, String name, String environmentVersion, String logLocation @@ -74,42 +72,42 @@ public WorkflowExecutions( } @Override - public UInteger getEid() { + public Integer getEid() { return this.eid; } @Override - public void setEid(UInteger eid) { + public void setEid(Integer eid) { this.eid = eid; } @Override - public UInteger getVid() { + public Integer getVid() { return this.vid; } @Override - public void setVid(UInteger vid) { + public void setVid(Integer vid) { this.vid = vid; } @Override - public UInteger getUid() { + public Integer getUid() { return this.uid; } @Override - public void setUid(UInteger uid) { + public void setUid(Integer uid) { this.uid = uid; } @Override - public Byte getStatus() { + public Short getStatus() { return this.status; } @Override - public void setStatus(Byte status) { + public void setStatus(Short status) { this.status = status; } @@ -144,12 +142,12 @@ public void setLastUpdateTime(Timestamp lastUpdateTime) { } @Override - public Byte getBookmarked() { + public Boolean getBookmarked() { return this.bookmarked; } @Override - public void setBookmarked(Byte bookmarked) { + public void setBookmarked(Boolean bookmarked) { this.bookmarked = bookmarked; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowOfProject.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowOfProject.java index 2e1e530bccd..6a6f52171dc 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowOfProject.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowOfProject.java @@ -6,8 +6,6 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowOfProject; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -15,10 +13,10 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowOfProject implements IWorkflowOfProject { - private static final long serialVersionUID = -1232118750; + private static final long serialVersionUID = -794046443; - private UInteger wid; - private UInteger pid; + private Integer wid; + private Integer pid; public WorkflowOfProject() {} @@ -28,30 +26,30 @@ public WorkflowOfProject(IWorkflowOfProject value) { } public WorkflowOfProject( - UInteger wid, - UInteger pid + Integer wid, + Integer pid ) { this.wid = wid; this.pid = pid; } @Override - public UInteger getWid() { + public Integer getWid() { return this.wid; } @Override - public void setWid(UInteger wid) { + public void setWid(Integer wid) { this.wid = wid; } @Override - public UInteger getPid() { + public Integer getPid() { return this.pid; } @Override - public void setPid(UInteger pid) { + public void setPid(Integer pid) { this.pid = pid; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowOfUser.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowOfUser.java index 342f66fba00..59f74ac3250 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowOfUser.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowOfUser.java @@ -6,8 +6,6 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowOfUser; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -15,10 +13,10 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowOfUser implements IWorkflowOfUser { - private static final long serialVersionUID = 1424988103; + private static final long serialVersionUID = -628435094; - private UInteger uid; - private UInteger wid; + private Integer uid; + private Integer wid; public WorkflowOfUser() {} @@ -28,30 +26,30 @@ public WorkflowOfUser(IWorkflowOfUser value) { } public WorkflowOfUser( - UInteger uid, - UInteger wid + Integer uid, + Integer wid ) { this.uid = uid; this.wid = wid; } @Override - public UInteger getUid() { + public Integer getUid() { return this.uid; } @Override - public void setUid(UInteger uid) { + public void setUid(Integer uid) { this.uid = uid; } @Override - public UInteger getWid() { + public Integer getWid() { return this.wid; } @Override - public void setWid(UInteger wid) { + public void setWid(Integer wid) { this.wid = wid; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowUserAccess.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowUserAccess.java index 63c3ce336f5..6832c5d2990 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowUserAccess.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowUserAccess.java @@ -4,11 +4,9 @@ package edu.uci.ics.texera.dao.jooq.generated.tables.pojos; -import edu.uci.ics.texera.dao.jooq.generated.enums.WorkflowUserAccessPrivilege; +import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum; import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowUserAccess; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -16,11 +14,11 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowUserAccess implements IWorkflowUserAccess { - private static final long serialVersionUID = 1451132866; + private static final long serialVersionUID = -2021275644; - private UInteger uid; - private UInteger wid; - private WorkflowUserAccessPrivilege privilege; + private Integer uid; + private Integer wid; + private PrivilegeEnum privilege; public WorkflowUserAccess() {} @@ -31,9 +29,9 @@ public WorkflowUserAccess(IWorkflowUserAccess value) { } public WorkflowUserAccess( - UInteger uid, - UInteger wid, - WorkflowUserAccessPrivilege privilege + Integer uid, + Integer wid, + PrivilegeEnum privilege ) { this.uid = uid; this.wid = wid; @@ -41,32 +39,32 @@ public WorkflowUserAccess( } @Override - public UInteger getUid() { + public Integer getUid() { return this.uid; } @Override - public void setUid(UInteger uid) { + public void setUid(Integer uid) { this.uid = uid; } @Override - public UInteger getWid() { + public Integer getWid() { return this.wid; } @Override - public void setWid(UInteger wid) { + public void setWid(Integer wid) { this.wid = wid; } @Override - public WorkflowUserAccessPrivilege getPrivilege() { + public PrivilegeEnum getPrivilege() { return this.privilege; } @Override - public void setPrivilege(WorkflowUserAccessPrivilege privilege) { + public void setPrivilege(PrivilegeEnum privilege) { this.privilege = privilege; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowUserClones.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowUserClones.java index 9a75d18c508..2d68a7cd9fc 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowUserClones.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowUserClones.java @@ -6,8 +6,6 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowUserClones; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -15,10 +13,10 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowUserClones implements IWorkflowUserClones { - private static final long serialVersionUID = -1977537463; + private static final long serialVersionUID = -665673650; - private UInteger uid; - private UInteger wid; + private Integer uid; + private Integer wid; public WorkflowUserClones() {} @@ -28,30 +26,30 @@ public WorkflowUserClones(IWorkflowUserClones value) { } public WorkflowUserClones( - UInteger uid, - UInteger wid + Integer uid, + Integer wid ) { this.uid = uid; this.wid = wid; } @Override - public UInteger getUid() { + public Integer getUid() { return this.uid; } @Override - public void setUid(UInteger uid) { + public void setUid(Integer uid) { this.uid = uid; } @Override - public UInteger getWid() { + public Integer getWid() { return this.wid; } @Override - public void setWid(UInteger wid) { + public void setWid(Integer wid) { this.wid = wid; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowUserLikes.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowUserLikes.java index 9ba51016d1c..8fb9b1d6559 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowUserLikes.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowUserLikes.java @@ -6,8 +6,6 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowUserLikes; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -15,10 +13,10 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowUserLikes implements IWorkflowUserLikes { - private static final long serialVersionUID = 150648739; + private static final long serialVersionUID = -273807986; - private UInteger uid; - private UInteger wid; + private Integer uid; + private Integer wid; public WorkflowUserLikes() {} @@ -28,30 +26,30 @@ public WorkflowUserLikes(IWorkflowUserLikes value) { } public WorkflowUserLikes( - UInteger uid, - UInteger wid + Integer uid, + Integer wid ) { this.uid = uid; this.wid = wid; } @Override - public UInteger getUid() { + public Integer getUid() { return this.uid; } @Override - public void setUid(UInteger uid) { + public void setUid(Integer uid) { this.uid = uid; } @Override - public UInteger getWid() { + public Integer getWid() { return this.wid; } @Override - public void setWid(UInteger wid) { + public void setWid(Integer wid) { this.wid = wid; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowVersion.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowVersion.java index 8cf0f59d91c..032fa4da9c8 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowVersion.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowVersion.java @@ -8,8 +8,6 @@ import java.sql.Timestamp; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -17,10 +15,10 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowVersion implements IWorkflowVersion { - private static final long serialVersionUID = -657374951; + private static final long serialVersionUID = -120441290; - private UInteger vid; - private UInteger wid; + private Integer vid; + private Integer wid; private String content; private Timestamp creationTime; @@ -34,8 +32,8 @@ public WorkflowVersion(IWorkflowVersion value) { } public WorkflowVersion( - UInteger vid, - UInteger wid, + Integer vid, + Integer wid, String content, Timestamp creationTime ) { @@ -46,22 +44,22 @@ public WorkflowVersion( } @Override - public UInteger getVid() { + public Integer getVid() { return this.vid; } @Override - public void setVid(UInteger vid) { + public void setVid(Integer vid) { this.vid = vid; } @Override - public UInteger getWid() { + public Integer getWid() { return this.wid; } @Override - public void setWid(UInteger wid) { + public void setWid(Integer wid) { this.wid = wid; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowViewCount.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowViewCount.java index 1d127edb1c1..5e19ccc7335 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowViewCount.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowViewCount.java @@ -6,8 +6,6 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowViewCount; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -15,10 +13,10 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowViewCount implements IWorkflowViewCount { - private static final long serialVersionUID = -762830743; + private static final long serialVersionUID = 1483149706; - private UInteger wid; - private UInteger viewCount; + private Integer wid; + private Integer viewCount; public WorkflowViewCount() {} @@ -28,30 +26,30 @@ public WorkflowViewCount(IWorkflowViewCount value) { } public WorkflowViewCount( - UInteger wid, - UInteger viewCount + Integer wid, + Integer viewCount ) { this.wid = wid; this.viewCount = viewCount; } @Override - public UInteger getWid() { + public Integer getWid() { return this.wid; } @Override - public void setWid(UInteger wid) { + public void setWid(Integer wid) { this.wid = wid; } @Override - public UInteger getViewCount() { + public Integer getViewCount() { return this.viewCount; } @Override - public void setViewCount(UInteger viewCount) { + public void setViewCount(Integer viewCount) { this.viewCount = viewCount; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetRecord.java index 48af062468e..1026262c251 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetRecord.java @@ -14,22 +14,21 @@ import org.jooq.Record6; import org.jooq.Row6; import org.jooq.impl.UpdatableRecordImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class DatasetRecord extends UpdatableRecordImpl implements Record6, IDataset { +public class DatasetRecord extends UpdatableRecordImpl implements Record6, IDataset { - private static final long serialVersionUID = 877971145; + private static final long serialVersionUID = 795948837; /** * Setter for texera_db.dataset.did. */ @Override - public void setDid(UInteger value) { + public void setDid(Integer value) { set(0, value); } @@ -37,15 +36,15 @@ public void setDid(UInteger value) { * Getter for texera_db.dataset.did. */ @Override - public UInteger getDid() { - return (UInteger) get(0); + public Integer getDid() { + return (Integer) get(0); } /** * Setter for texera_db.dataset.owner_uid. */ @Override - public void setOwnerUid(UInteger value) { + public void setOwnerUid(Integer value) { set(1, value); } @@ -53,8 +52,8 @@ public void setOwnerUid(UInteger value) { * Getter for texera_db.dataset.owner_uid. */ @Override - public UInteger getOwnerUid() { - return (UInteger) get(1); + public Integer getOwnerUid() { + return (Integer) get(1); } /** @@ -77,7 +76,7 @@ public String getName() { * Setter for texera_db.dataset.is_public. */ @Override - public void setIsPublic(Byte value) { + public void setIsPublic(Boolean value) { set(3, value); } @@ -85,8 +84,8 @@ public void setIsPublic(Byte value) { * Getter for texera_db.dataset.is_public. */ @Override - public Byte getIsPublic() { - return (Byte) get(3); + public Boolean getIsPublic() { + return (Boolean) get(3); } /** @@ -126,7 +125,7 @@ public Timestamp getCreationTime() { // ------------------------------------------------------------------------- @Override - public Record1 key() { + public Record1 key() { return (Record1) super.key(); } @@ -135,22 +134,22 @@ public Record1 key() { // ------------------------------------------------------------------------- @Override - public Row6 fieldsRow() { + public Row6 fieldsRow() { return (Row6) super.fieldsRow(); } @Override - public Row6 valuesRow() { + public Row6 valuesRow() { return (Row6) super.valuesRow(); } @Override - public Field field1() { + public Field field1() { return Dataset.DATASET.DID; } @Override - public Field field2() { + public Field field2() { return Dataset.DATASET.OWNER_UID; } @@ -160,7 +159,7 @@ public Field field3() { } @Override - public Field field4() { + public Field field4() { return Dataset.DATASET.IS_PUBLIC; } @@ -175,12 +174,12 @@ public Field field6() { } @Override - public UInteger component1() { + public Integer component1() { return getDid(); } @Override - public UInteger component2() { + public Integer component2() { return getOwnerUid(); } @@ -190,7 +189,7 @@ public String component3() { } @Override - public Byte component4() { + public Boolean component4() { return getIsPublic(); } @@ -205,12 +204,12 @@ public Timestamp component6() { } @Override - public UInteger value1() { + public Integer value1() { return getDid(); } @Override - public UInteger value2() { + public Integer value2() { return getOwnerUid(); } @@ -220,7 +219,7 @@ public String value3() { } @Override - public Byte value4() { + public Boolean value4() { return getIsPublic(); } @@ -235,13 +234,13 @@ public Timestamp value6() { } @Override - public DatasetRecord value1(UInteger value) { + public DatasetRecord value1(Integer value) { setDid(value); return this; } @Override - public DatasetRecord value2(UInteger value) { + public DatasetRecord value2(Integer value) { setOwnerUid(value); return this; } @@ -253,7 +252,7 @@ public DatasetRecord value3(String value) { } @Override - public DatasetRecord value4(Byte value) { + public DatasetRecord value4(Boolean value) { setIsPublic(value); return this; } @@ -271,7 +270,7 @@ public DatasetRecord value6(Timestamp value) { } @Override - public DatasetRecord values(UInteger value1, UInteger value2, String value3, Byte value4, String value5, Timestamp value6) { + public DatasetRecord values(Integer value1, Integer value2, String value3, Boolean value4, String value5, Timestamp value6) { value1(value1); value2(value2); value3(value3); @@ -315,7 +314,7 @@ public DatasetRecord() { /** * Create a detached, initialised DatasetRecord */ - public DatasetRecord(UInteger did, UInteger ownerUid, String name, Byte isPublic, String description, Timestamp creationTime) { + public DatasetRecord(Integer did, Integer ownerUid, String name, Boolean isPublic, String description, Timestamp creationTime) { super(Dataset.DATASET); set(0, did); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetUserAccessRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetUserAccessRecord.java index 42d2a8280b2..dd9a13f4135 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetUserAccessRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetUserAccessRecord.java @@ -4,7 +4,7 @@ package edu.uci.ics.texera.dao.jooq.generated.tables.records; -import edu.uci.ics.texera.dao.jooq.generated.enums.DatasetUserAccessPrivilege; +import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum; import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetUserAccess; import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IDatasetUserAccess; @@ -13,22 +13,21 @@ import org.jooq.Record3; import org.jooq.Row3; import org.jooq.impl.UpdatableRecordImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class DatasetUserAccessRecord extends UpdatableRecordImpl implements Record3, IDatasetUserAccess { +public class DatasetUserAccessRecord extends UpdatableRecordImpl implements Record3, IDatasetUserAccess { - private static final long serialVersionUID = -349651586; + private static final long serialVersionUID = 171720249; /** * Setter for texera_db.dataset_user_access.did. */ @Override - public void setDid(UInteger value) { + public void setDid(Integer value) { set(0, value); } @@ -36,15 +35,15 @@ public void setDid(UInteger value) { * Getter for texera_db.dataset_user_access.did. */ @Override - public UInteger getDid() { - return (UInteger) get(0); + public Integer getDid() { + return (Integer) get(0); } /** * Setter for texera_db.dataset_user_access.uid. */ @Override - public void setUid(UInteger value) { + public void setUid(Integer value) { set(1, value); } @@ -52,15 +51,15 @@ public void setUid(UInteger value) { * Getter for texera_db.dataset_user_access.uid. */ @Override - public UInteger getUid() { - return (UInteger) get(1); + public Integer getUid() { + return (Integer) get(1); } /** * Setter for texera_db.dataset_user_access.privilege. */ @Override - public void setPrivilege(DatasetUserAccessPrivilege value) { + public void setPrivilege(PrivilegeEnum value) { set(2, value); } @@ -68,8 +67,8 @@ public void setPrivilege(DatasetUserAccessPrivilege value) { * Getter for texera_db.dataset_user_access.privilege. */ @Override - public DatasetUserAccessPrivilege getPrivilege() { - return (DatasetUserAccessPrivilege) get(2); + public PrivilegeEnum getPrivilege() { + return (PrivilegeEnum) get(2); } // ------------------------------------------------------------------------- @@ -77,7 +76,7 @@ public DatasetUserAccessPrivilege getPrivilege() { // ------------------------------------------------------------------------- @Override - public Record2 key() { + public Record2 key() { return (Record2) super.key(); } @@ -86,80 +85,80 @@ public Record2 key() { // ------------------------------------------------------------------------- @Override - public Row3 fieldsRow() { + public Row3 fieldsRow() { return (Row3) super.fieldsRow(); } @Override - public Row3 valuesRow() { + public Row3 valuesRow() { return (Row3) super.valuesRow(); } @Override - public Field field1() { + public Field field1() { return DatasetUserAccess.DATASET_USER_ACCESS.DID; } @Override - public Field field2() { + public Field field2() { return DatasetUserAccess.DATASET_USER_ACCESS.UID; } @Override - public Field field3() { + public Field field3() { return DatasetUserAccess.DATASET_USER_ACCESS.PRIVILEGE; } @Override - public UInteger component1() { + public Integer component1() { return getDid(); } @Override - public UInteger component2() { + public Integer component2() { return getUid(); } @Override - public DatasetUserAccessPrivilege component3() { + public PrivilegeEnum component3() { return getPrivilege(); } @Override - public UInteger value1() { + public Integer value1() { return getDid(); } @Override - public UInteger value2() { + public Integer value2() { return getUid(); } @Override - public DatasetUserAccessPrivilege value3() { + public PrivilegeEnum value3() { return getPrivilege(); } @Override - public DatasetUserAccessRecord value1(UInteger value) { + public DatasetUserAccessRecord value1(Integer value) { setDid(value); return this; } @Override - public DatasetUserAccessRecord value2(UInteger value) { + public DatasetUserAccessRecord value2(Integer value) { setUid(value); return this; } @Override - public DatasetUserAccessRecord value3(DatasetUserAccessPrivilege value) { + public DatasetUserAccessRecord value3(PrivilegeEnum value) { setPrivilege(value); return this; } @Override - public DatasetUserAccessRecord values(UInteger value1, UInteger value2, DatasetUserAccessPrivilege value3) { + public DatasetUserAccessRecord values(Integer value1, Integer value2, PrivilegeEnum value3) { value1(value1); value2(value2); value3(value3); @@ -197,7 +196,7 @@ public DatasetUserAccessRecord() { /** * Create a detached, initialised DatasetUserAccessRecord */ - public DatasetUserAccessRecord(UInteger did, UInteger uid, DatasetUserAccessPrivilege privilege) { + public DatasetUserAccessRecord(Integer did, Integer uid, PrivilegeEnum privilege) { super(DatasetUserAccess.DATASET_USER_ACCESS); set(0, did); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetVersionRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetVersionRecord.java index cb66d5b8f9c..84026ecd8fe 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetVersionRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetVersionRecord.java @@ -14,22 +14,21 @@ import org.jooq.Record6; import org.jooq.Row6; import org.jooq.impl.UpdatableRecordImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class DatasetVersionRecord extends UpdatableRecordImpl implements Record6, IDatasetVersion { +public class DatasetVersionRecord extends UpdatableRecordImpl implements Record6, IDatasetVersion { - private static final long serialVersionUID = 1436579649; + private static final long serialVersionUID = -1873710625; /** * Setter for texera_db.dataset_version.dvid. */ @Override - public void setDvid(UInteger value) { + public void setDvid(Integer value) { set(0, value); } @@ -37,15 +36,15 @@ public void setDvid(UInteger value) { * Getter for texera_db.dataset_version.dvid. */ @Override - public UInteger getDvid() { - return (UInteger) get(0); + public Integer getDvid() { + return (Integer) get(0); } /** * Setter for texera_db.dataset_version.did. */ @Override - public void setDid(UInteger value) { + public void setDid(Integer value) { set(1, value); } @@ -53,15 +52,15 @@ public void setDid(UInteger value) { * Getter for texera_db.dataset_version.did. */ @Override - public UInteger getDid() { - return (UInteger) get(1); + public Integer getDid() { + return (Integer) get(1); } /** * Setter for texera_db.dataset_version.creator_uid. */ @Override - public void setCreatorUid(UInteger value) { + public void setCreatorUid(Integer value) { set(2, value); } @@ -69,8 +68,8 @@ public void setCreatorUid(UInteger value) { * Getter for texera_db.dataset_version.creator_uid. */ @Override - public UInteger getCreatorUid() { - return (UInteger) get(2); + public Integer getCreatorUid() { + return (Integer) get(2); } /** @@ -126,7 +125,7 @@ public Timestamp getCreationTime() { // ------------------------------------------------------------------------- @Override - public Record1 key() { + public Record1 key() { return (Record1) super.key(); } @@ -135,27 +134,27 @@ public Record1 key() { // ------------------------------------------------------------------------- @Override - public Row6 fieldsRow() { + public Row6 fieldsRow() { return (Row6) super.fieldsRow(); } @Override - public Row6 valuesRow() { + public Row6 valuesRow() { return (Row6) super.valuesRow(); } @Override - public Field field1() { + public Field field1() { return DatasetVersion.DATASET_VERSION.DVID; } @Override - public Field field2() { + public Field field2() { return DatasetVersion.DATASET_VERSION.DID; } @Override - public Field field3() { + public Field field3() { return DatasetVersion.DATASET_VERSION.CREATOR_UID; } @@ -175,17 +174,17 @@ public Field field6() { } @Override - public UInteger component1() { + public Integer component1() { return getDvid(); } @Override - public UInteger component2() { + public Integer component2() { return getDid(); } @Override - public UInteger component3() { + public Integer component3() { return getCreatorUid(); } @@ -205,17 +204,17 @@ public Timestamp component6() { } @Override - public UInteger value1() { + public Integer value1() { return getDvid(); } @Override - public UInteger value2() { + public Integer value2() { return getDid(); } @Override - public UInteger value3() { + public Integer value3() { return getCreatorUid(); } @@ -235,19 +234,19 @@ public Timestamp value6() { } @Override - public DatasetVersionRecord value1(UInteger value) { + public DatasetVersionRecord value1(Integer value) { setDvid(value); return this; } @Override - public DatasetVersionRecord value2(UInteger value) { + public DatasetVersionRecord value2(Integer value) { setDid(value); return this; } @Override - public DatasetVersionRecord value3(UInteger value) { + public DatasetVersionRecord value3(Integer value) { setCreatorUid(value); return this; } @@ -271,7 +270,7 @@ public DatasetVersionRecord value6(Timestamp value) { } @Override - public DatasetVersionRecord values(UInteger value1, UInteger value2, UInteger value3, String value4, String value5, Timestamp value6) { + public DatasetVersionRecord values(Integer value1, Integer value2, Integer value3, String value4, String value5, Timestamp value6) { value1(value1); value2(value2); value3(value3); @@ -315,7 +314,7 @@ public DatasetVersionRecord() { /** * Create a detached, initialised DatasetVersionRecord */ - public DatasetVersionRecord(UInteger dvid, UInteger did, UInteger creatorUid, String name, String versionHash, Timestamp creationTime) { + public DatasetVersionRecord(Integer dvid, Integer did, Integer creatorUid, String name, String versionHash, Timestamp creationTime) { super(DatasetVersion.DATASET_VERSION); set(0, dvid); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorExecutionsRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorExecutionsRecord.java index f3b78e48a4e..ef4f2a1d514 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorExecutionsRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorExecutionsRecord.java @@ -12,23 +12,21 @@ import org.jooq.Record3; import org.jooq.Row3; import org.jooq.impl.UpdatableRecordImpl; -import org.jooq.types.UInteger; -import org.jooq.types.ULong; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class OperatorExecutionsRecord extends UpdatableRecordImpl implements Record3, IOperatorExecutions { +public class OperatorExecutionsRecord extends UpdatableRecordImpl implements Record3, IOperatorExecutions { - private static final long serialVersionUID = 1433337880; + private static final long serialVersionUID = 652280981; /** * Setter for texera_db.operator_executions.operator_execution_id. */ @Override - public void setOperatorExecutionId(ULong value) { + public void setOperatorExecutionId(Long value) { set(0, value); } @@ -36,15 +34,15 @@ public void setOperatorExecutionId(ULong value) { * Getter for texera_db.operator_executions.operator_execution_id. */ @Override - public ULong getOperatorExecutionId() { - return (ULong) get(0); + public Long getOperatorExecutionId() { + return (Long) get(0); } /** * Setter for texera_db.operator_executions.workflow_execution_id. */ @Override - public void setWorkflowExecutionId(UInteger value) { + public void setWorkflowExecutionId(Integer value) { set(1, value); } @@ -52,8 +50,8 @@ public void setWorkflowExecutionId(UInteger value) { * Getter for texera_db.operator_executions.workflow_execution_id. */ @Override - public UInteger getWorkflowExecutionId() { - return (UInteger) get(1); + public Integer getWorkflowExecutionId() { + return (Integer) get(1); } /** @@ -77,7 +75,7 @@ public String getOperatorId() { // ------------------------------------------------------------------------- @Override - public Record1 key() { + public Record1 key() { return (Record1) super.key(); } @@ -86,22 +84,22 @@ public Record1 key() { // ------------------------------------------------------------------------- @Override - public Row3 fieldsRow() { + public Row3 fieldsRow() { return (Row3) super.fieldsRow(); } @Override - public Row3 valuesRow() { + public Row3 valuesRow() { return (Row3) super.valuesRow(); } @Override - public Field field1() { + public Field field1() { return OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID; } @Override - public Field field2() { + public Field field2() { return OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID; } @@ -111,12 +109,12 @@ public Field field3() { } @Override - public ULong component1() { + public Long component1() { return getOperatorExecutionId(); } @Override - public UInteger component2() { + public Integer component2() { return getWorkflowExecutionId(); } @@ -126,12 +124,12 @@ public String component3() { } @Override - public ULong value1() { + public Long value1() { return getOperatorExecutionId(); } @Override - public UInteger value2() { + public Integer value2() { return getWorkflowExecutionId(); } @@ -141,13 +139,13 @@ public String value3() { } @Override - public OperatorExecutionsRecord value1(ULong value) { + public OperatorExecutionsRecord value1(Long value) { setOperatorExecutionId(value); return this; } @Override - public OperatorExecutionsRecord value2(UInteger value) { + public OperatorExecutionsRecord value2(Integer value) { setWorkflowExecutionId(value); return this; } @@ -159,7 +157,7 @@ public OperatorExecutionsRecord value3(String value) { } @Override - public OperatorExecutionsRecord values(ULong value1, UInteger value2, String value3) { + public OperatorExecutionsRecord values(Long value1, Integer value2, String value3) { value1(value1); value2(value2); value3(value3); @@ -197,7 +195,7 @@ public OperatorExecutionsRecord() { /** * Create a detached, initialised OperatorExecutionsRecord */ - public OperatorExecutionsRecord(ULong operatorExecutionId, UInteger workflowExecutionId, String operatorId) { + public OperatorExecutionsRecord(Long operatorExecutionId, Integer workflowExecutionId, String operatorId) { super(OperatorExecutions.OPERATOR_EXECUTIONS); set(0, operatorExecutionId); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorRuntimeStatisticsRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorRuntimeStatisticsRecord.java index f34ef3c1c43..02f9f10c9b9 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorRuntimeStatisticsRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorRuntimeStatisticsRecord.java @@ -14,23 +14,21 @@ import org.jooq.Record9; import org.jooq.Row9; import org.jooq.impl.UpdatableRecordImpl; -import org.jooq.types.UInteger; -import org.jooq.types.ULong; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class OperatorRuntimeStatisticsRecord extends UpdatableRecordImpl implements Record9, IOperatorRuntimeStatistics { +public class OperatorRuntimeStatisticsRecord extends UpdatableRecordImpl implements Record9, IOperatorRuntimeStatistics { - private static final long serialVersionUID = -610841667; + private static final long serialVersionUID = 484834822; /** * Setter for texera_db.operator_runtime_statistics.operator_execution_id. */ @Override - public void setOperatorExecutionId(ULong value) { + public void setOperatorExecutionId(Long value) { set(0, value); } @@ -38,8 +36,8 @@ public void setOperatorExecutionId(ULong value) { * Getter for texera_db.operator_runtime_statistics.operator_execution_id. */ @Override - public ULong getOperatorExecutionId() { - return (ULong) get(0); + public Long getOperatorExecutionId() { + return (Long) get(0); } /** @@ -62,7 +60,7 @@ public Timestamp getTime() { * Setter for texera_db.operator_runtime_statistics.input_tuple_cnt. */ @Override - public void setInputTupleCnt(ULong value) { + public void setInputTupleCnt(Long value) { set(2, value); } @@ -70,15 +68,15 @@ public void setInputTupleCnt(ULong value) { * Getter for texera_db.operator_runtime_statistics.input_tuple_cnt. */ @Override - public ULong getInputTupleCnt() { - return (ULong) get(2); + public Long getInputTupleCnt() { + return (Long) get(2); } /** * Setter for texera_db.operator_runtime_statistics.output_tuple_cnt. */ @Override - public void setOutputTupleCnt(ULong value) { + public void setOutputTupleCnt(Long value) { set(3, value); } @@ -86,15 +84,15 @@ public void setOutputTupleCnt(ULong value) { * Getter for texera_db.operator_runtime_statistics.output_tuple_cnt. */ @Override - public ULong getOutputTupleCnt() { - return (ULong) get(3); + public Long getOutputTupleCnt() { + return (Long) get(3); } /** * Setter for texera_db.operator_runtime_statistics.status. */ @Override - public void setStatus(Byte value) { + public void setStatus(Short value) { set(4, value); } @@ -102,15 +100,15 @@ public void setStatus(Byte value) { * Getter for texera_db.operator_runtime_statistics.status. */ @Override - public Byte getStatus() { - return (Byte) get(4); + public Short getStatus() { + return (Short) get(4); } /** * Setter for texera_db.operator_runtime_statistics.data_processing_time. */ @Override - public void setDataProcessingTime(ULong value) { + public void setDataProcessingTime(Long value) { set(5, value); } @@ -118,15 +116,15 @@ public void setDataProcessingTime(ULong value) { * Getter for texera_db.operator_runtime_statistics.data_processing_time. */ @Override - public ULong getDataProcessingTime() { - return (ULong) get(5); + public Long getDataProcessingTime() { + return (Long) get(5); } /** * Setter for texera_db.operator_runtime_statistics.control_processing_time. */ @Override - public void setControlProcessingTime(ULong value) { + public void setControlProcessingTime(Long value) { set(6, value); } @@ -134,15 +132,15 @@ public void setControlProcessingTime(ULong value) { * Getter for texera_db.operator_runtime_statistics.control_processing_time. */ @Override - public ULong getControlProcessingTime() { - return (ULong) get(6); + public Long getControlProcessingTime() { + return (Long) get(6); } /** * Setter for texera_db.operator_runtime_statistics.idle_time. */ @Override - public void setIdleTime(ULong value) { + public void setIdleTime(Long value) { set(7, value); } @@ -150,15 +148,15 @@ public void setIdleTime(ULong value) { * Getter for texera_db.operator_runtime_statistics.idle_time. */ @Override - public ULong getIdleTime() { - return (ULong) get(7); + public Long getIdleTime() { + return (Long) get(7); } /** * Setter for texera_db.operator_runtime_statistics.num_workers. */ @Override - public void setNumWorkers(UInteger value) { + public void setNumWorkers(Integer value) { set(8, value); } @@ -166,8 +164,8 @@ public void setNumWorkers(UInteger value) { * Getter for texera_db.operator_runtime_statistics.num_workers. */ @Override - public UInteger getNumWorkers() { - return (UInteger) get(8); + public Integer getNumWorkers() { + return (Integer) get(8); } // ------------------------------------------------------------------------- @@ -175,7 +173,7 @@ public UInteger getNumWorkers() { // ------------------------------------------------------------------------- @Override - public Record2 key() { + public Record2 key() { return (Record2) super.key(); } @@ -184,17 +182,17 @@ public Record2 key() { // ------------------------------------------------------------------------- @Override - public Row9 fieldsRow() { + public Row9 fieldsRow() { return (Row9) super.fieldsRow(); } @Override - public Row9 valuesRow() { + public Row9 valuesRow() { return (Row9) super.valuesRow(); } @Override - public Field field1() { + public Field field1() { return OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OPERATOR_EXECUTION_ID; } @@ -204,42 +202,42 @@ public Field field2() { } @Override - public Field field3() { + public Field field3() { return OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.INPUT_TUPLE_CNT; } @Override - public Field field4() { + public Field field4() { return OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OUTPUT_TUPLE_CNT; } @Override - public Field field5() { + public Field field5() { return OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.STATUS; } @Override - public Field field6() { + public Field field6() { return OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.DATA_PROCESSING_TIME; } @Override - public Field field7() { + public Field field7() { return OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.CONTROL_PROCESSING_TIME; } @Override - public Field field8() { + public Field field8() { return OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.IDLE_TIME; } @Override - public Field field9() { + public Field field9() { return OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.NUM_WORKERS; } @Override - public ULong component1() { + public Long component1() { return getOperatorExecutionId(); } @@ -249,42 +247,42 @@ public Timestamp component2() { } @Override - public ULong component3() { + public Long component3() { return getInputTupleCnt(); } @Override - public ULong component4() { + public Long component4() { return getOutputTupleCnt(); } @Override - public Byte component5() { + public Short component5() { return getStatus(); } @Override - public ULong component6() { + public Long component6() { return getDataProcessingTime(); } @Override - public ULong component7() { + public Long component7() { return getControlProcessingTime(); } @Override - public ULong component8() { + public Long component8() { return getIdleTime(); } @Override - public UInteger component9() { + public Integer component9() { return getNumWorkers(); } @Override - public ULong value1() { + public Long value1() { return getOperatorExecutionId(); } @@ -294,42 +292,42 @@ public Timestamp value2() { } @Override - public ULong value3() { + public Long value3() { return getInputTupleCnt(); } @Override - public ULong value4() { + public Long value4() { return getOutputTupleCnt(); } @Override - public Byte value5() { + public Short value5() { return getStatus(); } @Override - public ULong value6() { + public Long value6() { return getDataProcessingTime(); } @Override - public ULong value7() { + public Long value7() { return getControlProcessingTime(); } @Override - public ULong value8() { + public Long value8() { return getIdleTime(); } @Override - public UInteger value9() { + public Integer value9() { return getNumWorkers(); } @Override - public OperatorRuntimeStatisticsRecord value1(ULong value) { + public OperatorRuntimeStatisticsRecord value1(Long value) { setOperatorExecutionId(value); return this; } @@ -341,49 +339,49 @@ public OperatorRuntimeStatisticsRecord value2(Timestamp value) { } @Override - public OperatorRuntimeStatisticsRecord value3(ULong value) { + public OperatorRuntimeStatisticsRecord value3(Long value) { setInputTupleCnt(value); return this; } @Override - public OperatorRuntimeStatisticsRecord value4(ULong value) { + public OperatorRuntimeStatisticsRecord value4(Long value) { setOutputTupleCnt(value); return this; } @Override - public OperatorRuntimeStatisticsRecord value5(Byte value) { + public OperatorRuntimeStatisticsRecord value5(Short value) { setStatus(value); return this; } @Override - public OperatorRuntimeStatisticsRecord value6(ULong value) { + public OperatorRuntimeStatisticsRecord value6(Long value) { setDataProcessingTime(value); return this; } @Override - public OperatorRuntimeStatisticsRecord value7(ULong value) { + public OperatorRuntimeStatisticsRecord value7(Long value) { setControlProcessingTime(value); return this; } @Override - public OperatorRuntimeStatisticsRecord value8(ULong value) { + public OperatorRuntimeStatisticsRecord value8(Long value) { setIdleTime(value); return this; } @Override - public OperatorRuntimeStatisticsRecord value9(UInteger value) { + public OperatorRuntimeStatisticsRecord value9(Integer value) { setNumWorkers(value); return this; } @Override - public OperatorRuntimeStatisticsRecord values(ULong value1, Timestamp value2, ULong value3, ULong value4, Byte value5, ULong value6, ULong value7, ULong value8, UInteger value9) { + public OperatorRuntimeStatisticsRecord values(Long value1, Timestamp value2, Long value3, Long value4, Short value5, Long value6, Long value7, Long value8, Integer value9) { value1(value1); value2(value2); value3(value3); @@ -433,7 +431,7 @@ public OperatorRuntimeStatisticsRecord() { /** * Create a detached, initialised OperatorRuntimeStatisticsRecord */ - public OperatorRuntimeStatisticsRecord(ULong operatorExecutionId, Timestamp time, ULong inputTupleCnt, ULong outputTupleCnt, Byte status, ULong dataProcessingTime, ULong controlProcessingTime, ULong idleTime, UInteger numWorkers) { + public OperatorRuntimeStatisticsRecord(Long operatorExecutionId, Timestamp time, Long inputTupleCnt, Long outputTupleCnt, Short status, Long dataProcessingTime, Long controlProcessingTime, Long idleTime, Integer numWorkers) { super(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS); set(0, operatorExecutionId); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/ProjectRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/ProjectRecord.java index 530e1bf5353..855c85c1258 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/ProjectRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/ProjectRecord.java @@ -14,22 +14,21 @@ import org.jooq.Record6; import org.jooq.Row6; import org.jooq.impl.UpdatableRecordImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class ProjectRecord extends UpdatableRecordImpl implements Record6, IProject { +public class ProjectRecord extends UpdatableRecordImpl implements Record6, IProject { - private static final long serialVersionUID = -392206862; + private static final long serialVersionUID = 958376938; /** * Setter for texera_db.project.pid. */ @Override - public void setPid(UInteger value) { + public void setPid(Integer value) { set(0, value); } @@ -37,8 +36,8 @@ public void setPid(UInteger value) { * Getter for texera_db.project.pid. */ @Override - public UInteger getPid() { - return (UInteger) get(0); + public Integer getPid() { + return (Integer) get(0); } /** @@ -77,7 +76,7 @@ public String getDescription() { * Setter for texera_db.project.owner_id. */ @Override - public void setOwnerId(UInteger value) { + public void setOwnerId(Integer value) { set(3, value); } @@ -85,8 +84,8 @@ public void setOwnerId(UInteger value) { * Getter for texera_db.project.owner_id. */ @Override - public UInteger getOwnerId() { - return (UInteger) get(3); + public Integer getOwnerId() { + return (Integer) get(3); } /** @@ -126,7 +125,7 @@ public String getColor() { // ------------------------------------------------------------------------- @Override - public Record1 key() { + public Record1 key() { return (Record1) super.key(); } @@ -135,17 +134,17 @@ public Record1 key() { // ------------------------------------------------------------------------- @Override - public Row6 fieldsRow() { + public Row6 fieldsRow() { return (Row6) super.fieldsRow(); } @Override - public Row6 valuesRow() { + public Row6 valuesRow() { return (Row6) super.valuesRow(); } @Override - public Field field1() { + public Field field1() { return Project.PROJECT.PID; } @@ -160,7 +159,7 @@ public Field field3() { } @Override - public Field field4() { + public Field field4() { return Project.PROJECT.OWNER_ID; } @@ -175,7 +174,7 @@ public Field field6() { } @Override - public UInteger component1() { + public Integer component1() { return getPid(); } @@ -190,7 +189,7 @@ public String component3() { } @Override - public UInteger component4() { + public Integer component4() { return getOwnerId(); } @@ -205,7 +204,7 @@ public String component6() { } @Override - public UInteger value1() { + public Integer value1() { return getPid(); } @@ -220,7 +219,7 @@ public String value3() { } @Override - public UInteger value4() { + public Integer value4() { return getOwnerId(); } @@ -235,7 +234,7 @@ public String value6() { } @Override - public ProjectRecord value1(UInteger value) { + public ProjectRecord value1(Integer value) { setPid(value); return this; } @@ -253,7 +252,7 @@ public ProjectRecord value3(String value) { } @Override - public ProjectRecord value4(UInteger value) { + public ProjectRecord value4(Integer value) { setOwnerId(value); return this; } @@ -271,7 +270,7 @@ public ProjectRecord value6(String value) { } @Override - public ProjectRecord values(UInteger value1, String value2, String value3, UInteger value4, Timestamp value5, String value6) { + public ProjectRecord values(Integer value1, String value2, String value3, Integer value4, Timestamp value5, String value6) { value1(value1); value2(value2); value3(value3); @@ -315,7 +314,7 @@ public ProjectRecord() { /** * Create a detached, initialised ProjectRecord */ - public ProjectRecord(UInteger pid, String name, String description, UInteger ownerId, Timestamp creationTime, String color) { + public ProjectRecord(Integer pid, String name, String description, Integer ownerId, Timestamp creationTime, String color) { super(Project.PROJECT); set(0, pid); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/ProjectUserAccessRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/ProjectUserAccessRecord.java index 24dae3acac6..c27e7df1be0 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/ProjectUserAccessRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/ProjectUserAccessRecord.java @@ -4,7 +4,7 @@ package edu.uci.ics.texera.dao.jooq.generated.tables.records; -import edu.uci.ics.texera.dao.jooq.generated.enums.ProjectUserAccessPrivilege; +import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum; import edu.uci.ics.texera.dao.jooq.generated.tables.ProjectUserAccess; import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IProjectUserAccess; @@ -13,22 +13,21 @@ import org.jooq.Record3; import org.jooq.Row3; import org.jooq.impl.UpdatableRecordImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class ProjectUserAccessRecord extends UpdatableRecordImpl implements Record3, IProjectUserAccess { +public class ProjectUserAccessRecord extends UpdatableRecordImpl implements Record3, IProjectUserAccess { - private static final long serialVersionUID = 193545410; + private static final long serialVersionUID = -522038796; /** * Setter for texera_db.project_user_access.uid. */ @Override - public void setUid(UInteger value) { + public void setUid(Integer value) { set(0, value); } @@ -36,15 +35,15 @@ public void setUid(UInteger value) { * Getter for texera_db.project_user_access.uid. */ @Override - public UInteger getUid() { - return (UInteger) get(0); + public Integer getUid() { + return (Integer) get(0); } /** * Setter for texera_db.project_user_access.pid. */ @Override - public void setPid(UInteger value) { + public void setPid(Integer value) { set(1, value); } @@ -52,15 +51,15 @@ public void setPid(UInteger value) { * Getter for texera_db.project_user_access.pid. */ @Override - public UInteger getPid() { - return (UInteger) get(1); + public Integer getPid() { + return (Integer) get(1); } /** * Setter for texera_db.project_user_access.privilege. */ @Override - public void setPrivilege(ProjectUserAccessPrivilege value) { + public void setPrivilege(PrivilegeEnum value) { set(2, value); } @@ -68,8 +67,8 @@ public void setPrivilege(ProjectUserAccessPrivilege value) { * Getter for texera_db.project_user_access.privilege. */ @Override - public ProjectUserAccessPrivilege getPrivilege() { - return (ProjectUserAccessPrivilege) get(2); + public PrivilegeEnum getPrivilege() { + return (PrivilegeEnum) get(2); } // ------------------------------------------------------------------------- @@ -77,7 +76,7 @@ public ProjectUserAccessPrivilege getPrivilege() { // ------------------------------------------------------------------------- @Override - public Record2 key() { + public Record2 key() { return (Record2) super.key(); } @@ -86,80 +85,80 @@ public Record2 key() { // ------------------------------------------------------------------------- @Override - public Row3 fieldsRow() { + public Row3 fieldsRow() { return (Row3) super.fieldsRow(); } @Override - public Row3 valuesRow() { + public Row3 valuesRow() { return (Row3) super.valuesRow(); } @Override - public Field field1() { + public Field field1() { return ProjectUserAccess.PROJECT_USER_ACCESS.UID; } @Override - public Field field2() { + public Field field2() { return ProjectUserAccess.PROJECT_USER_ACCESS.PID; } @Override - public Field field3() { + public Field field3() { return ProjectUserAccess.PROJECT_USER_ACCESS.PRIVILEGE; } @Override - public UInteger component1() { + public Integer component1() { return getUid(); } @Override - public UInteger component2() { + public Integer component2() { return getPid(); } @Override - public ProjectUserAccessPrivilege component3() { + public PrivilegeEnum component3() { return getPrivilege(); } @Override - public UInteger value1() { + public Integer value1() { return getUid(); } @Override - public UInteger value2() { + public Integer value2() { return getPid(); } @Override - public ProjectUserAccessPrivilege value3() { + public PrivilegeEnum value3() { return getPrivilege(); } @Override - public ProjectUserAccessRecord value1(UInteger value) { + public ProjectUserAccessRecord value1(Integer value) { setUid(value); return this; } @Override - public ProjectUserAccessRecord value2(UInteger value) { + public ProjectUserAccessRecord value2(Integer value) { setPid(value); return this; } @Override - public ProjectUserAccessRecord value3(ProjectUserAccessPrivilege value) { + public ProjectUserAccessRecord value3(PrivilegeEnum value) { setPrivilege(value); return this; } @Override - public ProjectUserAccessRecord values(UInteger value1, UInteger value2, ProjectUserAccessPrivilege value3) { + public ProjectUserAccessRecord values(Integer value1, Integer value2, PrivilegeEnum value3) { value1(value1); value2(value2); value3(value3); @@ -197,7 +196,7 @@ public ProjectUserAccessRecord() { /** * Create a detached, initialised ProjectUserAccessRecord */ - public ProjectUserAccessRecord(UInteger uid, UInteger pid, ProjectUserAccessPrivilege privilege) { + public ProjectUserAccessRecord(Integer uid, Integer pid, PrivilegeEnum privilege) { super(ProjectUserAccess.PROJECT_USER_ACCESS); set(0, uid); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/PublicProjectRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/PublicProjectRecord.java index bce262006ff..fd50ee86bb1 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/PublicProjectRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/PublicProjectRecord.java @@ -12,22 +12,21 @@ import org.jooq.Record2; import org.jooq.Row2; import org.jooq.impl.UpdatableRecordImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class PublicProjectRecord extends UpdatableRecordImpl implements Record2, IPublicProject { +public class PublicProjectRecord extends UpdatableRecordImpl implements Record2, IPublicProject { - private static final long serialVersionUID = -1511514396; + private static final long serialVersionUID = -2103383350; /** * Setter for texera_db.public_project.pid. */ @Override - public void setPid(UInteger value) { + public void setPid(Integer value) { set(0, value); } @@ -35,15 +34,15 @@ public void setPid(UInteger value) { * Getter for texera_db.public_project.pid. */ @Override - public UInteger getPid() { - return (UInteger) get(0); + public Integer getPid() { + return (Integer) get(0); } /** * Setter for texera_db.public_project.uid. */ @Override - public void setUid(UInteger value) { + public void setUid(Integer value) { set(1, value); } @@ -51,8 +50,8 @@ public void setUid(UInteger value) { * Getter for texera_db.public_project.uid. */ @Override - public UInteger getUid() { - return (UInteger) get(1); + public Integer getUid() { + return (Integer) get(1); } // ------------------------------------------------------------------------- @@ -60,7 +59,7 @@ public UInteger getUid() { // ------------------------------------------------------------------------- @Override - public Record1 key() { + public Record1 key() { return (Record1) super.key(); } @@ -69,59 +68,59 @@ public Record1 key() { // ------------------------------------------------------------------------- @Override - public Row2 fieldsRow() { + public Row2 fieldsRow() { return (Row2) super.fieldsRow(); } @Override - public Row2 valuesRow() { + public Row2 valuesRow() { return (Row2) super.valuesRow(); } @Override - public Field field1() { + public Field field1() { return PublicProject.PUBLIC_PROJECT.PID; } @Override - public Field field2() { + public Field field2() { return PublicProject.PUBLIC_PROJECT.UID; } @Override - public UInteger component1() { + public Integer component1() { return getPid(); } @Override - public UInteger component2() { + public Integer component2() { return getUid(); } @Override - public UInteger value1() { + public Integer value1() { return getPid(); } @Override - public UInteger value2() { + public Integer value2() { return getUid(); } @Override - public PublicProjectRecord value1(UInteger value) { + public PublicProjectRecord value1(Integer value) { setPid(value); return this; } @Override - public PublicProjectRecord value2(UInteger value) { + public PublicProjectRecord value2(Integer value) { setUid(value); return this; } @Override - public PublicProjectRecord values(UInteger value1, UInteger value2) { + public PublicProjectRecord values(Integer value1, Integer value2) { value1(value1); value2(value2); return this; @@ -157,7 +156,7 @@ public PublicProjectRecord() { /** * Create a detached, initialised PublicProjectRecord */ - public PublicProjectRecord(UInteger pid, UInteger uid) { + public PublicProjectRecord(Integer pid, Integer uid) { super(PublicProject.PUBLIC_PROJECT); set(0, pid); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserActivityRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserActivityRecord.java index ba463dfcae5..493a2099583 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserActivityRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserActivityRecord.java @@ -13,22 +13,21 @@ import org.jooq.Record6; import org.jooq.Row6; import org.jooq.impl.TableRecordImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class UserActivityRecord extends TableRecordImpl implements Record6, IUserActivity { +public class UserActivityRecord extends TableRecordImpl implements Record6, IUserActivity { - private static final long serialVersionUID = -692407398; + private static final long serialVersionUID = 2034180445; /** * Setter for texera_db.user_activity.uid. */ @Override - public void setUid(UInteger value) { + public void setUid(Integer value) { set(0, value); } @@ -36,15 +35,15 @@ public void setUid(UInteger value) { * Getter for texera_db.user_activity.uid. */ @Override - public UInteger getUid() { - return (UInteger) get(0); + public Integer getUid() { + return (Integer) get(0); } /** * Setter for texera_db.user_activity.id. */ @Override - public void setId(UInteger value) { + public void setId(Integer value) { set(1, value); } @@ -52,8 +51,8 @@ public void setId(UInteger value) { * Getter for texera_db.user_activity.id. */ @Override - public UInteger getId() { - return (UInteger) get(1); + public Integer getId() { + return (Integer) get(1); } /** @@ -125,22 +124,22 @@ public Timestamp getActivityTime() { // ------------------------------------------------------------------------- @Override - public Row6 fieldsRow() { + public Row6 fieldsRow() { return (Row6) super.fieldsRow(); } @Override - public Row6 valuesRow() { + public Row6 valuesRow() { return (Row6) super.valuesRow(); } @Override - public Field field1() { + public Field field1() { return UserActivity.USER_ACTIVITY.UID; } @Override - public Field field2() { + public Field field2() { return UserActivity.USER_ACTIVITY.ID; } @@ -165,12 +164,12 @@ public Field field6() { } @Override - public UInteger component1() { + public Integer component1() { return getUid(); } @Override - public UInteger component2() { + public Integer component2() { return getId(); } @@ -195,12 +194,12 @@ public Timestamp component6() { } @Override - public UInteger value1() { + public Integer value1() { return getUid(); } @Override - public UInteger value2() { + public Integer value2() { return getId(); } @@ -225,13 +224,13 @@ public Timestamp value6() { } @Override - public UserActivityRecord value1(UInteger value) { + public UserActivityRecord value1(Integer value) { setUid(value); return this; } @Override - public UserActivityRecord value2(UInteger value) { + public UserActivityRecord value2(Integer value) { setId(value); return this; } @@ -261,7 +260,7 @@ public UserActivityRecord value6(Timestamp value) { } @Override - public UserActivityRecord values(UInteger value1, UInteger value2, String value3, String value4, String value5, Timestamp value6) { + public UserActivityRecord values(Integer value1, Integer value2, String value3, String value4, String value5, Timestamp value6) { value1(value1); value2(value2); value3(value3); @@ -305,7 +304,7 @@ public UserActivityRecord() { /** * Create a detached, initialised UserActivityRecord */ - public UserActivityRecord(UInteger uid, UInteger id, String type, String ip, String activate, Timestamp activityTime) { + public UserActivityRecord(Integer uid, Integer id, String type, String ip, String activate, Timestamp activityTime) { super(UserActivity.USER_ACTIVITY); set(0, uid); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserConfigRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserConfigRecord.java index 34568341b55..f888c4c7658 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserConfigRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserConfigRecord.java @@ -12,22 +12,21 @@ import org.jooq.Record3; import org.jooq.Row3; import org.jooq.impl.UpdatableRecordImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class UserConfigRecord extends UpdatableRecordImpl implements Record3, IUserConfig { +public class UserConfigRecord extends UpdatableRecordImpl implements Record3, IUserConfig { - private static final long serialVersionUID = -714870732; + private static final long serialVersionUID = -405707042; /** * Setter for texera_db.user_config.uid. */ @Override - public void setUid(UInteger value) { + public void setUid(Integer value) { set(0, value); } @@ -35,8 +34,8 @@ public void setUid(UInteger value) { * Getter for texera_db.user_config.uid. */ @Override - public UInteger getUid() { - return (UInteger) get(0); + public Integer getUid() { + return (Integer) get(0); } /** @@ -76,7 +75,7 @@ public String getValue() { // ------------------------------------------------------------------------- @Override - public Record2 key() { + public Record2 key() { return (Record2) super.key(); } @@ -85,17 +84,17 @@ public Record2 key() { // ------------------------------------------------------------------------- @Override - public Row3 fieldsRow() { + public Row3 fieldsRow() { return (Row3) super.fieldsRow(); } @Override - public Row3 valuesRow() { + public Row3 valuesRow() { return (Row3) super.valuesRow(); } @Override - public Field field1() { + public Field field1() { return UserConfig.USER_CONFIG.UID; } @@ -110,7 +109,7 @@ public Field field3() { } @Override - public UInteger component1() { + public Integer component1() { return getUid(); } @@ -125,7 +124,7 @@ public String component3() { } @Override - public UInteger value1() { + public Integer value1() { return getUid(); } @@ -140,7 +139,7 @@ public String value3() { } @Override - public UserConfigRecord value1(UInteger value) { + public UserConfigRecord value1(Integer value) { setUid(value); return this; } @@ -158,7 +157,7 @@ public UserConfigRecord value3(String value) { } @Override - public UserConfigRecord values(UInteger value1, String value2, String value3) { + public UserConfigRecord values(Integer value1, String value2, String value3) { value1(value1); value2(value2); value3(value3); @@ -196,7 +195,7 @@ public UserConfigRecord() { /** * Create a detached, initialised UserConfigRecord */ - public UserConfigRecord(UInteger uid, String key, String value) { + public UserConfigRecord(Integer uid, String key, String value) { super(UserConfig.USER_CONFIG); set(0, uid); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserRecord.java index 7194e4a0093..46a01920226 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserRecord.java @@ -4,7 +4,7 @@ package edu.uci.ics.texera.dao.jooq.generated.tables.records; -import edu.uci.ics.texera.dao.jooq.generated.enums.UserRole; +import edu.uci.ics.texera.dao.jooq.generated.enums.UserRoleEnum; import edu.uci.ics.texera.dao.jooq.generated.tables.User; import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IUser; @@ -13,22 +13,21 @@ import org.jooq.Record7; import org.jooq.Row7; import org.jooq.impl.UpdatableRecordImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class UserRecord extends UpdatableRecordImpl implements Record7, IUser { +public class UserRecord extends UpdatableRecordImpl implements Record7, IUser { - private static final long serialVersionUID = 1681966497; + private static final long serialVersionUID = 870175244; /** * Setter for texera_db.user.uid. */ @Override - public void setUid(UInteger value) { + public void setUid(Integer value) { set(0, value); } @@ -36,8 +35,8 @@ public void setUid(UInteger value) { * Getter for texera_db.user.uid. */ @Override - public UInteger getUid() { - return (UInteger) get(0); + public Integer getUid() { + return (Integer) get(0); } /** @@ -108,7 +107,7 @@ public String getGoogleId() { * Setter for texera_db.user.role. */ @Override - public void setRole(UserRole value) { + public void setRole(UserRoleEnum value) { set(5, value); } @@ -116,8 +115,8 @@ public void setRole(UserRole value) { * Getter for texera_db.user.role. */ @Override - public UserRole getRole() { - return (UserRole) get(5); + public UserRoleEnum getRole() { + return (UserRoleEnum) get(5); } /** @@ -141,7 +140,7 @@ public String getGoogleAvatar() { // ------------------------------------------------------------------------- @Override - public Record1 key() { + public Record1 key() { return (Record1) super.key(); } @@ -150,17 +149,17 @@ public Record1 key() { // ------------------------------------------------------------------------- @Override - public Row7 fieldsRow() { + public Row7 fieldsRow() { return (Row7) super.fieldsRow(); } @Override - public Row7 valuesRow() { + public Row7 valuesRow() { return (Row7) super.valuesRow(); } @Override - public Field field1() { + public Field field1() { return User.USER.UID; } @@ -185,7 +184,7 @@ public Field field5() { } @Override - public Field field6() { + public Field field6() { return User.USER.ROLE; } @@ -195,7 +194,7 @@ public Field field7() { } @Override - public UInteger component1() { + public Integer component1() { return getUid(); } @@ -220,7 +219,7 @@ public String component5() { } @Override - public UserRole component6() { + public UserRoleEnum component6() { return getRole(); } @@ -230,7 +229,7 @@ public String component7() { } @Override - public UInteger value1() { + public Integer value1() { return getUid(); } @@ -255,7 +254,7 @@ public String value5() { } @Override - public UserRole value6() { + public UserRoleEnum value6() { return getRole(); } @@ -265,7 +264,7 @@ public String value7() { } @Override - public UserRecord value1(UInteger value) { + public UserRecord value1(Integer value) { setUid(value); return this; } @@ -295,7 +294,7 @@ public UserRecord value5(String value) { } @Override - public UserRecord value6(UserRole value) { + public UserRecord value6(UserRoleEnum value) { setRole(value); return this; } @@ -307,7 +306,7 @@ public UserRecord value7(String value) { } @Override - public UserRecord values(UInteger value1, String value2, String value3, String value4, String value5, UserRole value6, String value7) { + public UserRecord values(Integer value1, String value2, String value3, String value4, String value5, UserRoleEnum value6, String value7) { value1(value1); value2(value2); value3(value3); @@ -353,7 +352,7 @@ public UserRecord() { /** * Create a detached, initialised UserRecord */ - public UserRecord(UInteger uid, String name, String email, String password, String googleId, UserRole role, String googleAvatar) { + public UserRecord(Integer uid, String name, String email, String password, String googleId, UserRoleEnum role, String googleAvatar) { super(User.USER); set(0, uid); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowExecutionsRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowExecutionsRecord.java index e96230db091..e1bbe4d6124 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowExecutionsRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowExecutionsRecord.java @@ -14,22 +14,21 @@ import org.jooq.Record11; import org.jooq.Row11; import org.jooq.impl.UpdatableRecordImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowExecutionsRecord extends UpdatableRecordImpl implements Record11, IWorkflowExecutions { +public class WorkflowExecutionsRecord extends UpdatableRecordImpl implements Record11, IWorkflowExecutions { - private static final long serialVersionUID = 1078456367; + private static final long serialVersionUID = 42903965; /** * Setter for texera_db.workflow_executions.eid. */ @Override - public void setEid(UInteger value) { + public void setEid(Integer value) { set(0, value); } @@ -37,15 +36,15 @@ public void setEid(UInteger value) { * Getter for texera_db.workflow_executions.eid. */ @Override - public UInteger getEid() { - return (UInteger) get(0); + public Integer getEid() { + return (Integer) get(0); } /** * Setter for texera_db.workflow_executions.vid. */ @Override - public void setVid(UInteger value) { + public void setVid(Integer value) { set(1, value); } @@ -53,15 +52,15 @@ public void setVid(UInteger value) { * Getter for texera_db.workflow_executions.vid. */ @Override - public UInteger getVid() { - return (UInteger) get(1); + public Integer getVid() { + return (Integer) get(1); } /** * Setter for texera_db.workflow_executions.uid. */ @Override - public void setUid(UInteger value) { + public void setUid(Integer value) { set(2, value); } @@ -69,15 +68,15 @@ public void setUid(UInteger value) { * Getter for texera_db.workflow_executions.uid. */ @Override - public UInteger getUid() { - return (UInteger) get(2); + public Integer getUid() { + return (Integer) get(2); } /** * Setter for texera_db.workflow_executions.status. */ @Override - public void setStatus(Byte value) { + public void setStatus(Short value) { set(3, value); } @@ -85,8 +84,8 @@ public void setStatus(Byte value) { * Getter for texera_db.workflow_executions.status. */ @Override - public Byte getStatus() { - return (Byte) get(3); + public Short getStatus() { + return (Short) get(3); } /** @@ -141,7 +140,7 @@ public Timestamp getLastUpdateTime() { * Setter for texera_db.workflow_executions.bookmarked. */ @Override - public void setBookmarked(Byte value) { + public void setBookmarked(Boolean value) { set(7, value); } @@ -149,8 +148,8 @@ public void setBookmarked(Byte value) { * Getter for texera_db.workflow_executions.bookmarked. */ @Override - public Byte getBookmarked() { - return (Byte) get(7); + public Boolean getBookmarked() { + return (Boolean) get(7); } /** @@ -206,7 +205,7 @@ public String getLogLocation() { // ------------------------------------------------------------------------- @Override - public Record1 key() { + public Record1 key() { return (Record1) super.key(); } @@ -215,32 +214,32 @@ public Record1 key() { // ------------------------------------------------------------------------- @Override - public Row11 fieldsRow() { + public Row11 fieldsRow() { return (Row11) super.fieldsRow(); } @Override - public Row11 valuesRow() { + public Row11 valuesRow() { return (Row11) super.valuesRow(); } @Override - public Field field1() { + public Field field1() { return WorkflowExecutions.WORKFLOW_EXECUTIONS.EID; } @Override - public Field field2() { + public Field field2() { return WorkflowExecutions.WORKFLOW_EXECUTIONS.VID; } @Override - public Field field3() { + public Field field3() { return WorkflowExecutions.WORKFLOW_EXECUTIONS.UID; } @Override - public Field field4() { + public Field field4() { return WorkflowExecutions.WORKFLOW_EXECUTIONS.STATUS; } @@ -260,7 +259,7 @@ public Field field7() { } @Override - public Field field8() { + public Field field8() { return WorkflowExecutions.WORKFLOW_EXECUTIONS.BOOKMARKED; } @@ -280,22 +279,22 @@ public Field field11() { } @Override - public UInteger component1() { + public Integer component1() { return getEid(); } @Override - public UInteger component2() { + public Integer component2() { return getVid(); } @Override - public UInteger component3() { + public Integer component3() { return getUid(); } @Override - public Byte component4() { + public Short component4() { return getStatus(); } @@ -315,7 +314,7 @@ public Timestamp component7() { } @Override - public Byte component8() { + public Boolean component8() { return getBookmarked(); } @@ -335,22 +334,22 @@ public String component11() { } @Override - public UInteger value1() { + public Integer value1() { return getEid(); } @Override - public UInteger value2() { + public Integer value2() { return getVid(); } @Override - public UInteger value3() { + public Integer value3() { return getUid(); } @Override - public Byte value4() { + public Short value4() { return getStatus(); } @@ -370,7 +369,7 @@ public Timestamp value7() { } @Override - public Byte value8() { + public Boolean value8() { return getBookmarked(); } @@ -390,25 +389,25 @@ public String value11() { } @Override - public WorkflowExecutionsRecord value1(UInteger value) { + public WorkflowExecutionsRecord value1(Integer value) { setEid(value); return this; } @Override - public WorkflowExecutionsRecord value2(UInteger value) { + public WorkflowExecutionsRecord value2(Integer value) { setVid(value); return this; } @Override - public WorkflowExecutionsRecord value3(UInteger value) { + public WorkflowExecutionsRecord value3(Integer value) { setUid(value); return this; } @Override - public WorkflowExecutionsRecord value4(Byte value) { + public WorkflowExecutionsRecord value4(Short value) { setStatus(value); return this; } @@ -432,7 +431,7 @@ public WorkflowExecutionsRecord value7(Timestamp value) { } @Override - public WorkflowExecutionsRecord value8(Byte value) { + public WorkflowExecutionsRecord value8(Boolean value) { setBookmarked(value); return this; } @@ -456,7 +455,7 @@ public WorkflowExecutionsRecord value11(String value) { } @Override - public WorkflowExecutionsRecord values(UInteger value1, UInteger value2, UInteger value3, Byte value4, String value5, Timestamp value6, Timestamp value7, Byte value8, String value9, String value10, String value11) { + public WorkflowExecutionsRecord values(Integer value1, Integer value2, Integer value3, Short value4, String value5, Timestamp value6, Timestamp value7, Boolean value8, String value9, String value10, String value11) { value1(value1); value2(value2); value3(value3); @@ -510,7 +509,7 @@ public WorkflowExecutionsRecord() { /** * Create a detached, initialised WorkflowExecutionsRecord */ - public WorkflowExecutionsRecord(UInteger eid, UInteger vid, UInteger uid, Byte status, String result, Timestamp startingTime, Timestamp lastUpdateTime, Byte bookmarked, String name, String environmentVersion, String logLocation) { + public WorkflowExecutionsRecord(Integer eid, Integer vid, Integer uid, Short status, String result, Timestamp startingTime, Timestamp lastUpdateTime, Boolean bookmarked, String name, String environmentVersion, String logLocation) { super(WorkflowExecutions.WORKFLOW_EXECUTIONS); set(0, eid); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowOfProjectRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowOfProjectRecord.java index 604ac581b25..aa93d77030a 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowOfProjectRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowOfProjectRecord.java @@ -11,22 +11,21 @@ import org.jooq.Record2; import org.jooq.Row2; import org.jooq.impl.UpdatableRecordImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowOfProjectRecord extends UpdatableRecordImpl implements Record2, IWorkflowOfProject { +public class WorkflowOfProjectRecord extends UpdatableRecordImpl implements Record2, IWorkflowOfProject { - private static final long serialVersionUID = -812098964; + private static final long serialVersionUID = -1446029983; /** * Setter for texera_db.workflow_of_project.wid. */ @Override - public void setWid(UInteger value) { + public void setWid(Integer value) { set(0, value); } @@ -34,15 +33,15 @@ public void setWid(UInteger value) { * Getter for texera_db.workflow_of_project.wid. */ @Override - public UInteger getWid() { - return (UInteger) get(0); + public Integer getWid() { + return (Integer) get(0); } /** * Setter for texera_db.workflow_of_project.pid. */ @Override - public void setPid(UInteger value) { + public void setPid(Integer value) { set(1, value); } @@ -50,8 +49,8 @@ public void setPid(UInteger value) { * Getter for texera_db.workflow_of_project.pid. */ @Override - public UInteger getPid() { - return (UInteger) get(1); + public Integer getPid() { + return (Integer) get(1); } // ------------------------------------------------------------------------- @@ -59,7 +58,7 @@ public UInteger getPid() { // ------------------------------------------------------------------------- @Override - public Record2 key() { + public Record2 key() { return (Record2) super.key(); } @@ -68,59 +67,59 @@ public Record2 key() { // ------------------------------------------------------------------------- @Override - public Row2 fieldsRow() { + public Row2 fieldsRow() { return (Row2) super.fieldsRow(); } @Override - public Row2 valuesRow() { + public Row2 valuesRow() { return (Row2) super.valuesRow(); } @Override - public Field field1() { + public Field field1() { return WorkflowOfProject.WORKFLOW_OF_PROJECT.WID; } @Override - public Field field2() { + public Field field2() { return WorkflowOfProject.WORKFLOW_OF_PROJECT.PID; } @Override - public UInteger component1() { + public Integer component1() { return getWid(); } @Override - public UInteger component2() { + public Integer component2() { return getPid(); } @Override - public UInteger value1() { + public Integer value1() { return getWid(); } @Override - public UInteger value2() { + public Integer value2() { return getPid(); } @Override - public WorkflowOfProjectRecord value1(UInteger value) { + public WorkflowOfProjectRecord value1(Integer value) { setWid(value); return this; } @Override - public WorkflowOfProjectRecord value2(UInteger value) { + public WorkflowOfProjectRecord value2(Integer value) { setPid(value); return this; } @Override - public WorkflowOfProjectRecord values(UInteger value1, UInteger value2) { + public WorkflowOfProjectRecord values(Integer value1, Integer value2) { value1(value1); value2(value2); return this; @@ -156,7 +155,7 @@ public WorkflowOfProjectRecord() { /** * Create a detached, initialised WorkflowOfProjectRecord */ - public WorkflowOfProjectRecord(UInteger wid, UInteger pid) { + public WorkflowOfProjectRecord(Integer wid, Integer pid) { super(WorkflowOfProject.WORKFLOW_OF_PROJECT); set(0, wid); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowOfUserRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowOfUserRecord.java index 190bae13913..32601bcfc6b 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowOfUserRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowOfUserRecord.java @@ -11,22 +11,21 @@ import org.jooq.Record2; import org.jooq.Row2; import org.jooq.impl.UpdatableRecordImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowOfUserRecord extends UpdatableRecordImpl implements Record2, IWorkflowOfUser { +public class WorkflowOfUserRecord extends UpdatableRecordImpl implements Record2, IWorkflowOfUser { - private static final long serialVersionUID = -2089382054; + private static final long serialVersionUID = 2111298287; /** * Setter for texera_db.workflow_of_user.uid. */ @Override - public void setUid(UInteger value) { + public void setUid(Integer value) { set(0, value); } @@ -34,15 +33,15 @@ public void setUid(UInteger value) { * Getter for texera_db.workflow_of_user.uid. */ @Override - public UInteger getUid() { - return (UInteger) get(0); + public Integer getUid() { + return (Integer) get(0); } /** * Setter for texera_db.workflow_of_user.wid. */ @Override - public void setWid(UInteger value) { + public void setWid(Integer value) { set(1, value); } @@ -50,8 +49,8 @@ public void setWid(UInteger value) { * Getter for texera_db.workflow_of_user.wid. */ @Override - public UInteger getWid() { - return (UInteger) get(1); + public Integer getWid() { + return (Integer) get(1); } // ------------------------------------------------------------------------- @@ -59,7 +58,7 @@ public UInteger getWid() { // ------------------------------------------------------------------------- @Override - public Record2 key() { + public Record2 key() { return (Record2) super.key(); } @@ -68,59 +67,59 @@ public Record2 key() { // ------------------------------------------------------------------------- @Override - public Row2 fieldsRow() { + public Row2 fieldsRow() { return (Row2) super.fieldsRow(); } @Override - public Row2 valuesRow() { + public Row2 valuesRow() { return (Row2) super.valuesRow(); } @Override - public Field field1() { + public Field field1() { return WorkflowOfUser.WORKFLOW_OF_USER.UID; } @Override - public Field field2() { + public Field field2() { return WorkflowOfUser.WORKFLOW_OF_USER.WID; } @Override - public UInteger component1() { + public Integer component1() { return getUid(); } @Override - public UInteger component2() { + public Integer component2() { return getWid(); } @Override - public UInteger value1() { + public Integer value1() { return getUid(); } @Override - public UInteger value2() { + public Integer value2() { return getWid(); } @Override - public WorkflowOfUserRecord value1(UInteger value) { + public WorkflowOfUserRecord value1(Integer value) { setUid(value); return this; } @Override - public WorkflowOfUserRecord value2(UInteger value) { + public WorkflowOfUserRecord value2(Integer value) { setWid(value); return this; } @Override - public WorkflowOfUserRecord values(UInteger value1, UInteger value2) { + public WorkflowOfUserRecord values(Integer value1, Integer value2) { value1(value1); value2(value2); return this; @@ -156,7 +155,7 @@ public WorkflowOfUserRecord() { /** * Create a detached, initialised WorkflowOfUserRecord */ - public WorkflowOfUserRecord(UInteger uid, UInteger wid) { + public WorkflowOfUserRecord(Integer uid, Integer wid) { super(WorkflowOfUser.WORKFLOW_OF_USER); set(0, uid); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowRecord.java index 218dffacf65..91e7662982f 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowRecord.java @@ -14,63 +14,62 @@ import org.jooq.Record7; import org.jooq.Row7; import org.jooq.impl.UpdatableRecordImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowRecord extends UpdatableRecordImpl implements Record7, IWorkflow { +public class WorkflowRecord extends UpdatableRecordImpl implements Record7, IWorkflow { - private static final long serialVersionUID = 1992208375; + private static final long serialVersionUID = 33022585; /** - * Setter for texera_db.workflow.name. + * Setter for texera_db.workflow.wid. */ @Override - public void setName(String value) { + public void setWid(Integer value) { set(0, value); } /** - * Getter for texera_db.workflow.name. + * Getter for texera_db.workflow.wid. */ @Override - public String getName() { - return (String) get(0); + public Integer getWid() { + return (Integer) get(0); } /** - * Setter for texera_db.workflow.description. + * Setter for texera_db.workflow.name. */ @Override - public void setDescription(String value) { + public void setName(String value) { set(1, value); } /** - * Getter for texera_db.workflow.description. + * Getter for texera_db.workflow.name. */ @Override - public String getDescription() { + public String getName() { return (String) get(1); } /** - * Setter for texera_db.workflow.wid. + * Setter for texera_db.workflow.description. */ @Override - public void setWid(UInteger value) { + public void setDescription(String value) { set(2, value); } /** - * Getter for texera_db.workflow.wid. + * Getter for texera_db.workflow.description. */ @Override - public UInteger getWid() { - return (UInteger) get(2); + public String getDescription() { + return (String) get(2); } /** @@ -125,7 +124,7 @@ public Timestamp getLastModifiedTime() { * Setter for texera_db.workflow.is_public. */ @Override - public void setIsPublic(Byte value) { + public void setIsPublic(Boolean value) { set(6, value); } @@ -133,8 +132,8 @@ public void setIsPublic(Byte value) { * Getter for texera_db.workflow.is_public. */ @Override - public Byte getIsPublic() { - return (Byte) get(6); + public Boolean getIsPublic() { + return (Boolean) get(6); } // ------------------------------------------------------------------------- @@ -142,7 +141,7 @@ public Byte getIsPublic() { // ------------------------------------------------------------------------- @Override - public Record1 key() { + public Record1 key() { return (Record1) super.key(); } @@ -151,28 +150,28 @@ public Record1 key() { // ------------------------------------------------------------------------- @Override - public Row7 fieldsRow() { + public Row7 fieldsRow() { return (Row7) super.fieldsRow(); } @Override - public Row7 valuesRow() { + public Row7 valuesRow() { return (Row7) super.valuesRow(); } @Override - public Field field1() { - return Workflow.WORKFLOW.NAME; + public Field field1() { + return Workflow.WORKFLOW.WID; } @Override public Field field2() { - return Workflow.WORKFLOW.DESCRIPTION; + return Workflow.WORKFLOW.NAME; } @Override - public Field field3() { - return Workflow.WORKFLOW.WID; + public Field field3() { + return Workflow.WORKFLOW.DESCRIPTION; } @Override @@ -191,23 +190,23 @@ public Field field6() { } @Override - public Field field7() { + public Field field7() { return Workflow.WORKFLOW.IS_PUBLIC; } @Override - public String component1() { - return getName(); + public Integer component1() { + return getWid(); } @Override public String component2() { - return getDescription(); + return getName(); } @Override - public UInteger component3() { - return getWid(); + public String component3() { + return getDescription(); } @Override @@ -226,23 +225,23 @@ public Timestamp component6() { } @Override - public Byte component7() { + public Boolean component7() { return getIsPublic(); } @Override - public String value1() { - return getName(); + public Integer value1() { + return getWid(); } @Override public String value2() { - return getDescription(); + return getName(); } @Override - public UInteger value3() { - return getWid(); + public String value3() { + return getDescription(); } @Override @@ -261,25 +260,25 @@ public Timestamp value6() { } @Override - public Byte value7() { + public Boolean value7() { return getIsPublic(); } @Override - public WorkflowRecord value1(String value) { - setName(value); + public WorkflowRecord value1(Integer value) { + setWid(value); return this; } @Override public WorkflowRecord value2(String value) { - setDescription(value); + setName(value); return this; } @Override - public WorkflowRecord value3(UInteger value) { - setWid(value); + public WorkflowRecord value3(String value) { + setDescription(value); return this; } @@ -302,13 +301,13 @@ public WorkflowRecord value6(Timestamp value) { } @Override - public WorkflowRecord value7(Byte value) { + public WorkflowRecord value7(Boolean value) { setIsPublic(value); return this; } @Override - public WorkflowRecord values(String value1, String value2, UInteger value3, String value4, Timestamp value5, Timestamp value6, Byte value7) { + public WorkflowRecord values(Integer value1, String value2, String value3, String value4, Timestamp value5, Timestamp value6, Boolean value7) { value1(value1); value2(value2); value3(value3); @@ -325,9 +324,9 @@ public WorkflowRecord values(String value1, String value2, UInteger value3, Stri @Override public void from(IWorkflow from) { + setWid(from.getWid()); setName(from.getName()); setDescription(from.getDescription()); - setWid(from.getWid()); setContent(from.getContent()); setCreationTime(from.getCreationTime()); setLastModifiedTime(from.getLastModifiedTime()); @@ -354,12 +353,12 @@ public WorkflowRecord() { /** * Create a detached, initialised WorkflowRecord */ - public WorkflowRecord(String name, String description, UInteger wid, String content, Timestamp creationTime, Timestamp lastModifiedTime, Byte isPublic) { + public WorkflowRecord(Integer wid, String name, String description, String content, Timestamp creationTime, Timestamp lastModifiedTime, Boolean isPublic) { super(Workflow.WORKFLOW); - set(0, name); - set(1, description); - set(2, wid); + set(0, wid); + set(1, name); + set(2, description); set(3, content); set(4, creationTime); set(5, lastModifiedTime); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowUserAccessRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowUserAccessRecord.java index 6ffff85e682..0f51a51429c 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowUserAccessRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowUserAccessRecord.java @@ -4,7 +4,7 @@ package edu.uci.ics.texera.dao.jooq.generated.tables.records; -import edu.uci.ics.texera.dao.jooq.generated.enums.WorkflowUserAccessPrivilege; +import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum; import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowUserAccess; import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowUserAccess; @@ -13,22 +13,21 @@ import org.jooq.Record3; import org.jooq.Row3; import org.jooq.impl.UpdatableRecordImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowUserAccessRecord extends UpdatableRecordImpl implements Record3, IWorkflowUserAccess { +public class WorkflowUserAccessRecord extends UpdatableRecordImpl implements Record3, IWorkflowUserAccess { - private static final long serialVersionUID = 2064079376; + private static final long serialVersionUID = 1478898780; /** * Setter for texera_db.workflow_user_access.uid. */ @Override - public void setUid(UInteger value) { + public void setUid(Integer value) { set(0, value); } @@ -36,15 +35,15 @@ public void setUid(UInteger value) { * Getter for texera_db.workflow_user_access.uid. */ @Override - public UInteger getUid() { - return (UInteger) get(0); + public Integer getUid() { + return (Integer) get(0); } /** * Setter for texera_db.workflow_user_access.wid. */ @Override - public void setWid(UInteger value) { + public void setWid(Integer value) { set(1, value); } @@ -52,15 +51,15 @@ public void setWid(UInteger value) { * Getter for texera_db.workflow_user_access.wid. */ @Override - public UInteger getWid() { - return (UInteger) get(1); + public Integer getWid() { + return (Integer) get(1); } /** * Setter for texera_db.workflow_user_access.privilege. */ @Override - public void setPrivilege(WorkflowUserAccessPrivilege value) { + public void setPrivilege(PrivilegeEnum value) { set(2, value); } @@ -68,8 +67,8 @@ public void setPrivilege(WorkflowUserAccessPrivilege value) { * Getter for texera_db.workflow_user_access.privilege. */ @Override - public WorkflowUserAccessPrivilege getPrivilege() { - return (WorkflowUserAccessPrivilege) get(2); + public PrivilegeEnum getPrivilege() { + return (PrivilegeEnum) get(2); } // ------------------------------------------------------------------------- @@ -77,7 +76,7 @@ public WorkflowUserAccessPrivilege getPrivilege() { // ------------------------------------------------------------------------- @Override - public Record2 key() { + public Record2 key() { return (Record2) super.key(); } @@ -86,80 +85,80 @@ public Record2 key() { // ------------------------------------------------------------------------- @Override - public Row3 fieldsRow() { + public Row3 fieldsRow() { return (Row3) super.fieldsRow(); } @Override - public Row3 valuesRow() { + public Row3 valuesRow() { return (Row3) super.valuesRow(); } @Override - public Field field1() { + public Field field1() { return WorkflowUserAccess.WORKFLOW_USER_ACCESS.UID; } @Override - public Field field2() { + public Field field2() { return WorkflowUserAccess.WORKFLOW_USER_ACCESS.WID; } @Override - public Field field3() { + public Field field3() { return WorkflowUserAccess.WORKFLOW_USER_ACCESS.PRIVILEGE; } @Override - public UInteger component1() { + public Integer component1() { return getUid(); } @Override - public UInteger component2() { + public Integer component2() { return getWid(); } @Override - public WorkflowUserAccessPrivilege component3() { + public PrivilegeEnum component3() { return getPrivilege(); } @Override - public UInteger value1() { + public Integer value1() { return getUid(); } @Override - public UInteger value2() { + public Integer value2() { return getWid(); } @Override - public WorkflowUserAccessPrivilege value3() { + public PrivilegeEnum value3() { return getPrivilege(); } @Override - public WorkflowUserAccessRecord value1(UInteger value) { + public WorkflowUserAccessRecord value1(Integer value) { setUid(value); return this; } @Override - public WorkflowUserAccessRecord value2(UInteger value) { + public WorkflowUserAccessRecord value2(Integer value) { setWid(value); return this; } @Override - public WorkflowUserAccessRecord value3(WorkflowUserAccessPrivilege value) { + public WorkflowUserAccessRecord value3(PrivilegeEnum value) { setPrivilege(value); return this; } @Override - public WorkflowUserAccessRecord values(UInteger value1, UInteger value2, WorkflowUserAccessPrivilege value3) { + public WorkflowUserAccessRecord values(Integer value1, Integer value2, PrivilegeEnum value3) { value1(value1); value2(value2); value3(value3); @@ -197,7 +196,7 @@ public WorkflowUserAccessRecord() { /** * Create a detached, initialised WorkflowUserAccessRecord */ - public WorkflowUserAccessRecord(UInteger uid, UInteger wid, WorkflowUserAccessPrivilege privilege) { + public WorkflowUserAccessRecord(Integer uid, Integer wid, PrivilegeEnum privilege) { super(WorkflowUserAccess.WORKFLOW_USER_ACCESS); set(0, uid); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowUserClonesRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowUserClonesRecord.java index 1d331602c14..6586b1e6bad 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowUserClonesRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowUserClonesRecord.java @@ -11,22 +11,21 @@ import org.jooq.Record2; import org.jooq.Row2; import org.jooq.impl.UpdatableRecordImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowUserClonesRecord extends UpdatableRecordImpl implements Record2, IWorkflowUserClones { +public class WorkflowUserClonesRecord extends UpdatableRecordImpl implements Record2, IWorkflowUserClones { - private static final long serialVersionUID = 695281574; + private static final long serialVersionUID = 2063256809; /** * Setter for texera_db.workflow_user_clones.uid. */ @Override - public void setUid(UInteger value) { + public void setUid(Integer value) { set(0, value); } @@ -34,15 +33,15 @@ public void setUid(UInteger value) { * Getter for texera_db.workflow_user_clones.uid. */ @Override - public UInteger getUid() { - return (UInteger) get(0); + public Integer getUid() { + return (Integer) get(0); } /** * Setter for texera_db.workflow_user_clones.wid. */ @Override - public void setWid(UInteger value) { + public void setWid(Integer value) { set(1, value); } @@ -50,8 +49,8 @@ public void setWid(UInteger value) { * Getter for texera_db.workflow_user_clones.wid. */ @Override - public UInteger getWid() { - return (UInteger) get(1); + public Integer getWid() { + return (Integer) get(1); } // ------------------------------------------------------------------------- @@ -59,7 +58,7 @@ public UInteger getWid() { // ------------------------------------------------------------------------- @Override - public Record2 key() { + public Record2 key() { return (Record2) super.key(); } @@ -68,59 +67,59 @@ public Record2 key() { // ------------------------------------------------------------------------- @Override - public Row2 fieldsRow() { + public Row2 fieldsRow() { return (Row2) super.fieldsRow(); } @Override - public Row2 valuesRow() { + public Row2 valuesRow() { return (Row2) super.valuesRow(); } @Override - public Field field1() { + public Field field1() { return WorkflowUserClones.WORKFLOW_USER_CLONES.UID; } @Override - public Field field2() { + public Field field2() { return WorkflowUserClones.WORKFLOW_USER_CLONES.WID; } @Override - public UInteger component1() { + public Integer component1() { return getUid(); } @Override - public UInteger component2() { + public Integer component2() { return getWid(); } @Override - public UInteger value1() { + public Integer value1() { return getUid(); } @Override - public UInteger value2() { + public Integer value2() { return getWid(); } @Override - public WorkflowUserClonesRecord value1(UInteger value) { + public WorkflowUserClonesRecord value1(Integer value) { setUid(value); return this; } @Override - public WorkflowUserClonesRecord value2(UInteger value) { + public WorkflowUserClonesRecord value2(Integer value) { setWid(value); return this; } @Override - public WorkflowUserClonesRecord values(UInteger value1, UInteger value2) { + public WorkflowUserClonesRecord values(Integer value1, Integer value2) { value1(value1); value2(value2); return this; @@ -156,7 +155,7 @@ public WorkflowUserClonesRecord() { /** * Create a detached, initialised WorkflowUserClonesRecord */ - public WorkflowUserClonesRecord(UInteger uid, UInteger wid) { + public WorkflowUserClonesRecord(Integer uid, Integer wid) { super(WorkflowUserClones.WORKFLOW_USER_CLONES); set(0, uid); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowUserLikesRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowUserLikesRecord.java index fce1877f349..c3ec5a76505 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowUserLikesRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowUserLikesRecord.java @@ -11,22 +11,21 @@ import org.jooq.Record2; import org.jooq.Row2; import org.jooq.impl.UpdatableRecordImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowUserLikesRecord extends UpdatableRecordImpl implements Record2, IWorkflowUserLikes { +public class WorkflowUserLikesRecord extends UpdatableRecordImpl implements Record2, IWorkflowUserLikes { - private static final long serialVersionUID = -1808144318; + private static final long serialVersionUID = 1217413239; /** * Setter for texera_db.workflow_user_likes.uid. */ @Override - public void setUid(UInteger value) { + public void setUid(Integer value) { set(0, value); } @@ -34,15 +33,15 @@ public void setUid(UInteger value) { * Getter for texera_db.workflow_user_likes.uid. */ @Override - public UInteger getUid() { - return (UInteger) get(0); + public Integer getUid() { + return (Integer) get(0); } /** * Setter for texera_db.workflow_user_likes.wid. */ @Override - public void setWid(UInteger value) { + public void setWid(Integer value) { set(1, value); } @@ -50,8 +49,8 @@ public void setWid(UInteger value) { * Getter for texera_db.workflow_user_likes.wid. */ @Override - public UInteger getWid() { - return (UInteger) get(1); + public Integer getWid() { + return (Integer) get(1); } // ------------------------------------------------------------------------- @@ -59,7 +58,7 @@ public UInteger getWid() { // ------------------------------------------------------------------------- @Override - public Record2 key() { + public Record2 key() { return (Record2) super.key(); } @@ -68,59 +67,59 @@ public Record2 key() { // ------------------------------------------------------------------------- @Override - public Row2 fieldsRow() { + public Row2 fieldsRow() { return (Row2) super.fieldsRow(); } @Override - public Row2 valuesRow() { + public Row2 valuesRow() { return (Row2) super.valuesRow(); } @Override - public Field field1() { + public Field field1() { return WorkflowUserLikes.WORKFLOW_USER_LIKES.UID; } @Override - public Field field2() { + public Field field2() { return WorkflowUserLikes.WORKFLOW_USER_LIKES.WID; } @Override - public UInteger component1() { + public Integer component1() { return getUid(); } @Override - public UInteger component2() { + public Integer component2() { return getWid(); } @Override - public UInteger value1() { + public Integer value1() { return getUid(); } @Override - public UInteger value2() { + public Integer value2() { return getWid(); } @Override - public WorkflowUserLikesRecord value1(UInteger value) { + public WorkflowUserLikesRecord value1(Integer value) { setUid(value); return this; } @Override - public WorkflowUserLikesRecord value2(UInteger value) { + public WorkflowUserLikesRecord value2(Integer value) { setWid(value); return this; } @Override - public WorkflowUserLikesRecord values(UInteger value1, UInteger value2) { + public WorkflowUserLikesRecord values(Integer value1, Integer value2) { value1(value1); value2(value2); return this; @@ -156,7 +155,7 @@ public WorkflowUserLikesRecord() { /** * Create a detached, initialised WorkflowUserLikesRecord */ - public WorkflowUserLikesRecord(UInteger uid, UInteger wid) { + public WorkflowUserLikesRecord(Integer uid, Integer wid) { super(WorkflowUserLikes.WORKFLOW_USER_LIKES); set(0, uid); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowVersionRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowVersionRecord.java index 260e14e5070..33f845522d3 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowVersionRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowVersionRecord.java @@ -14,22 +14,21 @@ import org.jooq.Record4; import org.jooq.Row4; import org.jooq.impl.UpdatableRecordImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowVersionRecord extends UpdatableRecordImpl implements Record4, IWorkflowVersion { +public class WorkflowVersionRecord extends UpdatableRecordImpl implements Record4, IWorkflowVersion { - private static final long serialVersionUID = -1023813081; + private static final long serialVersionUID = -1447757171; /** * Setter for texera_db.workflow_version.vid. */ @Override - public void setVid(UInteger value) { + public void setVid(Integer value) { set(0, value); } @@ -37,15 +36,15 @@ public void setVid(UInteger value) { * Getter for texera_db.workflow_version.vid. */ @Override - public UInteger getVid() { - return (UInteger) get(0); + public Integer getVid() { + return (Integer) get(0); } /** * Setter for texera_db.workflow_version.wid. */ @Override - public void setWid(UInteger value) { + public void setWid(Integer value) { set(1, value); } @@ -53,8 +52,8 @@ public void setWid(UInteger value) { * Getter for texera_db.workflow_version.wid. */ @Override - public UInteger getWid() { - return (UInteger) get(1); + public Integer getWid() { + return (Integer) get(1); } /** @@ -94,7 +93,7 @@ public Timestamp getCreationTime() { // ------------------------------------------------------------------------- @Override - public Record1 key() { + public Record1 key() { return (Record1) super.key(); } @@ -103,22 +102,22 @@ public Record1 key() { // ------------------------------------------------------------------------- @Override - public Row4 fieldsRow() { + public Row4 fieldsRow() { return (Row4) super.fieldsRow(); } @Override - public Row4 valuesRow() { + public Row4 valuesRow() { return (Row4) super.valuesRow(); } @Override - public Field field1() { + public Field field1() { return WorkflowVersion.WORKFLOW_VERSION.VID; } @Override - public Field field2() { + public Field field2() { return WorkflowVersion.WORKFLOW_VERSION.WID; } @@ -133,12 +132,12 @@ public Field field4() { } @Override - public UInteger component1() { + public Integer component1() { return getVid(); } @Override - public UInteger component2() { + public Integer component2() { return getWid(); } @@ -153,12 +152,12 @@ public Timestamp component4() { } @Override - public UInteger value1() { + public Integer value1() { return getVid(); } @Override - public UInteger value2() { + public Integer value2() { return getWid(); } @@ -173,13 +172,13 @@ public Timestamp value4() { } @Override - public WorkflowVersionRecord value1(UInteger value) { + public WorkflowVersionRecord value1(Integer value) { setVid(value); return this; } @Override - public WorkflowVersionRecord value2(UInteger value) { + public WorkflowVersionRecord value2(Integer value) { setWid(value); return this; } @@ -197,7 +196,7 @@ public WorkflowVersionRecord value4(Timestamp value) { } @Override - public WorkflowVersionRecord values(UInteger value1, UInteger value2, String value3, Timestamp value4) { + public WorkflowVersionRecord values(Integer value1, Integer value2, String value3, Timestamp value4) { value1(value1); value2(value2); value3(value3); @@ -237,7 +236,7 @@ public WorkflowVersionRecord() { /** * Create a detached, initialised WorkflowVersionRecord */ - public WorkflowVersionRecord(UInteger vid, UInteger wid, String content, Timestamp creationTime) { + public WorkflowVersionRecord(Integer vid, Integer wid, String content, Timestamp creationTime) { super(WorkflowVersion.WORKFLOW_VERSION); set(0, vid); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowViewCountRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowViewCountRecord.java index b6621839bb1..fe1b148ba84 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowViewCountRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowViewCountRecord.java @@ -12,22 +12,21 @@ import org.jooq.Record2; import org.jooq.Row2; import org.jooq.impl.UpdatableRecordImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowViewCountRecord extends UpdatableRecordImpl implements Record2, IWorkflowViewCount { +public class WorkflowViewCountRecord extends UpdatableRecordImpl implements Record2, IWorkflowViewCount { - private static final long serialVersionUID = 1060055745; + private static final long serialVersionUID = 1879040375; /** * Setter for texera_db.workflow_view_count.wid. */ @Override - public void setWid(UInteger value) { + public void setWid(Integer value) { set(0, value); } @@ -35,15 +34,15 @@ public void setWid(UInteger value) { * Getter for texera_db.workflow_view_count.wid. */ @Override - public UInteger getWid() { - return (UInteger) get(0); + public Integer getWid() { + return (Integer) get(0); } /** * Setter for texera_db.workflow_view_count.view_count. */ @Override - public void setViewCount(UInteger value) { + public void setViewCount(Integer value) { set(1, value); } @@ -51,8 +50,8 @@ public void setViewCount(UInteger value) { * Getter for texera_db.workflow_view_count.view_count. */ @Override - public UInteger getViewCount() { - return (UInteger) get(1); + public Integer getViewCount() { + return (Integer) get(1); } // ------------------------------------------------------------------------- @@ -60,7 +59,7 @@ public UInteger getViewCount() { // ------------------------------------------------------------------------- @Override - public Record1 key() { + public Record1 key() { return (Record1) super.key(); } @@ -69,59 +68,59 @@ public Record1 key() { // ------------------------------------------------------------------------- @Override - public Row2 fieldsRow() { + public Row2 fieldsRow() { return (Row2) super.fieldsRow(); } @Override - public Row2 valuesRow() { + public Row2 valuesRow() { return (Row2) super.valuesRow(); } @Override - public Field field1() { + public Field field1() { return WorkflowViewCount.WORKFLOW_VIEW_COUNT.WID; } @Override - public Field field2() { + public Field field2() { return WorkflowViewCount.WORKFLOW_VIEW_COUNT.VIEW_COUNT; } @Override - public UInteger component1() { + public Integer component1() { return getWid(); } @Override - public UInteger component2() { + public Integer component2() { return getViewCount(); } @Override - public UInteger value1() { + public Integer value1() { return getWid(); } @Override - public UInteger value2() { + public Integer value2() { return getViewCount(); } @Override - public WorkflowViewCountRecord value1(UInteger value) { + public WorkflowViewCountRecord value1(Integer value) { setWid(value); return this; } @Override - public WorkflowViewCountRecord value2(UInteger value) { + public WorkflowViewCountRecord value2(Integer value) { setViewCount(value); return this; } @Override - public WorkflowViewCountRecord values(UInteger value1, UInteger value2) { + public WorkflowViewCountRecord values(Integer value1, Integer value2) { value1(value1); value2(value2); return this; @@ -157,7 +156,7 @@ public WorkflowViewCountRecord() { /** * Create a detached, initialised WorkflowViewCountRecord */ - public WorkflowViewCountRecord(UInteger wid, UInteger viewCount) { + public WorkflowViewCountRecord(Integer wid, Integer viewCount) { super(WorkflowViewCount.WORKFLOW_VIEW_COUNT); set(0, wid); diff --git a/core/workflow-core/src/main/resources/storage-config.yaml b/core/workflow-core/src/main/resources/storage-config.yaml index 9df5ee3b385..b61c3999603 100644 --- a/core/workflow-core/src/main/resources/storage-config.yaml +++ b/core/workflow-core/src/main/resources/storage-config.yaml @@ -25,6 +25,6 @@ storage: min-wait-ms: 100 # 0.1s max-wait-ms: 10000 # 10s jdbc: - url: "jdbc:mysql://localhost:3306/texera_db?serverTimezone=UTC" + url: "jdbc:postgresql://localhost:5432/texera_db" username: "" password: "" \ No newline at end of file diff --git a/core/workflow-core/src/main/scala/edu/uci/ics/amber/core/storage/model/DatasetFileDocument.scala b/core/workflow-core/src/main/scala/edu/uci/ics/amber/core/storage/model/DatasetFileDocument.scala index d050915cc7c..f627a2ba58c 100644 --- a/core/workflow-core/src/main/scala/edu/uci/ics/amber/core/storage/model/DatasetFileDocument.scala +++ b/core/workflow-core/src/main/scala/edu/uci/ics/amber/core/storage/model/DatasetFileDocument.scala @@ -2,7 +2,7 @@ package edu.uci.ics.amber.core.storage.model import edu.uci.ics.amber.core.storage.util.dataset.GitVersionControlLocalFileStorage import edu.uci.ics.amber.util.PathUtils -import org.jooq.types.UInteger + import java.io.{File, FileOutputStream, InputStream} import java.net.{URI, URLDecoder} @@ -34,7 +34,7 @@ private[storage] class DatasetFileDocument(uri: URI) extends VirtualDocument[Not override def getURI: URI = uri override def asInputStream(): InputStream = { - val datasetAbsolutePath = PathUtils.getDatasetPath(UInteger.valueOf(did)) + val datasetAbsolutePath = PathUtils.getDatasetPath(Integer.valueOf(did)) GitVersionControlLocalFileStorage .retrieveFileContentOfVersionAsInputStream( datasetAbsolutePath, @@ -76,8 +76,8 @@ private[storage] class DatasetFileDocument(uri: URI) extends VirtualDocument[Not } // then remove the dataset file GitVersionControlLocalFileStorage.removeFileFromRepo( - PathUtils.getDatasetPath(UInteger.valueOf(did)), - PathUtils.getDatasetPath(UInteger.valueOf(did)).resolve(fileRelativePath) + PathUtils.getDatasetPath(Integer.valueOf(did)), + PathUtils.getDatasetPath(Integer.valueOf(did)).resolve(fileRelativePath) ) } } diff --git a/core/workflow-core/src/main/scala/edu/uci/ics/amber/util/PathUtils.scala b/core/workflow-core/src/main/scala/edu/uci/ics/amber/util/PathUtils.scala index 7fe89d0e8ce..7e6940a85e7 100644 --- a/core/workflow-core/src/main/scala/edu/uci/ics/amber/util/PathUtils.scala +++ b/core/workflow-core/src/main/scala/edu/uci/ics/amber/util/PathUtils.scala @@ -1,6 +1,6 @@ package edu.uci.ics.amber.util -import org.jooq.types.UInteger + import java.nio.file.{Files, Path, Paths} import scala.jdk.CollectionConverters.IteratorHasAsScala @@ -42,7 +42,7 @@ object PathUtils { private lazy val datasetsRootPath = corePath.resolve("amber").resolve("user-resources").resolve("datasets") - def getDatasetPath(did: UInteger): Path = { + def getDatasetPath(did: Integer): Path = { datasetsRootPath.resolve(did.toString) } diff --git a/core/workflow-core/src/test/scala/edu/uci/ics/amber/storage/FileResolverSpec.scala b/core/workflow-core/src/test/scala/edu/uci/ics/amber/storage/FileResolverSpec.scala index 6549dec7739..54c833fa6af 100644 --- a/core/workflow-core/src/test/scala/edu/uci/ics/amber/storage/FileResolverSpec.scala +++ b/core/workflow-core/src/test/scala/edu/uci/ics/amber/storage/FileResolverSpec.scala @@ -2,11 +2,10 @@ package edu.uci.ics.amber.storage import edu.uci.ics.amber.core.storage.FileResolver import edu.uci.ics.texera.dao.MockTexeraDB -import edu.uci.ics.texera.dao.jooq.generated.enums.UserRole +import edu.uci.ics.texera.dao.jooq.generated.enums.UserRoleEnum import edu.uci.ics.texera.dao.jooq.generated.tables.daos.{DatasetDao, DatasetVersionDao, UserDao} import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.{Dataset, DatasetVersion, User} import org.apache.commons.vfs2.FileNotFoundException -import org.jooq.types.UInteger import org.scalatest.{BeforeAndAfterAll, BeforeAndAfterEach} import org.scalatest.flatspec.AnyFlatSpec @@ -20,9 +19,9 @@ class FileResolverSpec private val testUser: User = { val user = new User - user.setUid(UInteger.valueOf(1)) + user.setUid(Integer.valueOf(1)) user.setName("test_user") - user.setRole(UserRole.ADMIN) + user.setRole(UserRoleEnum.ADMIN) user.setPassword("123") user.setEmail("test_user@test.com") user @@ -30,30 +29,30 @@ class FileResolverSpec private val testDataset: Dataset = { val dataset = new Dataset - dataset.setDid(UInteger.valueOf(1)) + dataset.setDid(Integer.valueOf(1)) dataset.setName("test_dataset") dataset.setDescription("dataset for test") - dataset.setIsPublic(1.toByte) - dataset.setOwnerUid(UInteger.valueOf(1)) + dataset.setIsPublic(true) + dataset.setOwnerUid(Integer.valueOf(1)) dataset } private val testDatasetVersion1: DatasetVersion = { val datasetVersion = new DatasetVersion - datasetVersion.setDid(UInteger.valueOf(1)) + datasetVersion.setDid(Integer.valueOf(1)) datasetVersion.setName("v1") - datasetVersion.setDvid(UInteger.valueOf(1)) - datasetVersion.setCreatorUid(UInteger.valueOf(1)) + datasetVersion.setDvid(Integer.valueOf(1)) + datasetVersion.setCreatorUid(Integer.valueOf(1)) datasetVersion.setVersionHash("97fd4c2a755b69b7c66d322eab40b7e5c2ad5d10") datasetVersion } private val testDatasetVersion2: DatasetVersion = { val datasetVersion = new DatasetVersion - datasetVersion.setDid(UInteger.valueOf(1)) + datasetVersion.setDid(Integer.valueOf(1)) datasetVersion.setName("v2") - datasetVersion.setDvid(UInteger.valueOf(2)) - datasetVersion.setCreatorUid(UInteger.valueOf(1)) + datasetVersion.setDvid(Integer.valueOf(2)) + datasetVersion.setCreatorUid(Integer.valueOf(1)) datasetVersion.setVersionHash("37966c92cb3a8bee1f9d8e21937aa8faa5e48513") datasetVersion } From 7e86bcc59e4f314634ec87a3fd9e62972a086aa8 Mon Sep 17 00:00:00 2001 From: Shengquan Ni <13672781+shengquan-ni@users.noreply.github.com> Date: Mon, 10 Feb 2025 00:31:09 -0800 Subject: [PATCH 02/20] update --- .../resource/dashboard/DatasetSearchQueryBuilder.scala | 2 +- .../web/resource/dashboard/SearchQueryBuilder.scala | 2 +- .../resource/dashboard/WorkflowSearchQueryBuilder.scala | 9 ++++++++- .../dashboard/user/project/ProjectResource.scala | 1 - .../dashboard/user/workflow/WorkflowResource.scala | 9 ++++++++- .../uci/ics/amber/engine/e2e/DataProcessingSpec.scala | 3 +-- .../main/scala/edu/uci/ics/texera/dao/SqlServer.scala | 8 ++++---- .../test/scala/edu/uci/ics/texera/dao/MockTexeraDB.scala | 3 +-- 8 files changed, 24 insertions(+), 13 deletions(-) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/DatasetSearchQueryBuilder.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/DatasetSearchQueryBuilder.scala index 635046877dc..3c28963dd71 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/DatasetSearchQueryBuilder.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/DatasetSearchQueryBuilder.scala @@ -99,7 +99,7 @@ object DatasetSearchQueryBuilder extends SearchQueryBuilder { } override protected def getGroupByFields: Seq[GroupField] = { - Seq(DATASET.DID) + Seq.empty } override protected def toEntryImpl( diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/SearchQueryBuilder.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/SearchQueryBuilder.scala index b0f5dac0d0e..df39f9c9bf1 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/SearchQueryBuilder.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/SearchQueryBuilder.scala @@ -50,7 +50,7 @@ trait SearchQueryBuilder { includePublic: Boolean ): SelectHavingStep[Record] = { val query: SelectGroupByStep[Record] = context - .select(mappedResourceSchema.allFields: _*) + .selectDistinct(mappedResourceSchema.allFields: _*) .from(constructFromClause(uid, params, includePublic)) .where(constructWhereClause(uid, params)) val groupByFields = getGroupByFields diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/WorkflowSearchQueryBuilder.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/WorkflowSearchQueryBuilder.scala index a898aa371ff..f25ecbf1201 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/WorkflowSearchQueryBuilder.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/WorkflowSearchQueryBuilder.scala @@ -106,7 +106,14 @@ object WorkflowSearchQueryBuilder extends SearchQueryBuilder { } override protected def getGroupByFields: Seq[GroupField] = { - Seq(WORKFLOW.WID) + Seq(WORKFLOW.NAME, + WORKFLOW.DESCRIPTION, + WORKFLOW.CREATION_TIME, + WORKFLOW.WID, + WORKFLOW.LAST_MODIFIED_TIME, + WORKFLOW_USER_ACCESS.PRIVILEGE, + WORKFLOW_OF_USER.UID, + USER.NAME) } override def toEntryImpl( diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectResource.scala index 1ba3dbba1ba..216b40a1ea3 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectResource.scala @@ -135,7 +135,6 @@ class ProjectResource { .join(PROJECT) .on(PROJECT_USER_ACCESS.PID.eq(PROJECT.PID)) .where(PROJECT.OWNER_ID.eq(user.getUid).or(PROJECT_USER_ACCESS.UID.eq(user.getUid))) - .groupBy(PROJECT.PID) .fetchInto(classOf[DashboardProject]) } diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala index 45dc2548163..4d20f3ec5c9 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala @@ -289,7 +289,14 @@ class WorkflowResource extends LazyLogging { .leftJoin(WORKFLOW_OF_PROJECT) .on(WORKFLOW.WID.eq(WORKFLOW_OF_PROJECT.WID)) .where(WORKFLOW_USER_ACCESS.UID.eq(user.getUid)) - .groupBy(WORKFLOW.WID, WORKFLOW_OF_USER.UID) + .groupBy(WORKFLOW.WID, + WORKFLOW.NAME, + WORKFLOW.DESCRIPTION, + WORKFLOW.CREATION_TIME, + WORKFLOW.LAST_MODIFIED_TIME, + WORKFLOW_USER_ACCESS.PRIVILEGE, + WORKFLOW_OF_USER.UID, + USER.NAME) .fetch() workflowEntries .map(workflowRecord => diff --git a/core/amber/src/test/scala/edu/uci/ics/amber/engine/e2e/DataProcessingSpec.scala b/core/amber/src/test/scala/edu/uci/ics/amber/engine/e2e/DataProcessingSpec.scala index 601915ecbb9..01ff5e67ba1 100644 --- a/core/amber/src/test/scala/edu/uci/ics/amber/engine/e2e/DataProcessingSpec.scala +++ b/core/amber/src/test/scala/edu/uci/ics/amber/engine/e2e/DataProcessingSpec.scala @@ -113,12 +113,11 @@ class DataProcessingSpec val table: String = "test" val username: String = "root" val password: String = "" - val driver = new com.mysql.cj.jdbc.Driver() + val driver = new org.postgresql.Driver() DriverManager.registerDriver(driver) val config = DBConfigurationBuilder.newBuilder .setPort(0) // 0 => automatically detect free port - .addArg("--default-time-zone=+0:00") .build() inMemoryMySQLInstance = Option(DB.newEmbeddedDB(config)) diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/SqlServer.scala b/core/dao/src/main/scala/edu/uci/ics/texera/dao/SqlServer.scala index f1915fb16f9..569333423fd 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/SqlServer.scala +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/SqlServer.scala @@ -1,8 +1,8 @@ package edu.uci.ics.texera.dao -import com.mysql.cj.jdbc.MysqlDataSource -import org.jooq.{DSLContext, SQLDialect} import org.jooq.impl.DSL +import org.jooq.{DSLContext, SQLDialect} +import org.postgresql.ds.PGSimpleDataSource /** * SqlServer class that manages a connection to a MySQL database using jOOQ. @@ -12,8 +12,8 @@ import org.jooq.impl.DSL * @param password The password for authenticating with the MySQL database. */ class SqlServer private (url: String, user: String, password: String) { - val SQL_DIALECT: SQLDialect = SQLDialect.MYSQL - private val dataSource: MysqlDataSource = new MysqlDataSource() + val SQL_DIALECT: SQLDialect = SQLDialect.POSTGRES + private val dataSource:PGSimpleDataSource = new PGSimpleDataSource() var context: DSLContext = _ { diff --git a/core/dao/src/test/scala/edu/uci/ics/texera/dao/MockTexeraDB.scala b/core/dao/src/test/scala/edu/uci/ics/texera/dao/MockTexeraDB.scala index edfc5d0b5ca..7809adcfbaa 100644 --- a/core/dao/src/test/scala/edu/uci/ics/texera/dao/MockTexeraDB.scala +++ b/core/dao/src/test/scala/edu/uci/ics/texera/dao/MockTexeraDB.scala @@ -90,12 +90,11 @@ trait MockTexeraDB { def initializeDBAndReplaceDSLContext(): Unit = { assert(dbInstance.isEmpty && dslContext.isEmpty) - val driver = new com.mysql.cj.jdbc.Driver() + val driver = new org.postgresql.Driver() DriverManager.registerDriver(driver) val config = DBConfigurationBuilder.newBuilder .setPort(0) // 0 => automatically detect free port - .addArg("--default-time-zone=-8:00") .setSecurityDisabled(true) .setDeletingTemporaryBaseAndDataDirsOnShutdown(true) .build() From 7847e89d74a54b43cac9c17e9cee3a9902e7729e Mon Sep 17 00:00:00 2001 From: Shengquan Ni <13672781+shengquan-ni@users.noreply.github.com> Date: Mon, 10 Feb 2025 00:32:39 -0800 Subject: [PATCH 03/20] reformat --- .../scheduling/CostEstimator.scala | 1 - .../texera/web/ServletAwareConfigurator.scala | 1 - .../uci/ics/texera/web/WebsocketInput.scala | 1 - .../uci/ics/texera/web/auth/SessionUser.scala | 1 - .../texera/web/auth/UserAuthenticator.scala | 3 +- .../web/resource/CollaborationResource.scala | 1 - .../dashboard/FulltextSearchQueryUtils.scala | 29 +++++++++---------- .../dashboard/SearchQueryBuilder.scala | 1 - .../dashboard/UnifiedResourceSchema.scala | 6 ++-- .../WorkflowSearchQueryBuilder.scala | 6 ++-- .../execution/AdminExecutionResource.scala | 1 - .../admin/user/AdminUserResource.scala | 1 - .../resource/dashboard/hub/EntityTables.scala | 3 +- .../resource/dashboard/hub/HubResource.scala | 1 - .../user/dataset/DatasetAccessResource.scala | 1 - .../utils/DatasetStatisticsUtils.scala | 1 - .../user/project/ProjectAccessResource.scala | 1 - .../user/project/ProjectResource.scala | 1 - .../user/project/PublicProjectResource.scala | 1 - .../user/quota/UserQuotaResource.scala | 1 - .../workflow/WorkflowAccessResource.scala | 1 - .../user/workflow/WorkflowResource.scala | 7 +++-- .../workflow/WorkflowVersionResource.scala | 1 - .../web/service/ExecutionStatsService.scala | 2 +- .../ExecutionsMetadataPersistService.scala | 1 - .../web/service/WorkflowEmailNotifier.scala | 1 - .../service/WorkflowExecutionService.scala | 6 +++- .../ics/texera/dao/JooqCodeGenerator.scala | 1 - .../edu/uci/ics/texera/dao/SqlServer.scala | 2 +- .../storage/model/DatasetFileDocument.scala | 1 - .../edu/uci/ics/amber/util/PathUtils.scala | 2 -- 31 files changed, 35 insertions(+), 52 deletions(-) diff --git a/core/amber/src/main/scala/edu/uci/ics/amber/engine/architecture/scheduling/CostEstimator.scala b/core/amber/src/main/scala/edu/uci/ics/amber/engine/architecture/scheduling/CostEstimator.scala index b6253312b3a..bd47762ccce 100644 --- a/core/amber/src/main/scala/edu/uci/ics/amber/engine/architecture/scheduling/CostEstimator.scala +++ b/core/amber/src/main/scala/edu/uci/ics/amber/engine/architecture/scheduling/CostEstimator.scala @@ -15,7 +15,6 @@ import edu.uci.ics.texera.dao.jooq.generated.Tables.{ } import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowExecutionsResource.WorkflowRuntimeStatistics - import scala.jdk.CollectionConverters.ListHasAsScala import scala.util.{Failure, Success, Try} diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/ServletAwareConfigurator.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/ServletAwareConfigurator.scala index 6e3b43c86bd..5f8257ca89c 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/ServletAwareConfigurator.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/ServletAwareConfigurator.scala @@ -5,7 +5,6 @@ import edu.uci.ics.texera.web.auth.JwtAuth.jwtConsumer import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.User import org.apache.http.client.utils.URLEncodedUtils - import java.net.URI import java.nio.charset.Charset import javax.websocket.HandshakeResponse diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/WebsocketInput.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/WebsocketInput.scala index 0c0e8e2a682..2e3506c21b0 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/WebsocketInput.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/WebsocketInput.scala @@ -4,7 +4,6 @@ import edu.uci.ics.texera.web.model.websocket.request.TexeraWebSocketRequest import io.reactivex.rxjava3.disposables.Disposable import io.reactivex.rxjava3.subjects.PublishSubject - import scala.reflect.{ClassTag, classTag} class WebsocketInput(errorHandler: Throwable => Unit) { diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/SessionUser.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/SessionUser.scala index a16861d6f57..e3c722e96ba 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/SessionUser.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/SessionUser.scala @@ -3,7 +3,6 @@ package edu.uci.ics.texera.web.auth import edu.uci.ics.texera.dao.jooq.generated.enums.UserRoleEnum import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.User - import java.security.Principal class SessionUser(val user: User) extends Principal { diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/UserAuthenticator.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/UserAuthenticator.scala index f1711017461..168df2899cc 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/UserAuthenticator.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/UserAuthenticator.scala @@ -17,7 +17,8 @@ object UserAuthenticator extends Authenticator[JwtContext, SessionUser] with Laz val userName = context.getJwtClaims.getSubject val email = context.getJwtClaims.getClaimValue("email").asInstanceOf[String] val userId = context.getJwtClaims.getClaimValue("userId").asInstanceOf[Long].toInt - val role = UserRoleEnum.valueOf(context.getJwtClaims.getClaimValue("role").asInstanceOf[String]) + val role = + UserRoleEnum.valueOf(context.getJwtClaims.getClaimValue("role").asInstanceOf[String]) val googleId = context.getJwtClaims.getClaimValue("googleId").asInstanceOf[String] val user = new User(userId, userName, email, null, googleId, role, null) Optional.of(new SessionUser(user)) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/CollaborationResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/CollaborationResource.scala index 669c1c3e699..8c995bc6ef2 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/CollaborationResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/CollaborationResource.scala @@ -10,7 +10,6 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.User import edu.uci.ics.texera.web.resource.CollaborationResource._ import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowAccessResource - import javax.websocket.server.ServerEndpoint import javax.websocket.{OnClose, OnMessage, OnOpen, Session} import scala.collection.mutable diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/FulltextSearchQueryUtils.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/FulltextSearchQueryUtils.scala index aa828485ef3..0538840d65d 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/FulltextSearchQueryUtils.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/FulltextSearchQueryUtils.scala @@ -11,9 +11,9 @@ import scala.jdk.CollectionConverters.CollectionHasAsScala object FulltextSearchQueryUtils { def getFullTextSearchFilter( - keywords: Seq[String], - fields: List[Field[String]] - ): Condition = { + keywords: Seq[String], + fields: List[Field[String]] + ): Condition = { if (fields.isEmpty) return noCondition() // Filter out empty keywords and trim @@ -23,7 +23,7 @@ object FulltextSearchQueryUtils { // then feeds them into to_tsvector('english', ...). // E.g.: to_tsvector('english', COALESCE(firstName, '') || ' ' || COALESCE(lastName, '')) val combinedFields = fields - .map(f => s"COALESCE($f, '')") // handle null -> '' + .map(f => s"COALESCE($f, '')") // handle null -> '' .mkString(" || ' ' || ") // Fold each keyword into the final Condition @@ -46,12 +46,11 @@ object FulltextSearchQueryUtils { } } - def getSubstringSearchFilter( - keywords: Seq[String], - fields: List[Field[String]], - caseInsensitive: Boolean = false - ): Condition = { + keywords: Seq[String], + fields: List[Field[String]], + caseInsensitive: Boolean = false + ): Condition = { // If no fields, return a "no-op" condition if (fields.isEmpty) return noCondition() @@ -63,8 +62,9 @@ object FulltextSearchQueryUtils { val fieldConditions: Seq[Condition] = fields.map { field => trimmedKeywords.foldLeft[Condition](noCondition()) { (acc, key) => val likeCondition = - if (caseInsensitive) field.likeIgnoreCase(s"%$key%") // Postgres-specific case-insensitive match - else field.like(s"%$key%") // standard SQL LIKE + if (caseInsensitive) + field.likeIgnoreCase(s"%$key%") // Postgres-specific case-insensitive match + else field.like(s"%$key%") // standard SQL LIKE if (acc == noCondition()) likeCondition else acc.and(likeCondition) } @@ -78,7 +78,6 @@ object FulltextSearchQueryUtils { } } - /** * Generates a filter condition for querying based on whether a specified field contains any of the given values. * @@ -146,9 +145,9 @@ object FulltextSearchQueryUtils { * @return The operators filter. */ def getOperatorsFilter( - operators: java.util.List[String], - field: Field[String] - ): Condition = { + operators: java.util.List[String], + field: Field[String] + ): Condition = { // Convert to a Set to avoid duplicates val operatorSet = operators.asScala.toSet // Start with a "no condition" (logical TRUE) so we can accumulate diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/SearchQueryBuilder.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/SearchQueryBuilder.scala index df39f9c9bf1..5ef6a954437 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/SearchQueryBuilder.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/SearchQueryBuilder.scala @@ -9,7 +9,6 @@ import edu.uci.ics.texera.web.resource.dashboard.DashboardResource.{ import edu.uci.ics.texera.web.resource.dashboard.SearchQueryBuilder.context import org.jooq._ - object SearchQueryBuilder { final lazy val context = SqlServer diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/UnifiedResourceSchema.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/UnifiedResourceSchema.scala index a4e1f170820..2bcc52f5d17 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/UnifiedResourceSchema.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/UnifiedResourceSchema.scala @@ -40,8 +40,7 @@ object UnifiedResourceSchema { lastModifiedTime: Field[Timestamp] = DSL.inline(null, classOf[Timestamp]), ownerId: Field[Integer] = DSL.inline(null, classOf[Integer]), wid: Field[Integer] = DSL.inline(null, classOf[Integer]), - workflowUserAccess: Field[PrivilegeEnum] = - DSL.inline(null, classOf[PrivilegeEnum]), + workflowUserAccess: Field[PrivilegeEnum] = DSL.inline(null, classOf[PrivilegeEnum]), projectsOfWorkflow: Field[String] = DSL.inline(""), uid: Field[Integer] = DSL.inline(null, classOf[Integer]), userName: Field[String] = DSL.inline(""), @@ -52,8 +51,7 @@ object UnifiedResourceSchema { did: Field[Integer] = DSL.inline(null, classOf[Integer]), datasetStoragePath: Field[String] = DSL.inline(null, classOf[String]), isDatasetPublic: Field[java.lang.Boolean] = DSL.inline(null, classOf[java.lang.Boolean]), - datasetUserAccess: Field[PrivilegeEnum] = - DSL.inline(null, classOf[PrivilegeEnum]) + datasetUserAccess: Field[PrivilegeEnum] = DSL.inline(null, classOf[PrivilegeEnum]) ): UnifiedResourceSchema = { new UnifiedResourceSchema( Seq( diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/WorkflowSearchQueryBuilder.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/WorkflowSearchQueryBuilder.scala index f25ecbf1201..2735fc58002 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/WorkflowSearchQueryBuilder.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/WorkflowSearchQueryBuilder.scala @@ -106,14 +106,16 @@ object WorkflowSearchQueryBuilder extends SearchQueryBuilder { } override protected def getGroupByFields: Seq[GroupField] = { - Seq(WORKFLOW.NAME, + Seq( + WORKFLOW.NAME, WORKFLOW.DESCRIPTION, WORKFLOW.CREATION_TIME, WORKFLOW.WID, WORKFLOW.LAST_MODIFIED_TIME, WORKFLOW_USER_ACCESS.PRIVILEGE, WORKFLOW_OF_USER.UID, - USER.NAME) + USER.NAME + ) } override def toEntryImpl( diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/execution/AdminExecutionResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/execution/AdminExecutionResource.scala index 0a77c243493..8f30fe0de38 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/execution/AdminExecutionResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/execution/AdminExecutionResource.scala @@ -8,7 +8,6 @@ import edu.uci.ics.texera.web.resource.dashboard.admin.execution.AdminExecutionR import io.dropwizard.auth.Auth import org.jooq.impl.DSL - import javax.annotation.security.RolesAllowed import javax.ws.rs._ import javax.ws.rs.core.MediaType diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/user/AdminUserResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/user/AdminUserResource.scala index 10555a0ffcb..6ce58a031b4 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/user/AdminUserResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/user/AdminUserResource.scala @@ -9,7 +9,6 @@ import edu.uci.ics.texera.web.resource.dashboard.admin.user.AdminUserResource.us import edu.uci.ics.texera.web.resource.dashboard.user.quota.UserQuotaResource._ import org.jasypt.util.password.StrongPasswordEncryptor - import java.util import javax.annotation.security.RolesAllowed import javax.ws.rs._ diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/EntityTables.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/EntityTables.scala index 7bf894734fe..8d5966f6eb6 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/EntityTables.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/EntityTables.scala @@ -23,7 +23,8 @@ object EntityTables { case object WorkflowTable extends BaseEntityTable { override type R = WorkflowRecord override val table: Table[WorkflowRecord] = WORKFLOW - override val isPublicColumn: TableField[WorkflowRecord, java.lang.Boolean] = WORKFLOW.IS_PUBLIC + override val isPublicColumn: TableField[WorkflowRecord, java.lang.Boolean] = + WORKFLOW.IS_PUBLIC } case object DatasetTable extends BaseEntityTable { diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/HubResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/HubResource.scala index 89bc937b932..cbf0ef74f86 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/HubResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/HubResource.scala @@ -16,7 +16,6 @@ import HubResource.{ import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowResource.DashboardWorkflow import org.jooq.impl.DSL - import java.util import java.util.Collections import java.util.regex.Pattern diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetAccessResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetAccessResource.scala index 58f13191f88..83af864b0d9 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetAccessResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetAccessResource.scala @@ -15,7 +15,6 @@ import edu.uci.ics.texera.web.resource.dashboard.user.dataset.DatasetAccessResou } import org.jooq.DSLContext - import java.util import javax.annotation.security.RolesAllowed import javax.ws.rs._ diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/utils/DatasetStatisticsUtils.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/utils/DatasetStatisticsUtils.scala index e34af458de9..2b79989bcc3 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/utils/DatasetStatisticsUtils.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/utils/DatasetStatisticsUtils.scala @@ -6,7 +6,6 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.Dataset.DATASET import edu.uci.ics.texera.web.resource.dashboard.user.dataset.DatasetResource import edu.uci.ics.texera.web.resource.dashboard.user.quota.UserQuotaResource.DatasetQuota - import scala.jdk.CollectionConverters._ object DatasetStatisticsUtils { diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectAccessResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectAccessResource.scala index b82b86575e9..ab0ed9b58ad 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectAccessResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectAccessResource.scala @@ -9,7 +9,6 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.daos.{ProjectDao, ProjectUse import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.ProjectUserAccess import org.jooq.DSLContext - import java.util import javax.annotation.security.RolesAllowed import javax.ws.rs._ diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectResource.scala index 216b40a1ea3..14c81805d9b 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectResource.scala @@ -19,7 +19,6 @@ import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowResource. import io.dropwizard.auth.Auth import org.apache.commons.lang3.StringUtils - import java.sql.Timestamp import java.util import javax.annotation.security.RolesAllowed diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/PublicProjectResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/PublicProjectResource.scala index 0c6eed847c7..5322eb3ae96 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/PublicProjectResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/PublicProjectResource.scala @@ -10,7 +10,6 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.{ProjectUserAccess, Pu import io.dropwizard.auth.Auth import org.jooq.DSLContext - import java.sql.Timestamp import java.util import javax.annotation.security.RolesAllowed diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/quota/UserQuotaResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/quota/UserQuotaResource.scala index 544c8f1ebf1..475e058e781 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/quota/UserQuotaResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/quota/UserQuotaResource.scala @@ -11,7 +11,6 @@ import edu.uci.ics.texera.web.resource.dashboard.user.quota.UserQuotaResource._ import io.dropwizard.auth.Auth import org.bson.Document - import java.util import javax.ws.rs._ import javax.ws.rs.core.MediaType diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowAccessResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowAccessResource.scala index 5f9e441e318..70b41b83c3a 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowAccessResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowAccessResource.scala @@ -16,7 +16,6 @@ import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowAccessRes import io.dropwizard.auth.Auth import org.jooq.DSLContext - import java.util import javax.annotation.security.RolesAllowed import javax.ws.rs._ diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala index 4d20f3ec5c9..8954aff9cc6 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala @@ -22,7 +22,6 @@ import io.dropwizard.auth.Auth import org.jooq.Condition import org.jooq.impl.DSL.{groupConcatDistinct, noCondition} - import java.sql.Timestamp import java.util import java.util.UUID @@ -289,14 +288,16 @@ class WorkflowResource extends LazyLogging { .leftJoin(WORKFLOW_OF_PROJECT) .on(WORKFLOW.WID.eq(WORKFLOW_OF_PROJECT.WID)) .where(WORKFLOW_USER_ACCESS.UID.eq(user.getUid)) - .groupBy(WORKFLOW.WID, + .groupBy( + WORKFLOW.WID, WORKFLOW.NAME, WORKFLOW.DESCRIPTION, WORKFLOW.CREATION_TIME, WORKFLOW.LAST_MODIFIED_TIME, WORKFLOW_USER_ACCESS.PRIVILEGE, WORKFLOW_OF_USER.UID, - USER.NAME) + USER.NAME + ) .fetch() workflowEntries .map(workflowRecord => diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowVersionResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowVersionResource.scala index cf4e0545eb6..d9b4faea7fb 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowVersionResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowVersionResource.scala @@ -16,7 +16,6 @@ import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowResource. import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowVersionResource._ import io.dropwizard.auth.Auth - import java.sql.Timestamp import javax.annotation.security.RolesAllowed import javax.ws.rs._ diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionStatsService.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionStatsService.scala index 2ca5c2556e3..8adffc978d6 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionStatsService.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionStatsService.scala @@ -211,7 +211,7 @@ class ExecutionStatsService( stat.operatorStatistics.inputCount.map(_.tupleCount).sum ) runtimeStats.setOutputTupleCnt( - stat.operatorStatistics.outputCount.map(_.tupleCount).sum + stat.operatorStatistics.outputCount.map(_.tupleCount).sum ) runtimeStats.setStatus(maptoStatusCode(stat.operatorState)) runtimeStats.setDataProcessingTime( diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionsMetadataPersistService.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionsMetadataPersistService.scala index 91eb55a4bc9..f8ec0127820 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionsMetadataPersistService.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionsMetadataPersistService.scala @@ -10,7 +10,6 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.daos.WorkflowExecutionsDao import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowExecutions import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowVersionResource._ - import java.sql.Timestamp /** diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/WorkflowEmailNotifier.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/WorkflowEmailNotifier.scala index b257e889a81..4c851c6fc76 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/WorkflowEmailNotifier.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/WorkflowEmailNotifier.scala @@ -6,7 +6,6 @@ import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowResource import edu.uci.ics.texera.web.resource.{EmailMessage, GmailResource} import org.hibernate.validator.internal.constraintvalidators.hv.EmailValidator - import java.net.URI import java.time.format.DateTimeFormatter import java.time.{Instant, ZoneOffset} diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/WorkflowExecutionService.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/WorkflowExecutionService.scala index 5e0b42c1631..7079cbf3841 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/WorkflowExecutionService.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/WorkflowExecutionService.scala @@ -11,7 +11,11 @@ import edu.uci.ics.amber.engine.common.client.AmberClient import edu.uci.ics.amber.engine.common.executionruntimestate.ExecutionMetadataStore import edu.uci.ics.amber.engine.common.{AmberConfig, Utils} import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorExecutions -import edu.uci.ics.texera.web.model.websocket.event.{TexeraWebSocketEvent, WorkflowErrorEvent, WorkflowStateEvent} +import edu.uci.ics.texera.web.model.websocket.event.{ + TexeraWebSocketEvent, + WorkflowErrorEvent, + WorkflowStateEvent +} import edu.uci.ics.texera.web.model.websocket.request.WorkflowExecuteRequest import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowExecutionsResource import edu.uci.ics.texera.web.storage.ExecutionStateStore diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/JooqCodeGenerator.scala b/core/dao/src/main/scala/edu/uci/ics/texera/dao/JooqCodeGenerator.scala index 541189b28db..b560525f85d 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/JooqCodeGenerator.scala +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/JooqCodeGenerator.scala @@ -9,7 +9,6 @@ import java.nio.file.{Files, Path} import java.util.{Map => JMap} import scala.jdk.CollectionConverters._ - object JooqCodeGenerator { @throws[Exception] def main(args: Array[String]): Unit = { diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/SqlServer.scala b/core/dao/src/main/scala/edu/uci/ics/texera/dao/SqlServer.scala index 569333423fd..e1a81a2d1b0 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/SqlServer.scala +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/SqlServer.scala @@ -13,7 +13,7 @@ import org.postgresql.ds.PGSimpleDataSource */ class SqlServer private (url: String, user: String, password: String) { val SQL_DIALECT: SQLDialect = SQLDialect.POSTGRES - private val dataSource:PGSimpleDataSource = new PGSimpleDataSource() + private val dataSource: PGSimpleDataSource = new PGSimpleDataSource() var context: DSLContext = _ { diff --git a/core/workflow-core/src/main/scala/edu/uci/ics/amber/core/storage/model/DatasetFileDocument.scala b/core/workflow-core/src/main/scala/edu/uci/ics/amber/core/storage/model/DatasetFileDocument.scala index f627a2ba58c..0f65191e08b 100644 --- a/core/workflow-core/src/main/scala/edu/uci/ics/amber/core/storage/model/DatasetFileDocument.scala +++ b/core/workflow-core/src/main/scala/edu/uci/ics/amber/core/storage/model/DatasetFileDocument.scala @@ -3,7 +3,6 @@ package edu.uci.ics.amber.core.storage.model import edu.uci.ics.amber.core.storage.util.dataset.GitVersionControlLocalFileStorage import edu.uci.ics.amber.util.PathUtils - import java.io.{File, FileOutputStream, InputStream} import java.net.{URI, URLDecoder} import java.nio.charset.StandardCharsets diff --git a/core/workflow-core/src/main/scala/edu/uci/ics/amber/util/PathUtils.scala b/core/workflow-core/src/main/scala/edu/uci/ics/amber/util/PathUtils.scala index 7e6940a85e7..f88f29d0b30 100644 --- a/core/workflow-core/src/main/scala/edu/uci/ics/amber/util/PathUtils.scala +++ b/core/workflow-core/src/main/scala/edu/uci/ics/amber/util/PathUtils.scala @@ -1,7 +1,5 @@ package edu.uci.ics.amber.util - - import java.nio.file.{Files, Path, Paths} import scala.jdk.CollectionConverters.IteratorHasAsScala From c1056474610bc6c6d4fb4769d94942466c6d31b9 Mon Sep 17 00:00:00 2001 From: Shengquan Ni <13672781+shengquan-ni@users.noreply.github.com> Date: Mon, 10 Feb 2025 00:34:19 -0800 Subject: [PATCH 04/20] upload new ddl --- core/scripts/sql/texera_ddl.sql | 514 ++++++++++++++++++-------------- 1 file changed, 282 insertions(+), 232 deletions(-) diff --git a/core/scripts/sql/texera_ddl.sql b/core/scripts/sql/texera_ddl.sql index a128793b36c..df29d46a6e5 100644 --- a/core/scripts/sql/texera_ddl.sql +++ b/core/scripts/sql/texera_ddl.sql @@ -1,268 +1,318 @@ -CREATE SCHEMA IF NOT EXISTS `texera_db`; -USE `texera_db`; - -DROP TABLE IF EXISTS `workflow_user_access`; -DROP TABLE IF EXISTS `workflow_of_user`; -DROP TABLE IF EXISTS `user_config`; -DROP TABLE IF EXISTS `user`; -DROP TABLE IF EXISTS `workflow`; -DROP TABLE IF EXISTS `workflow_version`; -DROP TABLE IF EXISTS `project`; -DROP TABLE IF EXISTS `workflow_of_project`; -DROP TABLE IF EXISTS `workflow_executions`; -DROP TABLE IF EXISTS `dataset`; -DROP TABLE IF EXISTS `dataset_user_access`; -DROP TABLE IF EXISTS `dataset_version`; -DROP TABLE IF EXISTS operator_executions; -DROP TABLE IF EXISTS operator_runtime_statistics; - -SET PERSIST time_zone = '+00:00'; -- this line is mandatory -SET PERSIST sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY','')); - -CREATE TABLE IF NOT EXISTS user +-- ============================================ +-- 1. Drop and recreate the database (psql only) +-- Remove if you already created texera_db +-- ============================================ +\c postgres +DROP DATABASE IF EXISTS texera_db; +CREATE DATABASE texera_db; + +-- ============================================ +-- 2. Connect to the new database (psql only) +-- ============================================ +\c texera_db + +CREATE SCHEMA IF NOT EXISTS texera_db; +SET search_path TO texera_db; + +-- ============================================ +-- 3. Drop all tables if they exist +-- (CASCADE handles FK dependencies) +-- ============================================ +DROP TABLE IF EXISTS workflow_user_access CASCADE; +DROP TABLE IF EXISTS workflow_of_user CASCADE; +DROP TABLE IF EXISTS user_config CASCADE; +DROP TABLE IF EXISTS "user" CASCADE; +DROP TABLE IF EXISTS workflow CASCADE; +DROP TABLE IF EXISTS workflow_version CASCADE; +DROP TABLE IF EXISTS project CASCADE; +DROP TABLE IF EXISTS workflow_of_project CASCADE; +DROP TABLE IF EXISTS workflow_executions CASCADE; +DROP TABLE IF EXISTS dataset CASCADE; +DROP TABLE IF EXISTS dataset_user_access CASCADE; +DROP TABLE IF EXISTS dataset_version CASCADE; +DROP TABLE IF EXISTS operator_runtime_statistics CASCADE; +DROP TABLE IF EXISTS operator_executions CASCADE; +DROP TABLE IF EXISTS workflow_user_activity CASCADE; +DROP TABLE IF EXISTS public_project CASCADE; +DROP TABLE IF EXISTS project_user_access CASCADE; +DROP TABLE IF EXISTS workflow_user_likes CASCADE; +DROP TABLE IF EXISTS workflow_user_clones CASCADE; +DROP TABLE IF EXISTS workflow_view_count CASCADE; +DROP TABLE IF EXISTS user_activity CASCADE; + +-- ============================================ +-- 4. Create PostgreSQL enum types to mimic MySQL ENUM +-- for user.role and privilege fields +-- ============================================ +DO $$ +BEGIN + IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'user_role_enum') THEN +CREATE TYPE user_role_enum AS ENUM ('INACTIVE', 'RESTRICTED', 'REGULAR', 'ADMIN'); +END IF; + + IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'privilege_enum') THEN +CREATE TYPE privilege_enum AS ENUM ('NONE', 'READ', 'WRITE'); +END IF; +END +$$; + +-- ============================================ +-- 5. Create tables +-- ============================================ + +-- "user" table (MySQL "user") +CREATE TABLE IF NOT EXISTS "user" ( - `uid` INT UNSIGNED AUTO_INCREMENT NOT NULL, - `name` VARCHAR(256) NOT NULL, - `email` VARCHAR(256) UNIQUE, - `password` VARCHAR(256), - `google_id` VARCHAR(256) UNIQUE, - `role` ENUM('INACTIVE', 'RESTRICTED', 'REGULAR', 'ADMIN') NOT NULL DEFAULT 'INACTIVE', - `google_avatar` VARCHAR(100) null, - PRIMARY KEY (`uid`), - CONSTRAINT CK_nulltest - CHECK (`password` IS NOT NULL OR `google_id` IS NOT NULL) -) ENGINE = INNODB, --- start auto increment userID from 1 because userID 0 means user not exists - AUTO_INCREMENT = 1; - + uid SERIAL PRIMARY KEY, + name VARCHAR(256) NOT NULL, + email VARCHAR(256) UNIQUE, + password VARCHAR(256), + google_id VARCHAR(256) UNIQUE, + role user_role_enum NOT NULL DEFAULT 'INACTIVE', + google_avatar VARCHAR(100), + -- check that either password or google_id is not null + CONSTRAINT ck_nulltest CHECK ((password IS NOT NULL) OR (google_id IS NOT NULL)) + ); + +-- user_config CREATE TABLE IF NOT EXISTS user_config ( - `uid` INT UNSIGNED NOT NULL, - `key` varchar(256) NOT NULL, - `value` text NOT NULL, - PRIMARY KEY (`uid`, `key`), - FOREIGN KEY (`uid`) REFERENCES user (`uid`) ON DELETE CASCADE -) ENGINE = InnoDB; - + uid INT NOT NULL, + key VARCHAR(256) NOT NULL, + value TEXT NOT NULL, + PRIMARY KEY (uid, key), + FOREIGN KEY (uid) REFERENCES "user"(uid) ON DELETE CASCADE + ); + +-- workflow CREATE TABLE IF NOT EXISTS workflow ( - `name` VARCHAR(128) NOT NULL, - `description` VARCHAR(500), - `wid` INT UNSIGNED AUTO_INCREMENT NOT NULL, - `content` LONGTEXT NOT NULL, - `creation_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, - `last_modified_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY (`wid`) -) ENGINE = INNODB, - AUTO_INCREMENT = 1; - + wid SERIAL PRIMARY KEY, + name VARCHAR(128) NOT NULL, + description VARCHAR(500), + content TEXT NOT NULL, + creation_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, + last_modified_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, + is_public BOOLEAN NOT NULL DEFAULT false + ); + +-- workflow_of_user CREATE TABLE IF NOT EXISTS workflow_of_user ( - `uid` INT UNSIGNED NOT NULL, - `wid` INT UNSIGNED NOT NULL, - PRIMARY KEY (`uid`, `wid`), - FOREIGN KEY (`uid`) REFERENCES `user` (`uid`) ON DELETE CASCADE, - FOREIGN KEY (`wid`) REFERENCES `workflow` (`wid`) ON DELETE CASCADE -) ENGINE = INNODB; - + uid INT NOT NULL, + wid INT NOT NULL, + PRIMARY KEY (uid, wid), + FOREIGN KEY (uid) REFERENCES "user"(uid) ON DELETE CASCADE, + FOREIGN KEY (wid) REFERENCES workflow(wid) ON DELETE CASCADE + ); + +-- workflow_user_access CREATE TABLE IF NOT EXISTS workflow_user_access ( - `uid` INT UNSIGNED NOT NULL, - `wid` INT UNSIGNED NOT NULL, - `privilege` ENUM('NONE', 'READ', 'WRITE') NOT NULL DEFAULT 'NONE', - PRIMARY KEY (`uid`, `wid`), - FOREIGN KEY (`uid`) REFERENCES `user` (`uid`) ON DELETE CASCADE, - FOREIGN KEY (`wid`) REFERENCES `workflow` (`wid`) ON DELETE CASCADE -) ENGINE = INNODB; - + uid INT NOT NULL, + wid INT NOT NULL, + privilege privilege_enum NOT NULL DEFAULT 'NONE', + PRIMARY KEY (uid, wid), + FOREIGN KEY (uid) REFERENCES "user"(uid) ON DELETE CASCADE, + FOREIGN KEY (wid) REFERENCES workflow(wid) ON DELETE CASCADE + ); + +-- workflow_version CREATE TABLE IF NOT EXISTS workflow_version ( - `vid` INT UNSIGNED AUTO_INCREMENT NOT NULL, - `wid` INT UNSIGNED NOT NULL, - `content` TEXT NOT NULL, - `creation_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`vid`), - FOREIGN KEY (`wid`) REFERENCES `workflow` (`wid`) ON DELETE CASCADE -) ENGINE = INNODB; - + vid SERIAL PRIMARY KEY, + wid INT NOT NULL, + content TEXT NOT NULL, + creation_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, + FOREIGN KEY (wid) REFERENCES workflow(wid) ON DELETE CASCADE + ); + +-- project CREATE TABLE IF NOT EXISTS project ( - `pid` INT UNSIGNED AUTO_INCREMENT NOT NULL, - `name` VARCHAR(128) NOT NULL, - `description` VARCHAR(10000), - `owner_id` INT UNSIGNED NOT NULL, - `creation_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, - `color` VARCHAR(6), - UNIQUE(`owner_id`, `name`), - PRIMARY KEY (`pid`), - FOREIGN KEY (`owner_id`) REFERENCES user (`uid`) ON DELETE CASCADE -) ENGINE = INNODB, - AUTO_INCREMENT = 1; - + pid SERIAL PRIMARY KEY, + name VARCHAR(128) NOT NULL, + description VARCHAR(10000), + owner_id INT NOT NULL, + creation_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, + color VARCHAR(6), + UNIQUE (owner_id, name), + FOREIGN KEY (owner_id) REFERENCES "user"(uid) ON DELETE CASCADE + ); + +-- workflow_of_project CREATE TABLE IF NOT EXISTS workflow_of_project ( - `wid` INT UNSIGNED NOT NULL, - `pid` INT UNSIGNED NOT NULL, - PRIMARY KEY (`wid`, `pid`), - FOREIGN KEY (`wid`) REFERENCES `workflow` (`wid`) ON DELETE CASCADE, - FOREIGN KEY (`pid`) REFERENCES `project` (`pid`) ON DELETE CASCADE -) ENGINE = INNODB; - + wid INT NOT NULL, + pid INT NOT NULL, + PRIMARY KEY (wid, pid), + FOREIGN KEY (wid) REFERENCES workflow(wid) ON DELETE CASCADE, + FOREIGN KEY (pid) REFERENCES project(pid) ON DELETE CASCADE + ); + +-- project_user_access CREATE TABLE IF NOT EXISTS project_user_access ( - `uid` INT UNSIGNED NOT NULL, - `pid` INT UNSIGNED NOT NULL, - `privilege` ENUM('NONE', 'READ', 'WRITE') NOT NULL DEFAULT 'NONE', - PRIMARY KEY (`uid`, `pid`), - FOREIGN KEY (`uid`) REFERENCES `user` (`uid`) ON DELETE CASCADE, - FOREIGN KEY (`pid`) REFERENCES `project` (`pid`) ON DELETE CASCADE -) ENGINE = INNODB; - + uid INT NOT NULL, + pid INT NOT NULL, + privilege privilege_enum NOT NULL DEFAULT 'NONE', + PRIMARY KEY (uid, pid), + FOREIGN KEY (uid) REFERENCES "user"(uid) ON DELETE CASCADE, + FOREIGN KEY (pid) REFERENCES project(pid) ON DELETE CASCADE + ); + +-- workflow_executions CREATE TABLE IF NOT EXISTS workflow_executions ( - `eid` INT UNSIGNED AUTO_INCREMENT NOT NULL, - `vid` INT UNSIGNED NOT NULL, - `uid` INT UNSIGNED NOT NULL, - `status` TINYINT NOT NULL DEFAULT 1, - `result` TEXT, /* pointer to volume */ - `starting_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, - `last_update_time` TIMESTAMP, - `bookmarked` BOOLEAN DEFAULT FALSE, - `name` VARCHAR(128) NOT NULL DEFAULT 'Untitled Execution', - `environment_version` VARCHAR(128) NOT NULL, - `log_location` TEXT, /* uri to log storage */ - PRIMARY KEY (`eid`), - FOREIGN KEY (`vid`) REFERENCES `workflow_version` (`vid`) ON DELETE CASCADE, - FOREIGN KEY (`uid`) REFERENCES `user` (`uid`) ON DELETE CASCADE -) ENGINE = INNODB; - + eid SERIAL PRIMARY KEY, + vid INT NOT NULL, + uid INT NOT NULL, + status SMALLINT NOT NULL DEFAULT 1, + result TEXT, + starting_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, + last_update_time TIMESTAMP, + bookmarked BOOLEAN DEFAULT FALSE, + name VARCHAR(128) NOT NULL DEFAULT 'Untitled Execution', + environment_version VARCHAR(128) NOT NULL, + log_location TEXT, + FOREIGN KEY (vid) REFERENCES workflow_version(vid) ON DELETE CASCADE, + FOREIGN KEY (uid) REFERENCES "user"(uid) ON DELETE CASCADE + ); + +-- public_project CREATE TABLE IF NOT EXISTS public_project ( - `pid` INT UNSIGNED NOT NULL, - `uid` INT UNSIGNED, - PRIMARY KEY (`pid`), - FOREIGN KEY (`pid`) REFERENCES `project` (`pid`) ON DELETE CASCADE -) ENGINE = INNODB; + pid INT PRIMARY KEY, + uid INT, + FOREIGN KEY (pid) REFERENCES project(pid) ON DELETE CASCADE + ); +-- dataset CREATE TABLE IF NOT EXISTS dataset ( - `did` INT UNSIGNED AUTO_INCREMENT NOT NULL, - `owner_uid` INT UNSIGNED NOT NULL, - `name` VARCHAR(128) NOT NULL, - `is_public` TINYINT NOT NULL DEFAULT 1, - `description` VARCHAR(512) NOT NULL, - `creation_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY(`did`), - FOREIGN KEY (`owner_uid`) REFERENCES `user` (`uid`) ON DELETE CASCADE - ) ENGINE = INNODB; - + did SERIAL PRIMARY KEY, + owner_uid INT NOT NULL, + name VARCHAR(128) NOT NULL, + is_public BOOLEAN NOT NULL DEFAULT TRUE, + description VARCHAR(512) NOT NULL, + creation_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, + FOREIGN KEY (owner_uid) REFERENCES "user"(uid) ON DELETE CASCADE + ); + +-- dataset_user_access CREATE TABLE IF NOT EXISTS dataset_user_access ( - `did` INT UNSIGNED NOT NULL, - `uid` INT UNSIGNED NOT NULL, - `privilege` ENUM('NONE', 'READ', 'WRITE') NOT NULL DEFAULT 'NONE', - PRIMARY KEY(`did`, `uid`), - FOREIGN KEY (`did`) REFERENCES `dataset` (`did`) ON DELETE CASCADE, - FOREIGN KEY (`uid`) REFERENCES `user` (`uid`) ON DELETE CASCADE - ) ENGINE = INNODB; - + did INT NOT NULL, + uid INT NOT NULL, + privilege privilege_enum NOT NULL DEFAULT 'NONE', + PRIMARY KEY (did, uid), + FOREIGN KEY (did) REFERENCES dataset(did) ON DELETE CASCADE, + FOREIGN KEY (uid) REFERENCES "user"(uid) ON DELETE CASCADE + ); + +-- dataset_version CREATE TABLE IF NOT EXISTS dataset_version ( - `dvid` INT UNSIGNED AUTO_INCREMENT NOT NULL, - `did` INT UNSIGNED NOT NULL, - `creator_uid` INT UNSIGNED NOT NULL, - `name` VARCHAR(128) NOT NULL, - `version_hash` VARCHAR(64) NOT NULL, - `creation_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY(`dvid`), - FOREIGN KEY (`did`) REFERENCES `dataset` (`did`) ON DELETE CASCADE - ) ENGINE = INNODB; - - --- create fulltext search indexes - -CREATE FULLTEXT INDEX `idx_workflow_name_description_content` ON `texera_db`.`workflow` (name, description, content); - -CREATE FULLTEXT INDEX `idx_user_name` ON `texera_db`.`user` (name); - -CREATE FULLTEXT INDEX `idx_user_project_name_description` ON `texera_db`.`project` (name, description); - -CREATE FULLTEXT INDEX `idx_dataset_name_description` ON `texera_db`.`dataset` (name, description); - -CREATE FULLTEXT INDEX `idx_dataset_version_name` ON `texera_db`.`dataset_version` (name); + dvid SERIAL PRIMARY KEY, + did INT NOT NULL, + creator_uid INT NOT NULL, + name VARCHAR(128) NOT NULL, + version_hash VARCHAR(64) NOT NULL, + creation_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, + FOREIGN KEY (did) REFERENCES dataset(did) ON DELETE CASCADE + ); + +-- operator_executions +CREATE TABLE IF NOT EXISTS operator_executions +( + operator_execution_id BIGSERIAL PRIMARY KEY, + workflow_execution_id INT NOT NULL, + operator_id VARCHAR(100) NOT NULL, + UNIQUE (workflow_execution_id, operator_id), + FOREIGN KEY (workflow_execution_id) REFERENCES workflow_executions(eid) ON DELETE CASCADE + ); -ALTER TABLE workflow -ADD is_published BOOLEAN NOT NULL DEFAULT false; +-- operator_runtime_statistics +CREATE TABLE IF NOT EXISTS operator_runtime_statistics +( + operator_execution_id BIGINT NOT NULL, + time TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), + input_tuple_cnt BIGINT NOT NULL DEFAULT 0, + output_tuple_cnt BIGINT NOT NULL DEFAULT 0, + status SMALLINT NOT NULL DEFAULT 1, + data_processing_time BIGINT NOT NULL DEFAULT 0, + control_processing_time BIGINT NOT NULL DEFAULT 0, + idle_time BIGINT NOT NULL DEFAULT 0, + num_workers INT NOT NULL DEFAULT 0, + PRIMARY KEY (operator_execution_id, time), + FOREIGN KEY (operator_execution_id) REFERENCES operator_executions(operator_execution_id) ON DELETE CASCADE + ); +-- workflow_user_likes CREATE TABLE IF NOT EXISTS workflow_user_likes ( - `uid` INT UNSIGNED NOT NULL, - `wid` INT UNSIGNED NOT NULL, - PRIMARY KEY (`uid`, `wid`), - FOREIGN KEY (`uid`) REFERENCES `user` (`uid`) ON DELETE CASCADE, - FOREIGN KEY (`wid`) REFERENCES `workflow` (`wid`) ON DELETE CASCADE - ) ENGINE = INNODB; - + uid INT NOT NULL, + wid INT NOT NULL, + PRIMARY KEY (uid, wid), + FOREIGN KEY (uid) REFERENCES "user"(uid) ON DELETE CASCADE, + FOREIGN KEY (wid) REFERENCES workflow(wid) ON DELETE CASCADE + ); + +-- workflow_user_clones CREATE TABLE IF NOT EXISTS workflow_user_clones ( - `uid` INT UNSIGNED NOT NULL, - `wid` INT UNSIGNED NOT NULL, - PRIMARY KEY (`uid`, `wid`), - FOREIGN KEY (`uid`) REFERENCES `user` (`uid`) ON DELETE CASCADE, - FOREIGN KEY (`wid`) REFERENCES `workflow` (`wid`) ON DELETE CASCADE - ) ENGINE = INNODB; - -CREATE TABLE IF NOT EXISTS workflow_user_activity ( - `uid` INT UNSIGNED NOT NULL DEFAULT 0, - `wid` INT UNSIGNED NOT NULL, - `ip` VARCHAR(15) DEFAULT NULL, - `activate` VARCHAR(10) NOT NULL, - `activity_time` TIMESTAMP DEFAULT CURRENT_TIMESTAMP -) ENGINE = INNODB; - + uid INT NOT NULL, + wid INT NOT NULL, + PRIMARY KEY (uid, wid), + FOREIGN KEY (uid) REFERENCES "user"(uid) ON DELETE CASCADE, + FOREIGN KEY (wid) REFERENCES workflow(wid) ON DELETE CASCADE + ); + +-- workflow_view_count CREATE TABLE IF NOT EXISTS workflow_view_count ( - `wid` INT UNSIGNED NOT NULL, - `view_count` INT UNSIGNED NOT NULL DEFAULT 0, - PRIMARY KEY (`wid`), - FOREIGN KEY (`wid`) REFERENCES `workflow` (`wid`) ON DELETE CASCADE - ) ENGINE = INNODB; - -ALTER TABLE dataset -MODIFY COLUMN is_public BOOLEAN NOT NULL DEFAULT true; - -ALTER TABLE workflow -CHANGE COLUMN is_published is_public BOOLEAN NOT NULL DEFAULT false; - -CREATE TABLE IF NOT EXISTS operator_executions ( - operator_execution_id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY, - workflow_execution_id INT UNSIGNED NOT NULL, - operator_id VARCHAR(100) NOT NULL, - UNIQUE (workflow_execution_id, operator_id), - FOREIGN KEY (workflow_execution_id) REFERENCES workflow_executions (eid) ON DELETE CASCADE -); - -CREATE TABLE IF NOT EXISTS operator_runtime_statistics ( - operator_execution_id BIGINT UNSIGNED NOT NULL, - time TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), - input_tuple_cnt BIGINT UNSIGNED NOT NULL DEFAULT 0, - output_tuple_cnt BIGINT UNSIGNED NOT NULL DEFAULT 0, - status TINYINT NOT NULL DEFAULT 1, - data_processing_time BIGINT UNSIGNED NOT NULL DEFAULT 0, - control_processing_time BIGINT UNSIGNED NOT NULL DEFAULT 0, - idle_time BIGINT UNSIGNED NOT NULL DEFAULT 0, - num_workers INT UNSIGNED NOT NULL DEFAULT 0, - PRIMARY KEY (operator_execution_id, time), - FOREIGN KEY (operator_execution_id) REFERENCES operator_executions (operator_execution_id) ON DELETE CASCADE -); - -DROP TABLE IF EXISTS workflow_user_activity; - -CREATE TABLE IF NOT EXISTS user_activity ( - `uid` INT UNSIGNED NOT NULL DEFAULT 0, - `id` INT UNSIGNED NOT NULL, - `type` VARCHAR(15) NOT NULL, - `ip` VARCHAR(15) DEFAULT NULL, - `activate` VARCHAR(10) NOT NULL, - `activity_time` TIMESTAMP DEFAULT CURRENT_TIMESTAMP - ) ENGINE = INNODB; \ No newline at end of file + wid INT NOT NULL PRIMARY KEY, + view_count INT NOT NULL DEFAULT 0, + FOREIGN KEY (wid) REFERENCES workflow(wid) ON DELETE CASCADE + ); + +CREATE TABLE IF NOT EXISTS user_activity +( + uid INT NOT NULL DEFAULT 0, + id INT NOT NULL, + type VARCHAR(15) NOT NULL, + ip VARCHAR(15), + activate VARCHAR(10) NOT NULL, + activity_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP + ); + +-- ============================================ +-- 6. Approximate FULLTEXT indexes with GIN +-- (In MySQL: CREATE FULLTEXT INDEX) +-- ============================================ + +-- You might need "CREATE EXTENSION IF NOT EXISTS pg_trgm;" or +-- "CREATE EXTENSION IF NOT EXISTS unaccent;" for advanced usage. + +CREATE INDEX idx_workflow_name_description_content + ON workflow + USING GIN (to_tsvector('english', COALESCE(name, '') || ' ' || COALESCE(description, '') || ' ' || COALESCE(content, ''))); + +CREATE INDEX idx_user_name + ON "user" + USING GIN (to_tsvector('english', COALESCE(name, ''))); + +CREATE INDEX idx_user_project_name_description + ON project + USING GIN (to_tsvector('english', COALESCE(name, '') || ' ' || COALESCE(description, ''))); + +CREATE INDEX idx_dataset_name_description + ON dataset + USING GIN (to_tsvector('english', COALESCE(name, '') || ' ' || COALESCE(description, ''))); + +CREATE INDEX idx_dataset_version_name + ON dataset_version + USING GIN (to_tsvector('english', COALESCE(name, ''))); + +-- Done! +-- You now have a "texera_db" database with all tables & enums in the default "public" schema. From 77e8e9c02804a071649cf8fad4998ab0743ed1f9 Mon Sep 17 00:00:00 2001 From: Shengquan Ni Date: Tue, 11 Feb 2025 17:13:02 -0800 Subject: [PATCH 05/20] update --- core/dao/build.sbt | 2 +- .../edu/uci/ics/texera/dao/MockTexeraDB.scala | 24 +++++-------------- 2 files changed, 7 insertions(+), 19 deletions(-) diff --git a/core/dao/build.sbt b/core/dao/build.sbt index 83d9243f463..c67a2693db3 100644 --- a/core/dao/build.sbt +++ b/core/dao/build.sbt @@ -70,7 +70,7 @@ libraryDependencies ++= Seq( "org.scalatest" %% "scalatest" % "3.2.15" % Test, // ScalaTest "junit" % "junit" % "4.13.2" % Test, // JUnit "com.novocode" % "junit-interface" % "0.11" % Test, // SBT interface for JUnit - "ch.vorburger.mariaDB4j" % "mariaDB4j" % "2.4.0" % Test // for mocking DB + "com.opentable.components" % "otj-pg-embedded" % "1.0.3" % Test // For mock postgres DB ) ///////////////////////////////////////////////////////////////////////////// diff --git a/core/dao/src/test/scala/edu/uci/ics/texera/dao/MockTexeraDB.scala b/core/dao/src/test/scala/edu/uci/ics/texera/dao/MockTexeraDB.scala index 7809adcfbaa..89586d57ad5 100644 --- a/core/dao/src/test/scala/edu/uci/ics/texera/dao/MockTexeraDB.scala +++ b/core/dao/src/test/scala/edu/uci/ics/texera/dao/MockTexeraDB.scala @@ -1,7 +1,8 @@ package edu.uci.ics.texera.dao -import ch.vorburger.mariadb4j.{DB, DBConfigurationBuilder} import com.mysql.cj.jdbc.MysqlDataSource +import com.opentable.db.postgres.embedded.EmbeddedPostgres +import com.opentable.db.postgres.junit.EmbeddedPostgresRules import org.jooq.DSLContext import org.jooq.impl.DSL @@ -12,7 +13,7 @@ import java.util.Scanner trait MockTexeraDB { - private var dbInstance: Option[DB] = None + private var dbInstance: Option[EmbeddedPostgres] = None private var dslContext: Option[DSLContext] = None private val database: String = "texera_db" private val username: String = "root" @@ -24,7 +25,7 @@ trait MockTexeraDB { val in = new FileInputStream(sqlFile) val conn = DriverManager.getConnection( - dbInstance.get.getConfiguration.getURL(""), + dbInstance.get.getJdbcUrl("texera_db"), username, password ) @@ -93,22 +94,9 @@ trait MockTexeraDB { val driver = new org.postgresql.Driver() DriverManager.registerDriver(driver) - val config = DBConfigurationBuilder.newBuilder - .setPort(0) // 0 => automatically detect free port - .setSecurityDisabled(true) - .setDeletingTemporaryBaseAndDataDirsOnShutdown(true) - .build() + val embedded = EmbeddedPostgresRules.singleInstance().getEmbeddedPostgres - val db = DB.newEmbeddedDB(config) - db.start() - - val dataSource = new MysqlDataSource - dataSource.setUrl(config.getURL(database)) - dataSource.setUser(username) - dataSource.setPassword(password) - - val sqlServerInstance = SqlServer.getInstance(database, username, password) - dbInstance = Some(db) + dbInstance = Some(embedded) dslContext = Some(DSL.using(dataSource, sqlServerInstance.SQL_DIALECT)) val ddlPath = { From 50fc7fed37556c3ef0df570bb194bdb43db46a78 Mon Sep 17 00:00:00 2001 From: Shengquan Ni <13672781+shengquan-ni@users.noreply.github.com> Date: Tue, 11 Feb 2025 23:04:36 -0800 Subject: [PATCH 06/20] update --- .../dashboard/FulltextSearchQueryUtils.scala | 9 +- .../dashboard/UnifiedResourceSchema.scala | 26 +-- .../execution/AdminExecutionResource.scala | 5 +- .../user/dataset/DatasetAccessResource.scala | 2 +- .../utils/DatasetStatisticsUtils.scala | 3 +- .../user/quota/UserQuotaResource.scala | 5 +- .../workflow/WorkflowExecutionsResource.scala | 2 +- .../user/workflow/WorkflowResource.scala | 8 +- .../workflow/WorkflowVersionResource.scala | 8 +- .../ExecutionsMetadataPersistService.scala | 2 +- .../web/storage/ExecutionStateStore.scala | 2 +- .../dashboard/file/WorkflowResourceSpec.scala | 8 +- core/dao/build.sbt | 8 +- .../dao/jooq/generated/DefaultCatalog.java | 25 +-- .../texera/dao/jooq/generated/Indexes.java | 92 --------- .../ics/texera/dao/jooq/generated/Keys.java | 185 +++++------------- .../texera/dao/jooq/generated/Sequences.java | 56 ------ .../ics/texera/dao/jooq/generated/Tables.java | 2 +- .../texera/dao/jooq/generated/TexeraDb.java | 74 +++---- .../jooq/generated/enums/PrivilegeEnum.java | 9 +- .../jooq/generated/enums/UserRoleEnum.java | 9 +- .../dao/jooq/generated/tables/Dataset.java | 70 ++++--- .../generated/tables/DatasetUserAccess.java | 73 +++---- .../jooq/generated/tables/DatasetVersion.java | 70 ++++--- .../generated/tables/OperatorExecutions.java | 72 ++++--- .../tables/OperatorRuntimeStatistics.java | 96 +++++---- .../dao/jooq/generated/tables/Project.java | 69 +++---- .../generated/tables/ProjectUserAccess.java | 73 +++---- .../jooq/generated/tables/PublicProject.java | 56 +++--- .../dao/jooq/generated/tables/User.java | 64 +++--- .../jooq/generated/tables/UserActivity.java | 44 +++-- .../dao/jooq/generated/tables/UserConfig.java | 58 +++--- .../dao/jooq/generated/tables/Workflow.java | 62 +++--- .../generated/tables/WorkflowExecutions.java | 99 +++++----- .../generated/tables/WorkflowOfProject.java | 71 ++++--- .../jooq/generated/tables/WorkflowOfUser.java | 65 +++--- .../generated/tables/WorkflowUserAccess.java | 73 +++---- .../generated/tables/WorkflowUserClones.java | 71 ++++--- .../generated/tables/WorkflowUserLikes.java | 71 ++++--- .../generated/tables/WorkflowVersion.java | 66 +++---- .../generated/tables/WorkflowViewCount.java | 62 +++--- .../generated/tables/daos/DatasetDao.java | 32 ++- .../tables/daos/DatasetUserAccessDao.java | 9 +- .../tables/daos/DatasetVersionDao.java | 32 ++- .../tables/daos/OperatorExecutionsDao.java | 17 +- .../daos/OperatorRuntimeStatisticsDao.java | 37 ++-- .../generated/tables/daos/ProjectDao.java | 32 ++- .../tables/daos/ProjectUserAccessDao.java | 9 +- .../tables/daos/PublicProjectDao.java | 14 +- .../generated/tables/daos/UserConfigDao.java | 9 +- .../jooq/generated/tables/daos/UserDao.java | 43 +++- .../generated/tables/daos/WorkflowDao.java | 39 ++-- .../tables/daos/WorkflowExecutionsDao.java | 51 +++-- .../tables/daos/WorkflowOfProjectDao.java | 6 +- .../tables/daos/WorkflowOfUserDao.java | 6 +- .../tables/daos/WorkflowUserAccessDao.java | 9 +- .../tables/daos/WorkflowUserClonesDao.java | 6 +- .../tables/daos/WorkflowUserLikesDao.java | 6 +- .../tables/daos/WorkflowVersionDao.java | 26 ++- .../tables/daos/WorkflowViewCountDao.java | 14 +- .../generated/tables/interfaces/IDataset.java | 16 +- .../tables/interfaces/IDatasetUserAccess.java | 10 +- .../tables/interfaces/IDatasetVersion.java | 16 +- .../interfaces/IOperatorExecutions.java | 22 ++- .../IOperatorRuntimeStatistics.java | 52 +++-- .../generated/tables/interfaces/IProject.java | 16 +- .../tables/interfaces/IProjectUserAccess.java | 10 +- .../tables/interfaces/IPublicProject.java | 10 +- .../generated/tables/interfaces/IUser.java | 10 +- .../tables/interfaces/IUserActivity.java | 16 +- .../tables/interfaces/IUserConfig.java | 10 +- .../tables/interfaces/IWorkflow.java | 20 +- .../interfaces/IWorkflowExecutions.java | 26 +-- .../tables/interfaces/IWorkflowOfProject.java | 10 +- .../tables/interfaces/IWorkflowOfUser.java | 10 +- .../interfaces/IWorkflowUserAccess.java | 10 +- .../interfaces/IWorkflowUserClones.java | 10 +- .../tables/interfaces/IWorkflowUserLikes.java | 10 +- .../tables/interfaces/IWorkflowVersion.java | 16 +- .../tables/interfaces/IWorkflowViewCount.java | 10 +- .../jooq/generated/tables/pojos/Dataset.java | 68 +++++-- .../tables/pojos/DatasetUserAccess.java | 20 +- .../tables/pojos/DatasetVersion.java | 68 +++++-- .../tables/pojos/OperatorExecutions.java | 24 ++- .../pojos/OperatorRuntimeStatistics.java | 110 ++++++++--- .../jooq/generated/tables/pojos/Project.java | 68 +++++-- .../tables/pojos/ProjectUserAccess.java | 20 +- .../generated/tables/pojos/PublicProject.java | 14 +- .../dao/jooq/generated/tables/pojos/User.java | 44 ++++- .../generated/tables/pojos/UserActivity.java | 68 +++++-- .../generated/tables/pojos/UserConfig.java | 20 +- .../jooq/generated/tables/pojos/Workflow.java | 82 ++++++-- .../tables/pojos/WorkflowExecutions.java | 124 +++++++++--- .../tables/pojos/WorkflowOfProject.java | 14 +- .../tables/pojos/WorkflowOfUser.java | 14 +- .../tables/pojos/WorkflowUserAccess.java | 20 +- .../tables/pojos/WorkflowUserClones.java | 14 +- .../tables/pojos/WorkflowUserLikes.java | 14 +- .../tables/pojos/WorkflowVersion.java | 48 +++-- .../tables/pojos/WorkflowViewCount.java | 14 +- .../tables/records/DatasetRecord.java | 56 ++++-- .../records/DatasetUserAccessRecord.java | 21 +- .../tables/records/DatasetVersionRecord.java | 56 ++++-- .../records/OperatorExecutionsRecord.java | 33 +++- .../OperatorRuntimeStatisticsRecord.java | 103 ++++++---- .../tables/records/ProjectRecord.java | 56 ++++-- .../records/ProjectUserAccessRecord.java | 21 +- .../tables/records/PublicProjectRecord.java | 18 +- .../tables/records/UserActivityRecord.java | 56 ++++-- .../tables/records/UserConfigRecord.java | 21 +- .../generated/tables/records/UserRecord.java | 33 +++- .../records/WorkflowExecutionsRecord.java | 91 +++++---- .../records/WorkflowOfProjectRecord.java | 18 +- .../tables/records/WorkflowOfUserRecord.java | 18 +- .../tables/records/WorkflowRecord.java | 73 ++++--- .../records/WorkflowUserAccessRecord.java | 21 +- .../records/WorkflowUserClonesRecord.java | 18 +- .../records/WorkflowUserLikesRecord.java | 18 +- .../tables/records/WorkflowVersionRecord.java | 50 +++-- .../records/WorkflowViewCountRecord.java | 18 +- .../edu/uci/ics/texera/dao/MockTexeraDB.scala | 77 +++----- core/scripts/sql/texera_ddl.sql | 15 +- 122 files changed, 2647 insertions(+), 1744 deletions(-) delete mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Indexes.java delete mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Sequences.java diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/FulltextSearchQueryUtils.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/FulltextSearchQueryUtils.scala index 0538840d65d..9dcbf65dbfa 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/FulltextSearchQueryUtils.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/FulltextSearchQueryUtils.scala @@ -5,6 +5,7 @@ import org.jooq.{Condition, Field} import java.sql.Timestamp import java.text.{ParseException, SimpleDateFormat} +import java.time.LocalDateTime import java.util.concurrent.TimeUnit import scala.jdk.CollectionConverters.CollectionHasAsScala @@ -115,21 +116,21 @@ object FulltextSearchQueryUtils { def getDateFilter( startDate: String, endDate: String, - fieldToFilterOn: Field[Timestamp] + fieldToFilterOn: Field[LocalDateTime] ): Condition = { if (startDate.nonEmpty || endDate.nonEmpty) { val start = if (startDate.nonEmpty) startDate else "1970-01-01" val end = if (endDate.nonEmpty) endDate else "9999-12-31" val dateFormat = new SimpleDateFormat("yyyy-MM-dd") - val startTimestamp = new Timestamp(dateFormat.parse(start).getTime) + val startTimestamp = new Timestamp(dateFormat.parse(start).getTime).toLocalDateTime val endTimestamp = if (end == "9999-12-31") { - new Timestamp(dateFormat.parse(end).getTime) + new Timestamp(dateFormat.parse(end).getTime).toLocalDateTime } else { new Timestamp( dateFormat.parse(end).getTime + TimeUnit.DAYS.toMillis(1) - 1 - ) + ).toLocalDateTime } fieldToFilterOn.between(startTimestamp, endTimestamp) } else { diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/UnifiedResourceSchema.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/UnifiedResourceSchema.scala index 2bcc52f5d17..831a1dbfba2 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/UnifiedResourceSchema.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/UnifiedResourceSchema.scala @@ -7,7 +7,7 @@ import edu.uci.ics.texera.web.resource.dashboard.UnifiedResourceSchema.context import org.jooq.impl.DSL import org.jooq.{Field, Record} -import java.sql.Timestamp +import java.time.LocalDateTime import scala.collection.mutable object UnifiedResourceSchema { @@ -36,22 +36,22 @@ object UnifiedResourceSchema { resourceType: Field[String] = DSL.inline(""), name: Field[String] = DSL.inline(""), description: Field[String] = DSL.inline(""), - creationTime: Field[Timestamp] = DSL.inline(null, classOf[Timestamp]), - lastModifiedTime: Field[Timestamp] = DSL.inline(null, classOf[Timestamp]), - ownerId: Field[Integer] = DSL.inline(null, classOf[Integer]), - wid: Field[Integer] = DSL.inline(null, classOf[Integer]), - workflowUserAccess: Field[PrivilegeEnum] = DSL.inline(null, classOf[PrivilegeEnum]), + creationTime: Field[LocalDateTime] = DSL.cast(null, classOf[LocalDateTime]), + lastModifiedTime: Field[LocalDateTime] = DSL.cast(null, classOf[LocalDateTime]), + ownerId: Field[Integer] = DSL.cast(null, classOf[Integer]), + wid: Field[Integer] = DSL.cast(null, classOf[Integer]), + workflowUserAccess: Field[PrivilegeEnum] = DSL.castNull(classOf[PrivilegeEnum]), projectsOfWorkflow: Field[String] = DSL.inline(""), - uid: Field[Integer] = DSL.inline(null, classOf[Integer]), + uid: Field[Integer] = DSL.cast(null, classOf[Integer]), userName: Field[String] = DSL.inline(""), userEmail: Field[String] = DSL.inline(""), - pid: Field[Integer] = DSL.inline(null, classOf[Integer]), - projectOwnerId: Field[Integer] = DSL.inline(null, classOf[Integer]), + pid: Field[Integer] = DSL.cast(null, classOf[Integer]), + projectOwnerId: Field[Integer] = DSL.cast(null, classOf[Integer]), projectColor: Field[String] = DSL.inline(""), - did: Field[Integer] = DSL.inline(null, classOf[Integer]), - datasetStoragePath: Field[String] = DSL.inline(null, classOf[String]), - isDatasetPublic: Field[java.lang.Boolean] = DSL.inline(null, classOf[java.lang.Boolean]), - datasetUserAccess: Field[PrivilegeEnum] = DSL.inline(null, classOf[PrivilegeEnum]) + did: Field[Integer] = DSL.cast(null, classOf[Integer]), + datasetStoragePath: Field[String] = DSL.cast(null, classOf[String]), + isDatasetPublic: Field[java.lang.Boolean] = DSL.cast(null, classOf[java.lang.Boolean]), + datasetUserAccess: Field[PrivilegeEnum] = DSL.castNull(classOf[PrivilegeEnum]) ): UnifiedResourceSchema = { new UnifiedResourceSchema( Seq( diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/execution/AdminExecutionResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/execution/AdminExecutionResource.scala index 8f30fe0de38..303e8c29ccb 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/execution/AdminExecutionResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/execution/AdminExecutionResource.scala @@ -8,6 +8,7 @@ import edu.uci.ics.texera.web.resource.dashboard.admin.execution.AdminExecutionR import io.dropwizard.auth.Auth import org.jooq.impl.DSL +import java.sql.Timestamp import javax.annotation.security.RolesAllowed import javax.ws.rs._ import javax.ws.rs.core.MediaType @@ -174,13 +175,13 @@ class AdminExecutionResource { executions .map(workflowRecord => { val startingTime = - workflowRecord.get(WORKFLOW_EXECUTIONS.STARTING_TIME).getTime + Timestamp.valueOf(workflowRecord.get(WORKFLOW_EXECUTIONS.STARTING_TIME)).getTime var lastUpdateTime: Long = 0 if (workflowRecord.get(WORKFLOW_EXECUTIONS.LAST_UPDATE_TIME) == null) { lastUpdateTime = 0 } else { - lastUpdateTime = workflowRecord.get(WORKFLOW_EXECUTIONS.LAST_UPDATE_TIME).getTime + lastUpdateTime = Timestamp.valueOf(workflowRecord.get(WORKFLOW_EXECUTIONS.LAST_UPDATE_TIME)).getTime } val timeDifferenceSeconds = (lastUpdateTime - startingTime) / 1000.0 diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetAccessResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetAccessResource.scala index 83af864b0d9..cde745e1e44 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetAccessResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetAccessResource.scala @@ -29,7 +29,7 @@ object DatasetAccessResource { val datasetDao = new DatasetDao(ctx.configuration()) Option(datasetDao.fetchOneByDid(did)) .flatMap(dataset => Option(dataset.getIsPublic)) - .contains(1.toByte) + .contains(true) } def userHasReadAccess(ctx: DSLContext, did: Integer, uid: Integer): Boolean = { diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/utils/DatasetStatisticsUtils.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/utils/DatasetStatisticsUtils.scala index 2b79989bcc3..b2de01ce3b6 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/utils/DatasetStatisticsUtils.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/utils/DatasetStatisticsUtils.scala @@ -6,6 +6,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.Dataset.DATASET import edu.uci.ics.texera.web.resource.dashboard.user.dataset.DatasetResource import edu.uci.ics.texera.web.resource.dashboard.user.quota.UserQuotaResource.DatasetQuota +import java.sql.Timestamp import scala.jdk.CollectionConverters._ object DatasetStatisticsUtils { @@ -41,7 +42,7 @@ object DatasetStatisticsUtils { DatasetQuota( did = record.getValue(DATASET.DID), name = record.getValue(DATASET.NAME), - creationTime = record.getValue(DATASET.CREATION_TIME).getTime(), + creationTime = Timestamp.valueOf(record.getValue(DATASET.CREATION_TIME)).getTime, size = 0 ) ) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/quota/UserQuotaResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/quota/UserQuotaResource.scala index 475e058e781..7ab34e16843 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/quota/UserQuotaResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/quota/UserQuotaResource.scala @@ -11,6 +11,7 @@ import edu.uci.ics.texera.web.resource.dashboard.user.quota.UserQuotaResource._ import io.dropwizard.auth.Auth import org.bson.Document +import java.sql.Timestamp import java.util import javax.ws.rs._ import javax.ws.rs.core.MediaType @@ -111,8 +112,8 @@ object UserQuotaResource { workflowRecord.get(WORKFLOW_OF_USER.UID), workflowRecord.get(WORKFLOW_OF_USER.WID), workflowRecord.get(WORKFLOW.NAME), - workflowRecord.get(WORKFLOW.CREATION_TIME).getTime, - workflowRecord.get(WORKFLOW.LAST_MODIFIED_TIME).getTime + Timestamp.valueOf(workflowRecord.get(WORKFLOW.CREATION_TIME)).getTime, + Timestamp.valueOf(workflowRecord.get(WORKFLOW.LAST_MODIFIED_TIME)).getTime ) }) .asScala diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala index 16d9d835cc0..5e3f329b535 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala @@ -56,7 +56,7 @@ object WorkflowExecutionsResource { def getExpiredExecutionsWithResultOrLog(timeToLive: Int): List[WorkflowExecutions] = { val deadline = new Timestamp( System.currentTimeMillis() - TimeUnit.SECONDS.toMillis(timeToLive) - ) + ).toLocalDateTime context .selectFrom(WORKFLOW_EXECUTIONS) .where( diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala index 8954aff9cc6..849de68797e 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala @@ -342,8 +342,8 @@ class WorkflowResource extends LazyLogging { workflow.getDescription, workflow.getWid, workflow.getContent, - workflow.getCreationTime, - workflow.getLastModifiedTime, + Timestamp.valueOf(workflow.getCreationTime), + Timestamp.valueOf(workflow.getLastModifiedTime), workflow.getIsPublic, !WorkflowAccessResource.hasWriteAccess(wid, user.getUid) ) @@ -646,8 +646,8 @@ class WorkflowResource extends LazyLogging { workflow.getDescription, workflow.getWid, workflow.getContent, - workflow.getCreationTime, - workflow.getLastModifiedTime, + Timestamp.valueOf(workflow.getCreationTime), + Timestamp.valueOf(workflow.getLastModifiedTime), workflow.getIsPublic, readonly = true ) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowVersionResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowVersionResource.scala index d9b4faea7fb..e27b5fcb0af 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowVersionResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowVersionResource.scala @@ -183,7 +183,7 @@ object WorkflowVersionResource { var lastVersionTime = lastVersion.getCreationTime impEncodedVersions = impEncodedVersions :+ VersionEntry( lastVersion.getVid, - lastVersion.getCreationTime, + Timestamp.valueOf(lastVersion.getCreationTime), lastVersion.getContent, true ) // the first (latest) @@ -192,8 +192,8 @@ object WorkflowVersionResource { for (version <- currentVersions.tail) { if ( isWithinTimeLimit( - lastVersionTime, - version.getCreationTime + Timestamp.valueOf(lastVersionTime), + Timestamp.valueOf(version.getCreationTime) ) ) { versionImportance = false @@ -205,7 +205,7 @@ object WorkflowVersionResource { } impEncodedVersions = impEncodedVersions :+ VersionEntry( version.getVid, - version.getCreationTime, + Timestamp.valueOf(version.getCreationTime), version.getContent, versionImportance ) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionsMetadataPersistService.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionsMetadataPersistService.scala index f8ec0127820..cff0576daaf 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionsMetadataPersistService.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionsMetadataPersistService.scala @@ -47,7 +47,7 @@ object ExecutionsMetadataPersistService extends LazyLogging { } newExecution.setVid(vid) newExecution.setUid(uid.orNull) - newExecution.setStartingTime(new Timestamp(System.currentTimeMillis())) + newExecution.setStartingTime(new Timestamp(System.currentTimeMillis()).toLocalDateTime) newExecution.setEnvironmentVersion(environmentVersion) workflowExecutionsDao.insert(newExecution) ExecutionIdentity(newExecution.getEid.longValue()) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/storage/ExecutionStateStore.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/storage/ExecutionStateStore.scala index 707235c3768..5f193215089 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/storage/ExecutionStateStore.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/storage/ExecutionStateStore.scala @@ -23,7 +23,7 @@ object ExecutionStateStore { ExecutionsMetadataPersistService.tryUpdateExistingExecution(metadataStore.executionId) { execution => execution.setStatus(maptoStatusCode(state)) - execution.setLastUpdateTime(new Timestamp(System.currentTimeMillis())) + execution.setLastUpdateTime(new Timestamp(System.currentTimeMillis()).toLocalDateTime) } metadataStore.withState(state) } diff --git a/core/amber/src/test/scala/edu/uci/ics/texera/web/resource/dashboard/file/WorkflowResourceSpec.scala b/core/amber/src/test/scala/edu/uci/ics/texera/web/resource/dashboard/file/WorkflowResourceSpec.scala index a02f462211e..fbe65f99e15 100644 --- a/core/amber/src/test/scala/edu/uci/ics/texera/web/resource/dashboard/file/WorkflowResourceSpec.scala +++ b/core/amber/src/test/scala/edu/uci/ics/texera/web/resource/dashboard/file/WorkflowResourceSpec.scala @@ -413,11 +413,11 @@ class WorkflowResourceSpec WORKFLOW.CREATION_TIME ) val dateFormat = new SimpleDateFormat("yyyy-MM-dd") - val startTimestamp = new Timestamp(dateFormat.parse("2023-01-01").getTime) + val startTimestamp = new Timestamp(dateFormat.parse("2023-01-01").getTime).toLocalDateTime val endTimestamp = new Timestamp( dateFormat.parse("2023-12-31").getTime + TimeUnit.DAYS.toMillis(1) - 1 - ) + ).toLocalDateTime assert( dateFilter.toString == WORKFLOW.CREATION_TIME.between(startTimestamp, endTimestamp).toString ) @@ -431,11 +431,11 @@ class WorkflowResourceSpec WORKFLOW.LAST_MODIFIED_TIME ) val dateFormat = new SimpleDateFormat("yyyy-MM-dd") - val startTimestamp = new Timestamp(dateFormat.parse("2023-01-01").getTime) + val startTimestamp = new Timestamp(dateFormat.parse("2023-01-01").getTime).toLocalDateTime val endTimestamp = new Timestamp( dateFormat.parse("2023-12-31").getTime + TimeUnit.DAYS.toMillis(1) - 1 - ) + ).toLocalDateTime assert( dateFilter.toString == WORKFLOW.LAST_MODIFIED_TIME .between(startTimestamp, endTimestamp) diff --git a/core/dao/build.sbt b/core/dao/build.sbt index c67a2693db3..7fbfbb3849d 100644 --- a/core/dao/build.sbt +++ b/core/dao/build.sbt @@ -70,7 +70,7 @@ libraryDependencies ++= Seq( "org.scalatest" %% "scalatest" % "3.2.15" % Test, // ScalaTest "junit" % "junit" % "4.13.2" % Test, // JUnit "com.novocode" % "junit-interface" % "0.11" % Test, // SBT interface for JUnit - "com.opentable.components" % "otj-pg-embedded" % "1.0.3" % Test // For mock postgres DB + "io.zonky.test" % "embedded-postgres" % "2.1.0" % Test // For mock postgres DB ) ///////////////////////////////////////////////////////////////////////////// @@ -78,8 +78,8 @@ libraryDependencies ++= Seq( ///////////////////////////////////////////////////////////////////////////// libraryDependencies ++= Seq( - "org.jooq" % "jooq" % "3.14.16", - "org.jooq" % "jooq-codegen" % "3.12.4" + "org.jooq" % "jooq" % "3.16.6", + "org.jooq" % "jooq-codegen" % "3.16.10" ) ///////////////////////////////////////////////////////////////////////////// @@ -88,6 +88,6 @@ libraryDependencies ++= Seq( libraryDependencies ++= Seq( "mysql" % "mysql-connector-java" % "8.0.33", // MySQL connector - "org.postgresql" % "postgresql" % "42.7.5", + "org.postgresql" % "postgresql" % "42.7.4", "org.yaml" % "snakeyaml" % "1.30", // for reading storage config yaml file ) \ No newline at end of file diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/DefaultCatalog.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/DefaultCatalog.java index 276732fc44f..e62a434d605 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/DefaultCatalog.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/DefaultCatalog.java @@ -4,10 +4,10 @@ package edu.uci.ics.texera.dao.jooq.generated; -import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import org.jooq.Constants; import org.jooq.Schema; import org.jooq.impl.CatalogImpl; @@ -18,17 +18,17 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class DefaultCatalog extends CatalogImpl { - private static final long serialVersionUID = 1757128142; + private static final long serialVersionUID = 1L; /** - * The reference instance of + * The reference instance of DEFAULT_CATALOG */ public static final DefaultCatalog DEFAULT_CATALOG = new DefaultCatalog(); /** * The schema texera_db. */ - public final TexeraDb TEXERA_DB = edu.uci.ics.texera.dao.jooq.generated.TexeraDb.TEXERA_DB; + public final TexeraDb TEXERA_DB = TexeraDb.TEXERA_DB; /** * No further instances allowed @@ -39,13 +39,16 @@ private DefaultCatalog() { @Override public final List getSchemas() { - List result = new ArrayList(); - result.addAll(getSchemas0()); - return result; + return Arrays.asList( + TexeraDb.TEXERA_DB + ); } - private final List getSchemas0() { - return Arrays.asList( - TexeraDb.TEXERA_DB); - } + /** + * A reference to the 3.16 minor release of the code generator. If this + * doesn't compile, it's because the runtime library uses an older minor + * release, namely: 3.16. You can turn off the generation of this reference + * by specifying /configuration/generator/generate/jooqVersionReference + */ + private static final String REQUIRE_RUNTIME_JOOQ_VERSION = Constants.VERSION_3_16; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Indexes.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Indexes.java deleted file mode 100644 index dd618bad5eb..00000000000 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Indexes.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package edu.uci.ics.texera.dao.jooq.generated; - - -import edu.uci.ics.texera.dao.jooq.generated.tables.Dataset; -import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetUserAccess; -import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetVersion; -import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorExecutions; -import edu.uci.ics.texera.dao.jooq.generated.tables.Project; -import edu.uci.ics.texera.dao.jooq.generated.tables.ProjectUserAccess; -import edu.uci.ics.texera.dao.jooq.generated.tables.PublicProject; -import edu.uci.ics.texera.dao.jooq.generated.tables.User; -import edu.uci.ics.texera.dao.jooq.generated.tables.UserConfig; -import edu.uci.ics.texera.dao.jooq.generated.tables.Workflow; -import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowExecutions; -import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowOfProject; -import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowOfUser; -import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowUserAccess; -import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowUserClones; -import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowUserLikes; -import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowVersion; -import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowViewCount; - -import org.jooq.Index; -import org.jooq.OrderField; -import org.jooq.impl.Internal; - - -/** - * A class modelling indexes of tables of the texera_db schema. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class Indexes { - - // ------------------------------------------------------------------------- - // INDEX definitions - // ------------------------------------------------------------------------- - - public static final Index DATASET_PKEY = Indexes0.DATASET_PKEY; - public static final Index DATASET_USER_ACCESS_PKEY = Indexes0.DATASET_USER_ACCESS_PKEY; - public static final Index DATASET_VERSION_PKEY = Indexes0.DATASET_VERSION_PKEY; - public static final Index OPERATOR_EXECUTIONS_PKEY = Indexes0.OPERATOR_EXECUTIONS_PKEY; - public static final Index OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID_KEY = Indexes0.OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID_KEY; - public static final Index PROJECT_OWNER_ID_NAME_KEY = Indexes0.PROJECT_OWNER_ID_NAME_KEY; - public static final Index PROJECT_PKEY = Indexes0.PROJECT_PKEY; - public static final Index PROJECT_USER_ACCESS_PKEY = Indexes0.PROJECT_USER_ACCESS_PKEY; - public static final Index PUBLIC_PROJECT_PKEY = Indexes0.PUBLIC_PROJECT_PKEY; - public static final Index USER_EMAIL_KEY = Indexes0.USER_EMAIL_KEY; - public static final Index USER_GOOGLE_ID_KEY = Indexes0.USER_GOOGLE_ID_KEY; - public static final Index USER_PKEY = Indexes0.USER_PKEY; - public static final Index USER_CONFIG_PKEY = Indexes0.USER_CONFIG_PKEY; - public static final Index WORKFLOW_PKEY = Indexes0.WORKFLOW_PKEY; - public static final Index WORKFLOW_EXECUTIONS_PKEY = Indexes0.WORKFLOW_EXECUTIONS_PKEY; - public static final Index WORKFLOW_OF_PROJECT_PKEY = Indexes0.WORKFLOW_OF_PROJECT_PKEY; - public static final Index WORKFLOW_OF_USER_PKEY = Indexes0.WORKFLOW_OF_USER_PKEY; - public static final Index WORKFLOW_USER_ACCESS_PKEY = Indexes0.WORKFLOW_USER_ACCESS_PKEY; - public static final Index WORKFLOW_USER_CLONES_PKEY = Indexes0.WORKFLOW_USER_CLONES_PKEY; - public static final Index WORKFLOW_USER_LIKES_PKEY = Indexes0.WORKFLOW_USER_LIKES_PKEY; - public static final Index WORKFLOW_VERSION_PKEY = Indexes0.WORKFLOW_VERSION_PKEY; - public static final Index WORKFLOW_VIEW_COUNT_PKEY = Indexes0.WORKFLOW_VIEW_COUNT_PKEY; - - // ------------------------------------------------------------------------- - // [#1459] distribute members to avoid static initialisers > 64kb - // ------------------------------------------------------------------------- - - private static class Indexes0 { - public static Index DATASET_PKEY = Internal.createIndex("dataset_pkey", Dataset.DATASET, new OrderField[] { Dataset.DATASET.DID }, true); - public static Index DATASET_USER_ACCESS_PKEY = Internal.createIndex("dataset_user_access_pkey", DatasetUserAccess.DATASET_USER_ACCESS, new OrderField[] { DatasetUserAccess.DATASET_USER_ACCESS.DID, DatasetUserAccess.DATASET_USER_ACCESS.UID }, true); - public static Index DATASET_VERSION_PKEY = Internal.createIndex("dataset_version_pkey", DatasetVersion.DATASET_VERSION, new OrderField[] { DatasetVersion.DATASET_VERSION.DVID }, true); - public static Index OPERATOR_EXECUTIONS_PKEY = Internal.createIndex("operator_executions_pkey", OperatorExecutions.OPERATOR_EXECUTIONS, new OrderField[] { OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID }, true); - public static Index OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID_KEY = Internal.createIndex("operator_executions_workflow_execution_id_operator_id_key", OperatorExecutions.OPERATOR_EXECUTIONS, new OrderField[] { OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID, OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_ID }, true); - public static Index PROJECT_OWNER_ID_NAME_KEY = Internal.createIndex("project_owner_id_name_key", Project.PROJECT, new OrderField[] { Project.PROJECT.OWNER_ID, Project.PROJECT.NAME }, true); - public static Index PROJECT_PKEY = Internal.createIndex("project_pkey", Project.PROJECT, new OrderField[] { Project.PROJECT.PID }, true); - public static Index PROJECT_USER_ACCESS_PKEY = Internal.createIndex("project_user_access_pkey", ProjectUserAccess.PROJECT_USER_ACCESS, new OrderField[] { ProjectUserAccess.PROJECT_USER_ACCESS.UID, ProjectUserAccess.PROJECT_USER_ACCESS.PID }, true); - public static Index PUBLIC_PROJECT_PKEY = Internal.createIndex("public_project_pkey", PublicProject.PUBLIC_PROJECT, new OrderField[] { PublicProject.PUBLIC_PROJECT.PID }, true); - public static Index USER_EMAIL_KEY = Internal.createIndex("user_email_key", User.USER, new OrderField[] { User.USER.EMAIL }, true); - public static Index USER_GOOGLE_ID_KEY = Internal.createIndex("user_google_id_key", User.USER, new OrderField[] { User.USER.GOOGLE_ID }, true); - public static Index USER_PKEY = Internal.createIndex("user_pkey", User.USER, new OrderField[] { User.USER.UID }, true); - public static Index USER_CONFIG_PKEY = Internal.createIndex("user_config_pkey", UserConfig.USER_CONFIG, new OrderField[] { UserConfig.USER_CONFIG.UID, UserConfig.USER_CONFIG.KEY }, true); - public static Index WORKFLOW_PKEY = Internal.createIndex("workflow_pkey", Workflow.WORKFLOW, new OrderField[] { Workflow.WORKFLOW.WID }, true); - public static Index WORKFLOW_EXECUTIONS_PKEY = Internal.createIndex("workflow_executions_pkey", WorkflowExecutions.WORKFLOW_EXECUTIONS, new OrderField[] { WorkflowExecutions.WORKFLOW_EXECUTIONS.EID }, true); - public static Index WORKFLOW_OF_PROJECT_PKEY = Internal.createIndex("workflow_of_project_pkey", WorkflowOfProject.WORKFLOW_OF_PROJECT, new OrderField[] { WorkflowOfProject.WORKFLOW_OF_PROJECT.WID, WorkflowOfProject.WORKFLOW_OF_PROJECT.PID }, true); - public static Index WORKFLOW_OF_USER_PKEY = Internal.createIndex("workflow_of_user_pkey", WorkflowOfUser.WORKFLOW_OF_USER, new OrderField[] { WorkflowOfUser.WORKFLOW_OF_USER.UID, WorkflowOfUser.WORKFLOW_OF_USER.WID }, true); - public static Index WORKFLOW_USER_ACCESS_PKEY = Internal.createIndex("workflow_user_access_pkey", WorkflowUserAccess.WORKFLOW_USER_ACCESS, new OrderField[] { WorkflowUserAccess.WORKFLOW_USER_ACCESS.UID, WorkflowUserAccess.WORKFLOW_USER_ACCESS.WID }, true); - public static Index WORKFLOW_USER_CLONES_PKEY = Internal.createIndex("workflow_user_clones_pkey", WorkflowUserClones.WORKFLOW_USER_CLONES, new OrderField[] { WorkflowUserClones.WORKFLOW_USER_CLONES.UID, WorkflowUserClones.WORKFLOW_USER_CLONES.WID }, true); - public static Index WORKFLOW_USER_LIKES_PKEY = Internal.createIndex("workflow_user_likes_pkey", WorkflowUserLikes.WORKFLOW_USER_LIKES, new OrderField[] { WorkflowUserLikes.WORKFLOW_USER_LIKES.UID, WorkflowUserLikes.WORKFLOW_USER_LIKES.WID }, true); - public static Index WORKFLOW_VERSION_PKEY = Internal.createIndex("workflow_version_pkey", WorkflowVersion.WORKFLOW_VERSION, new OrderField[] { WorkflowVersion.WORKFLOW_VERSION.VID }, true); - public static Index WORKFLOW_VIEW_COUNT_PKEY = Internal.createIndex("workflow_view_count_pkey", WorkflowViewCount.WORKFLOW_VIEW_COUNT, new OrderField[] { WorkflowViewCount.WORKFLOW_VIEW_COUNT.WID }, true); - } -} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java index 9a5128800fe..e61caddd570 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java @@ -44,155 +44,74 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowViewCountRecord; import org.jooq.ForeignKey; -import org.jooq.Identity; +import org.jooq.TableField; import org.jooq.UniqueKey; +import org.jooq.impl.DSL; import org.jooq.impl.Internal; /** - * A class modelling foreign key relationships and constraints of tables of - * the texera_db schema. + * A class modelling foreign key relationships and constraints of tables in + * texera_db. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Keys { - // ------------------------------------------------------------------------- - // IDENTITY definitions - // ------------------------------------------------------------------------- - - public static final Identity IDENTITY_DATASET = Identities0.IDENTITY_DATASET; - public static final Identity IDENTITY_DATASET_VERSION = Identities0.IDENTITY_DATASET_VERSION; - public static final Identity IDENTITY_OPERATOR_EXECUTIONS = Identities0.IDENTITY_OPERATOR_EXECUTIONS; - public static final Identity IDENTITY_PROJECT = Identities0.IDENTITY_PROJECT; - public static final Identity IDENTITY_USER = Identities0.IDENTITY_USER; - public static final Identity IDENTITY_WORKFLOW = Identities0.IDENTITY_WORKFLOW; - public static final Identity IDENTITY_WORKFLOW_EXECUTIONS = Identities0.IDENTITY_WORKFLOW_EXECUTIONS; - public static final Identity IDENTITY_WORKFLOW_VERSION = Identities0.IDENTITY_WORKFLOW_VERSION; - // ------------------------------------------------------------------------- // UNIQUE and PRIMARY KEY definitions // ------------------------------------------------------------------------- - public static final UniqueKey DATASET_PKEY = UniqueKeys0.DATASET_PKEY; - public static final UniqueKey DATASET_USER_ACCESS_PKEY = UniqueKeys0.DATASET_USER_ACCESS_PKEY; - public static final UniqueKey DATASET_VERSION_PKEY = UniqueKeys0.DATASET_VERSION_PKEY; - public static final UniqueKey OPERATOR_EXECUTIONS_PKEY = UniqueKeys0.OPERATOR_EXECUTIONS_PKEY; - public static final UniqueKey OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID_KEY = UniqueKeys0.OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID_KEY; - public static final UniqueKey OPERATOR_RUNTIME_STATISTICS_PKEY = UniqueKeys0.OPERATOR_RUNTIME_STATISTICS_PKEY; - public static final UniqueKey PROJECT_PKEY = UniqueKeys0.PROJECT_PKEY; - public static final UniqueKey PROJECT_OWNER_ID_NAME_KEY = UniqueKeys0.PROJECT_OWNER_ID_NAME_KEY; - public static final UniqueKey PROJECT_USER_ACCESS_PKEY = UniqueKeys0.PROJECT_USER_ACCESS_PKEY; - public static final UniqueKey PUBLIC_PROJECT_PKEY = UniqueKeys0.PUBLIC_PROJECT_PKEY; - public static final UniqueKey USER_PKEY = UniqueKeys0.USER_PKEY; - public static final UniqueKey USER_EMAIL_KEY = UniqueKeys0.USER_EMAIL_KEY; - public static final UniqueKey USER_GOOGLE_ID_KEY = UniqueKeys0.USER_GOOGLE_ID_KEY; - public static final UniqueKey USER_CONFIG_PKEY = UniqueKeys0.USER_CONFIG_PKEY; - public static final UniqueKey WORKFLOW_PKEY = UniqueKeys0.WORKFLOW_PKEY; - public static final UniqueKey WORKFLOW_EXECUTIONS_PKEY = UniqueKeys0.WORKFLOW_EXECUTIONS_PKEY; - public static final UniqueKey WORKFLOW_OF_PROJECT_PKEY = UniqueKeys0.WORKFLOW_OF_PROJECT_PKEY; - public static final UniqueKey WORKFLOW_OF_USER_PKEY = UniqueKeys0.WORKFLOW_OF_USER_PKEY; - public static final UniqueKey WORKFLOW_USER_ACCESS_PKEY = UniqueKeys0.WORKFLOW_USER_ACCESS_PKEY; - public static final UniqueKey WORKFLOW_USER_CLONES_PKEY = UniqueKeys0.WORKFLOW_USER_CLONES_PKEY; - public static final UniqueKey WORKFLOW_USER_LIKES_PKEY = UniqueKeys0.WORKFLOW_USER_LIKES_PKEY; - public static final UniqueKey WORKFLOW_VERSION_PKEY = UniqueKeys0.WORKFLOW_VERSION_PKEY; - public static final UniqueKey WORKFLOW_VIEW_COUNT_PKEY = UniqueKeys0.WORKFLOW_VIEW_COUNT_PKEY; + public static final UniqueKey DATASET_PKEY = Internal.createUniqueKey(Dataset.DATASET, DSL.name("dataset_pkey"), new TableField[] { Dataset.DATASET.DID }, true); + public static final UniqueKey DATASET_USER_ACCESS_PKEY = Internal.createUniqueKey(DatasetUserAccess.DATASET_USER_ACCESS, DSL.name("dataset_user_access_pkey"), new TableField[] { DatasetUserAccess.DATASET_USER_ACCESS.DID, DatasetUserAccess.DATASET_USER_ACCESS.UID }, true); + public static final UniqueKey DATASET_VERSION_PKEY = Internal.createUniqueKey(DatasetVersion.DATASET_VERSION, DSL.name("dataset_version_pkey"), new TableField[] { DatasetVersion.DATASET_VERSION.DVID }, true); + public static final UniqueKey OPERATOR_EXECUTIONS_PKEY = Internal.createUniqueKey(OperatorExecutions.OPERATOR_EXECUTIONS, DSL.name("operator_executions_pkey"), new TableField[] { OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID }, true); + public static final UniqueKey OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID_KEY = Internal.createUniqueKey(OperatorExecutions.OPERATOR_EXECUTIONS, DSL.name("operator_executions_workflow_execution_id_operator_id_key"), new TableField[] { OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID, OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_ID }, true); + public static final UniqueKey OPERATOR_RUNTIME_STATISTICS_PKEY = Internal.createUniqueKey(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS, DSL.name("operator_runtime_statistics_pkey"), new TableField[] { OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OPERATOR_EXECUTION_ID, OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.TIME }, true); + public static final UniqueKey PROJECT_OWNER_ID_NAME_KEY = Internal.createUniqueKey(Project.PROJECT, DSL.name("project_owner_id_name_key"), new TableField[] { Project.PROJECT.OWNER_ID, Project.PROJECT.NAME }, true); + public static final UniqueKey PROJECT_PKEY = Internal.createUniqueKey(Project.PROJECT, DSL.name("project_pkey"), new TableField[] { Project.PROJECT.PID }, true); + public static final UniqueKey PROJECT_USER_ACCESS_PKEY = Internal.createUniqueKey(ProjectUserAccess.PROJECT_USER_ACCESS, DSL.name("project_user_access_pkey"), new TableField[] { ProjectUserAccess.PROJECT_USER_ACCESS.UID, ProjectUserAccess.PROJECT_USER_ACCESS.PID }, true); + public static final UniqueKey PUBLIC_PROJECT_PKEY = Internal.createUniqueKey(PublicProject.PUBLIC_PROJECT, DSL.name("public_project_pkey"), new TableField[] { PublicProject.PUBLIC_PROJECT.PID }, true); + public static final UniqueKey USER_EMAIL_KEY = Internal.createUniqueKey(User.USER, DSL.name("user_email_key"), new TableField[] { User.USER.EMAIL }, true); + public static final UniqueKey USER_GOOGLE_ID_KEY = Internal.createUniqueKey(User.USER, DSL.name("user_google_id_key"), new TableField[] { User.USER.GOOGLE_ID }, true); + public static final UniqueKey USER_PKEY = Internal.createUniqueKey(User.USER, DSL.name("user_pkey"), new TableField[] { User.USER.UID }, true); + public static final UniqueKey USER_CONFIG_PKEY = Internal.createUniqueKey(UserConfig.USER_CONFIG, DSL.name("user_config_pkey"), new TableField[] { UserConfig.USER_CONFIG.UID, UserConfig.USER_CONFIG.KEY }, true); + public static final UniqueKey WORKFLOW_PKEY = Internal.createUniqueKey(Workflow.WORKFLOW, DSL.name("workflow_pkey"), new TableField[] { Workflow.WORKFLOW.WID }, true); + public static final UniqueKey WORKFLOW_EXECUTIONS_PKEY = Internal.createUniqueKey(WorkflowExecutions.WORKFLOW_EXECUTIONS, DSL.name("workflow_executions_pkey"), new TableField[] { WorkflowExecutions.WORKFLOW_EXECUTIONS.EID }, true); + public static final UniqueKey WORKFLOW_OF_PROJECT_PKEY = Internal.createUniqueKey(WorkflowOfProject.WORKFLOW_OF_PROJECT, DSL.name("workflow_of_project_pkey"), new TableField[] { WorkflowOfProject.WORKFLOW_OF_PROJECT.WID, WorkflowOfProject.WORKFLOW_OF_PROJECT.PID }, true); + public static final UniqueKey WORKFLOW_OF_USER_PKEY = Internal.createUniqueKey(WorkflowOfUser.WORKFLOW_OF_USER, DSL.name("workflow_of_user_pkey"), new TableField[] { WorkflowOfUser.WORKFLOW_OF_USER.UID, WorkflowOfUser.WORKFLOW_OF_USER.WID }, true); + public static final UniqueKey WORKFLOW_USER_ACCESS_PKEY = Internal.createUniqueKey(WorkflowUserAccess.WORKFLOW_USER_ACCESS, DSL.name("workflow_user_access_pkey"), new TableField[] { WorkflowUserAccess.WORKFLOW_USER_ACCESS.UID, WorkflowUserAccess.WORKFLOW_USER_ACCESS.WID }, true); + public static final UniqueKey WORKFLOW_USER_CLONES_PKEY = Internal.createUniqueKey(WorkflowUserClones.WORKFLOW_USER_CLONES, DSL.name("workflow_user_clones_pkey"), new TableField[] { WorkflowUserClones.WORKFLOW_USER_CLONES.UID, WorkflowUserClones.WORKFLOW_USER_CLONES.WID }, true); + public static final UniqueKey WORKFLOW_USER_LIKES_PKEY = Internal.createUniqueKey(WorkflowUserLikes.WORKFLOW_USER_LIKES, DSL.name("workflow_user_likes_pkey"), new TableField[] { WorkflowUserLikes.WORKFLOW_USER_LIKES.UID, WorkflowUserLikes.WORKFLOW_USER_LIKES.WID }, true); + public static final UniqueKey WORKFLOW_VERSION_PKEY = Internal.createUniqueKey(WorkflowVersion.WORKFLOW_VERSION, DSL.name("workflow_version_pkey"), new TableField[] { WorkflowVersion.WORKFLOW_VERSION.VID }, true); + public static final UniqueKey WORKFLOW_VIEW_COUNT_PKEY = Internal.createUniqueKey(WorkflowViewCount.WORKFLOW_VIEW_COUNT, DSL.name("workflow_view_count_pkey"), new TableField[] { WorkflowViewCount.WORKFLOW_VIEW_COUNT.WID }, true); // ------------------------------------------------------------------------- // FOREIGN KEY definitions // ------------------------------------------------------------------------- - public static final ForeignKey DATASET__DATASET_OWNER_UID_FKEY = ForeignKeys0.DATASET__DATASET_OWNER_UID_FKEY; - public static final ForeignKey DATASET_USER_ACCESS__DATASET_USER_ACCESS_DID_FKEY = ForeignKeys0.DATASET_USER_ACCESS__DATASET_USER_ACCESS_DID_FKEY; - public static final ForeignKey DATASET_USER_ACCESS__DATASET_USER_ACCESS_UID_FKEY = ForeignKeys0.DATASET_USER_ACCESS__DATASET_USER_ACCESS_UID_FKEY; - public static final ForeignKey DATASET_VERSION__DATASET_VERSION_DID_FKEY = ForeignKeys0.DATASET_VERSION__DATASET_VERSION_DID_FKEY; - public static final ForeignKey OPERATOR_EXECUTIONS__OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_FKEY = ForeignKeys0.OPERATOR_EXECUTIONS__OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_FKEY; - public static final ForeignKey OPERATOR_RUNTIME_STATISTICS__OPERATOR_RUNTIME_STATISTICS_OPERATOR_EXECUTION_ID_FKEY = ForeignKeys0.OPERATOR_RUNTIME_STATISTICS__OPERATOR_RUNTIME_STATISTICS_OPERATOR_EXECUTION_ID_FKEY; - public static final ForeignKey PROJECT__PROJECT_OWNER_ID_FKEY = ForeignKeys0.PROJECT__PROJECT_OWNER_ID_FKEY; - public static final ForeignKey PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_UID_FKEY = ForeignKeys0.PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_UID_FKEY; - public static final ForeignKey PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_PID_FKEY = ForeignKeys0.PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_PID_FKEY; - public static final ForeignKey PUBLIC_PROJECT__PUBLIC_PROJECT_PID_FKEY = ForeignKeys0.PUBLIC_PROJECT__PUBLIC_PROJECT_PID_FKEY; - public static final ForeignKey USER_CONFIG__USER_CONFIG_UID_FKEY = ForeignKeys0.USER_CONFIG__USER_CONFIG_UID_FKEY; - public static final ForeignKey WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_VID_FKEY = ForeignKeys0.WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_VID_FKEY; - public static final ForeignKey WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_UID_FKEY = ForeignKeys0.WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_UID_FKEY; - public static final ForeignKey WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_WID_FKEY = ForeignKeys0.WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_WID_FKEY; - public static final ForeignKey WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_PID_FKEY = ForeignKeys0.WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_PID_FKEY; - public static final ForeignKey WORKFLOW_OF_USER__WORKFLOW_OF_USER_UID_FKEY = ForeignKeys0.WORKFLOW_OF_USER__WORKFLOW_OF_USER_UID_FKEY; - public static final ForeignKey WORKFLOW_OF_USER__WORKFLOW_OF_USER_WID_FKEY = ForeignKeys0.WORKFLOW_OF_USER__WORKFLOW_OF_USER_WID_FKEY; - public static final ForeignKey WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_UID_FKEY = ForeignKeys0.WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_UID_FKEY; - public static final ForeignKey WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_WID_FKEY = ForeignKeys0.WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_WID_FKEY; - public static final ForeignKey WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_UID_FKEY = ForeignKeys0.WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_UID_FKEY; - public static final ForeignKey WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_WID_FKEY = ForeignKeys0.WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_WID_FKEY; - public static final ForeignKey WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_UID_FKEY = ForeignKeys0.WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_UID_FKEY; - public static final ForeignKey WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_WID_FKEY = ForeignKeys0.WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_WID_FKEY; - public static final ForeignKey WORKFLOW_VERSION__WORKFLOW_VERSION_WID_FKEY = ForeignKeys0.WORKFLOW_VERSION__WORKFLOW_VERSION_WID_FKEY; - public static final ForeignKey WORKFLOW_VIEW_COUNT__WORKFLOW_VIEW_COUNT_WID_FKEY = ForeignKeys0.WORKFLOW_VIEW_COUNT__WORKFLOW_VIEW_COUNT_WID_FKEY; - - // ------------------------------------------------------------------------- - // [#1459] distribute members to avoid static initialisers > 64kb - // ------------------------------------------------------------------------- - - private static class Identities0 { - public static Identity IDENTITY_DATASET = Internal.createIdentity(Dataset.DATASET, Dataset.DATASET.DID); - public static Identity IDENTITY_DATASET_VERSION = Internal.createIdentity(DatasetVersion.DATASET_VERSION, DatasetVersion.DATASET_VERSION.DVID); - public static Identity IDENTITY_OPERATOR_EXECUTIONS = Internal.createIdentity(OperatorExecutions.OPERATOR_EXECUTIONS, OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID); - public static Identity IDENTITY_PROJECT = Internal.createIdentity(Project.PROJECT, Project.PROJECT.PID); - public static Identity IDENTITY_USER = Internal.createIdentity(User.USER, User.USER.UID); - public static Identity IDENTITY_WORKFLOW = Internal.createIdentity(Workflow.WORKFLOW, Workflow.WORKFLOW.WID); - public static Identity IDENTITY_WORKFLOW_EXECUTIONS = Internal.createIdentity(WorkflowExecutions.WORKFLOW_EXECUTIONS, WorkflowExecutions.WORKFLOW_EXECUTIONS.EID); - public static Identity IDENTITY_WORKFLOW_VERSION = Internal.createIdentity(WorkflowVersion.WORKFLOW_VERSION, WorkflowVersion.WORKFLOW_VERSION.VID); - } - - private static class UniqueKeys0 { - public static final UniqueKey DATASET_PKEY = Internal.createUniqueKey(Dataset.DATASET, "dataset_pkey", Dataset.DATASET.DID); - public static final UniqueKey DATASET_USER_ACCESS_PKEY = Internal.createUniqueKey(DatasetUserAccess.DATASET_USER_ACCESS, "dataset_user_access_pkey", DatasetUserAccess.DATASET_USER_ACCESS.DID, DatasetUserAccess.DATASET_USER_ACCESS.UID); - public static final UniqueKey DATASET_VERSION_PKEY = Internal.createUniqueKey(DatasetVersion.DATASET_VERSION, "dataset_version_pkey", DatasetVersion.DATASET_VERSION.DVID); - public static final UniqueKey OPERATOR_EXECUTIONS_PKEY = Internal.createUniqueKey(OperatorExecutions.OPERATOR_EXECUTIONS, "operator_executions_pkey", OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID); - public static final UniqueKey OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID_KEY = Internal.createUniqueKey(OperatorExecutions.OPERATOR_EXECUTIONS, "operator_executions_workflow_execution_id_operator_id_key", OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID, OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_ID); - public static final UniqueKey OPERATOR_RUNTIME_STATISTICS_PKEY = Internal.createUniqueKey(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS, "operator_runtime_statistics_pkey", OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OPERATOR_EXECUTION_ID, OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.TIME); - public static final UniqueKey PROJECT_PKEY = Internal.createUniqueKey(Project.PROJECT, "project_pkey", Project.PROJECT.PID); - public static final UniqueKey PROJECT_OWNER_ID_NAME_KEY = Internal.createUniqueKey(Project.PROJECT, "project_owner_id_name_key", Project.PROJECT.OWNER_ID, Project.PROJECT.NAME); - public static final UniqueKey PROJECT_USER_ACCESS_PKEY = Internal.createUniqueKey(ProjectUserAccess.PROJECT_USER_ACCESS, "project_user_access_pkey", ProjectUserAccess.PROJECT_USER_ACCESS.UID, ProjectUserAccess.PROJECT_USER_ACCESS.PID); - public static final UniqueKey PUBLIC_PROJECT_PKEY = Internal.createUniqueKey(PublicProject.PUBLIC_PROJECT, "public_project_pkey", PublicProject.PUBLIC_PROJECT.PID); - public static final UniqueKey USER_PKEY = Internal.createUniqueKey(User.USER, "user_pkey", User.USER.UID); - public static final UniqueKey USER_EMAIL_KEY = Internal.createUniqueKey(User.USER, "user_email_key", User.USER.EMAIL); - public static final UniqueKey USER_GOOGLE_ID_KEY = Internal.createUniqueKey(User.USER, "user_google_id_key", User.USER.GOOGLE_ID); - public static final UniqueKey USER_CONFIG_PKEY = Internal.createUniqueKey(UserConfig.USER_CONFIG, "user_config_pkey", UserConfig.USER_CONFIG.UID, UserConfig.USER_CONFIG.KEY); - public static final UniqueKey WORKFLOW_PKEY = Internal.createUniqueKey(Workflow.WORKFLOW, "workflow_pkey", Workflow.WORKFLOW.WID); - public static final UniqueKey WORKFLOW_EXECUTIONS_PKEY = Internal.createUniqueKey(WorkflowExecutions.WORKFLOW_EXECUTIONS, "workflow_executions_pkey", WorkflowExecutions.WORKFLOW_EXECUTIONS.EID); - public static final UniqueKey WORKFLOW_OF_PROJECT_PKEY = Internal.createUniqueKey(WorkflowOfProject.WORKFLOW_OF_PROJECT, "workflow_of_project_pkey", WorkflowOfProject.WORKFLOW_OF_PROJECT.WID, WorkflowOfProject.WORKFLOW_OF_PROJECT.PID); - public static final UniqueKey WORKFLOW_OF_USER_PKEY = Internal.createUniqueKey(WorkflowOfUser.WORKFLOW_OF_USER, "workflow_of_user_pkey", WorkflowOfUser.WORKFLOW_OF_USER.UID, WorkflowOfUser.WORKFLOW_OF_USER.WID); - public static final UniqueKey WORKFLOW_USER_ACCESS_PKEY = Internal.createUniqueKey(WorkflowUserAccess.WORKFLOW_USER_ACCESS, "workflow_user_access_pkey", WorkflowUserAccess.WORKFLOW_USER_ACCESS.UID, WorkflowUserAccess.WORKFLOW_USER_ACCESS.WID); - public static final UniqueKey WORKFLOW_USER_CLONES_PKEY = Internal.createUniqueKey(WorkflowUserClones.WORKFLOW_USER_CLONES, "workflow_user_clones_pkey", WorkflowUserClones.WORKFLOW_USER_CLONES.UID, WorkflowUserClones.WORKFLOW_USER_CLONES.WID); - public static final UniqueKey WORKFLOW_USER_LIKES_PKEY = Internal.createUniqueKey(WorkflowUserLikes.WORKFLOW_USER_LIKES, "workflow_user_likes_pkey", WorkflowUserLikes.WORKFLOW_USER_LIKES.UID, WorkflowUserLikes.WORKFLOW_USER_LIKES.WID); - public static final UniqueKey WORKFLOW_VERSION_PKEY = Internal.createUniqueKey(WorkflowVersion.WORKFLOW_VERSION, "workflow_version_pkey", WorkflowVersion.WORKFLOW_VERSION.VID); - public static final UniqueKey WORKFLOW_VIEW_COUNT_PKEY = Internal.createUniqueKey(WorkflowViewCount.WORKFLOW_VIEW_COUNT, "workflow_view_count_pkey", WorkflowViewCount.WORKFLOW_VIEW_COUNT.WID); - } - - private static class ForeignKeys0 { - public static final ForeignKey DATASET__DATASET_OWNER_UID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.USER_PKEY, Dataset.DATASET, "dataset__dataset_owner_uid_fkey", Dataset.DATASET.OWNER_UID); - public static final ForeignKey DATASET_USER_ACCESS__DATASET_USER_ACCESS_DID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.DATASET_PKEY, DatasetUserAccess.DATASET_USER_ACCESS, "dataset_user_access__dataset_user_access_did_fkey", DatasetUserAccess.DATASET_USER_ACCESS.DID); - public static final ForeignKey DATASET_USER_ACCESS__DATASET_USER_ACCESS_UID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.USER_PKEY, DatasetUserAccess.DATASET_USER_ACCESS, "dataset_user_access__dataset_user_access_uid_fkey", DatasetUserAccess.DATASET_USER_ACCESS.UID); - public static final ForeignKey DATASET_VERSION__DATASET_VERSION_DID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.DATASET_PKEY, DatasetVersion.DATASET_VERSION, "dataset_version__dataset_version_did_fkey", DatasetVersion.DATASET_VERSION.DID); - public static final ForeignKey OPERATOR_EXECUTIONS__OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.WORKFLOW_EXECUTIONS_PKEY, OperatorExecutions.OPERATOR_EXECUTIONS, "operator_executions__operator_executions_workflow_execution_id_fkey", OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID); - public static final ForeignKey OPERATOR_RUNTIME_STATISTICS__OPERATOR_RUNTIME_STATISTICS_OPERATOR_EXECUTION_ID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.OPERATOR_EXECUTIONS_PKEY, OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS, "operator_runtime_statistics__operator_runtime_statistics_operator_execution_id_fkey", OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OPERATOR_EXECUTION_ID); - public static final ForeignKey PROJECT__PROJECT_OWNER_ID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.USER_PKEY, Project.PROJECT, "project__project_owner_id_fkey", Project.PROJECT.OWNER_ID); - public static final ForeignKey PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_UID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.USER_PKEY, ProjectUserAccess.PROJECT_USER_ACCESS, "project_user_access__project_user_access_uid_fkey", ProjectUserAccess.PROJECT_USER_ACCESS.UID); - public static final ForeignKey PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_PID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.PROJECT_PKEY, ProjectUserAccess.PROJECT_USER_ACCESS, "project_user_access__project_user_access_pid_fkey", ProjectUserAccess.PROJECT_USER_ACCESS.PID); - public static final ForeignKey PUBLIC_PROJECT__PUBLIC_PROJECT_PID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.PROJECT_PKEY, PublicProject.PUBLIC_PROJECT, "public_project__public_project_pid_fkey", PublicProject.PUBLIC_PROJECT.PID); - public static final ForeignKey USER_CONFIG__USER_CONFIG_UID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.USER_PKEY, UserConfig.USER_CONFIG, "user_config__user_config_uid_fkey", UserConfig.USER_CONFIG.UID); - public static final ForeignKey WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_VID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.WORKFLOW_VERSION_PKEY, WorkflowExecutions.WORKFLOW_EXECUTIONS, "workflow_executions__workflow_executions_vid_fkey", WorkflowExecutions.WORKFLOW_EXECUTIONS.VID); - public static final ForeignKey WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_UID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.USER_PKEY, WorkflowExecutions.WORKFLOW_EXECUTIONS, "workflow_executions__workflow_executions_uid_fkey", WorkflowExecutions.WORKFLOW_EXECUTIONS.UID); - public static final ForeignKey WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_WID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.WORKFLOW_PKEY, WorkflowOfProject.WORKFLOW_OF_PROJECT, "workflow_of_project__workflow_of_project_wid_fkey", WorkflowOfProject.WORKFLOW_OF_PROJECT.WID); - public static final ForeignKey WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_PID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.PROJECT_PKEY, WorkflowOfProject.WORKFLOW_OF_PROJECT, "workflow_of_project__workflow_of_project_pid_fkey", WorkflowOfProject.WORKFLOW_OF_PROJECT.PID); - public static final ForeignKey WORKFLOW_OF_USER__WORKFLOW_OF_USER_UID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.USER_PKEY, WorkflowOfUser.WORKFLOW_OF_USER, "workflow_of_user__workflow_of_user_uid_fkey", WorkflowOfUser.WORKFLOW_OF_USER.UID); - public static final ForeignKey WORKFLOW_OF_USER__WORKFLOW_OF_USER_WID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.WORKFLOW_PKEY, WorkflowOfUser.WORKFLOW_OF_USER, "workflow_of_user__workflow_of_user_wid_fkey", WorkflowOfUser.WORKFLOW_OF_USER.WID); - public static final ForeignKey WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_UID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.USER_PKEY, WorkflowUserAccess.WORKFLOW_USER_ACCESS, "workflow_user_access__workflow_user_access_uid_fkey", WorkflowUserAccess.WORKFLOW_USER_ACCESS.UID); - public static final ForeignKey WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_WID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.WORKFLOW_PKEY, WorkflowUserAccess.WORKFLOW_USER_ACCESS, "workflow_user_access__workflow_user_access_wid_fkey", WorkflowUserAccess.WORKFLOW_USER_ACCESS.WID); - public static final ForeignKey WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_UID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.USER_PKEY, WorkflowUserClones.WORKFLOW_USER_CLONES, "workflow_user_clones__workflow_user_clones_uid_fkey", WorkflowUserClones.WORKFLOW_USER_CLONES.UID); - public static final ForeignKey WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_WID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.WORKFLOW_PKEY, WorkflowUserClones.WORKFLOW_USER_CLONES, "workflow_user_clones__workflow_user_clones_wid_fkey", WorkflowUserClones.WORKFLOW_USER_CLONES.WID); - public static final ForeignKey WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_UID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.USER_PKEY, WorkflowUserLikes.WORKFLOW_USER_LIKES, "workflow_user_likes__workflow_user_likes_uid_fkey", WorkflowUserLikes.WORKFLOW_USER_LIKES.UID); - public static final ForeignKey WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_WID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.WORKFLOW_PKEY, WorkflowUserLikes.WORKFLOW_USER_LIKES, "workflow_user_likes__workflow_user_likes_wid_fkey", WorkflowUserLikes.WORKFLOW_USER_LIKES.WID); - public static final ForeignKey WORKFLOW_VERSION__WORKFLOW_VERSION_WID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.WORKFLOW_PKEY, WorkflowVersion.WORKFLOW_VERSION, "workflow_version__workflow_version_wid_fkey", WorkflowVersion.WORKFLOW_VERSION.WID); - public static final ForeignKey WORKFLOW_VIEW_COUNT__WORKFLOW_VIEW_COUNT_WID_FKEY = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.WORKFLOW_PKEY, WorkflowViewCount.WORKFLOW_VIEW_COUNT, "workflow_view_count__workflow_view_count_wid_fkey", WorkflowViewCount.WORKFLOW_VIEW_COUNT.WID); - } + public static final ForeignKey DATASET__DATASET_OWNER_UID_FKEY = Internal.createForeignKey(Dataset.DATASET, DSL.name("dataset_owner_uid_fkey"), new TableField[] { Dataset.DATASET.OWNER_UID }, Keys.USER_PKEY, new TableField[] { User.USER.UID }, true); + public static final ForeignKey DATASET_USER_ACCESS__DATASET_USER_ACCESS_DID_FKEY = Internal.createForeignKey(DatasetUserAccess.DATASET_USER_ACCESS, DSL.name("dataset_user_access_did_fkey"), new TableField[] { DatasetUserAccess.DATASET_USER_ACCESS.DID }, Keys.DATASET_PKEY, new TableField[] { Dataset.DATASET.DID }, true); + public static final ForeignKey DATASET_USER_ACCESS__DATASET_USER_ACCESS_UID_FKEY = Internal.createForeignKey(DatasetUserAccess.DATASET_USER_ACCESS, DSL.name("dataset_user_access_uid_fkey"), new TableField[] { DatasetUserAccess.DATASET_USER_ACCESS.UID }, Keys.USER_PKEY, new TableField[] { User.USER.UID }, true); + public static final ForeignKey DATASET_VERSION__DATASET_VERSION_DID_FKEY = Internal.createForeignKey(DatasetVersion.DATASET_VERSION, DSL.name("dataset_version_did_fkey"), new TableField[] { DatasetVersion.DATASET_VERSION.DID }, Keys.DATASET_PKEY, new TableField[] { Dataset.DATASET.DID }, true); + public static final ForeignKey OPERATOR_EXECUTIONS__OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_FKEY = Internal.createForeignKey(OperatorExecutions.OPERATOR_EXECUTIONS, DSL.name("operator_executions_workflow_execution_id_fkey"), new TableField[] { OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID }, Keys.WORKFLOW_EXECUTIONS_PKEY, new TableField[] { WorkflowExecutions.WORKFLOW_EXECUTIONS.EID }, true); + public static final ForeignKey OPERATOR_RUNTIME_STATISTICS__OPERATOR_RUNTIME_STATISTICS_OPERATOR_EXECUTION_ID_FKEY = Internal.createForeignKey(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS, DSL.name("operator_runtime_statistics_operator_execution_id_fkey"), new TableField[] { OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OPERATOR_EXECUTION_ID }, Keys.OPERATOR_EXECUTIONS_PKEY, new TableField[] { OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID }, true); + public static final ForeignKey PROJECT__PROJECT_OWNER_ID_FKEY = Internal.createForeignKey(Project.PROJECT, DSL.name("project_owner_id_fkey"), new TableField[] { Project.PROJECT.OWNER_ID }, Keys.USER_PKEY, new TableField[] { User.USER.UID }, true); + public static final ForeignKey PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_PID_FKEY = Internal.createForeignKey(ProjectUserAccess.PROJECT_USER_ACCESS, DSL.name("project_user_access_pid_fkey"), new TableField[] { ProjectUserAccess.PROJECT_USER_ACCESS.PID }, Keys.PROJECT_PKEY, new TableField[] { Project.PROJECT.PID }, true); + public static final ForeignKey PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_UID_FKEY = Internal.createForeignKey(ProjectUserAccess.PROJECT_USER_ACCESS, DSL.name("project_user_access_uid_fkey"), new TableField[] { ProjectUserAccess.PROJECT_USER_ACCESS.UID }, Keys.USER_PKEY, new TableField[] { User.USER.UID }, true); + public static final ForeignKey PUBLIC_PROJECT__PUBLIC_PROJECT_PID_FKEY = Internal.createForeignKey(PublicProject.PUBLIC_PROJECT, DSL.name("public_project_pid_fkey"), new TableField[] { PublicProject.PUBLIC_PROJECT.PID }, Keys.PROJECT_PKEY, new TableField[] { Project.PROJECT.PID }, true); + public static final ForeignKey USER_CONFIG__USER_CONFIG_UID_FKEY = Internal.createForeignKey(UserConfig.USER_CONFIG, DSL.name("user_config_uid_fkey"), new TableField[] { UserConfig.USER_CONFIG.UID }, Keys.USER_PKEY, new TableField[] { User.USER.UID }, true); + public static final ForeignKey WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_UID_FKEY = Internal.createForeignKey(WorkflowExecutions.WORKFLOW_EXECUTIONS, DSL.name("workflow_executions_uid_fkey"), new TableField[] { WorkflowExecutions.WORKFLOW_EXECUTIONS.UID }, Keys.USER_PKEY, new TableField[] { User.USER.UID }, true); + public static final ForeignKey WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_VID_FKEY = Internal.createForeignKey(WorkflowExecutions.WORKFLOW_EXECUTIONS, DSL.name("workflow_executions_vid_fkey"), new TableField[] { WorkflowExecutions.WORKFLOW_EXECUTIONS.VID }, Keys.WORKFLOW_VERSION_PKEY, new TableField[] { WorkflowVersion.WORKFLOW_VERSION.VID }, true); + public static final ForeignKey WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_PID_FKEY = Internal.createForeignKey(WorkflowOfProject.WORKFLOW_OF_PROJECT, DSL.name("workflow_of_project_pid_fkey"), new TableField[] { WorkflowOfProject.WORKFLOW_OF_PROJECT.PID }, Keys.PROJECT_PKEY, new TableField[] { Project.PROJECT.PID }, true); + public static final ForeignKey WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_WID_FKEY = Internal.createForeignKey(WorkflowOfProject.WORKFLOW_OF_PROJECT, DSL.name("workflow_of_project_wid_fkey"), new TableField[] { WorkflowOfProject.WORKFLOW_OF_PROJECT.WID }, Keys.WORKFLOW_PKEY, new TableField[] { Workflow.WORKFLOW.WID }, true); + public static final ForeignKey WORKFLOW_OF_USER__WORKFLOW_OF_USER_UID_FKEY = Internal.createForeignKey(WorkflowOfUser.WORKFLOW_OF_USER, DSL.name("workflow_of_user_uid_fkey"), new TableField[] { WorkflowOfUser.WORKFLOW_OF_USER.UID }, Keys.USER_PKEY, new TableField[] { User.USER.UID }, true); + public static final ForeignKey WORKFLOW_OF_USER__WORKFLOW_OF_USER_WID_FKEY = Internal.createForeignKey(WorkflowOfUser.WORKFLOW_OF_USER, DSL.name("workflow_of_user_wid_fkey"), new TableField[] { WorkflowOfUser.WORKFLOW_OF_USER.WID }, Keys.WORKFLOW_PKEY, new TableField[] { Workflow.WORKFLOW.WID }, true); + public static final ForeignKey WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_UID_FKEY = Internal.createForeignKey(WorkflowUserAccess.WORKFLOW_USER_ACCESS, DSL.name("workflow_user_access_uid_fkey"), new TableField[] { WorkflowUserAccess.WORKFLOW_USER_ACCESS.UID }, Keys.USER_PKEY, new TableField[] { User.USER.UID }, true); + public static final ForeignKey WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_WID_FKEY = Internal.createForeignKey(WorkflowUserAccess.WORKFLOW_USER_ACCESS, DSL.name("workflow_user_access_wid_fkey"), new TableField[] { WorkflowUserAccess.WORKFLOW_USER_ACCESS.WID }, Keys.WORKFLOW_PKEY, new TableField[] { Workflow.WORKFLOW.WID }, true); + public static final ForeignKey WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_UID_FKEY = Internal.createForeignKey(WorkflowUserClones.WORKFLOW_USER_CLONES, DSL.name("workflow_user_clones_uid_fkey"), new TableField[] { WorkflowUserClones.WORKFLOW_USER_CLONES.UID }, Keys.USER_PKEY, new TableField[] { User.USER.UID }, true); + public static final ForeignKey WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_WID_FKEY = Internal.createForeignKey(WorkflowUserClones.WORKFLOW_USER_CLONES, DSL.name("workflow_user_clones_wid_fkey"), new TableField[] { WorkflowUserClones.WORKFLOW_USER_CLONES.WID }, Keys.WORKFLOW_PKEY, new TableField[] { Workflow.WORKFLOW.WID }, true); + public static final ForeignKey WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_UID_FKEY = Internal.createForeignKey(WorkflowUserLikes.WORKFLOW_USER_LIKES, DSL.name("workflow_user_likes_uid_fkey"), new TableField[] { WorkflowUserLikes.WORKFLOW_USER_LIKES.UID }, Keys.USER_PKEY, new TableField[] { User.USER.UID }, true); + public static final ForeignKey WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_WID_FKEY = Internal.createForeignKey(WorkflowUserLikes.WORKFLOW_USER_LIKES, DSL.name("workflow_user_likes_wid_fkey"), new TableField[] { WorkflowUserLikes.WORKFLOW_USER_LIKES.WID }, Keys.WORKFLOW_PKEY, new TableField[] { Workflow.WORKFLOW.WID }, true); + public static final ForeignKey WORKFLOW_VERSION__WORKFLOW_VERSION_WID_FKEY = Internal.createForeignKey(WorkflowVersion.WORKFLOW_VERSION, DSL.name("workflow_version_wid_fkey"), new TableField[] { WorkflowVersion.WORKFLOW_VERSION.WID }, Keys.WORKFLOW_PKEY, new TableField[] { Workflow.WORKFLOW.WID }, true); + public static final ForeignKey WORKFLOW_VIEW_COUNT__WORKFLOW_VIEW_COUNT_WID_FKEY = Internal.createForeignKey(WorkflowViewCount.WORKFLOW_VIEW_COUNT, DSL.name("workflow_view_count_wid_fkey"), new TableField[] { WorkflowViewCount.WORKFLOW_VIEW_COUNT.WID }, Keys.WORKFLOW_PKEY, new TableField[] { Workflow.WORKFLOW.WID }, true); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Sequences.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Sequences.java deleted file mode 100644 index d19c9bc2660..00000000000 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Sequences.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package edu.uci.ics.texera.dao.jooq.generated; - - -import org.jooq.Sequence; -import org.jooq.impl.SequenceImpl; - - -/** - * Convenience access to all sequences in texera_db - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class Sequences { - - /** - * The sequence texera_db.dataset_did_seq - */ - public static final Sequence DATASET_DID_SEQ = new SequenceImpl("dataset_did_seq", TexeraDb.TEXERA_DB, org.jooq.impl.SQLDataType.INTEGER.nullable(false)); - - /** - * The sequence texera_db.dataset_version_dvid_seq - */ - public static final Sequence DATASET_VERSION_DVID_SEQ = new SequenceImpl("dataset_version_dvid_seq", TexeraDb.TEXERA_DB, org.jooq.impl.SQLDataType.INTEGER.nullable(false)); - - /** - * The sequence texera_db.operator_executions_operator_execution_id_seq - */ - public static final Sequence OPERATOR_EXECUTIONS_OPERATOR_EXECUTION_ID_SEQ = new SequenceImpl("operator_executions_operator_execution_id_seq", TexeraDb.TEXERA_DB, org.jooq.impl.SQLDataType.BIGINT.nullable(false)); - - /** - * The sequence texera_db.project_pid_seq - */ - public static final Sequence PROJECT_PID_SEQ = new SequenceImpl("project_pid_seq", TexeraDb.TEXERA_DB, org.jooq.impl.SQLDataType.INTEGER.nullable(false)); - - /** - * The sequence texera_db.user_uid_seq - */ - public static final Sequence USER_UID_SEQ = new SequenceImpl("user_uid_seq", TexeraDb.TEXERA_DB, org.jooq.impl.SQLDataType.INTEGER.nullable(false)); - - /** - * The sequence texera_db.workflow_executions_eid_seq - */ - public static final Sequence WORKFLOW_EXECUTIONS_EID_SEQ = new SequenceImpl("workflow_executions_eid_seq", TexeraDb.TEXERA_DB, org.jooq.impl.SQLDataType.INTEGER.nullable(false)); - - /** - * The sequence texera_db.workflow_version_vid_seq - */ - public static final Sequence WORKFLOW_VERSION_VID_SEQ = new SequenceImpl("workflow_version_vid_seq", TexeraDb.TEXERA_DB, org.jooq.impl.SQLDataType.INTEGER.nullable(false)); - - /** - * The sequence texera_db.workflow_wid_seq - */ - public static final Sequence WORKFLOW_WID_SEQ = new SequenceImpl("workflow_wid_seq", TexeraDb.TEXERA_DB, org.jooq.impl.SQLDataType.INTEGER.nullable(false)); -} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Tables.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Tables.java index e355ca3f0ac..90ed93143f3 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Tables.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Tables.java @@ -27,7 +27,7 @@ /** - * Convenience access to all tables in texera_db + * Convenience access to all tables in texera_db. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Tables { diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/TexeraDb.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/TexeraDb.java index 91ba30fc2c4..966f0aec4d3 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/TexeraDb.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/TexeraDb.java @@ -25,12 +25,10 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowVersion; import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowViewCount; -import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.jooq.Catalog; -import org.jooq.Sequence; import org.jooq.Table; import org.jooq.impl.SchemaImpl; @@ -41,7 +39,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class TexeraDb extends SchemaImpl { - private static final long serialVersionUID = 1901866689; + private static final long serialVersionUID = 1L; /** * The reference instance of texera_db @@ -51,102 +49,102 @@ public class TexeraDb extends SchemaImpl { /** * The table texera_db.dataset. */ - public final Dataset DATASET = edu.uci.ics.texera.dao.jooq.generated.tables.Dataset.DATASET; + public final Dataset DATASET = Dataset.DATASET; /** * The table texera_db.dataset_user_access. */ - public final DatasetUserAccess DATASET_USER_ACCESS = edu.uci.ics.texera.dao.jooq.generated.tables.DatasetUserAccess.DATASET_USER_ACCESS; + public final DatasetUserAccess DATASET_USER_ACCESS = DatasetUserAccess.DATASET_USER_ACCESS; /** * The table texera_db.dataset_version. */ - public final DatasetVersion DATASET_VERSION = edu.uci.ics.texera.dao.jooq.generated.tables.DatasetVersion.DATASET_VERSION; + public final DatasetVersion DATASET_VERSION = DatasetVersion.DATASET_VERSION; /** * The table texera_db.operator_executions. */ - public final OperatorExecutions OPERATOR_EXECUTIONS = edu.uci.ics.texera.dao.jooq.generated.tables.OperatorExecutions.OPERATOR_EXECUTIONS; + public final OperatorExecutions OPERATOR_EXECUTIONS = OperatorExecutions.OPERATOR_EXECUTIONS; /** * The table texera_db.operator_runtime_statistics. */ - public final OperatorRuntimeStatistics OPERATOR_RUNTIME_STATISTICS = edu.uci.ics.texera.dao.jooq.generated.tables.OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS; + public final OperatorRuntimeStatistics OPERATOR_RUNTIME_STATISTICS = OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS; /** * The table texera_db.project. */ - public final Project PROJECT = edu.uci.ics.texera.dao.jooq.generated.tables.Project.PROJECT; + public final Project PROJECT = Project.PROJECT; /** * The table texera_db.project_user_access. */ - public final ProjectUserAccess PROJECT_USER_ACCESS = edu.uci.ics.texera.dao.jooq.generated.tables.ProjectUserAccess.PROJECT_USER_ACCESS; + public final ProjectUserAccess PROJECT_USER_ACCESS = ProjectUserAccess.PROJECT_USER_ACCESS; /** * The table texera_db.public_project. */ - public final PublicProject PUBLIC_PROJECT = edu.uci.ics.texera.dao.jooq.generated.tables.PublicProject.PUBLIC_PROJECT; + public final PublicProject PUBLIC_PROJECT = PublicProject.PUBLIC_PROJECT; /** * The table texera_db.user. */ - public final User USER = edu.uci.ics.texera.dao.jooq.generated.tables.User.USER; + public final User USER = User.USER; /** * The table texera_db.user_activity. */ - public final UserActivity USER_ACTIVITY = edu.uci.ics.texera.dao.jooq.generated.tables.UserActivity.USER_ACTIVITY; + public final UserActivity USER_ACTIVITY = UserActivity.USER_ACTIVITY; /** * The table texera_db.user_config. */ - public final UserConfig USER_CONFIG = edu.uci.ics.texera.dao.jooq.generated.tables.UserConfig.USER_CONFIG; + public final UserConfig USER_CONFIG = UserConfig.USER_CONFIG; /** * The table texera_db.workflow. */ - public final Workflow WORKFLOW = edu.uci.ics.texera.dao.jooq.generated.tables.Workflow.WORKFLOW; + public final Workflow WORKFLOW = Workflow.WORKFLOW; /** * The table texera_db.workflow_executions. */ - public final WorkflowExecutions WORKFLOW_EXECUTIONS = edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowExecutions.WORKFLOW_EXECUTIONS; + public final WorkflowExecutions WORKFLOW_EXECUTIONS = WorkflowExecutions.WORKFLOW_EXECUTIONS; /** * The table texera_db.workflow_of_project. */ - public final WorkflowOfProject WORKFLOW_OF_PROJECT = edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowOfProject.WORKFLOW_OF_PROJECT; + public final WorkflowOfProject WORKFLOW_OF_PROJECT = WorkflowOfProject.WORKFLOW_OF_PROJECT; /** * The table texera_db.workflow_of_user. */ - public final WorkflowOfUser WORKFLOW_OF_USER = edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowOfUser.WORKFLOW_OF_USER; + public final WorkflowOfUser WORKFLOW_OF_USER = WorkflowOfUser.WORKFLOW_OF_USER; /** * The table texera_db.workflow_user_access. */ - public final WorkflowUserAccess WORKFLOW_USER_ACCESS = edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowUserAccess.WORKFLOW_USER_ACCESS; + public final WorkflowUserAccess WORKFLOW_USER_ACCESS = WorkflowUserAccess.WORKFLOW_USER_ACCESS; /** * The table texera_db.workflow_user_clones. */ - public final WorkflowUserClones WORKFLOW_USER_CLONES = edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowUserClones.WORKFLOW_USER_CLONES; + public final WorkflowUserClones WORKFLOW_USER_CLONES = WorkflowUserClones.WORKFLOW_USER_CLONES; /** * The table texera_db.workflow_user_likes. */ - public final WorkflowUserLikes WORKFLOW_USER_LIKES = edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowUserLikes.WORKFLOW_USER_LIKES; + public final WorkflowUserLikes WORKFLOW_USER_LIKES = WorkflowUserLikes.WORKFLOW_USER_LIKES; /** * The table texera_db.workflow_version. */ - public final WorkflowVersion WORKFLOW_VERSION = edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowVersion.WORKFLOW_VERSION; + public final WorkflowVersion WORKFLOW_VERSION = WorkflowVersion.WORKFLOW_VERSION; /** * The table texera_db.workflow_view_count. */ - public final WorkflowViewCount WORKFLOW_VIEW_COUNT = edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowViewCount.WORKFLOW_VIEW_COUNT; + public final WorkflowViewCount WORKFLOW_VIEW_COUNT = WorkflowViewCount.WORKFLOW_VIEW_COUNT; /** * No further instances allowed @@ -161,34 +159,9 @@ public Catalog getCatalog() { return DefaultCatalog.DEFAULT_CATALOG; } - @Override - public final List> getSequences() { - List result = new ArrayList(); - result.addAll(getSequences0()); - return result; - } - - private final List> getSequences0() { - return Arrays.>asList( - Sequences.DATASET_DID_SEQ, - Sequences.DATASET_VERSION_DVID_SEQ, - Sequences.OPERATOR_EXECUTIONS_OPERATOR_EXECUTION_ID_SEQ, - Sequences.PROJECT_PID_SEQ, - Sequences.USER_UID_SEQ, - Sequences.WORKFLOW_EXECUTIONS_EID_SEQ, - Sequences.WORKFLOW_VERSION_VID_SEQ, - Sequences.WORKFLOW_WID_SEQ); - } - @Override public final List> getTables() { - List result = new ArrayList(); - result.addAll(getTables0()); - return result; - } - - private final List> getTables0() { - return Arrays.>asList( + return Arrays.asList( Dataset.DATASET, DatasetUserAccess.DATASET_USER_ACCESS, DatasetVersion.DATASET_VERSION, @@ -208,6 +181,7 @@ private final List> getTables0() { WorkflowUserClones.WORKFLOW_USER_CLONES, WorkflowUserLikes.WORKFLOW_USER_LIKES, WorkflowVersion.WORKFLOW_VERSION, - WorkflowViewCount.WORKFLOW_VIEW_COUNT); + WorkflowViewCount.WORKFLOW_VIEW_COUNT + ); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/PrivilegeEnum.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/PrivilegeEnum.java index 3a983d7d136..06997a14e52 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/PrivilegeEnum.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/PrivilegeEnum.java @@ -31,7 +31,7 @@ private PrivilegeEnum(String literal) { @Override public Catalog getCatalog() { - return getSchema() == null ? null : getSchema().getCatalog(); + return getSchema().getCatalog(); } @Override @@ -48,4 +48,11 @@ public String getName() { public String getLiteral() { return literal; } + + /** + * Lookup a value of this EnumType by its literal + */ + public static PrivilegeEnum lookupLiteral(String literal) { + return EnumType.lookupLiteral(PrivilegeEnum.class, literal); + } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/UserRoleEnum.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/UserRoleEnum.java index 326c11ec1ad..01663851e9a 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/UserRoleEnum.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/enums/UserRoleEnum.java @@ -33,7 +33,7 @@ private UserRoleEnum(String literal) { @Override public Catalog getCatalog() { - return getSchema() == null ? null : getSchema().getCatalog(); + return getSchema().getCatalog(); } @Override @@ -50,4 +50,11 @@ public String getName() { public String getLiteral() { return literal; } + + /** + * Lookup a value of this EnumType by its literal + */ + public static UserRoleEnum lookupLiteral(String literal) { + return EnumType.lookupLiteral(UserRoleEnum.class, literal); + } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Dataset.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Dataset.java index ec5c9864f3b..ccdeb0832be 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Dataset.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Dataset.java @@ -4,27 +4,27 @@ package edu.uci.ics.texera.dao.jooq.generated.tables; -import edu.uci.ics.texera.dao.jooq.generated.Indexes; import edu.uci.ics.texera.dao.jooq.generated.Keys; import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.DatasetRecord; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.Arrays; import java.util.List; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; -import org.jooq.Index; import org.jooq.Name; import org.jooq.Record; import org.jooq.Row6; import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; @@ -34,7 +34,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Dataset extends TableImpl { - private static final long serialVersionUID = -1835472774; + private static final long serialVersionUID = 1L; /** * The reference instance of texera_db.dataset @@ -52,38 +52,39 @@ public Class getRecordType() { /** * The column texera_db.dataset.did. */ - public final TableField DID = createField(DSL.name("did"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true).defaultValue(org.jooq.impl.DSL.field("nextval('texera_db.dataset_did_seq'::regclass)", org.jooq.impl.SQLDataType.INTEGER)), this, ""); + public final TableField DID = createField(DSL.name("did"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); /** * The column texera_db.dataset.owner_uid. */ - public final TableField OWNER_UID = createField(DSL.name("owner_uid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField OWNER_UID = createField(DSL.name("owner_uid"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.dataset.name. */ - public final TableField NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.VARCHAR(128).nullable(false), this, ""); + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(128).nullable(false), this, ""); /** * The column texera_db.dataset.is_public. */ - public final TableField IS_PUBLIC = createField(DSL.name("is_public"), org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("true", org.jooq.impl.SQLDataType.BOOLEAN)), this, ""); + public final TableField IS_PUBLIC = createField(DSL.name("is_public"), SQLDataType.BOOLEAN.nullable(false).defaultValue(DSL.field("true", SQLDataType.BOOLEAN)), this, ""); /** * The column texera_db.dataset.description. */ - public final TableField DESCRIPTION = createField(DSL.name("description"), org.jooq.impl.SQLDataType.VARCHAR(512).nullable(false), this, ""); + public final TableField DESCRIPTION = createField(DSL.name("description"), SQLDataType.VARCHAR(512).nullable(false), this, ""); /** * The column texera_db.dataset.creation_time. */ - public final TableField CREATION_TIME = createField(DSL.name("creation_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, ""); + public final TableField CREATION_TIME = createField(DSL.name("creation_time"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.LOCALDATETIME)), this, ""); - /** - * Create a texera_db.dataset table reference - */ - public Dataset() { - this(DSL.name("dataset"), null); + private Dataset(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private Dataset(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); } /** @@ -100,12 +101,11 @@ public Dataset(Name alias) { this(alias, DATASET); } - private Dataset(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private Dataset(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + /** + * Create a texera_db.dataset table reference + */ + public Dataset() { + this(DSL.name("dataset"), null); } public Dataset(Table child, ForeignKey key) { @@ -114,17 +114,12 @@ public Dataset(Table child, ForeignKey k @Override public Schema getSchema() { - return TexeraDb.TEXERA_DB; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.DATASET_PKEY); + return aliased() ? null : TexeraDb.TEXERA_DB; } @Override public Identity getIdentity() { - return Keys.IDENTITY_DATASET; + return (Identity) super.getIdentity(); } @Override @@ -132,18 +127,21 @@ public UniqueKey getPrimaryKey() { return Keys.DATASET_PKEY; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.DATASET_PKEY); - } - @Override public List> getReferences() { - return Arrays.>asList(Keys.DATASET__DATASET_OWNER_UID_FKEY); + return Arrays.asList(Keys.DATASET__DATASET_OWNER_UID_FKEY); } + private transient User _user; + + /** + * Get the implicit join path to the texera_db.user table. + */ public User user() { - return new User(this, Keys.DATASET__DATASET_OWNER_UID_FKEY); + if (_user == null) + _user = new User(this, Keys.DATASET__DATASET_OWNER_UID_FKEY); + + return _user; } @Override @@ -177,7 +175,7 @@ public Dataset rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row6 fieldsRow() { + public Row6 fieldsRow() { return (Row6) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetUserAccess.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetUserAccess.java index 39e186accc6..4709b961e25 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetUserAccess.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetUserAccess.java @@ -4,7 +4,6 @@ package edu.uci.ics.texera.dao.jooq.generated.tables; -import edu.uci.ics.texera.dao.jooq.generated.Indexes; import edu.uci.ics.texera.dao.jooq.generated.Keys; import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum; @@ -15,15 +14,16 @@ import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Index; import org.jooq.Name; import org.jooq.Record; import org.jooq.Row3; import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; @@ -33,7 +33,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class DatasetUserAccess extends TableImpl { - private static final long serialVersionUID = -2146163040; + private static final long serialVersionUID = 1L; /** * The reference instance of texera_db.dataset_user_access @@ -51,45 +51,47 @@ public Class getRecordType() { /** * The column texera_db.dataset_user_access.did. */ - public final TableField DID = createField(DSL.name("did"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField DID = createField(DSL.name("did"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.dataset_user_access.uid. */ - public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField UID = createField(DSL.name("uid"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.dataset_user_access.privilege. */ - public final TableField PRIVILEGE = createField(DSL.name("privilege"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false).defaultValue(org.jooq.impl.DSL.field("'NONE'::texera_db.privilege_enum", org.jooq.impl.SQLDataType.VARCHAR)).asEnumDataType(edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum.class), this, ""); + public final TableField PRIVILEGE = createField(DSL.name("privilege"), SQLDataType.VARCHAR.nullable(false).defaultValue(DSL.field("'NONE'::texera_db.privilege_enum", SQLDataType.VARCHAR)).asEnumDataType(edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum.class), this, ""); - /** - * Create a texera_db.dataset_user_access table reference - */ - public DatasetUserAccess() { - this(DSL.name("dataset_user_access"), null); + private DatasetUserAccess(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private DatasetUserAccess(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); } /** - * Create an aliased texera_db.dataset_user_access table reference + * Create an aliased texera_db.dataset_user_access table + * reference */ public DatasetUserAccess(String alias) { this(DSL.name(alias), DATASET_USER_ACCESS); } /** - * Create an aliased texera_db.dataset_user_access table reference + * Create an aliased texera_db.dataset_user_access table + * reference */ public DatasetUserAccess(Name alias) { this(alias, DATASET_USER_ACCESS); } - private DatasetUserAccess(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private DatasetUserAccess(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + /** + * Create a texera_db.dataset_user_access table reference + */ + public DatasetUserAccess() { + this(DSL.name("dataset_user_access"), null); } public DatasetUserAccess(Table child, ForeignKey key) { @@ -98,12 +100,7 @@ public DatasetUserAccess(Table child, ForeignKey getIndexes() { - return Arrays.asList(Indexes.DATASET_USER_ACCESS_PKEY); + return aliased() ? null : TexeraDb.TEXERA_DB; } @Override @@ -111,22 +108,32 @@ public UniqueKey getPrimaryKey() { return Keys.DATASET_USER_ACCESS_PKEY; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.DATASET_USER_ACCESS_PKEY); - } - @Override public List> getReferences() { - return Arrays.>asList(Keys.DATASET_USER_ACCESS__DATASET_USER_ACCESS_DID_FKEY, Keys.DATASET_USER_ACCESS__DATASET_USER_ACCESS_UID_FKEY); + return Arrays.asList(Keys.DATASET_USER_ACCESS__DATASET_USER_ACCESS_DID_FKEY, Keys.DATASET_USER_ACCESS__DATASET_USER_ACCESS_UID_FKEY); } + private transient Dataset _dataset; + private transient User _user; + + /** + * Get the implicit join path to the texera_db.dataset table. + */ public Dataset dataset() { - return new Dataset(this, Keys.DATASET_USER_ACCESS__DATASET_USER_ACCESS_DID_FKEY); + if (_dataset == null) + _dataset = new Dataset(this, Keys.DATASET_USER_ACCESS__DATASET_USER_ACCESS_DID_FKEY); + + return _dataset; } + /** + * Get the implicit join path to the texera_db.user table. + */ public User user() { - return new User(this, Keys.DATASET_USER_ACCESS__DATASET_USER_ACCESS_UID_FKEY); + if (_user == null) + _user = new User(this, Keys.DATASET_USER_ACCESS__DATASET_USER_ACCESS_UID_FKEY); + + return _user; } @Override diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetVersion.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetVersion.java index c175b45d9c7..31695d4af78 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetVersion.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetVersion.java @@ -4,27 +4,27 @@ package edu.uci.ics.texera.dao.jooq.generated.tables; -import edu.uci.ics.texera.dao.jooq.generated.Indexes; import edu.uci.ics.texera.dao.jooq.generated.Keys; import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.DatasetVersionRecord; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.Arrays; import java.util.List; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; -import org.jooq.Index; import org.jooq.Name; import org.jooq.Record; import org.jooq.Row6; import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; @@ -34,7 +34,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class DatasetVersion extends TableImpl { - private static final long serialVersionUID = 1554874669; + private static final long serialVersionUID = 1L; /** * The reference instance of texera_db.dataset_version @@ -52,38 +52,39 @@ public Class getRecordType() { /** * The column texera_db.dataset_version.dvid. */ - public final TableField DVID = createField(DSL.name("dvid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true).defaultValue(org.jooq.impl.DSL.field("nextval('texera_db.dataset_version_dvid_seq'::regclass)", org.jooq.impl.SQLDataType.INTEGER)), this, ""); + public final TableField DVID = createField(DSL.name("dvid"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); /** * The column texera_db.dataset_version.did. */ - public final TableField DID = createField(DSL.name("did"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField DID = createField(DSL.name("did"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.dataset_version.creator_uid. */ - public final TableField CREATOR_UID = createField(DSL.name("creator_uid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField CREATOR_UID = createField(DSL.name("creator_uid"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.dataset_version.name. */ - public final TableField NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.VARCHAR(128).nullable(false), this, ""); + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(128).nullable(false), this, ""); /** * The column texera_db.dataset_version.version_hash. */ - public final TableField VERSION_HASH = createField(DSL.name("version_hash"), org.jooq.impl.SQLDataType.VARCHAR(64).nullable(false), this, ""); + public final TableField VERSION_HASH = createField(DSL.name("version_hash"), SQLDataType.VARCHAR(64).nullable(false), this, ""); /** * The column texera_db.dataset_version.creation_time. */ - public final TableField CREATION_TIME = createField(DSL.name("creation_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, ""); + public final TableField CREATION_TIME = createField(DSL.name("creation_time"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.LOCALDATETIME)), this, ""); - /** - * Create a texera_db.dataset_version table reference - */ - public DatasetVersion() { - this(DSL.name("dataset_version"), null); + private DatasetVersion(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private DatasetVersion(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); } /** @@ -100,12 +101,11 @@ public DatasetVersion(Name alias) { this(alias, DATASET_VERSION); } - private DatasetVersion(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private DatasetVersion(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + /** + * Create a texera_db.dataset_version table reference + */ + public DatasetVersion() { + this(DSL.name("dataset_version"), null); } public DatasetVersion(Table child, ForeignKey key) { @@ -114,17 +114,12 @@ public DatasetVersion(Table child, ForeignKey getIndexes() { - return Arrays.asList(Indexes.DATASET_VERSION_PKEY); + return aliased() ? null : TexeraDb.TEXERA_DB; } @Override public Identity getIdentity() { - return Keys.IDENTITY_DATASET_VERSION; + return (Identity) super.getIdentity(); } @Override @@ -132,18 +127,21 @@ public UniqueKey getPrimaryKey() { return Keys.DATASET_VERSION_PKEY; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.DATASET_VERSION_PKEY); - } - @Override public List> getReferences() { - return Arrays.>asList(Keys.DATASET_VERSION__DATASET_VERSION_DID_FKEY); + return Arrays.asList(Keys.DATASET_VERSION__DATASET_VERSION_DID_FKEY); } + private transient Dataset _dataset; + + /** + * Get the implicit join path to the texera_db.dataset table. + */ public Dataset dataset() { - return new Dataset(this, Keys.DATASET_VERSION__DATASET_VERSION_DID_FKEY); + if (_dataset == null) + _dataset = new Dataset(this, Keys.DATASET_VERSION__DATASET_VERSION_DID_FKEY); + + return _dataset; } @Override @@ -177,7 +175,7 @@ public DatasetVersion rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row6 fieldsRow() { + public Row6 fieldsRow() { return (Row6) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorExecutions.java index 0adcc1a8ecf..978bd142d92 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorExecutions.java @@ -4,7 +4,6 @@ package edu.uci.ics.texera.dao.jooq.generated.tables; -import edu.uci.ics.texera.dao.jooq.generated.Indexes; import edu.uci.ics.texera.dao.jooq.generated.Keys; import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.OperatorExecutionsRecord; @@ -15,15 +14,16 @@ import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; -import org.jooq.Index; import org.jooq.Name; import org.jooq.Record; import org.jooq.Row3; import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; @@ -33,7 +33,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class OperatorExecutions extends TableImpl { - private static final long serialVersionUID = -182123064; + private static final long serialVersionUID = 1L; /** * The reference instance of texera_db.operator_executions @@ -49,47 +49,51 @@ public Class getRecordType() { } /** - * The column texera_db.operator_executions.operator_execution_id. + * The column + * texera_db.operator_executions.operator_execution_id. */ - public final TableField OPERATOR_EXECUTION_ID = createField(DSL.name("operator_execution_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).identity(true).defaultValue(org.jooq.impl.DSL.field("nextval('texera_db.operator_executions_operator_execution_id_seq'::regclass)", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField OPERATOR_EXECUTION_ID = createField(DSL.name("operator_execution_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** - * The column texera_db.operator_executions.workflow_execution_id. + * The column + * texera_db.operator_executions.workflow_execution_id. */ - public final TableField WORKFLOW_EXECUTION_ID = createField(DSL.name("workflow_execution_id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField WORKFLOW_EXECUTION_ID = createField(DSL.name("workflow_execution_id"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.operator_executions.operator_id. */ - public final TableField OPERATOR_ID = createField(DSL.name("operator_id"), org.jooq.impl.SQLDataType.VARCHAR(100).nullable(false), this, ""); + public final TableField OPERATOR_ID = createField(DSL.name("operator_id"), SQLDataType.VARCHAR(100).nullable(false), this, ""); - /** - * Create a texera_db.operator_executions table reference - */ - public OperatorExecutions() { - this(DSL.name("operator_executions"), null); + private OperatorExecutions(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private OperatorExecutions(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); } /** - * Create an aliased texera_db.operator_executions table reference + * Create an aliased texera_db.operator_executions table + * reference */ public OperatorExecutions(String alias) { this(DSL.name(alias), OPERATOR_EXECUTIONS); } /** - * Create an aliased texera_db.operator_executions table reference + * Create an aliased texera_db.operator_executions table + * reference */ public OperatorExecutions(Name alias) { this(alias, OPERATOR_EXECUTIONS); } - private OperatorExecutions(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private OperatorExecutions(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + /** + * Create a texera_db.operator_executions table reference + */ + public OperatorExecutions() { + this(DSL.name("operator_executions"), null); } public OperatorExecutions(Table child, ForeignKey key) { @@ -98,17 +102,12 @@ public OperatorExecutions(Table child, ForeignKey getIndexes() { - return Arrays.asList(Indexes.OPERATOR_EXECUTIONS_PKEY, Indexes.OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID_KEY); + return aliased() ? null : TexeraDb.TEXERA_DB; } @Override public Identity getIdentity() { - return Keys.IDENTITY_OPERATOR_EXECUTIONS; + return (Identity) super.getIdentity(); } @Override @@ -117,17 +116,26 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.OPERATOR_EXECUTIONS_PKEY, Keys.OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID_KEY); + public List> getUniqueKeys() { + return Arrays.asList(Keys.OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID_KEY); } @Override public List> getReferences() { - return Arrays.>asList(Keys.OPERATOR_EXECUTIONS__OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_FKEY); + return Arrays.asList(Keys.OPERATOR_EXECUTIONS__OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_FKEY); } + private transient WorkflowExecutions _workflowExecutions; + + /** + * Get the implicit join path to the + * texera_db.workflow_executions table. + */ public WorkflowExecutions workflowExecutions() { - return new WorkflowExecutions(this, Keys.OPERATOR_EXECUTIONS__OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_FKEY); + if (_workflowExecutions == null) + _workflowExecutions = new WorkflowExecutions(this, Keys.OPERATOR_EXECUTIONS__OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_FKEY); + + return _workflowExecutions; } @Override diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorRuntimeStatistics.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorRuntimeStatistics.java index 1eda68c2ec5..cc30db2aa23 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorRuntimeStatistics.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorRuntimeStatistics.java @@ -8,7 +8,7 @@ import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.OperatorRuntimeStatisticsRecord; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.Arrays; import java.util.List; @@ -20,8 +20,10 @@ import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; @@ -31,10 +33,11 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class OperatorRuntimeStatistics extends TableImpl { - private static final long serialVersionUID = 1626867448; + private static final long serialVersionUID = 1L; /** - * The reference instance of texera_db.operator_runtime_statistics + * The reference instance of + * texera_db.operator_runtime_statistics */ public static final OperatorRuntimeStatistics OPERATOR_RUNTIME_STATISTICS = new OperatorRuntimeStatistics(); @@ -47,77 +50,86 @@ public Class getRecordType() { } /** - * The column texera_db.operator_runtime_statistics.operator_execution_id. + * The column + * texera_db.operator_runtime_statistics.operator_execution_id. */ - public final TableField OPERATOR_EXECUTION_ID = createField(DSL.name("operator_execution_id"), org.jooq.impl.SQLDataType.BIGINT.nullable(false), this, ""); + public final TableField OPERATOR_EXECUTION_ID = createField(DSL.name("operator_execution_id"), SQLDataType.BIGINT.nullable(false), this, ""); /** * The column texera_db.operator_runtime_statistics.time. */ - public final TableField TIME = createField(DSL.name("time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP(6)", org.jooq.impl.SQLDataType.TIMESTAMP)), this, ""); + public final TableField TIME = createField(DSL.name("time"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP(6)", SQLDataType.LOCALDATETIME)), this, ""); /** - * The column texera_db.operator_runtime_statistics.input_tuple_cnt. + * The column + * texera_db.operator_runtime_statistics.input_tuple_cnt. */ - public final TableField INPUT_TUPLE_CNT = createField(DSL.name("input_tuple_cnt"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("0", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField INPUT_TUPLE_CNT = createField(DSL.name("input_tuple_cnt"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field("0", SQLDataType.BIGINT)), this, ""); /** - * The column texera_db.operator_runtime_statistics.output_tuple_cnt. + * The column + * texera_db.operator_runtime_statistics.output_tuple_cnt. */ - public final TableField OUTPUT_TUPLE_CNT = createField(DSL.name("output_tuple_cnt"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("0", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField OUTPUT_TUPLE_CNT = createField(DSL.name("output_tuple_cnt"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field("0", SQLDataType.BIGINT)), this, ""); /** * The column texera_db.operator_runtime_statistics.status. */ - public final TableField STATUS = createField(DSL.name("status"), org.jooq.impl.SQLDataType.SMALLINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("1", org.jooq.impl.SQLDataType.SMALLINT)), this, ""); + public final TableField STATUS = createField(DSL.name("status"), SQLDataType.SMALLINT.nullable(false).defaultValue(DSL.field("1", SQLDataType.SMALLINT)), this, ""); /** - * The column texera_db.operator_runtime_statistics.data_processing_time. + * The column + * texera_db.operator_runtime_statistics.data_processing_time. */ - public final TableField DATA_PROCESSING_TIME = createField(DSL.name("data_processing_time"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("0", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField DATA_PROCESSING_TIME = createField(DSL.name("data_processing_time"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field("0", SQLDataType.BIGINT)), this, ""); /** - * The column texera_db.operator_runtime_statistics.control_processing_time. + * The column + * texera_db.operator_runtime_statistics.control_processing_time. */ - public final TableField CONTROL_PROCESSING_TIME = createField(DSL.name("control_processing_time"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("0", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField CONTROL_PROCESSING_TIME = createField(DSL.name("control_processing_time"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field("0", SQLDataType.BIGINT)), this, ""); /** * The column texera_db.operator_runtime_statistics.idle_time. */ - public final TableField IDLE_TIME = createField(DSL.name("idle_time"), org.jooq.impl.SQLDataType.BIGINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("0", org.jooq.impl.SQLDataType.BIGINT)), this, ""); + public final TableField IDLE_TIME = createField(DSL.name("idle_time"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field("0", SQLDataType.BIGINT)), this, ""); /** - * The column texera_db.operator_runtime_statistics.num_workers. + * The column + * texera_db.operator_runtime_statistics.num_workers. */ - public final TableField NUM_WORKERS = createField(DSL.name("num_workers"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.field("0", org.jooq.impl.SQLDataType.INTEGER)), this, ""); + public final TableField NUM_WORKERS = createField(DSL.name("num_workers"), SQLDataType.INTEGER.nullable(false).defaultValue(DSL.field("0", SQLDataType.INTEGER)), this, ""); - /** - * Create a texera_db.operator_runtime_statistics table reference - */ - public OperatorRuntimeStatistics() { - this(DSL.name("operator_runtime_statistics"), null); + private OperatorRuntimeStatistics(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private OperatorRuntimeStatistics(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); } /** - * Create an aliased texera_db.operator_runtime_statistics table reference + * Create an aliased texera_db.operator_runtime_statistics + * table reference */ public OperatorRuntimeStatistics(String alias) { this(DSL.name(alias), OPERATOR_RUNTIME_STATISTICS); } /** - * Create an aliased texera_db.operator_runtime_statistics table reference + * Create an aliased texera_db.operator_runtime_statistics + * table reference */ public OperatorRuntimeStatistics(Name alias) { this(alias, OPERATOR_RUNTIME_STATISTICS); } - private OperatorRuntimeStatistics(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private OperatorRuntimeStatistics(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + /** + * Create a texera_db.operator_runtime_statistics table + * reference + */ + public OperatorRuntimeStatistics() { + this(DSL.name("operator_runtime_statistics"), null); } public OperatorRuntimeStatistics(Table child, ForeignKey key) { @@ -126,7 +138,7 @@ public OperatorRuntimeStatistics(Table child, ForeignKey getPrimaryKey() { return Keys.OPERATOR_RUNTIME_STATISTICS_PKEY; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.OPERATOR_RUNTIME_STATISTICS_PKEY); - } - @Override public List> getReferences() { - return Arrays.>asList(Keys.OPERATOR_RUNTIME_STATISTICS__OPERATOR_RUNTIME_STATISTICS_OPERATOR_EXECUTION_ID_FKEY); + return Arrays.asList(Keys.OPERATOR_RUNTIME_STATISTICS__OPERATOR_RUNTIME_STATISTICS_OPERATOR_EXECUTION_ID_FKEY); } + private transient OperatorExecutions _operatorExecutions; + + /** + * Get the implicit join path to the + * texera_db.operator_executions table. + */ public OperatorExecutions operatorExecutions() { - return new OperatorExecutions(this, Keys.OPERATOR_RUNTIME_STATISTICS__OPERATOR_RUNTIME_STATISTICS_OPERATOR_EXECUTION_ID_FKEY); + if (_operatorExecutions == null) + _operatorExecutions = new OperatorExecutions(this, Keys.OPERATOR_RUNTIME_STATISTICS__OPERATOR_RUNTIME_STATISTICS_OPERATOR_EXECUTION_ID_FKEY); + + return _operatorExecutions; } @Override @@ -179,7 +195,7 @@ public OperatorRuntimeStatistics rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row9 fieldsRow() { + public Row9 fieldsRow() { return (Row9) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Project.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Project.java index ec35fb7cd35..ba8a95b482a 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Project.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Project.java @@ -4,27 +4,27 @@ package edu.uci.ics.texera.dao.jooq.generated.tables; -import edu.uci.ics.texera.dao.jooq.generated.Indexes; import edu.uci.ics.texera.dao.jooq.generated.Keys; import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.ProjectRecord; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.Arrays; import java.util.List; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; -import org.jooq.Index; import org.jooq.Name; import org.jooq.Record; import org.jooq.Row6; import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; @@ -34,7 +34,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Project extends TableImpl { - private static final long serialVersionUID = -1098497844; + private static final long serialVersionUID = 1L; /** * The reference instance of texera_db.project @@ -52,38 +52,39 @@ public Class getRecordType() { /** * The column texera_db.project.pid. */ - public final TableField PID = createField(DSL.name("pid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true).defaultValue(org.jooq.impl.DSL.field("nextval('texera_db.project_pid_seq'::regclass)", org.jooq.impl.SQLDataType.INTEGER)), this, ""); + public final TableField PID = createField(DSL.name("pid"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); /** * The column texera_db.project.name. */ - public final TableField NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.VARCHAR(128).nullable(false), this, ""); + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(128).nullable(false), this, ""); /** * The column texera_db.project.description. */ - public final TableField DESCRIPTION = createField(DSL.name("description"), org.jooq.impl.SQLDataType.VARCHAR(10000), this, ""); + public final TableField DESCRIPTION = createField(DSL.name("description"), SQLDataType.VARCHAR(10000), this, ""); /** * The column texera_db.project.owner_id. */ - public final TableField OWNER_ID = createField(DSL.name("owner_id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField OWNER_ID = createField(DSL.name("owner_id"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.project.creation_time. */ - public final TableField CREATION_TIME = createField(DSL.name("creation_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, ""); + public final TableField CREATION_TIME = createField(DSL.name("creation_time"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.LOCALDATETIME)), this, ""); /** * The column texera_db.project.color. */ - public final TableField COLOR = createField(DSL.name("color"), org.jooq.impl.SQLDataType.VARCHAR(6), this, ""); + public final TableField COLOR = createField(DSL.name("color"), SQLDataType.VARCHAR(6), this, ""); - /** - * Create a texera_db.project table reference - */ - public Project() { - this(DSL.name("project"), null); + private Project(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private Project(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); } /** @@ -100,12 +101,11 @@ public Project(Name alias) { this(alias, PROJECT); } - private Project(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private Project(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + /** + * Create a texera_db.project table reference + */ + public Project() { + this(DSL.name("project"), null); } public Project(Table child, ForeignKey key) { @@ -114,17 +114,12 @@ public Project(Table child, ForeignKey k @Override public Schema getSchema() { - return TexeraDb.TEXERA_DB; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.PROJECT_OWNER_ID_NAME_KEY, Indexes.PROJECT_PKEY); + return aliased() ? null : TexeraDb.TEXERA_DB; } @Override public Identity getIdentity() { - return Keys.IDENTITY_PROJECT; + return (Identity) super.getIdentity(); } @Override @@ -133,17 +128,25 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.PROJECT_PKEY, Keys.PROJECT_OWNER_ID_NAME_KEY); + public List> getUniqueKeys() { + return Arrays.asList(Keys.PROJECT_OWNER_ID_NAME_KEY); } @Override public List> getReferences() { - return Arrays.>asList(Keys.PROJECT__PROJECT_OWNER_ID_FKEY); + return Arrays.asList(Keys.PROJECT__PROJECT_OWNER_ID_FKEY); } + private transient User _user; + + /** + * Get the implicit join path to the texera_db.user table. + */ public User user() { - return new User(this, Keys.PROJECT__PROJECT_OWNER_ID_FKEY); + if (_user == null) + _user = new User(this, Keys.PROJECT__PROJECT_OWNER_ID_FKEY); + + return _user; } @Override @@ -177,7 +180,7 @@ public Project rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row6 fieldsRow() { + public Row6 fieldsRow() { return (Row6) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/ProjectUserAccess.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/ProjectUserAccess.java index bad8b021a81..123107ec068 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/ProjectUserAccess.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/ProjectUserAccess.java @@ -4,7 +4,6 @@ package edu.uci.ics.texera.dao.jooq.generated.tables; -import edu.uci.ics.texera.dao.jooq.generated.Indexes; import edu.uci.ics.texera.dao.jooq.generated.Keys; import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum; @@ -15,15 +14,16 @@ import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Index; import org.jooq.Name; import org.jooq.Record; import org.jooq.Row3; import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; @@ -33,7 +33,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class ProjectUserAccess extends TableImpl { - private static final long serialVersionUID = -929790580; + private static final long serialVersionUID = 1L; /** * The reference instance of texera_db.project_user_access @@ -51,45 +51,47 @@ public Class getRecordType() { /** * The column texera_db.project_user_access.uid. */ - public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField UID = createField(DSL.name("uid"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.project_user_access.pid. */ - public final TableField PID = createField(DSL.name("pid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField PID = createField(DSL.name("pid"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.project_user_access.privilege. */ - public final TableField PRIVILEGE = createField(DSL.name("privilege"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false).defaultValue(org.jooq.impl.DSL.field("'NONE'::texera_db.privilege_enum", org.jooq.impl.SQLDataType.VARCHAR)).asEnumDataType(edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum.class), this, ""); + public final TableField PRIVILEGE = createField(DSL.name("privilege"), SQLDataType.VARCHAR.nullable(false).defaultValue(DSL.field("'NONE'::texera_db.privilege_enum", SQLDataType.VARCHAR)).asEnumDataType(edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum.class), this, ""); - /** - * Create a texera_db.project_user_access table reference - */ - public ProjectUserAccess() { - this(DSL.name("project_user_access"), null); + private ProjectUserAccess(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private ProjectUserAccess(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); } /** - * Create an aliased texera_db.project_user_access table reference + * Create an aliased texera_db.project_user_access table + * reference */ public ProjectUserAccess(String alias) { this(DSL.name(alias), PROJECT_USER_ACCESS); } /** - * Create an aliased texera_db.project_user_access table reference + * Create an aliased texera_db.project_user_access table + * reference */ public ProjectUserAccess(Name alias) { this(alias, PROJECT_USER_ACCESS); } - private ProjectUserAccess(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private ProjectUserAccess(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + /** + * Create a texera_db.project_user_access table reference + */ + public ProjectUserAccess() { + this(DSL.name("project_user_access"), null); } public ProjectUserAccess(Table child, ForeignKey key) { @@ -98,12 +100,7 @@ public ProjectUserAccess(Table child, ForeignKey getIndexes() { - return Arrays.asList(Indexes.PROJECT_USER_ACCESS_PKEY); + return aliased() ? null : TexeraDb.TEXERA_DB; } @Override @@ -111,22 +108,32 @@ public UniqueKey getPrimaryKey() { return Keys.PROJECT_USER_ACCESS_PKEY; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.PROJECT_USER_ACCESS_PKEY); - } - @Override public List> getReferences() { - return Arrays.>asList(Keys.PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_UID_FKEY, Keys.PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_PID_FKEY); + return Arrays.asList(Keys.PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_UID_FKEY, Keys.PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_PID_FKEY); } + private transient User _user; + private transient Project _project; + + /** + * Get the implicit join path to the texera_db.user table. + */ public User user() { - return new User(this, Keys.PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_UID_FKEY); + if (_user == null) + _user = new User(this, Keys.PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_UID_FKEY); + + return _user; } + /** + * Get the implicit join path to the texera_db.project table. + */ public Project project() { - return new Project(this, Keys.PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_PID_FKEY); + if (_project == null) + _project = new Project(this, Keys.PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_PID_FKEY); + + return _project; } @Override diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/PublicProject.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/PublicProject.java index 23cd2762fba..3abb1398191 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/PublicProject.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/PublicProject.java @@ -4,7 +4,6 @@ package edu.uci.ics.texera.dao.jooq.generated.tables; -import edu.uci.ics.texera.dao.jooq.generated.Indexes; import edu.uci.ics.texera.dao.jooq.generated.Keys; import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.PublicProjectRecord; @@ -14,15 +13,16 @@ import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Index; import org.jooq.Name; import org.jooq.Record; import org.jooq.Row2; import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; @@ -32,7 +32,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class PublicProject extends TableImpl { - private static final long serialVersionUID = -400941639; + private static final long serialVersionUID = 1L; /** * The reference instance of texera_db.public_project @@ -50,18 +50,19 @@ public Class getRecordType() { /** * The column texera_db.public_project.pid. */ - public final TableField PID = createField(DSL.name("pid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField PID = createField(DSL.name("pid"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.public_project.uid. */ - public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGER, this, ""); + public final TableField UID = createField(DSL.name("uid"), SQLDataType.INTEGER, this, ""); - /** - * Create a texera_db.public_project table reference - */ - public PublicProject() { - this(DSL.name("public_project"), null); + private PublicProject(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private PublicProject(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); } /** @@ -78,12 +79,11 @@ public PublicProject(Name alias) { this(alias, PUBLIC_PROJECT); } - private PublicProject(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private PublicProject(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + /** + * Create a texera_db.public_project table reference + */ + public PublicProject() { + this(DSL.name("public_project"), null); } public PublicProject(Table child, ForeignKey key) { @@ -92,12 +92,7 @@ public PublicProject(Table child, ForeignKey getIndexes() { - return Arrays.asList(Indexes.PUBLIC_PROJECT_PKEY); + return aliased() ? null : TexeraDb.TEXERA_DB; } @Override @@ -105,18 +100,21 @@ public UniqueKey getPrimaryKey() { return Keys.PUBLIC_PROJECT_PKEY; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.PUBLIC_PROJECT_PKEY); - } - @Override public List> getReferences() { - return Arrays.>asList(Keys.PUBLIC_PROJECT__PUBLIC_PROJECT_PID_FKEY); + return Arrays.asList(Keys.PUBLIC_PROJECT__PUBLIC_PROJECT_PID_FKEY); } + private transient Project _project; + + /** + * Get the implicit join path to the texera_db.project table. + */ public Project project() { - return new Project(this, Keys.PUBLIC_PROJECT__PUBLIC_PROJECT_PID_FKEY); + if (_project == null) + _project = new Project(this, Keys.PUBLIC_PROJECT__PUBLIC_PROJECT_PID_FKEY); + + return _project; } @Override diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/User.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/User.java index ec149556c94..97a058a05ce 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/User.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/User.java @@ -4,7 +4,6 @@ package edu.uci.ics.texera.dao.jooq.generated.tables; -import edu.uci.ics.texera.dao.jooq.generated.Indexes; import edu.uci.ics.texera.dao.jooq.generated.Keys; import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.enums.UserRoleEnum; @@ -13,18 +12,21 @@ import java.util.Arrays; import java.util.List; +import org.jooq.Check; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; -import org.jooq.Index; import org.jooq.Name; import org.jooq.Record; import org.jooq.Row7; import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.Internal; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; @@ -34,7 +36,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class User extends TableImpl { - private static final long serialVersionUID = -544130431; + private static final long serialVersionUID = 1L; /** * The reference instance of texera_db.user @@ -52,43 +54,44 @@ public Class getRecordType() { /** * The column texera_db.user.uid. */ - public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true).defaultValue(org.jooq.impl.DSL.field("nextval('texera_db.user_uid_seq'::regclass)", org.jooq.impl.SQLDataType.INTEGER)), this, ""); + public final TableField UID = createField(DSL.name("uid"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); /** * The column texera_db.user.name. */ - public final TableField NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.VARCHAR(256).nullable(false), this, ""); + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(256).nullable(false), this, ""); /** * The column texera_db.user.email. */ - public final TableField EMAIL = createField(DSL.name("email"), org.jooq.impl.SQLDataType.VARCHAR(256), this, ""); + public final TableField EMAIL = createField(DSL.name("email"), SQLDataType.VARCHAR(256), this, ""); /** * The column texera_db.user.password. */ - public final TableField PASSWORD = createField(DSL.name("password"), org.jooq.impl.SQLDataType.VARCHAR(256), this, ""); + public final TableField PASSWORD = createField(DSL.name("password"), SQLDataType.VARCHAR(256), this, ""); /** * The column texera_db.user.google_id. */ - public final TableField GOOGLE_ID = createField(DSL.name("google_id"), org.jooq.impl.SQLDataType.VARCHAR(256), this, ""); + public final TableField GOOGLE_ID = createField(DSL.name("google_id"), SQLDataType.VARCHAR(256), this, ""); /** * The column texera_db.user.role. */ - public final TableField ROLE = createField(DSL.name("role"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false).defaultValue(org.jooq.impl.DSL.field("'INACTIVE'::texera_db.user_role_enum", org.jooq.impl.SQLDataType.VARCHAR)).asEnumDataType(edu.uci.ics.texera.dao.jooq.generated.enums.UserRoleEnum.class), this, ""); + public final TableField ROLE = createField(DSL.name("role"), SQLDataType.VARCHAR.nullable(false).defaultValue(DSL.field("'INACTIVE'::texera_db.user_role_enum", SQLDataType.VARCHAR)).asEnumDataType(edu.uci.ics.texera.dao.jooq.generated.enums.UserRoleEnum.class), this, ""); /** * The column texera_db.user.google_avatar. */ - public final TableField GOOGLE_AVATAR = createField(DSL.name("google_avatar"), org.jooq.impl.SQLDataType.VARCHAR(100), this, ""); + public final TableField GOOGLE_AVATAR = createField(DSL.name("google_avatar"), SQLDataType.VARCHAR(100), this, ""); - /** - * Create a texera_db.user table reference - */ - public User() { - this(DSL.name("user"), null); + private User(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private User(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); } /** @@ -105,12 +108,11 @@ public User(Name alias) { this(alias, USER); } - private User(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private User(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + /** + * Create a texera_db.user table reference + */ + public User() { + this(DSL.name("user"), null); } public User(Table child, ForeignKey key) { @@ -119,17 +121,12 @@ public User(Table child, ForeignKey key) { @Override public Schema getSchema() { - return TexeraDb.TEXERA_DB; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.USER_EMAIL_KEY, Indexes.USER_GOOGLE_ID_KEY, Indexes.USER_PKEY); + return aliased() ? null : TexeraDb.TEXERA_DB; } @Override public Identity getIdentity() { - return Keys.IDENTITY_USER; + return (Identity) super.getIdentity(); } @Override @@ -138,8 +135,15 @@ public UniqueKey getPrimaryKey() { } @Override - public List> getKeys() { - return Arrays.>asList(Keys.USER_PKEY, Keys.USER_EMAIL_KEY, Keys.USER_GOOGLE_ID_KEY); + public List> getUniqueKeys() { + return Arrays.asList(Keys.USER_EMAIL_KEY, Keys.USER_GOOGLE_ID_KEY); + } + + @Override + public List> getChecks() { + return Arrays.asList( + Internal.createCheck(this, DSL.name("ck_nulltest"), "(((password IS NOT NULL) OR (google_id IS NOT NULL)))", true) + ); } @Override diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserActivity.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserActivity.java index e060b7d1a3f..27570b20a9f 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserActivity.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserActivity.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.UserActivityRecord; -import java.sql.Timestamp; +import java.time.LocalDateTime; import org.jooq.Field; import org.jooq.ForeignKey; @@ -17,7 +17,9 @@ import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; @@ -27,7 +29,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class UserActivity extends TableImpl { - private static final long serialVersionUID = -1337502871; + private static final long serialVersionUID = 1L; /** * The reference instance of texera_db.user_activity @@ -45,38 +47,39 @@ public Class getRecordType() { /** * The column texera_db.user_activity.uid. */ - public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.field("0", org.jooq.impl.SQLDataType.INTEGER)), this, ""); + public final TableField UID = createField(DSL.name("uid"), SQLDataType.INTEGER.nullable(false).defaultValue(DSL.field("0", SQLDataType.INTEGER)), this, ""); /** * The column texera_db.user_activity.id. */ - public final TableField ID = createField(DSL.name("id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField ID = createField(DSL.name("id"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.user_activity.type. */ - public final TableField TYPE = createField(DSL.name("type"), org.jooq.impl.SQLDataType.VARCHAR(15).nullable(false), this, ""); + public final TableField TYPE = createField(DSL.name("type"), SQLDataType.VARCHAR(15).nullable(false), this, ""); /** * The column texera_db.user_activity.ip. */ - public final TableField IP = createField(DSL.name("ip"), org.jooq.impl.SQLDataType.VARCHAR(15), this, ""); + public final TableField IP = createField(DSL.name("ip"), SQLDataType.VARCHAR(15), this, ""); /** * The column texera_db.user_activity.activate. */ - public final TableField ACTIVATE = createField(DSL.name("activate"), org.jooq.impl.SQLDataType.VARCHAR(10).nullable(false), this, ""); + public final TableField ACTIVATE = createField(DSL.name("activate"), SQLDataType.VARCHAR(10).nullable(false), this, ""); /** * The column texera_db.user_activity.activity_time. */ - public final TableField ACTIVITY_TIME = createField(DSL.name("activity_time"), org.jooq.impl.SQLDataType.TIMESTAMP.defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, ""); + public final TableField ACTIVITY_TIME = createField(DSL.name("activity_time"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.LOCALDATETIME)), this, ""); - /** - * Create a texera_db.user_activity table reference - */ - public UserActivity() { - this(DSL.name("user_activity"), null); + private UserActivity(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private UserActivity(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); } /** @@ -93,12 +96,11 @@ public UserActivity(Name alias) { this(alias, USER_ACTIVITY); } - private UserActivity(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private UserActivity(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + /** + * Create a texera_db.user_activity table reference + */ + public UserActivity() { + this(DSL.name("user_activity"), null); } public UserActivity(Table child, ForeignKey key) { @@ -107,7 +109,7 @@ public UserActivity(Table child, ForeignKey fieldsRow() { + public Row6 fieldsRow() { return (Row6) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserConfig.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserConfig.java index 1fe6ee571a6..7c10b2b1f05 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserConfig.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserConfig.java @@ -4,7 +4,6 @@ package edu.uci.ics.texera.dao.jooq.generated.tables; -import edu.uci.ics.texera.dao.jooq.generated.Indexes; import edu.uci.ics.texera.dao.jooq.generated.Keys; import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.UserConfigRecord; @@ -14,15 +13,16 @@ import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Index; import org.jooq.Name; import org.jooq.Record; import org.jooq.Row3; import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; @@ -32,7 +32,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class UserConfig extends TableImpl { - private static final long serialVersionUID = 147042662; + private static final long serialVersionUID = 1L; /** * The reference instance of texera_db.user_config @@ -50,23 +50,24 @@ public Class getRecordType() { /** * The column texera_db.user_config.uid. */ - public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField UID = createField(DSL.name("uid"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.user_config.key. */ - public final TableField KEY = createField(DSL.name("key"), org.jooq.impl.SQLDataType.VARCHAR(256).nullable(false), this, ""); + public final TableField KEY = createField(DSL.name("key"), SQLDataType.VARCHAR(256).nullable(false), this, ""); /** * The column texera_db.user_config.value. */ - public final TableField VALUE = createField(DSL.name("value"), org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); + public final TableField VALUE = createField(DSL.name("value"), SQLDataType.CLOB.nullable(false), this, ""); - /** - * Create a texera_db.user_config table reference - */ - public UserConfig() { - this(DSL.name("user_config"), null); + private UserConfig(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private UserConfig(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); } /** @@ -83,12 +84,11 @@ public UserConfig(Name alias) { this(alias, USER_CONFIG); } - private UserConfig(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private UserConfig(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + /** + * Create a texera_db.user_config table reference + */ + public UserConfig() { + this(DSL.name("user_config"), null); } public UserConfig(Table child, ForeignKey key) { @@ -97,12 +97,7 @@ public UserConfig(Table child, ForeignKey getIndexes() { - return Arrays.asList(Indexes.USER_CONFIG_PKEY); + return aliased() ? null : TexeraDb.TEXERA_DB; } @Override @@ -110,18 +105,21 @@ public UniqueKey getPrimaryKey() { return Keys.USER_CONFIG_PKEY; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.USER_CONFIG_PKEY); - } - @Override public List> getReferences() { - return Arrays.>asList(Keys.USER_CONFIG__USER_CONFIG_UID_FKEY); + return Arrays.asList(Keys.USER_CONFIG__USER_CONFIG_UID_FKEY); } + private transient User _user; + + /** + * Get the implicit join path to the texera_db.user table. + */ public User user() { - return new User(this, Keys.USER_CONFIG__USER_CONFIG_UID_FKEY); + if (_user == null) + _user = new User(this, Keys.USER_CONFIG__USER_CONFIG_UID_FKEY); + + return _user; } @Override diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Workflow.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Workflow.java index 7517516c128..cf3cab2f18b 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Workflow.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Workflow.java @@ -4,27 +4,25 @@ package edu.uci.ics.texera.dao.jooq.generated.tables; -import edu.uci.ics.texera.dao.jooq.generated.Indexes; import edu.uci.ics.texera.dao.jooq.generated.Keys; import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowRecord; -import java.sql.Timestamp; -import java.util.Arrays; -import java.util.List; +import java.time.LocalDateTime; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; -import org.jooq.Index; import org.jooq.Name; import org.jooq.Record; import org.jooq.Row7; import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; @@ -34,7 +32,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Workflow extends TableImpl { - private static final long serialVersionUID = 563652100; + private static final long serialVersionUID = 1L; /** * The reference instance of texera_db.workflow @@ -52,43 +50,44 @@ public Class getRecordType() { /** * The column texera_db.workflow.wid. */ - public final TableField WID = createField(DSL.name("wid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true).defaultValue(org.jooq.impl.DSL.field("nextval('texera_db.workflow_wid_seq'::regclass)", org.jooq.impl.SQLDataType.INTEGER)), this, ""); + public final TableField WID = createField(DSL.name("wid"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); /** * The column texera_db.workflow.name. */ - public final TableField NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.VARCHAR(128).nullable(false), this, ""); + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(128).nullable(false), this, ""); /** * The column texera_db.workflow.description. */ - public final TableField DESCRIPTION = createField(DSL.name("description"), org.jooq.impl.SQLDataType.VARCHAR(500), this, ""); + public final TableField DESCRIPTION = createField(DSL.name("description"), SQLDataType.VARCHAR(500), this, ""); /** * The column texera_db.workflow.content. */ - public final TableField CONTENT = createField(DSL.name("content"), org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); + public final TableField CONTENT = createField(DSL.name("content"), SQLDataType.CLOB.nullable(false), this, ""); /** * The column texera_db.workflow.creation_time. */ - public final TableField CREATION_TIME = createField(DSL.name("creation_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, ""); + public final TableField CREATION_TIME = createField(DSL.name("creation_time"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.LOCALDATETIME)), this, ""); /** * The column texera_db.workflow.last_modified_time. */ - public final TableField LAST_MODIFIED_TIME = createField(DSL.name("last_modified_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, ""); + public final TableField LAST_MODIFIED_TIME = createField(DSL.name("last_modified_time"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.LOCALDATETIME)), this, ""); /** * The column texera_db.workflow.is_public. */ - public final TableField IS_PUBLIC = createField(DSL.name("is_public"), org.jooq.impl.SQLDataType.BOOLEAN.nullable(false).defaultValue(org.jooq.impl.DSL.field("false", org.jooq.impl.SQLDataType.BOOLEAN)), this, ""); + public final TableField IS_PUBLIC = createField(DSL.name("is_public"), SQLDataType.BOOLEAN.nullable(false).defaultValue(DSL.field("false", SQLDataType.BOOLEAN)), this, ""); - /** - * Create a texera_db.workflow table reference - */ - public Workflow() { - this(DSL.name("workflow"), null); + private Workflow(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private Workflow(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); } /** @@ -105,12 +104,11 @@ public Workflow(Name alias) { this(alias, WORKFLOW); } - private Workflow(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private Workflow(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + /** + * Create a texera_db.workflow table reference + */ + public Workflow() { + this(DSL.name("workflow"), null); } public Workflow(Table child, ForeignKey key) { @@ -119,17 +117,12 @@ public Workflow(Table child, ForeignKey @Override public Schema getSchema() { - return TexeraDb.TEXERA_DB; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.WORKFLOW_PKEY); + return aliased() ? null : TexeraDb.TEXERA_DB; } @Override public Identity getIdentity() { - return Keys.IDENTITY_WORKFLOW; + return (Identity) super.getIdentity(); } @Override @@ -137,11 +130,6 @@ public UniqueKey getPrimaryKey() { return Keys.WORKFLOW_PKEY; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.WORKFLOW_PKEY); - } - @Override public Workflow as(String alias) { return new Workflow(DSL.name(alias), this); @@ -173,7 +161,7 @@ public Workflow rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row7 fieldsRow() { + public Row7 fieldsRow() { return (Row7) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowExecutions.java index 11325dc83ac..c136a188f1c 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowExecutions.java @@ -4,27 +4,27 @@ package edu.uci.ics.texera.dao.jooq.generated.tables; -import edu.uci.ics.texera.dao.jooq.generated.Indexes; import edu.uci.ics.texera.dao.jooq.generated.Keys; import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowExecutionsRecord; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.Arrays; import java.util.List; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; -import org.jooq.Index; import org.jooq.Name; import org.jooq.Record; import org.jooq.Row11; import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; @@ -34,7 +34,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowExecutions extends TableImpl { - private static final long serialVersionUID = -667560618; + private static final long serialVersionUID = 1L; /** * The reference instance of texera_db.workflow_executions @@ -52,85 +52,88 @@ public Class getRecordType() { /** * The column texera_db.workflow_executions.eid. */ - public final TableField EID = createField(DSL.name("eid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true).defaultValue(org.jooq.impl.DSL.field("nextval('texera_db.workflow_executions_eid_seq'::regclass)", org.jooq.impl.SQLDataType.INTEGER)), this, ""); + public final TableField EID = createField(DSL.name("eid"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); /** * The column texera_db.workflow_executions.vid. */ - public final TableField VID = createField(DSL.name("vid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField VID = createField(DSL.name("vid"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.workflow_executions.uid. */ - public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField UID = createField(DSL.name("uid"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.workflow_executions.status. */ - public final TableField STATUS = createField(DSL.name("status"), org.jooq.impl.SQLDataType.SMALLINT.nullable(false).defaultValue(org.jooq.impl.DSL.field("1", org.jooq.impl.SQLDataType.SMALLINT)), this, ""); + public final TableField STATUS = createField(DSL.name("status"), SQLDataType.SMALLINT.nullable(false).defaultValue(DSL.field("1", SQLDataType.SMALLINT)), this, ""); /** * The column texera_db.workflow_executions.result. */ - public final TableField RESULT = createField(DSL.name("result"), org.jooq.impl.SQLDataType.CLOB, this, ""); + public final TableField RESULT = createField(DSL.name("result"), SQLDataType.CLOB, this, ""); /** * The column texera_db.workflow_executions.starting_time. */ - public final TableField STARTING_TIME = createField(DSL.name("starting_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, ""); + public final TableField STARTING_TIME = createField(DSL.name("starting_time"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.LOCALDATETIME)), this, ""); /** * The column texera_db.workflow_executions.last_update_time. */ - public final TableField LAST_UPDATE_TIME = createField(DSL.name("last_update_time"), org.jooq.impl.SQLDataType.TIMESTAMP, this, ""); + public final TableField LAST_UPDATE_TIME = createField(DSL.name("last_update_time"), SQLDataType.LOCALDATETIME(6), this, ""); /** * The column texera_db.workflow_executions.bookmarked. */ - public final TableField BOOKMARKED = createField(DSL.name("bookmarked"), org.jooq.impl.SQLDataType.BOOLEAN.defaultValue(org.jooq.impl.DSL.field("false", org.jooq.impl.SQLDataType.BOOLEAN)), this, ""); + public final TableField BOOKMARKED = createField(DSL.name("bookmarked"), SQLDataType.BOOLEAN.defaultValue(DSL.field("false", SQLDataType.BOOLEAN)), this, ""); /** * The column texera_db.workflow_executions.name. */ - public final TableField NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.VARCHAR(128).nullable(false).defaultValue(org.jooq.impl.DSL.field("'Untitled Execution'::character varying", org.jooq.impl.SQLDataType.VARCHAR)), this, ""); + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(128).nullable(false).defaultValue(DSL.field("'Untitled Execution'::character varying", SQLDataType.VARCHAR)), this, ""); /** - * The column texera_db.workflow_executions.environment_version. + * The column + * texera_db.workflow_executions.environment_version. */ - public final TableField ENVIRONMENT_VERSION = createField(DSL.name("environment_version"), org.jooq.impl.SQLDataType.VARCHAR(128).nullable(false), this, ""); + public final TableField ENVIRONMENT_VERSION = createField(DSL.name("environment_version"), SQLDataType.VARCHAR(128).nullable(false), this, ""); /** * The column texera_db.workflow_executions.log_location. */ - public final TableField LOG_LOCATION = createField(DSL.name("log_location"), org.jooq.impl.SQLDataType.CLOB, this, ""); + public final TableField LOG_LOCATION = createField(DSL.name("log_location"), SQLDataType.CLOB, this, ""); - /** - * Create a texera_db.workflow_executions table reference - */ - public WorkflowExecutions() { - this(DSL.name("workflow_executions"), null); + private WorkflowExecutions(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private WorkflowExecutions(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); } /** - * Create an aliased texera_db.workflow_executions table reference + * Create an aliased texera_db.workflow_executions table + * reference */ public WorkflowExecutions(String alias) { this(DSL.name(alias), WORKFLOW_EXECUTIONS); } /** - * Create an aliased texera_db.workflow_executions table reference + * Create an aliased texera_db.workflow_executions table + * reference */ public WorkflowExecutions(Name alias) { this(alias, WORKFLOW_EXECUTIONS); } - private WorkflowExecutions(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private WorkflowExecutions(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + /** + * Create a texera_db.workflow_executions table reference + */ + public WorkflowExecutions() { + this(DSL.name("workflow_executions"), null); } public WorkflowExecutions(Table child, ForeignKey key) { @@ -139,17 +142,12 @@ public WorkflowExecutions(Table child, ForeignKey getIndexes() { - return Arrays.asList(Indexes.WORKFLOW_EXECUTIONS_PKEY); + return aliased() ? null : TexeraDb.TEXERA_DB; } @Override public Identity getIdentity() { - return Keys.IDENTITY_WORKFLOW_EXECUTIONS; + return (Identity) super.getIdentity(); } @Override @@ -157,22 +155,33 @@ public UniqueKey getPrimaryKey() { return Keys.WORKFLOW_EXECUTIONS_PKEY; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.WORKFLOW_EXECUTIONS_PKEY); - } - @Override public List> getReferences() { - return Arrays.>asList(Keys.WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_VID_FKEY, Keys.WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_UID_FKEY); + return Arrays.asList(Keys.WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_VID_FKEY, Keys.WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_UID_FKEY); } + private transient WorkflowVersion _workflowVersion; + private transient User _user; + + /** + * Get the implicit join path to the texera_db.workflow_version + * table. + */ public WorkflowVersion workflowVersion() { - return new WorkflowVersion(this, Keys.WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_VID_FKEY); + if (_workflowVersion == null) + _workflowVersion = new WorkflowVersion(this, Keys.WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_VID_FKEY); + + return _workflowVersion; } + /** + * Get the implicit join path to the texera_db.user table. + */ public User user() { - return new User(this, Keys.WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_UID_FKEY); + if (_user == null) + _user = new User(this, Keys.WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_UID_FKEY); + + return _user; } @Override @@ -206,7 +215,7 @@ public WorkflowExecutions rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row11 fieldsRow() { + public Row11 fieldsRow() { return (Row11) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowOfProject.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowOfProject.java index 4c85189dacd..2c5e1f042b5 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowOfProject.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowOfProject.java @@ -4,7 +4,6 @@ package edu.uci.ics.texera.dao.jooq.generated.tables; -import edu.uci.ics.texera.dao.jooq.generated.Indexes; import edu.uci.ics.texera.dao.jooq.generated.Keys; import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowOfProjectRecord; @@ -14,15 +13,16 @@ import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Index; import org.jooq.Name; import org.jooq.Record; import org.jooq.Row2; import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; @@ -32,7 +32,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowOfProject extends TableImpl { - private static final long serialVersionUID = -1484117734; + private static final long serialVersionUID = 1L; /** * The reference instance of texera_db.workflow_of_project @@ -50,40 +50,42 @@ public Class getRecordType() { /** * The column texera_db.workflow_of_project.wid. */ - public final TableField WID = createField(DSL.name("wid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField WID = createField(DSL.name("wid"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.workflow_of_project.pid. */ - public final TableField PID = createField(DSL.name("pid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField PID = createField(DSL.name("pid"), SQLDataType.INTEGER.nullable(false), this, ""); - /** - * Create a texera_db.workflow_of_project table reference - */ - public WorkflowOfProject() { - this(DSL.name("workflow_of_project"), null); + private WorkflowOfProject(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private WorkflowOfProject(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); } /** - * Create an aliased texera_db.workflow_of_project table reference + * Create an aliased texera_db.workflow_of_project table + * reference */ public WorkflowOfProject(String alias) { this(DSL.name(alias), WORKFLOW_OF_PROJECT); } /** - * Create an aliased texera_db.workflow_of_project table reference + * Create an aliased texera_db.workflow_of_project table + * reference */ public WorkflowOfProject(Name alias) { this(alias, WORKFLOW_OF_PROJECT); } - private WorkflowOfProject(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private WorkflowOfProject(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + /** + * Create a texera_db.workflow_of_project table reference + */ + public WorkflowOfProject() { + this(DSL.name("workflow_of_project"), null); } public WorkflowOfProject(Table child, ForeignKey key) { @@ -92,12 +94,7 @@ public WorkflowOfProject(Table child, ForeignKey getIndexes() { - return Arrays.asList(Indexes.WORKFLOW_OF_PROJECT_PKEY); + return aliased() ? null : TexeraDb.TEXERA_DB; } @Override @@ -105,22 +102,32 @@ public UniqueKey getPrimaryKey() { return Keys.WORKFLOW_OF_PROJECT_PKEY; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.WORKFLOW_OF_PROJECT_PKEY); - } - @Override public List> getReferences() { - return Arrays.>asList(Keys.WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_WID_FKEY, Keys.WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_PID_FKEY); + return Arrays.asList(Keys.WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_WID_FKEY, Keys.WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_PID_FKEY); } + private transient Workflow _workflow; + private transient Project _project; + + /** + * Get the implicit join path to the texera_db.workflow table. + */ public Workflow workflow() { - return new Workflow(this, Keys.WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_WID_FKEY); + if (_workflow == null) + _workflow = new Workflow(this, Keys.WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_WID_FKEY); + + return _workflow; } + /** + * Get the implicit join path to the texera_db.project table. + */ public Project project() { - return new Project(this, Keys.WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_PID_FKEY); + if (_project == null) + _project = new Project(this, Keys.WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_PID_FKEY); + + return _project; } @Override diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowOfUser.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowOfUser.java index d9c48ee567f..c21251f2530 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowOfUser.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowOfUser.java @@ -4,7 +4,6 @@ package edu.uci.ics.texera.dao.jooq.generated.tables; -import edu.uci.ics.texera.dao.jooq.generated.Indexes; import edu.uci.ics.texera.dao.jooq.generated.Keys; import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowOfUserRecord; @@ -14,15 +13,16 @@ import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Index; import org.jooq.Name; import org.jooq.Record; import org.jooq.Row2; import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; @@ -32,7 +32,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowOfUser extends TableImpl { - private static final long serialVersionUID = -917749367; + private static final long serialVersionUID = 1L; /** * The reference instance of texera_db.workflow_of_user @@ -50,18 +50,19 @@ public Class getRecordType() { /** * The column texera_db.workflow_of_user.uid. */ - public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField UID = createField(DSL.name("uid"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.workflow_of_user.wid. */ - public final TableField WID = createField(DSL.name("wid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField WID = createField(DSL.name("wid"), SQLDataType.INTEGER.nullable(false), this, ""); - /** - * Create a texera_db.workflow_of_user table reference - */ - public WorkflowOfUser() { - this(DSL.name("workflow_of_user"), null); + private WorkflowOfUser(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private WorkflowOfUser(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); } /** @@ -78,12 +79,11 @@ public WorkflowOfUser(Name alias) { this(alias, WORKFLOW_OF_USER); } - private WorkflowOfUser(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private WorkflowOfUser(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + /** + * Create a texera_db.workflow_of_user table reference + */ + public WorkflowOfUser() { + this(DSL.name("workflow_of_user"), null); } public WorkflowOfUser(Table child, ForeignKey key) { @@ -92,12 +92,7 @@ public WorkflowOfUser(Table child, ForeignKey getIndexes() { - return Arrays.asList(Indexes.WORKFLOW_OF_USER_PKEY); + return aliased() ? null : TexeraDb.TEXERA_DB; } @Override @@ -105,22 +100,32 @@ public UniqueKey getPrimaryKey() { return Keys.WORKFLOW_OF_USER_PKEY; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.WORKFLOW_OF_USER_PKEY); - } - @Override public List> getReferences() { - return Arrays.>asList(Keys.WORKFLOW_OF_USER__WORKFLOW_OF_USER_UID_FKEY, Keys.WORKFLOW_OF_USER__WORKFLOW_OF_USER_WID_FKEY); + return Arrays.asList(Keys.WORKFLOW_OF_USER__WORKFLOW_OF_USER_UID_FKEY, Keys.WORKFLOW_OF_USER__WORKFLOW_OF_USER_WID_FKEY); } + private transient User _user; + private transient Workflow _workflow; + + /** + * Get the implicit join path to the texera_db.user table. + */ public User user() { - return new User(this, Keys.WORKFLOW_OF_USER__WORKFLOW_OF_USER_UID_FKEY); + if (_user == null) + _user = new User(this, Keys.WORKFLOW_OF_USER__WORKFLOW_OF_USER_UID_FKEY); + + return _user; } + /** + * Get the implicit join path to the texera_db.workflow table. + */ public Workflow workflow() { - return new Workflow(this, Keys.WORKFLOW_OF_USER__WORKFLOW_OF_USER_WID_FKEY); + if (_workflow == null) + _workflow = new Workflow(this, Keys.WORKFLOW_OF_USER__WORKFLOW_OF_USER_WID_FKEY); + + return _workflow; } @Override diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowUserAccess.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowUserAccess.java index 8ba7eb0ada4..29e64a3b5bd 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowUserAccess.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowUserAccess.java @@ -4,7 +4,6 @@ package edu.uci.ics.texera.dao.jooq.generated.tables; -import edu.uci.ics.texera.dao.jooq.generated.Indexes; import edu.uci.ics.texera.dao.jooq.generated.Keys; import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum; @@ -15,15 +14,16 @@ import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Index; import org.jooq.Name; import org.jooq.Record; import org.jooq.Row3; import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; @@ -33,7 +33,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowUserAccess extends TableImpl { - private static final long serialVersionUID = 1690745287; + private static final long serialVersionUID = 1L; /** * The reference instance of texera_db.workflow_user_access @@ -51,45 +51,47 @@ public Class getRecordType() { /** * The column texera_db.workflow_user_access.uid. */ - public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField UID = createField(DSL.name("uid"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.workflow_user_access.wid. */ - public final TableField WID = createField(DSL.name("wid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField WID = createField(DSL.name("wid"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.workflow_user_access.privilege. */ - public final TableField PRIVILEGE = createField(DSL.name("privilege"), org.jooq.impl.SQLDataType.VARCHAR.nullable(false).defaultValue(org.jooq.impl.DSL.field("'NONE'::texera_db.privilege_enum", org.jooq.impl.SQLDataType.VARCHAR)).asEnumDataType(edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum.class), this, ""); + public final TableField PRIVILEGE = createField(DSL.name("privilege"), SQLDataType.VARCHAR.nullable(false).defaultValue(DSL.field("'NONE'::texera_db.privilege_enum", SQLDataType.VARCHAR)).asEnumDataType(edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum.class), this, ""); - /** - * Create a texera_db.workflow_user_access table reference - */ - public WorkflowUserAccess() { - this(DSL.name("workflow_user_access"), null); + private WorkflowUserAccess(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private WorkflowUserAccess(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); } /** - * Create an aliased texera_db.workflow_user_access table reference + * Create an aliased texera_db.workflow_user_access table + * reference */ public WorkflowUserAccess(String alias) { this(DSL.name(alias), WORKFLOW_USER_ACCESS); } /** - * Create an aliased texera_db.workflow_user_access table reference + * Create an aliased texera_db.workflow_user_access table + * reference */ public WorkflowUserAccess(Name alias) { this(alias, WORKFLOW_USER_ACCESS); } - private WorkflowUserAccess(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private WorkflowUserAccess(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + /** + * Create a texera_db.workflow_user_access table reference + */ + public WorkflowUserAccess() { + this(DSL.name("workflow_user_access"), null); } public WorkflowUserAccess(Table child, ForeignKey key) { @@ -98,12 +100,7 @@ public WorkflowUserAccess(Table child, ForeignKey getIndexes() { - return Arrays.asList(Indexes.WORKFLOW_USER_ACCESS_PKEY); + return aliased() ? null : TexeraDb.TEXERA_DB; } @Override @@ -111,22 +108,32 @@ public UniqueKey getPrimaryKey() { return Keys.WORKFLOW_USER_ACCESS_PKEY; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.WORKFLOW_USER_ACCESS_PKEY); - } - @Override public List> getReferences() { - return Arrays.>asList(Keys.WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_UID_FKEY, Keys.WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_WID_FKEY); + return Arrays.asList(Keys.WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_UID_FKEY, Keys.WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_WID_FKEY); } + private transient User _user; + private transient Workflow _workflow; + + /** + * Get the implicit join path to the texera_db.user table. + */ public User user() { - return new User(this, Keys.WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_UID_FKEY); + if (_user == null) + _user = new User(this, Keys.WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_UID_FKEY); + + return _user; } + /** + * Get the implicit join path to the texera_db.workflow table. + */ public Workflow workflow() { - return new Workflow(this, Keys.WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_WID_FKEY); + if (_workflow == null) + _workflow = new Workflow(this, Keys.WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_WID_FKEY); + + return _workflow; } @Override diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowUserClones.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowUserClones.java index f1c5bc22009..88b367b0dc5 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowUserClones.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowUserClones.java @@ -4,7 +4,6 @@ package edu.uci.ics.texera.dao.jooq.generated.tables; -import edu.uci.ics.texera.dao.jooq.generated.Indexes; import edu.uci.ics.texera.dao.jooq.generated.Keys; import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowUserClonesRecord; @@ -14,15 +13,16 @@ import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Index; import org.jooq.Name; import org.jooq.Record; import org.jooq.Row2; import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; @@ -32,7 +32,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowUserClones extends TableImpl { - private static final long serialVersionUID = 276154650; + private static final long serialVersionUID = 1L; /** * The reference instance of texera_db.workflow_user_clones @@ -50,40 +50,42 @@ public Class getRecordType() { /** * The column texera_db.workflow_user_clones.uid. */ - public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField UID = createField(DSL.name("uid"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.workflow_user_clones.wid. */ - public final TableField WID = createField(DSL.name("wid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField WID = createField(DSL.name("wid"), SQLDataType.INTEGER.nullable(false), this, ""); - /** - * Create a texera_db.workflow_user_clones table reference - */ - public WorkflowUserClones() { - this(DSL.name("workflow_user_clones"), null); + private WorkflowUserClones(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private WorkflowUserClones(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); } /** - * Create an aliased texera_db.workflow_user_clones table reference + * Create an aliased texera_db.workflow_user_clones table + * reference */ public WorkflowUserClones(String alias) { this(DSL.name(alias), WORKFLOW_USER_CLONES); } /** - * Create an aliased texera_db.workflow_user_clones table reference + * Create an aliased texera_db.workflow_user_clones table + * reference */ public WorkflowUserClones(Name alias) { this(alias, WORKFLOW_USER_CLONES); } - private WorkflowUserClones(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private WorkflowUserClones(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + /** + * Create a texera_db.workflow_user_clones table reference + */ + public WorkflowUserClones() { + this(DSL.name("workflow_user_clones"), null); } public WorkflowUserClones(Table child, ForeignKey key) { @@ -92,12 +94,7 @@ public WorkflowUserClones(Table child, ForeignKey getIndexes() { - return Arrays.asList(Indexes.WORKFLOW_USER_CLONES_PKEY); + return aliased() ? null : TexeraDb.TEXERA_DB; } @Override @@ -105,22 +102,32 @@ public UniqueKey getPrimaryKey() { return Keys.WORKFLOW_USER_CLONES_PKEY; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.WORKFLOW_USER_CLONES_PKEY); - } - @Override public List> getReferences() { - return Arrays.>asList(Keys.WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_UID_FKEY, Keys.WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_WID_FKEY); + return Arrays.asList(Keys.WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_UID_FKEY, Keys.WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_WID_FKEY); } + private transient User _user; + private transient Workflow _workflow; + + /** + * Get the implicit join path to the texera_db.user table. + */ public User user() { - return new User(this, Keys.WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_UID_FKEY); + if (_user == null) + _user = new User(this, Keys.WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_UID_FKEY); + + return _user; } + /** + * Get the implicit join path to the texera_db.workflow table. + */ public Workflow workflow() { - return new Workflow(this, Keys.WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_WID_FKEY); + if (_workflow == null) + _workflow = new Workflow(this, Keys.WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_WID_FKEY); + + return _workflow; } @Override diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowUserLikes.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowUserLikes.java index 7703af70196..4a25f04febd 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowUserLikes.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowUserLikes.java @@ -4,7 +4,6 @@ package edu.uci.ics.texera.dao.jooq.generated.tables; -import edu.uci.ics.texera.dao.jooq.generated.Indexes; import edu.uci.ics.texera.dao.jooq.generated.Keys; import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowUserLikesRecord; @@ -14,15 +13,16 @@ import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Index; import org.jooq.Name; import org.jooq.Record; import org.jooq.Row2; import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; @@ -32,7 +32,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowUserLikes extends TableImpl { - private static final long serialVersionUID = -1591665538; + private static final long serialVersionUID = 1L; /** * The reference instance of texera_db.workflow_user_likes @@ -50,40 +50,42 @@ public Class getRecordType() { /** * The column texera_db.workflow_user_likes.uid. */ - public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField UID = createField(DSL.name("uid"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.workflow_user_likes.wid. */ - public final TableField WID = createField(DSL.name("wid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField WID = createField(DSL.name("wid"), SQLDataType.INTEGER.nullable(false), this, ""); - /** - * Create a texera_db.workflow_user_likes table reference - */ - public WorkflowUserLikes() { - this(DSL.name("workflow_user_likes"), null); + private WorkflowUserLikes(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private WorkflowUserLikes(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); } /** - * Create an aliased texera_db.workflow_user_likes table reference + * Create an aliased texera_db.workflow_user_likes table + * reference */ public WorkflowUserLikes(String alias) { this(DSL.name(alias), WORKFLOW_USER_LIKES); } /** - * Create an aliased texera_db.workflow_user_likes table reference + * Create an aliased texera_db.workflow_user_likes table + * reference */ public WorkflowUserLikes(Name alias) { this(alias, WORKFLOW_USER_LIKES); } - private WorkflowUserLikes(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private WorkflowUserLikes(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + /** + * Create a texera_db.workflow_user_likes table reference + */ + public WorkflowUserLikes() { + this(DSL.name("workflow_user_likes"), null); } public WorkflowUserLikes(Table child, ForeignKey key) { @@ -92,12 +94,7 @@ public WorkflowUserLikes(Table child, ForeignKey getIndexes() { - return Arrays.asList(Indexes.WORKFLOW_USER_LIKES_PKEY); + return aliased() ? null : TexeraDb.TEXERA_DB; } @Override @@ -105,22 +102,32 @@ public UniqueKey getPrimaryKey() { return Keys.WORKFLOW_USER_LIKES_PKEY; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.WORKFLOW_USER_LIKES_PKEY); - } - @Override public List> getReferences() { - return Arrays.>asList(Keys.WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_UID_FKEY, Keys.WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_WID_FKEY); + return Arrays.asList(Keys.WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_UID_FKEY, Keys.WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_WID_FKEY); } + private transient User _user; + private transient Workflow _workflow; + + /** + * Get the implicit join path to the texera_db.user table. + */ public User user() { - return new User(this, Keys.WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_UID_FKEY); + if (_user == null) + _user = new User(this, Keys.WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_UID_FKEY); + + return _user; } + /** + * Get the implicit join path to the texera_db.workflow table. + */ public Workflow workflow() { - return new Workflow(this, Keys.WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_WID_FKEY); + if (_workflow == null) + _workflow = new Workflow(this, Keys.WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_WID_FKEY); + + return _workflow; } @Override diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowVersion.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowVersion.java index 34804b38b7d..132560decf0 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowVersion.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowVersion.java @@ -4,27 +4,27 @@ package edu.uci.ics.texera.dao.jooq.generated.tables; -import edu.uci.ics.texera.dao.jooq.generated.Indexes; import edu.uci.ics.texera.dao.jooq.generated.Keys; import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowVersionRecord; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.Arrays; import java.util.List; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; -import org.jooq.Index; import org.jooq.Name; import org.jooq.Record; import org.jooq.Row4; import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; @@ -34,7 +34,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowVersion extends TableImpl { - private static final long serialVersionUID = -1500066128; + private static final long serialVersionUID = 1L; /** * The reference instance of texera_db.workflow_version @@ -52,28 +52,29 @@ public Class getRecordType() { /** * The column texera_db.workflow_version.vid. */ - public final TableField VID = createField(DSL.name("vid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true).defaultValue(org.jooq.impl.DSL.field("nextval('texera_db.workflow_version_vid_seq'::regclass)", org.jooq.impl.SQLDataType.INTEGER)), this, ""); + public final TableField VID = createField(DSL.name("vid"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); /** * The column texera_db.workflow_version.wid. */ - public final TableField WID = createField(DSL.name("wid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField WID = createField(DSL.name("wid"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.workflow_version.content. */ - public final TableField CONTENT = createField(DSL.name("content"), org.jooq.impl.SQLDataType.CLOB.nullable(false), this, ""); + public final TableField CONTENT = createField(DSL.name("content"), SQLDataType.CLOB.nullable(false), this, ""); /** * The column texera_db.workflow_version.creation_time. */ - public final TableField CREATION_TIME = createField(DSL.name("creation_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, ""); + public final TableField CREATION_TIME = createField(DSL.name("creation_time"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.LOCALDATETIME)), this, ""); - /** - * Create a texera_db.workflow_version table reference - */ - public WorkflowVersion() { - this(DSL.name("workflow_version"), null); + private WorkflowVersion(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private WorkflowVersion(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); } /** @@ -90,12 +91,11 @@ public WorkflowVersion(Name alias) { this(alias, WORKFLOW_VERSION); } - private WorkflowVersion(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private WorkflowVersion(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + /** + * Create a texera_db.workflow_version table reference + */ + public WorkflowVersion() { + this(DSL.name("workflow_version"), null); } public WorkflowVersion(Table child, ForeignKey key) { @@ -104,17 +104,12 @@ public WorkflowVersion(Table child, ForeignKey getIndexes() { - return Arrays.asList(Indexes.WORKFLOW_VERSION_PKEY); + return aliased() ? null : TexeraDb.TEXERA_DB; } @Override public Identity getIdentity() { - return Keys.IDENTITY_WORKFLOW_VERSION; + return (Identity) super.getIdentity(); } @Override @@ -122,18 +117,21 @@ public UniqueKey getPrimaryKey() { return Keys.WORKFLOW_VERSION_PKEY; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.WORKFLOW_VERSION_PKEY); - } - @Override public List> getReferences() { - return Arrays.>asList(Keys.WORKFLOW_VERSION__WORKFLOW_VERSION_WID_FKEY); + return Arrays.asList(Keys.WORKFLOW_VERSION__WORKFLOW_VERSION_WID_FKEY); } + private transient Workflow _workflow; + + /** + * Get the implicit join path to the texera_db.workflow table. + */ public Workflow workflow() { - return new Workflow(this, Keys.WORKFLOW_VERSION__WORKFLOW_VERSION_WID_FKEY); + if (_workflow == null) + _workflow = new Workflow(this, Keys.WORKFLOW_VERSION__WORKFLOW_VERSION_WID_FKEY); + + return _workflow; } @Override @@ -167,7 +165,7 @@ public WorkflowVersion rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row4 fieldsRow() { + public Row4 fieldsRow() { return (Row4) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowViewCount.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowViewCount.java index baf44719719..a046e71845c 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowViewCount.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowViewCount.java @@ -4,7 +4,6 @@ package edu.uci.ics.texera.dao.jooq.generated.tables; -import edu.uci.ics.texera.dao.jooq.generated.Indexes; import edu.uci.ics.texera.dao.jooq.generated.Keys; import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowViewCountRecord; @@ -14,15 +13,16 @@ import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Index; import org.jooq.Name; import org.jooq.Record; import org.jooq.Row2; import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; @@ -32,7 +32,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowViewCount extends TableImpl { - private static final long serialVersionUID = 1518799894; + private static final long serialVersionUID = 1L; /** * The reference instance of texera_db.workflow_view_count @@ -50,40 +50,42 @@ public Class getRecordType() { /** * The column texera_db.workflow_view_count.wid. */ - public final TableField WID = createField(DSL.name("wid"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + public final TableField WID = createField(DSL.name("wid"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.workflow_view_count.view_count. */ - public final TableField VIEW_COUNT = createField(DSL.name("view_count"), org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.field("0", org.jooq.impl.SQLDataType.INTEGER)), this, ""); + public final TableField VIEW_COUNT = createField(DSL.name("view_count"), SQLDataType.INTEGER.nullable(false).defaultValue(DSL.field("0", SQLDataType.INTEGER)), this, ""); - /** - * Create a texera_db.workflow_view_count table reference - */ - public WorkflowViewCount() { - this(DSL.name("workflow_view_count"), null); + private WorkflowViewCount(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private WorkflowViewCount(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); } /** - * Create an aliased texera_db.workflow_view_count table reference + * Create an aliased texera_db.workflow_view_count table + * reference */ public WorkflowViewCount(String alias) { this(DSL.name(alias), WORKFLOW_VIEW_COUNT); } /** - * Create an aliased texera_db.workflow_view_count table reference + * Create an aliased texera_db.workflow_view_count table + * reference */ public WorkflowViewCount(Name alias) { this(alias, WORKFLOW_VIEW_COUNT); } - private WorkflowViewCount(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private WorkflowViewCount(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + /** + * Create a texera_db.workflow_view_count table reference + */ + public WorkflowViewCount() { + this(DSL.name("workflow_view_count"), null); } public WorkflowViewCount(Table child, ForeignKey key) { @@ -92,12 +94,7 @@ public WorkflowViewCount(Table child, ForeignKey getIndexes() { - return Arrays.asList(Indexes.WORKFLOW_VIEW_COUNT_PKEY); + return aliased() ? null : TexeraDb.TEXERA_DB; } @Override @@ -105,18 +102,21 @@ public UniqueKey getPrimaryKey() { return Keys.WORKFLOW_VIEW_COUNT_PKEY; } - @Override - public List> getKeys() { - return Arrays.>asList(Keys.WORKFLOW_VIEW_COUNT_PKEY); - } - @Override public List> getReferences() { - return Arrays.>asList(Keys.WORKFLOW_VIEW_COUNT__WORKFLOW_VIEW_COUNT_WID_FKEY); + return Arrays.asList(Keys.WORKFLOW_VIEW_COUNT__WORKFLOW_VIEW_COUNT_WID_FKEY); } + private transient Workflow _workflow; + + /** + * Get the implicit join path to the texera_db.workflow table. + */ public Workflow workflow() { - return new Workflow(this, Keys.WORKFLOW_VIEW_COUNT__WORKFLOW_VIEW_COUNT_WID_FKEY); + if (_workflow == null) + _workflow = new Workflow(this, Keys.WORKFLOW_VIEW_COUNT__WORKFLOW_VIEW_COUNT_WID_FKEY); + + return _workflow; } @Override diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetDao.java index cda0961e0c9..c0f1000852b 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetDao.java @@ -7,8 +7,9 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.Dataset; import edu.uci.ics.texera.dao.jooq.generated.tables.records.DatasetRecord; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.List; +import java.util.Optional; import org.jooq.Configuration; import org.jooq.impl.DAOImpl; @@ -40,7 +41,8 @@ public Integer getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.Dataset } /** - * Fetch records that have did BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have did BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfDid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(Dataset.DATASET.DID, lowerInclusive, upperInclusive); @@ -61,7 +63,15 @@ public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.Dataset fetchOneByDid( } /** - * Fetch records that have owner_uid BETWEEN lowerInclusive AND upperInclusive + * Fetch a unique record that has did = value + */ + public Optional fetchOptionalByDid(Integer value) { + return fetchOptional(Dataset.DATASET.DID, value); + } + + /** + * Fetch records that have owner_uid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfOwnerUid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(Dataset.DATASET.OWNER_UID, lowerInclusive, upperInclusive); @@ -75,7 +85,8 @@ public List fetchByO } /** - * Fetch records that have name BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have name BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfName(String lowerInclusive, String upperInclusive) { return fetchRange(Dataset.DATASET.NAME, lowerInclusive, upperInclusive); @@ -89,7 +100,8 @@ public List fetchByN } /** - * Fetch records that have is_public BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have is_public BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfIsPublic(Boolean lowerInclusive, Boolean upperInclusive) { return fetchRange(Dataset.DATASET.IS_PUBLIC, lowerInclusive, upperInclusive); @@ -103,7 +115,8 @@ public List fetchByI } /** - * Fetch records that have description BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have description BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfDescription(String lowerInclusive, String upperInclusive) { return fetchRange(Dataset.DATASET.DESCRIPTION, lowerInclusive, upperInclusive); @@ -117,16 +130,17 @@ public List fetchByD } /** - * Fetch records that have creation_time BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have creation_time BETWEEN lowerInclusive AND + * upperInclusive */ - public List fetchRangeOfCreationTime(Timestamp lowerInclusive, Timestamp upperInclusive) { + public List fetchRangeOfCreationTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { return fetchRange(Dataset.DATASET.CREATION_TIME, lowerInclusive, upperInclusive); } /** * Fetch records that have creation_time IN (values) */ - public List fetchByCreationTime(Timestamp... values) { + public List fetchByCreationTime(LocalDateTime... values) { return fetch(Dataset.DATASET.CREATION_TIME, values); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetUserAccessDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetUserAccessDao.java index b50c350af5c..b014b052501 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetUserAccessDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetUserAccessDao.java @@ -41,7 +41,8 @@ public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tab } /** - * Fetch records that have did BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have did BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfDid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(DatasetUserAccess.DATASET_USER_ACCESS.DID, lowerInclusive, upperInclusive); @@ -55,7 +56,8 @@ public Listuid BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have uid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfUid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(DatasetUserAccess.DATASET_USER_ACCESS.UID, lowerInclusive, upperInclusive); @@ -69,7 +71,8 @@ public Listprivilege BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have privilege BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfPrivilege(PrivilegeEnum lowerInclusive, PrivilegeEnum upperInclusive) { return fetchRange(DatasetUserAccess.DATASET_USER_ACCESS.PRIVILEGE, lowerInclusive, upperInclusive); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetVersionDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetVersionDao.java index bf44470ed41..e1441dca263 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetVersionDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetVersionDao.java @@ -7,8 +7,9 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetVersion; import edu.uci.ics.texera.dao.jooq.generated.tables.records.DatasetVersionRecord; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.List; +import java.util.Optional; import org.jooq.Configuration; import org.jooq.impl.DAOImpl; @@ -40,7 +41,8 @@ public Integer getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.DatasetV } /** - * Fetch records that have dvid BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have dvid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfDvid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(DatasetVersion.DATASET_VERSION.DVID, lowerInclusive, upperInclusive); @@ -61,7 +63,15 @@ public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.DatasetVersion fetchOn } /** - * Fetch records that have did BETWEEN lowerInclusive AND upperInclusive + * Fetch a unique record that has dvid = value + */ + public Optional fetchOptionalByDvid(Integer value) { + return fetchOptional(DatasetVersion.DATASET_VERSION.DVID, value); + } + + /** + * Fetch records that have did BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfDid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(DatasetVersion.DATASET_VERSION.DID, lowerInclusive, upperInclusive); @@ -75,7 +85,8 @@ public List f } /** - * Fetch records that have creator_uid BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have creator_uid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfCreatorUid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(DatasetVersion.DATASET_VERSION.CREATOR_UID, lowerInclusive, upperInclusive); @@ -89,7 +100,8 @@ public List f } /** - * Fetch records that have name BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have name BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfName(String lowerInclusive, String upperInclusive) { return fetchRange(DatasetVersion.DATASET_VERSION.NAME, lowerInclusive, upperInclusive); @@ -103,7 +115,8 @@ public List f } /** - * Fetch records that have version_hash BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have version_hash BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfVersionHash(String lowerInclusive, String upperInclusive) { return fetchRange(DatasetVersion.DATASET_VERSION.VERSION_HASH, lowerInclusive, upperInclusive); @@ -117,16 +130,17 @@ public List f } /** - * Fetch records that have creation_time BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have creation_time BETWEEN lowerInclusive AND + * upperInclusive */ - public List fetchRangeOfCreationTime(Timestamp lowerInclusive, Timestamp upperInclusive) { + public List fetchRangeOfCreationTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { return fetchRange(DatasetVersion.DATASET_VERSION.CREATION_TIME, lowerInclusive, upperInclusive); } /** * Fetch records that have creation_time IN (values) */ - public List fetchByCreationTime(Timestamp... values) { + public List fetchByCreationTime(LocalDateTime... values) { return fetch(DatasetVersion.DATASET_VERSION.CREATION_TIME, values); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorExecutionsDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorExecutionsDao.java index 0b04ba2961c..49241af23e6 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorExecutionsDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorExecutionsDao.java @@ -8,6 +8,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.records.OperatorExecutionsRecord; import java.util.List; +import java.util.Optional; import org.jooq.Configuration; import org.jooq.impl.DAOImpl; @@ -39,7 +40,8 @@ public Long getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorExe } /** - * Fetch records that have operator_execution_id BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have operator_execution_id BETWEEN + * lowerInclusive AND upperInclusive */ public List fetchRangeOfOperatorExecutionId(Long lowerInclusive, Long upperInclusive) { return fetchRange(OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID, lowerInclusive, upperInclusive); @@ -60,7 +62,15 @@ public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorExecutions fet } /** - * Fetch records that have workflow_execution_id BETWEEN lowerInclusive AND upperInclusive + * Fetch a unique record that has operator_execution_id = value + */ + public Optional fetchOptionalByOperatorExecutionId(Long value) { + return fetchOptional(OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID, value); + } + + /** + * Fetch records that have workflow_execution_id BETWEEN + * lowerInclusive AND upperInclusive */ public List fetchRangeOfWorkflowExecutionId(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID, lowerInclusive, upperInclusive); @@ -74,7 +84,8 @@ public Listoperator_id BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have operator_id BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfOperatorId(String lowerInclusive, String upperInclusive) { return fetchRange(OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_ID, lowerInclusive, upperInclusive); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorRuntimeStatisticsDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorRuntimeStatisticsDao.java index 7fbedf4a3ea..967d0686442 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorRuntimeStatisticsDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorRuntimeStatisticsDao.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorRuntimeStatistics; import edu.uci.ics.texera.dao.jooq.generated.tables.records.OperatorRuntimeStatisticsRecord; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.List; import org.jooq.Configuration; @@ -19,7 +19,7 @@ * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class OperatorRuntimeStatisticsDao extends DAOImpl> { +public class OperatorRuntimeStatisticsDao extends DAOImpl> { /** * Create a new OperatorRuntimeStatisticsDao without any configuration @@ -36,12 +36,13 @@ public OperatorRuntimeStatisticsDao(Configuration configuration) { } @Override - public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorRuntimeStatistics object) { + public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorRuntimeStatistics object) { return compositeKeyRecord(object.getOperatorExecutionId(), object.getTime()); } /** - * Fetch records that have operator_execution_id BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have operator_execution_id BETWEEN + * lowerInclusive AND upperInclusive */ public List fetchRangeOfOperatorExecutionId(Long lowerInclusive, Long upperInclusive) { return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OPERATOR_EXECUTION_ID, lowerInclusive, upperInclusive); @@ -55,21 +56,23 @@ public Listtime BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have time BETWEEN lowerInclusive AND + * upperInclusive */ - public List fetchRangeOfTime(Timestamp lowerInclusive, Timestamp upperInclusive) { + public List fetchRangeOfTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.TIME, lowerInclusive, upperInclusive); } /** * Fetch records that have time IN (values) */ - public List fetchByTime(Timestamp... values) { + public List fetchByTime(LocalDateTime... values) { return fetch(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.TIME, values); } /** - * Fetch records that have input_tuple_cnt BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have input_tuple_cnt BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfInputTupleCnt(Long lowerInclusive, Long upperInclusive) { return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.INPUT_TUPLE_CNT, lowerInclusive, upperInclusive); @@ -83,7 +86,8 @@ public Listoutput_tuple_cnt BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have output_tuple_cnt BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfOutputTupleCnt(Long lowerInclusive, Long upperInclusive) { return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OUTPUT_TUPLE_CNT, lowerInclusive, upperInclusive); @@ -97,7 +101,8 @@ public Liststatus BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have status BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfStatus(Short lowerInclusive, Short upperInclusive) { return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.STATUS, lowerInclusive, upperInclusive); @@ -111,7 +116,8 @@ public Listdata_processing_time BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have data_processing_time BETWEEN lowerInclusive + * AND upperInclusive */ public List fetchRangeOfDataProcessingTime(Long lowerInclusive, Long upperInclusive) { return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.DATA_PROCESSING_TIME, lowerInclusive, upperInclusive); @@ -125,7 +131,8 @@ public Listcontrol_processing_time BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have control_processing_time BETWEEN + * lowerInclusive AND upperInclusive */ public List fetchRangeOfControlProcessingTime(Long lowerInclusive, Long upperInclusive) { return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.CONTROL_PROCESSING_TIME, lowerInclusive, upperInclusive); @@ -139,7 +146,8 @@ public Listidle_time BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have idle_time BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfIdleTime(Long lowerInclusive, Long upperInclusive) { return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.IDLE_TIME, lowerInclusive, upperInclusive); @@ -153,7 +161,8 @@ public Listnum_workers BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have num_workers BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfNumWorkers(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.NUM_WORKERS, lowerInclusive, upperInclusive); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/ProjectDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/ProjectDao.java index 5608152f6a3..cbbf5f2a06b 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/ProjectDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/ProjectDao.java @@ -7,8 +7,9 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.Project; import edu.uci.ics.texera.dao.jooq.generated.tables.records.ProjectRecord; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.List; +import java.util.Optional; import org.jooq.Configuration; import org.jooq.impl.DAOImpl; @@ -40,7 +41,8 @@ public Integer getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.Project } /** - * Fetch records that have pid BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have pid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfPid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(Project.PROJECT.PID, lowerInclusive, upperInclusive); @@ -61,7 +63,15 @@ public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.Project fetchOneByPid( } /** - * Fetch records that have name BETWEEN lowerInclusive AND upperInclusive + * Fetch a unique record that has pid = value + */ + public Optional fetchOptionalByPid(Integer value) { + return fetchOptional(Project.PROJECT.PID, value); + } + + /** + * Fetch records that have name BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfName(String lowerInclusive, String upperInclusive) { return fetchRange(Project.PROJECT.NAME, lowerInclusive, upperInclusive); @@ -75,7 +85,8 @@ public List fetchByN } /** - * Fetch records that have description BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have description BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfDescription(String lowerInclusive, String upperInclusive) { return fetchRange(Project.PROJECT.DESCRIPTION, lowerInclusive, upperInclusive); @@ -89,7 +100,8 @@ public List fetchByD } /** - * Fetch records that have owner_id BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have owner_id BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfOwnerId(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(Project.PROJECT.OWNER_ID, lowerInclusive, upperInclusive); @@ -103,21 +115,23 @@ public List fetchByO } /** - * Fetch records that have creation_time BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have creation_time BETWEEN lowerInclusive AND + * upperInclusive */ - public List fetchRangeOfCreationTime(Timestamp lowerInclusive, Timestamp upperInclusive) { + public List fetchRangeOfCreationTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { return fetchRange(Project.PROJECT.CREATION_TIME, lowerInclusive, upperInclusive); } /** * Fetch records that have creation_time IN (values) */ - public List fetchByCreationTime(Timestamp... values) { + public List fetchByCreationTime(LocalDateTime... values) { return fetch(Project.PROJECT.CREATION_TIME, values); } /** - * Fetch records that have color BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have color BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfColor(String lowerInclusive, String upperInclusive) { return fetchRange(Project.PROJECT.COLOR, lowerInclusive, upperInclusive); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/ProjectUserAccessDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/ProjectUserAccessDao.java index 7bba49ae2c1..1cea5bbcd2c 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/ProjectUserAccessDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/ProjectUserAccessDao.java @@ -41,7 +41,8 @@ public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tab } /** - * Fetch records that have uid BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have uid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfUid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(ProjectUserAccess.PROJECT_USER_ACCESS.UID, lowerInclusive, upperInclusive); @@ -55,7 +56,8 @@ public Listpid BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have pid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfPid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(ProjectUserAccess.PROJECT_USER_ACCESS.PID, lowerInclusive, upperInclusive); @@ -69,7 +71,8 @@ public Listprivilege BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have privilege BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfPrivilege(PrivilegeEnum lowerInclusive, PrivilegeEnum upperInclusive) { return fetchRange(ProjectUserAccess.PROJECT_USER_ACCESS.PRIVILEGE, lowerInclusive, upperInclusive); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/PublicProjectDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/PublicProjectDao.java index 4c148abff39..838f6691d93 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/PublicProjectDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/PublicProjectDao.java @@ -8,6 +8,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.records.PublicProjectRecord; import java.util.List; +import java.util.Optional; import org.jooq.Configuration; import org.jooq.impl.DAOImpl; @@ -39,7 +40,8 @@ public Integer getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.PublicPr } /** - * Fetch records that have pid BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have pid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfPid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(PublicProject.PUBLIC_PROJECT.PID, lowerInclusive, upperInclusive); @@ -60,7 +62,15 @@ public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.PublicProject fetchOne } /** - * Fetch records that have uid BETWEEN lowerInclusive AND upperInclusive + * Fetch a unique record that has pid = value + */ + public Optional fetchOptionalByPid(Integer value) { + return fetchOptional(PublicProject.PUBLIC_PROJECT.PID, value); + } + + /** + * Fetch records that have uid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfUid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(PublicProject.PUBLIC_PROJECT.UID, lowerInclusive, upperInclusive); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/UserConfigDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/UserConfigDao.java index ed7d1185669..b48cca15e3e 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/UserConfigDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/UserConfigDao.java @@ -40,7 +40,8 @@ public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tabl } /** - * Fetch records that have uid BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have uid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfUid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(UserConfig.USER_CONFIG.UID, lowerInclusive, upperInclusive); @@ -54,7 +55,8 @@ public List fetch } /** - * Fetch records that have key BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have key BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfKey(String lowerInclusive, String upperInclusive) { return fetchRange(UserConfig.USER_CONFIG.KEY, lowerInclusive, upperInclusive); @@ -68,7 +70,8 @@ public List fetch } /** - * Fetch records that have value BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have value BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfValue(String lowerInclusive, String upperInclusive) { return fetchRange(UserConfig.USER_CONFIG.VALUE, lowerInclusive, upperInclusive); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/UserDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/UserDao.java index 41190d080bc..8868eee60c5 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/UserDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/UserDao.java @@ -9,6 +9,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.records.UserRecord; import java.util.List; +import java.util.Optional; import org.jooq.Configuration; import org.jooq.impl.DAOImpl; @@ -40,7 +41,8 @@ public Integer getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.User obj } /** - * Fetch records that have uid BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have uid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfUid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(User.USER.UID, lowerInclusive, upperInclusive); @@ -61,7 +63,15 @@ public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.User fetchOneByUid(Int } /** - * Fetch records that have name BETWEEN lowerInclusive AND upperInclusive + * Fetch a unique record that has uid = value + */ + public Optional fetchOptionalByUid(Integer value) { + return fetchOptional(User.USER.UID, value); + } + + /** + * Fetch records that have name BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfName(String lowerInclusive, String upperInclusive) { return fetchRange(User.USER.NAME, lowerInclusive, upperInclusive); @@ -75,7 +85,8 @@ public List fetchByName } /** - * Fetch records that have email BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have email BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfEmail(String lowerInclusive, String upperInclusive) { return fetchRange(User.USER.EMAIL, lowerInclusive, upperInclusive); @@ -96,7 +107,15 @@ public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.User fetchOneByEmail(S } /** - * Fetch records that have password BETWEEN lowerInclusive AND upperInclusive + * Fetch a unique record that has email = value + */ + public Optional fetchOptionalByEmail(String value) { + return fetchOptional(User.USER.EMAIL, value); + } + + /** + * Fetch records that have password BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfPassword(String lowerInclusive, String upperInclusive) { return fetchRange(User.USER.PASSWORD, lowerInclusive, upperInclusive); @@ -110,7 +129,8 @@ public List fetchByPass } /** - * Fetch records that have google_id BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have google_id BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfGoogleId(String lowerInclusive, String upperInclusive) { return fetchRange(User.USER.GOOGLE_ID, lowerInclusive, upperInclusive); @@ -131,7 +151,15 @@ public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.User fetchOneByGoogleI } /** - * Fetch records that have role BETWEEN lowerInclusive AND upperInclusive + * Fetch a unique record that has google_id = value + */ + public Optional fetchOptionalByGoogleId(String value) { + return fetchOptional(User.USER.GOOGLE_ID, value); + } + + /** + * Fetch records that have role BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfRole(UserRoleEnum lowerInclusive, UserRoleEnum upperInclusive) { return fetchRange(User.USER.ROLE, lowerInclusive, upperInclusive); @@ -145,7 +173,8 @@ public List fetchByRole } /** - * Fetch records that have google_avatar BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have google_avatar BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfGoogleAvatar(String lowerInclusive, String upperInclusive) { return fetchRange(User.USER.GOOGLE_AVATAR, lowerInclusive, upperInclusive); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowDao.java index 1d9fa6dc116..fb9b1acbc8b 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowDao.java @@ -7,8 +7,9 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.Workflow; import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowRecord; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.List; +import java.util.Optional; import org.jooq.Configuration; import org.jooq.impl.DAOImpl; @@ -40,7 +41,8 @@ public Integer getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.Workflow } /** - * Fetch records that have wid BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have wid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfWid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(Workflow.WORKFLOW.WID, lowerInclusive, upperInclusive); @@ -61,7 +63,15 @@ public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.Workflow fetchOneByWid } /** - * Fetch records that have name BETWEEN lowerInclusive AND upperInclusive + * Fetch a unique record that has wid = value + */ + public Optional fetchOptionalByWid(Integer value) { + return fetchOptional(Workflow.WORKFLOW.WID, value); + } + + /** + * Fetch records that have name BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfName(String lowerInclusive, String upperInclusive) { return fetchRange(Workflow.WORKFLOW.NAME, lowerInclusive, upperInclusive); @@ -75,7 +85,8 @@ public List fetchBy } /** - * Fetch records that have description BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have description BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfDescription(String lowerInclusive, String upperInclusive) { return fetchRange(Workflow.WORKFLOW.DESCRIPTION, lowerInclusive, upperInclusive); @@ -89,7 +100,8 @@ public List fetchBy } /** - * Fetch records that have content BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have content BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfContent(String lowerInclusive, String upperInclusive) { return fetchRange(Workflow.WORKFLOW.CONTENT, lowerInclusive, upperInclusive); @@ -103,35 +115,38 @@ public List fetchBy } /** - * Fetch records that have creation_time BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have creation_time BETWEEN lowerInclusive AND + * upperInclusive */ - public List fetchRangeOfCreationTime(Timestamp lowerInclusive, Timestamp upperInclusive) { + public List fetchRangeOfCreationTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { return fetchRange(Workflow.WORKFLOW.CREATION_TIME, lowerInclusive, upperInclusive); } /** * Fetch records that have creation_time IN (values) */ - public List fetchByCreationTime(Timestamp... values) { + public List fetchByCreationTime(LocalDateTime... values) { return fetch(Workflow.WORKFLOW.CREATION_TIME, values); } /** - * Fetch records that have last_modified_time BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have last_modified_time BETWEEN lowerInclusive + * AND upperInclusive */ - public List fetchRangeOfLastModifiedTime(Timestamp lowerInclusive, Timestamp upperInclusive) { + public List fetchRangeOfLastModifiedTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { return fetchRange(Workflow.WORKFLOW.LAST_MODIFIED_TIME, lowerInclusive, upperInclusive); } /** * Fetch records that have last_modified_time IN (values) */ - public List fetchByLastModifiedTime(Timestamp... values) { + public List fetchByLastModifiedTime(LocalDateTime... values) { return fetch(Workflow.WORKFLOW.LAST_MODIFIED_TIME, values); } /** - * Fetch records that have is_public BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have is_public BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfIsPublic(Boolean lowerInclusive, Boolean upperInclusive) { return fetchRange(Workflow.WORKFLOW.IS_PUBLIC, lowerInclusive, upperInclusive); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowExecutionsDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowExecutionsDao.java index 81b7c05c817..04f96708c44 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowExecutionsDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowExecutionsDao.java @@ -7,8 +7,9 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowExecutions; import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowExecutionsRecord; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.List; +import java.util.Optional; import org.jooq.Configuration; import org.jooq.impl.DAOImpl; @@ -40,7 +41,8 @@ public Integer getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.Workflow } /** - * Fetch records that have eid BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have eid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfEid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowExecutions.WORKFLOW_EXECUTIONS.EID, lowerInclusive, upperInclusive); @@ -61,7 +63,15 @@ public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowExecutions fet } /** - * Fetch records that have vid BETWEEN lowerInclusive AND upperInclusive + * Fetch a unique record that has eid = value + */ + public Optional fetchOptionalByEid(Integer value) { + return fetchOptional(WorkflowExecutions.WORKFLOW_EXECUTIONS.EID, value); + } + + /** + * Fetch records that have vid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfVid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowExecutions.WORKFLOW_EXECUTIONS.VID, lowerInclusive, upperInclusive); @@ -75,7 +85,8 @@ public Listuid BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have uid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfUid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowExecutions.WORKFLOW_EXECUTIONS.UID, lowerInclusive, upperInclusive); @@ -89,7 +100,8 @@ public Liststatus BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have status BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfStatus(Short lowerInclusive, Short upperInclusive) { return fetchRange(WorkflowExecutions.WORKFLOW_EXECUTIONS.STATUS, lowerInclusive, upperInclusive); @@ -103,7 +115,8 @@ public Listresult BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have result BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfResult(String lowerInclusive, String upperInclusive) { return fetchRange(WorkflowExecutions.WORKFLOW_EXECUTIONS.RESULT, lowerInclusive, upperInclusive); @@ -117,35 +130,38 @@ public Liststarting_time BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have starting_time BETWEEN lowerInclusive AND + * upperInclusive */ - public List fetchRangeOfStartingTime(Timestamp lowerInclusive, Timestamp upperInclusive) { + public List fetchRangeOfStartingTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { return fetchRange(WorkflowExecutions.WORKFLOW_EXECUTIONS.STARTING_TIME, lowerInclusive, upperInclusive); } /** * Fetch records that have starting_time IN (values) */ - public List fetchByStartingTime(Timestamp... values) { + public List fetchByStartingTime(LocalDateTime... values) { return fetch(WorkflowExecutions.WORKFLOW_EXECUTIONS.STARTING_TIME, values); } /** - * Fetch records that have last_update_time BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have last_update_time BETWEEN lowerInclusive AND + * upperInclusive */ - public List fetchRangeOfLastUpdateTime(Timestamp lowerInclusive, Timestamp upperInclusive) { + public List fetchRangeOfLastUpdateTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { return fetchRange(WorkflowExecutions.WORKFLOW_EXECUTIONS.LAST_UPDATE_TIME, lowerInclusive, upperInclusive); } /** * Fetch records that have last_update_time IN (values) */ - public List fetchByLastUpdateTime(Timestamp... values) { + public List fetchByLastUpdateTime(LocalDateTime... values) { return fetch(WorkflowExecutions.WORKFLOW_EXECUTIONS.LAST_UPDATE_TIME, values); } /** - * Fetch records that have bookmarked BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have bookmarked BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfBookmarked(Boolean lowerInclusive, Boolean upperInclusive) { return fetchRange(WorkflowExecutions.WORKFLOW_EXECUTIONS.BOOKMARKED, lowerInclusive, upperInclusive); @@ -159,7 +175,8 @@ public Listname BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have name BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfName(String lowerInclusive, String upperInclusive) { return fetchRange(WorkflowExecutions.WORKFLOW_EXECUTIONS.NAME, lowerInclusive, upperInclusive); @@ -173,7 +190,8 @@ public Listenvironment_version BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have environment_version BETWEEN lowerInclusive + * AND upperInclusive */ public List fetchRangeOfEnvironmentVersion(String lowerInclusive, String upperInclusive) { return fetchRange(WorkflowExecutions.WORKFLOW_EXECUTIONS.ENVIRONMENT_VERSION, lowerInclusive, upperInclusive); @@ -187,7 +205,8 @@ public Listlog_location BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have log_location BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfLogLocation(String lowerInclusive, String upperInclusive) { return fetchRange(WorkflowExecutions.WORKFLOW_EXECUTIONS.LOG_LOCATION, lowerInclusive, upperInclusive); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowOfProjectDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowOfProjectDao.java index c2586f3eab2..23bbb8a890f 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowOfProjectDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowOfProjectDao.java @@ -40,7 +40,8 @@ public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tab } /** - * Fetch records that have wid BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have wid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfWid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowOfProject.WORKFLOW_OF_PROJECT.WID, lowerInclusive, upperInclusive); @@ -54,7 +55,8 @@ public Listpid BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have pid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfPid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowOfProject.WORKFLOW_OF_PROJECT.PID, lowerInclusive, upperInclusive); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowOfUserDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowOfUserDao.java index f464e453d54..2dd9d25b437 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowOfUserDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowOfUserDao.java @@ -40,7 +40,8 @@ public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tab } /** - * Fetch records that have uid BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have uid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfUid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowOfUser.WORKFLOW_OF_USER.UID, lowerInclusive, upperInclusive); @@ -54,7 +55,8 @@ public List f } /** - * Fetch records that have wid BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have wid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfWid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowOfUser.WORKFLOW_OF_USER.WID, lowerInclusive, upperInclusive); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowUserAccessDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowUserAccessDao.java index ce474301205..ae63a7ab568 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowUserAccessDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowUserAccessDao.java @@ -41,7 +41,8 @@ public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tab } /** - * Fetch records that have uid BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have uid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfUid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowUserAccess.WORKFLOW_USER_ACCESS.UID, lowerInclusive, upperInclusive); @@ -55,7 +56,8 @@ public Listwid BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have wid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfWid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowUserAccess.WORKFLOW_USER_ACCESS.WID, lowerInclusive, upperInclusive); @@ -69,7 +71,8 @@ public Listprivilege BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have privilege BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfPrivilege(PrivilegeEnum lowerInclusive, PrivilegeEnum upperInclusive) { return fetchRange(WorkflowUserAccess.WORKFLOW_USER_ACCESS.PRIVILEGE, lowerInclusive, upperInclusive); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowUserClonesDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowUserClonesDao.java index 893a271a9a2..d9f475ee37e 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowUserClonesDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowUserClonesDao.java @@ -40,7 +40,8 @@ public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tab } /** - * Fetch records that have uid BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have uid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfUid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowUserClones.WORKFLOW_USER_CLONES.UID, lowerInclusive, upperInclusive); @@ -54,7 +55,8 @@ public Listwid BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have wid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfWid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowUserClones.WORKFLOW_USER_CLONES.WID, lowerInclusive, upperInclusive); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowUserLikesDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowUserLikesDao.java index a2808a5d4c7..dbf9002ee43 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowUserLikesDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowUserLikesDao.java @@ -40,7 +40,8 @@ public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tab } /** - * Fetch records that have uid BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have uid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfUid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowUserLikes.WORKFLOW_USER_LIKES.UID, lowerInclusive, upperInclusive); @@ -54,7 +55,8 @@ public Listwid BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have wid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfWid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowUserLikes.WORKFLOW_USER_LIKES.WID, lowerInclusive, upperInclusive); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowVersionDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowVersionDao.java index 85b6188f6b0..0e16917ece1 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowVersionDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowVersionDao.java @@ -7,8 +7,9 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowVersion; import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowVersionRecord; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.List; +import java.util.Optional; import org.jooq.Configuration; import org.jooq.impl.DAOImpl; @@ -40,7 +41,8 @@ public Integer getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.Workflow } /** - * Fetch records that have vid BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have vid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfVid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowVersion.WORKFLOW_VERSION.VID, lowerInclusive, upperInclusive); @@ -61,7 +63,15 @@ public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowVersion fetchO } /** - * Fetch records that have wid BETWEEN lowerInclusive AND upperInclusive + * Fetch a unique record that has vid = value + */ + public Optional fetchOptionalByVid(Integer value) { + return fetchOptional(WorkflowVersion.WORKFLOW_VERSION.VID, value); + } + + /** + * Fetch records that have wid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfWid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowVersion.WORKFLOW_VERSION.WID, lowerInclusive, upperInclusive); @@ -75,7 +85,8 @@ public List } /** - * Fetch records that have content BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have content BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfContent(String lowerInclusive, String upperInclusive) { return fetchRange(WorkflowVersion.WORKFLOW_VERSION.CONTENT, lowerInclusive, upperInclusive); @@ -89,16 +100,17 @@ public List } /** - * Fetch records that have creation_time BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have creation_time BETWEEN lowerInclusive AND + * upperInclusive */ - public List fetchRangeOfCreationTime(Timestamp lowerInclusive, Timestamp upperInclusive) { + public List fetchRangeOfCreationTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { return fetchRange(WorkflowVersion.WORKFLOW_VERSION.CREATION_TIME, lowerInclusive, upperInclusive); } /** * Fetch records that have creation_time IN (values) */ - public List fetchByCreationTime(Timestamp... values) { + public List fetchByCreationTime(LocalDateTime... values) { return fetch(WorkflowVersion.WORKFLOW_VERSION.CREATION_TIME, values); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowViewCountDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowViewCountDao.java index 1a6422cfdae..81f006163b6 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowViewCountDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowViewCountDao.java @@ -8,6 +8,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowViewCountRecord; import java.util.List; +import java.util.Optional; import org.jooq.Configuration; import org.jooq.impl.DAOImpl; @@ -39,7 +40,8 @@ public Integer getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.Workflow } /** - * Fetch records that have wid BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have wid BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfWid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowViewCount.WORKFLOW_VIEW_COUNT.WID, lowerInclusive, upperInclusive); @@ -60,7 +62,15 @@ public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowViewCount fetc } /** - * Fetch records that have view_count BETWEEN lowerInclusive AND upperInclusive + * Fetch a unique record that has wid = value + */ + public Optional fetchOptionalByWid(Integer value) { + return fetchOptional(WorkflowViewCount.WORKFLOW_VIEW_COUNT.WID, value); + } + + /** + * Fetch records that have view_count BETWEEN lowerInclusive AND + * upperInclusive */ public List fetchRangeOfViewCount(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(WorkflowViewCount.WORKFLOW_VIEW_COUNT.VIEW_COUNT, lowerInclusive, upperInclusive); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDataset.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDataset.java index 435e98f756d..d4e9dd84e6f 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDataset.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDataset.java @@ -5,7 +5,7 @@ import java.io.Serializable; -import java.sql.Timestamp; +import java.time.LocalDateTime; /** @@ -67,24 +67,26 @@ public interface IDataset extends Serializable { /** * Setter for texera_db.dataset.creation_time. */ - public void setCreationTime(Timestamp value); + public void setCreationTime(LocalDateTime value); /** * Getter for texera_db.dataset.creation_time. */ - public Timestamp getCreationTime(); + public LocalDateTime getCreationTime(); // ------------------------------------------------------------------------- // FROM and INTO // ------------------------------------------------------------------------- /** - * Load data from another generated Record/POJO implementing the common interface IDataset + * Load data from another generated Record/POJO implementing the common + * interface IDataset */ - public void from(edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IDataset from); + public void from(IDataset from); /** - * Copy data into another generated Record/POJO implementing the common interface IDataset + * Copy data into another generated Record/POJO implementing the common + * interface IDataset */ - public E into(E into); + public E into(E into); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetUserAccess.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetUserAccess.java index e509d7a3eb6..a5ef0e0ab73 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetUserAccess.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetUserAccess.java @@ -50,12 +50,14 @@ public interface IDatasetUserAccess extends Serializable { // ------------------------------------------------------------------------- /** - * Load data from another generated Record/POJO implementing the common interface IDatasetUserAccess + * Load data from another generated Record/POJO implementing the common + * interface IDatasetUserAccess */ - public void from(edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IDatasetUserAccess from); + public void from(IDatasetUserAccess from); /** - * Copy data into another generated Record/POJO implementing the common interface IDatasetUserAccess + * Copy data into another generated Record/POJO implementing the common + * interface IDatasetUserAccess */ - public E into(E into); + public E into(E into); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetVersion.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetVersion.java index 7c9a7dd803d..e237bbd9b37 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetVersion.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetVersion.java @@ -5,7 +5,7 @@ import java.io.Serializable; -import java.sql.Timestamp; +import java.time.LocalDateTime; /** @@ -67,24 +67,26 @@ public interface IDatasetVersion extends Serializable { /** * Setter for texera_db.dataset_version.creation_time. */ - public void setCreationTime(Timestamp value); + public void setCreationTime(LocalDateTime value); /** * Getter for texera_db.dataset_version.creation_time. */ - public Timestamp getCreationTime(); + public LocalDateTime getCreationTime(); // ------------------------------------------------------------------------- // FROM and INTO // ------------------------------------------------------------------------- /** - * Load data from another generated Record/POJO implementing the common interface IDatasetVersion + * Load data from another generated Record/POJO implementing the common + * interface IDatasetVersion */ - public void from(edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IDatasetVersion from); + public void from(IDatasetVersion from); /** - * Copy data into another generated Record/POJO implementing the common interface IDatasetVersion + * Copy data into another generated Record/POJO implementing the common + * interface IDatasetVersion */ - public E into(E into); + public E into(E into); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorExecutions.java index 2327f845804..614a994fecd 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorExecutions.java @@ -14,22 +14,26 @@ public interface IOperatorExecutions extends Serializable { /** - * Setter for texera_db.operator_executions.operator_execution_id. + * Setter for + * texera_db.operator_executions.operator_execution_id. */ public void setOperatorExecutionId(Long value); /** - * Getter for texera_db.operator_executions.operator_execution_id. + * Getter for + * texera_db.operator_executions.operator_execution_id. */ public Long getOperatorExecutionId(); /** - * Setter for texera_db.operator_executions.workflow_execution_id. + * Setter for + * texera_db.operator_executions.workflow_execution_id. */ public void setWorkflowExecutionId(Integer value); /** - * Getter for texera_db.operator_executions.workflow_execution_id. + * Getter for + * texera_db.operator_executions.workflow_execution_id. */ public Integer getWorkflowExecutionId(); @@ -48,12 +52,14 @@ public interface IOperatorExecutions extends Serializable { // ------------------------------------------------------------------------- /** - * Load data from another generated Record/POJO implementing the common interface IOperatorExecutions + * Load data from another generated Record/POJO implementing the common + * interface IOperatorExecutions */ - public void from(edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IOperatorExecutions from); + public void from(IOperatorExecutions from); /** - * Copy data into another generated Record/POJO implementing the common interface IOperatorExecutions + * Copy data into another generated Record/POJO implementing the common + * interface IOperatorExecutions */ - public E into(E into); + public E into(E into); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorRuntimeStatistics.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorRuntimeStatistics.java index 7e04f655580..3eec878d53a 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorRuntimeStatistics.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorRuntimeStatistics.java @@ -5,7 +5,7 @@ import java.io.Serializable; -import java.sql.Timestamp; +import java.time.LocalDateTime; /** @@ -15,42 +15,48 @@ public interface IOperatorRuntimeStatistics extends Serializable { /** - * Setter for texera_db.operator_runtime_statistics.operator_execution_id. + * Setter for + * texera_db.operator_runtime_statistics.operator_execution_id. */ public void setOperatorExecutionId(Long value); /** - * Getter for texera_db.operator_runtime_statistics.operator_execution_id. + * Getter for + * texera_db.operator_runtime_statistics.operator_execution_id. */ public Long getOperatorExecutionId(); /** * Setter for texera_db.operator_runtime_statistics.time. */ - public void setTime(Timestamp value); + public void setTime(LocalDateTime value); /** * Getter for texera_db.operator_runtime_statistics.time. */ - public Timestamp getTime(); + public LocalDateTime getTime(); /** - * Setter for texera_db.operator_runtime_statistics.input_tuple_cnt. + * Setter for + * texera_db.operator_runtime_statistics.input_tuple_cnt. */ public void setInputTupleCnt(Long value); /** - * Getter for texera_db.operator_runtime_statistics.input_tuple_cnt. + * Getter for + * texera_db.operator_runtime_statistics.input_tuple_cnt. */ public Long getInputTupleCnt(); /** - * Setter for texera_db.operator_runtime_statistics.output_tuple_cnt. + * Setter for + * texera_db.operator_runtime_statistics.output_tuple_cnt. */ public void setOutputTupleCnt(Long value); /** - * Getter for texera_db.operator_runtime_statistics.output_tuple_cnt. + * Getter for + * texera_db.operator_runtime_statistics.output_tuple_cnt. */ public Long getOutputTupleCnt(); @@ -65,22 +71,26 @@ public interface IOperatorRuntimeStatistics extends Serializable { public Short getStatus(); /** - * Setter for texera_db.operator_runtime_statistics.data_processing_time. + * Setter for + * texera_db.operator_runtime_statistics.data_processing_time. */ public void setDataProcessingTime(Long value); /** - * Getter for texera_db.operator_runtime_statistics.data_processing_time. + * Getter for + * texera_db.operator_runtime_statistics.data_processing_time. */ public Long getDataProcessingTime(); /** - * Setter for texera_db.operator_runtime_statistics.control_processing_time. + * Setter for + * texera_db.operator_runtime_statistics.control_processing_time. */ public void setControlProcessingTime(Long value); /** - * Getter for texera_db.operator_runtime_statistics.control_processing_time. + * Getter for + * texera_db.operator_runtime_statistics.control_processing_time. */ public Long getControlProcessingTime(); @@ -95,12 +105,14 @@ public interface IOperatorRuntimeStatistics extends Serializable { public Long getIdleTime(); /** - * Setter for texera_db.operator_runtime_statistics.num_workers. + * Setter for + * texera_db.operator_runtime_statistics.num_workers. */ public void setNumWorkers(Integer value); /** - * Getter for texera_db.operator_runtime_statistics.num_workers. + * Getter for + * texera_db.operator_runtime_statistics.num_workers. */ public Integer getNumWorkers(); @@ -109,12 +121,14 @@ public interface IOperatorRuntimeStatistics extends Serializable { // ------------------------------------------------------------------------- /** - * Load data from another generated Record/POJO implementing the common interface IOperatorRuntimeStatistics + * Load data from another generated Record/POJO implementing the common + * interface IOperatorRuntimeStatistics */ - public void from(edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IOperatorRuntimeStatistics from); + public void from(IOperatorRuntimeStatistics from); /** - * Copy data into another generated Record/POJO implementing the common interface IOperatorRuntimeStatistics + * Copy data into another generated Record/POJO implementing the common + * interface IOperatorRuntimeStatistics */ - public E into(E into); + public E into(E into); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IProject.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IProject.java index 1d971c44c7b..9dd21b1ad76 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IProject.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IProject.java @@ -5,7 +5,7 @@ import java.io.Serializable; -import java.sql.Timestamp; +import java.time.LocalDateTime; /** @@ -57,12 +57,12 @@ public interface IProject extends Serializable { /** * Setter for texera_db.project.creation_time. */ - public void setCreationTime(Timestamp value); + public void setCreationTime(LocalDateTime value); /** * Getter for texera_db.project.creation_time. */ - public Timestamp getCreationTime(); + public LocalDateTime getCreationTime(); /** * Setter for texera_db.project.color. @@ -79,12 +79,14 @@ public interface IProject extends Serializable { // ------------------------------------------------------------------------- /** - * Load data from another generated Record/POJO implementing the common interface IProject + * Load data from another generated Record/POJO implementing the common + * interface IProject */ - public void from(edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IProject from); + public void from(IProject from); /** - * Copy data into another generated Record/POJO implementing the common interface IProject + * Copy data into another generated Record/POJO implementing the common + * interface IProject */ - public E into(E into); + public E into(E into); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IProjectUserAccess.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IProjectUserAccess.java index 9f7ffbfe4ab..36298fd0f8c 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IProjectUserAccess.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IProjectUserAccess.java @@ -50,12 +50,14 @@ public interface IProjectUserAccess extends Serializable { // ------------------------------------------------------------------------- /** - * Load data from another generated Record/POJO implementing the common interface IProjectUserAccess + * Load data from another generated Record/POJO implementing the common + * interface IProjectUserAccess */ - public void from(edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IProjectUserAccess from); + public void from(IProjectUserAccess from); /** - * Copy data into another generated Record/POJO implementing the common interface IProjectUserAccess + * Copy data into another generated Record/POJO implementing the common + * interface IProjectUserAccess */ - public E into(E into); + public E into(E into); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IPublicProject.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IPublicProject.java index 9bb16add02e..89b6ee9067c 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IPublicProject.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IPublicProject.java @@ -38,12 +38,14 @@ public interface IPublicProject extends Serializable { // ------------------------------------------------------------------------- /** - * Load data from another generated Record/POJO implementing the common interface IPublicProject + * Load data from another generated Record/POJO implementing the common + * interface IPublicProject */ - public void from(edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IPublicProject from); + public void from(IPublicProject from); /** - * Copy data into another generated Record/POJO implementing the common interface IPublicProject + * Copy data into another generated Record/POJO implementing the common + * interface IPublicProject */ - public E into(E into); + public E into(E into); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUser.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUser.java index 28803d32419..b2f2ba0025d 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUser.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUser.java @@ -90,12 +90,14 @@ public interface IUser extends Serializable { // ------------------------------------------------------------------------- /** - * Load data from another generated Record/POJO implementing the common interface IUser + * Load data from another generated Record/POJO implementing the common + * interface IUser */ - public void from(edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IUser from); + public void from(IUser from); /** - * Copy data into another generated Record/POJO implementing the common interface IUser + * Copy data into another generated Record/POJO implementing the common + * interface IUser */ - public E into(E into); + public E into(E into); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUserActivity.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUserActivity.java index 72531c85b56..c6e7c28a749 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUserActivity.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUserActivity.java @@ -5,7 +5,7 @@ import java.io.Serializable; -import java.sql.Timestamp; +import java.time.LocalDateTime; /** @@ -67,24 +67,26 @@ public interface IUserActivity extends Serializable { /** * Setter for texera_db.user_activity.activity_time. */ - public void setActivityTime(Timestamp value); + public void setActivityTime(LocalDateTime value); /** * Getter for texera_db.user_activity.activity_time. */ - public Timestamp getActivityTime(); + public LocalDateTime getActivityTime(); // ------------------------------------------------------------------------- // FROM and INTO // ------------------------------------------------------------------------- /** - * Load data from another generated Record/POJO implementing the common interface IUserActivity + * Load data from another generated Record/POJO implementing the common + * interface IUserActivity */ - public void from(edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IUserActivity from); + public void from(IUserActivity from); /** - * Copy data into another generated Record/POJO implementing the common interface IUserActivity + * Copy data into another generated Record/POJO implementing the common + * interface IUserActivity */ - public E into(E into); + public E into(E into); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUserConfig.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUserConfig.java index a916afd44ec..a67b21bf6ec 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUserConfig.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUserConfig.java @@ -48,12 +48,14 @@ public interface IUserConfig extends Serializable { // ------------------------------------------------------------------------- /** - * Load data from another generated Record/POJO implementing the common interface IUserConfig + * Load data from another generated Record/POJO implementing the common + * interface IUserConfig */ - public void from(edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IUserConfig from); + public void from(IUserConfig from); /** - * Copy data into another generated Record/POJO implementing the common interface IUserConfig + * Copy data into another generated Record/POJO implementing the common + * interface IUserConfig */ - public E into(E into); + public E into(E into); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflow.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflow.java index 411e892ff73..58cb2348766 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflow.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflow.java @@ -5,7 +5,7 @@ import java.io.Serializable; -import java.sql.Timestamp; +import java.time.LocalDateTime; /** @@ -57,22 +57,22 @@ public interface IWorkflow extends Serializable { /** * Setter for texera_db.workflow.creation_time. */ - public void setCreationTime(Timestamp value); + public void setCreationTime(LocalDateTime value); /** * Getter for texera_db.workflow.creation_time. */ - public Timestamp getCreationTime(); + public LocalDateTime getCreationTime(); /** * Setter for texera_db.workflow.last_modified_time. */ - public void setLastModifiedTime(Timestamp value); + public void setLastModifiedTime(LocalDateTime value); /** * Getter for texera_db.workflow.last_modified_time. */ - public Timestamp getLastModifiedTime(); + public LocalDateTime getLastModifiedTime(); /** * Setter for texera_db.workflow.is_public. @@ -89,12 +89,14 @@ public interface IWorkflow extends Serializable { // ------------------------------------------------------------------------- /** - * Load data from another generated Record/POJO implementing the common interface IWorkflow + * Load data from another generated Record/POJO implementing the common + * interface IWorkflow */ - public void from(edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflow from); + public void from(IWorkflow from); /** - * Copy data into another generated Record/POJO implementing the common interface IWorkflow + * Copy data into another generated Record/POJO implementing the common + * interface IWorkflow */ - public E into(E into); + public E into(E into); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowExecutions.java index 8568055f090..df70b51895b 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowExecutions.java @@ -5,7 +5,7 @@ import java.io.Serializable; -import java.sql.Timestamp; +import java.time.LocalDateTime; /** @@ -67,22 +67,22 @@ public interface IWorkflowExecutions extends Serializable { /** * Setter for texera_db.workflow_executions.starting_time. */ - public void setStartingTime(Timestamp value); + public void setStartingTime(LocalDateTime value); /** * Getter for texera_db.workflow_executions.starting_time. */ - public Timestamp getStartingTime(); + public LocalDateTime getStartingTime(); /** * Setter for texera_db.workflow_executions.last_update_time. */ - public void setLastUpdateTime(Timestamp value); + public void setLastUpdateTime(LocalDateTime value); /** * Getter for texera_db.workflow_executions.last_update_time. */ - public Timestamp getLastUpdateTime(); + public LocalDateTime getLastUpdateTime(); /** * Setter for texera_db.workflow_executions.bookmarked. @@ -105,12 +105,14 @@ public interface IWorkflowExecutions extends Serializable { public String getName(); /** - * Setter for texera_db.workflow_executions.environment_version. + * Setter for + * texera_db.workflow_executions.environment_version. */ public void setEnvironmentVersion(String value); /** - * Getter for texera_db.workflow_executions.environment_version. + * Getter for + * texera_db.workflow_executions.environment_version. */ public String getEnvironmentVersion(); @@ -129,12 +131,14 @@ public interface IWorkflowExecutions extends Serializable { // ------------------------------------------------------------------------- /** - * Load data from another generated Record/POJO implementing the common interface IWorkflowExecutions + * Load data from another generated Record/POJO implementing the common + * interface IWorkflowExecutions */ - public void from(edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowExecutions from); + public void from(IWorkflowExecutions from); /** - * Copy data into another generated Record/POJO implementing the common interface IWorkflowExecutions + * Copy data into another generated Record/POJO implementing the common + * interface IWorkflowExecutions */ - public E into(E into); + public E into(E into); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowOfProject.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowOfProject.java index 12e008f7c23..ad5da5fb9f4 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowOfProject.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowOfProject.java @@ -38,12 +38,14 @@ public interface IWorkflowOfProject extends Serializable { // ------------------------------------------------------------------------- /** - * Load data from another generated Record/POJO implementing the common interface IWorkflowOfProject + * Load data from another generated Record/POJO implementing the common + * interface IWorkflowOfProject */ - public void from(edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowOfProject from); + public void from(IWorkflowOfProject from); /** - * Copy data into another generated Record/POJO implementing the common interface IWorkflowOfProject + * Copy data into another generated Record/POJO implementing the common + * interface IWorkflowOfProject */ - public E into(E into); + public E into(E into); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowOfUser.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowOfUser.java index 716136510ed..5dda64b071c 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowOfUser.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowOfUser.java @@ -38,12 +38,14 @@ public interface IWorkflowOfUser extends Serializable { // ------------------------------------------------------------------------- /** - * Load data from another generated Record/POJO implementing the common interface IWorkflowOfUser + * Load data from another generated Record/POJO implementing the common + * interface IWorkflowOfUser */ - public void from(edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowOfUser from); + public void from(IWorkflowOfUser from); /** - * Copy data into another generated Record/POJO implementing the common interface IWorkflowOfUser + * Copy data into another generated Record/POJO implementing the common + * interface IWorkflowOfUser */ - public E into(E into); + public E into(E into); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowUserAccess.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowUserAccess.java index 1ca1c59b543..fe0612ca5ac 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowUserAccess.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowUserAccess.java @@ -50,12 +50,14 @@ public interface IWorkflowUserAccess extends Serializable { // ------------------------------------------------------------------------- /** - * Load data from another generated Record/POJO implementing the common interface IWorkflowUserAccess + * Load data from another generated Record/POJO implementing the common + * interface IWorkflowUserAccess */ - public void from(edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowUserAccess from); + public void from(IWorkflowUserAccess from); /** - * Copy data into another generated Record/POJO implementing the common interface IWorkflowUserAccess + * Copy data into another generated Record/POJO implementing the common + * interface IWorkflowUserAccess */ - public E into(E into); + public E into(E into); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowUserClones.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowUserClones.java index 615d43cfb6e..e0a2fb74a75 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowUserClones.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowUserClones.java @@ -38,12 +38,14 @@ public interface IWorkflowUserClones extends Serializable { // ------------------------------------------------------------------------- /** - * Load data from another generated Record/POJO implementing the common interface IWorkflowUserClones + * Load data from another generated Record/POJO implementing the common + * interface IWorkflowUserClones */ - public void from(edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowUserClones from); + public void from(IWorkflowUserClones from); /** - * Copy data into another generated Record/POJO implementing the common interface IWorkflowUserClones + * Copy data into another generated Record/POJO implementing the common + * interface IWorkflowUserClones */ - public E into(E into); + public E into(E into); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowUserLikes.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowUserLikes.java index 431e9b3e3f7..e4967553105 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowUserLikes.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowUserLikes.java @@ -38,12 +38,14 @@ public interface IWorkflowUserLikes extends Serializable { // ------------------------------------------------------------------------- /** - * Load data from another generated Record/POJO implementing the common interface IWorkflowUserLikes + * Load data from another generated Record/POJO implementing the common + * interface IWorkflowUserLikes */ - public void from(edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowUserLikes from); + public void from(IWorkflowUserLikes from); /** - * Copy data into another generated Record/POJO implementing the common interface IWorkflowUserLikes + * Copy data into another generated Record/POJO implementing the common + * interface IWorkflowUserLikes */ - public E into(E into); + public E into(E into); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowVersion.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowVersion.java index d966a6bafe7..b4fe737b52c 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowVersion.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowVersion.java @@ -5,7 +5,7 @@ import java.io.Serializable; -import java.sql.Timestamp; +import java.time.LocalDateTime; /** @@ -47,24 +47,26 @@ public interface IWorkflowVersion extends Serializable { /** * Setter for texera_db.workflow_version.creation_time. */ - public void setCreationTime(Timestamp value); + public void setCreationTime(LocalDateTime value); /** * Getter for texera_db.workflow_version.creation_time. */ - public Timestamp getCreationTime(); + public LocalDateTime getCreationTime(); // ------------------------------------------------------------------------- // FROM and INTO // ------------------------------------------------------------------------- /** - * Load data from another generated Record/POJO implementing the common interface IWorkflowVersion + * Load data from another generated Record/POJO implementing the common + * interface IWorkflowVersion */ - public void from(edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowVersion from); + public void from(IWorkflowVersion from); /** - * Copy data into another generated Record/POJO implementing the common interface IWorkflowVersion + * Copy data into another generated Record/POJO implementing the common + * interface IWorkflowVersion */ - public E into(E into); + public E into(E into); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowViewCount.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowViewCount.java index 439a56731f5..585db60d7d4 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowViewCount.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowViewCount.java @@ -38,12 +38,14 @@ public interface IWorkflowViewCount extends Serializable { // ------------------------------------------------------------------------- /** - * Load data from another generated Record/POJO implementing the common interface IWorkflowViewCount + * Load data from another generated Record/POJO implementing the common + * interface IWorkflowViewCount */ - public void from(edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowViewCount from); + public void from(IWorkflowViewCount from); /** - * Copy data into another generated Record/POJO implementing the common interface IWorkflowViewCount + * Copy data into another generated Record/POJO implementing the common + * interface IWorkflowViewCount */ - public E into(E into); + public E into(E into); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Dataset.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Dataset.java index 7005e949770..6295398f084 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Dataset.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Dataset.java @@ -6,7 +6,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IDataset; -import java.sql.Timestamp; +import java.time.LocalDateTime; /** @@ -15,14 +15,14 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Dataset implements IDataset { - private static final long serialVersionUID = 1634678720; + private static final long serialVersionUID = 1L; - private Integer did; - private Integer ownerUid; - private String name; - private Boolean isPublic; - private String description; - private Timestamp creationTime; + private Integer did; + private Integer ownerUid; + private String name; + private Boolean isPublic; + private String description; + private LocalDateTime creationTime; public Dataset() {} @@ -36,12 +36,12 @@ public Dataset(IDataset value) { } public Dataset( - Integer did, - Integer ownerUid, - String name, - Boolean isPublic, - String description, - Timestamp creationTime + Integer did, + Integer ownerUid, + String name, + Boolean isPublic, + String description, + LocalDateTime creationTime ) { this.did = did; this.ownerUid = ownerUid; @@ -51,63 +51,99 @@ public Dataset( this.creationTime = creationTime; } + /** + * Getter for texera_db.dataset.did. + */ @Override public Integer getDid() { return this.did; } + /** + * Setter for texera_db.dataset.did. + */ @Override public void setDid(Integer did) { this.did = did; } + /** + * Getter for texera_db.dataset.owner_uid. + */ @Override public Integer getOwnerUid() { return this.ownerUid; } + /** + * Setter for texera_db.dataset.owner_uid. + */ @Override public void setOwnerUid(Integer ownerUid) { this.ownerUid = ownerUid; } + /** + * Getter for texera_db.dataset.name. + */ @Override public String getName() { return this.name; } + /** + * Setter for texera_db.dataset.name. + */ @Override public void setName(String name) { this.name = name; } + /** + * Getter for texera_db.dataset.is_public. + */ @Override public Boolean getIsPublic() { return this.isPublic; } + /** + * Setter for texera_db.dataset.is_public. + */ @Override public void setIsPublic(Boolean isPublic) { this.isPublic = isPublic; } + /** + * Getter for texera_db.dataset.description. + */ @Override public String getDescription() { return this.description; } + /** + * Setter for texera_db.dataset.description. + */ @Override public void setDescription(String description) { this.description = description; } + /** + * Getter for texera_db.dataset.creation_time. + */ @Override - public Timestamp getCreationTime() { + public LocalDateTime getCreationTime() { return this.creationTime; } + /** + * Setter for texera_db.dataset.creation_time. + */ @Override - public void setCreationTime(Timestamp creationTime) { + public void setCreationTime(LocalDateTime creationTime) { this.creationTime = creationTime; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetUserAccess.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetUserAccess.java index 0b2a6923768..63b15f9d0be 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetUserAccess.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetUserAccess.java @@ -14,7 +14,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class DatasetUserAccess implements IDatasetUserAccess { - private static final long serialVersionUID = 1259817283; + private static final long serialVersionUID = 1L; private Integer did; private Integer uid; @@ -38,31 +38,49 @@ public DatasetUserAccess( this.privilege = privilege; } + /** + * Getter for texera_db.dataset_user_access.did. + */ @Override public Integer getDid() { return this.did; } + /** + * Setter for texera_db.dataset_user_access.did. + */ @Override public void setDid(Integer did) { this.did = did; } + /** + * Getter for texera_db.dataset_user_access.uid. + */ @Override public Integer getUid() { return this.uid; } + /** + * Setter for texera_db.dataset_user_access.uid. + */ @Override public void setUid(Integer uid) { this.uid = uid; } + /** + * Getter for texera_db.dataset_user_access.privilege. + */ @Override public PrivilegeEnum getPrivilege() { return this.privilege; } + /** + * Setter for texera_db.dataset_user_access.privilege. + */ @Override public void setPrivilege(PrivilegeEnum privilege) { this.privilege = privilege; diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetVersion.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetVersion.java index 34e33e7e9e7..676c5bc3b98 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetVersion.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetVersion.java @@ -6,7 +6,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IDatasetVersion; -import java.sql.Timestamp; +import java.time.LocalDateTime; /** @@ -15,14 +15,14 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class DatasetVersion implements IDatasetVersion { - private static final long serialVersionUID = -1130559939; + private static final long serialVersionUID = 1L; - private Integer dvid; - private Integer did; - private Integer creatorUid; - private String name; - private String versionHash; - private Timestamp creationTime; + private Integer dvid; + private Integer did; + private Integer creatorUid; + private String name; + private String versionHash; + private LocalDateTime creationTime; public DatasetVersion() {} @@ -36,12 +36,12 @@ public DatasetVersion(IDatasetVersion value) { } public DatasetVersion( - Integer dvid, - Integer did, - Integer creatorUid, - String name, - String versionHash, - Timestamp creationTime + Integer dvid, + Integer did, + Integer creatorUid, + String name, + String versionHash, + LocalDateTime creationTime ) { this.dvid = dvid; this.did = did; @@ -51,63 +51,99 @@ public DatasetVersion( this.creationTime = creationTime; } + /** + * Getter for texera_db.dataset_version.dvid. + */ @Override public Integer getDvid() { return this.dvid; } + /** + * Setter for texera_db.dataset_version.dvid. + */ @Override public void setDvid(Integer dvid) { this.dvid = dvid; } + /** + * Getter for texera_db.dataset_version.did. + */ @Override public Integer getDid() { return this.did; } + /** + * Setter for texera_db.dataset_version.did. + */ @Override public void setDid(Integer did) { this.did = did; } + /** + * Getter for texera_db.dataset_version.creator_uid. + */ @Override public Integer getCreatorUid() { return this.creatorUid; } + /** + * Setter for texera_db.dataset_version.creator_uid. + */ @Override public void setCreatorUid(Integer creatorUid) { this.creatorUid = creatorUid; } + /** + * Getter for texera_db.dataset_version.name. + */ @Override public String getName() { return this.name; } + /** + * Setter for texera_db.dataset_version.name. + */ @Override public void setName(String name) { this.name = name; } + /** + * Getter for texera_db.dataset_version.version_hash. + */ @Override public String getVersionHash() { return this.versionHash; } + /** + * Setter for texera_db.dataset_version.version_hash. + */ @Override public void setVersionHash(String versionHash) { this.versionHash = versionHash; } + /** + * Getter for texera_db.dataset_version.creation_time. + */ @Override - public Timestamp getCreationTime() { + public LocalDateTime getCreationTime() { return this.creationTime; } + /** + * Setter for texera_db.dataset_version.creation_time. + */ @Override - public void setCreationTime(Timestamp creationTime) { + public void setCreationTime(LocalDateTime creationTime) { this.creationTime = creationTime; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorExecutions.java index f18bce17347..ffda0909942 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorExecutions.java @@ -13,7 +13,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class OperatorExecutions implements IOperatorExecutions { - private static final long serialVersionUID = -216049396; + private static final long serialVersionUID = 1L; private Long operatorExecutionId; private Integer workflowExecutionId; @@ -37,31 +37,53 @@ public OperatorExecutions( this.operatorId = operatorId; } + /** + * Getter for + * texera_db.operator_executions.operator_execution_id. + */ @Override public Long getOperatorExecutionId() { return this.operatorExecutionId; } + /** + * Setter for + * texera_db.operator_executions.operator_execution_id. + */ @Override public void setOperatorExecutionId(Long operatorExecutionId) { this.operatorExecutionId = operatorExecutionId; } + /** + * Getter for + * texera_db.operator_executions.workflow_execution_id. + */ @Override public Integer getWorkflowExecutionId() { return this.workflowExecutionId; } + /** + * Setter for + * texera_db.operator_executions.workflow_execution_id. + */ @Override public void setWorkflowExecutionId(Integer workflowExecutionId) { this.workflowExecutionId = workflowExecutionId; } + /** + * Getter for texera_db.operator_executions.operator_id. + */ @Override public String getOperatorId() { return this.operatorId; } + /** + * Setter for texera_db.operator_executions.operator_id. + */ @Override public void setOperatorId(String operatorId) { this.operatorId = operatorId; diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorRuntimeStatistics.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorRuntimeStatistics.java index 0fb34ea53fc..1fd925eafb3 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorRuntimeStatistics.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorRuntimeStatistics.java @@ -6,7 +6,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IOperatorRuntimeStatistics; -import java.sql.Timestamp; +import java.time.LocalDateTime; /** @@ -15,17 +15,17 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class OperatorRuntimeStatistics implements IOperatorRuntimeStatistics { - private static final long serialVersionUID = -1223233402; + private static final long serialVersionUID = 1L; - private Long operatorExecutionId; - private Timestamp time; - private Long inputTupleCnt; - private Long outputTupleCnt; - private Short status; - private Long dataProcessingTime; - private Long controlProcessingTime; - private Long idleTime; - private Integer numWorkers; + private Long operatorExecutionId; + private LocalDateTime time; + private Long inputTupleCnt; + private Long outputTupleCnt; + private Short status; + private Long dataProcessingTime; + private Long controlProcessingTime; + private Long idleTime; + private Integer numWorkers; public OperatorRuntimeStatistics() {} @@ -42,15 +42,15 @@ public OperatorRuntimeStatistics(IOperatorRuntimeStatistics value) { } public OperatorRuntimeStatistics( - Long operatorExecutionId, - Timestamp time, - Long inputTupleCnt, - Long outputTupleCnt, - Short status, - Long dataProcessingTime, - Long controlProcessingTime, - Long idleTime, - Integer numWorkers + Long operatorExecutionId, + LocalDateTime time, + Long inputTupleCnt, + Long outputTupleCnt, + Short status, + Long dataProcessingTime, + Long controlProcessingTime, + Long idleTime, + Integer numWorkers ) { this.operatorExecutionId = operatorExecutionId; this.time = time; @@ -63,91 +63,157 @@ public OperatorRuntimeStatistics( this.numWorkers = numWorkers; } + /** + * Getter for + * texera_db.operator_runtime_statistics.operator_execution_id. + */ @Override public Long getOperatorExecutionId() { return this.operatorExecutionId; } + /** + * Setter for + * texera_db.operator_runtime_statistics.operator_execution_id. + */ @Override public void setOperatorExecutionId(Long operatorExecutionId) { this.operatorExecutionId = operatorExecutionId; } + /** + * Getter for texera_db.operator_runtime_statistics.time. + */ @Override - public Timestamp getTime() { + public LocalDateTime getTime() { return this.time; } + /** + * Setter for texera_db.operator_runtime_statistics.time. + */ @Override - public void setTime(Timestamp time) { + public void setTime(LocalDateTime time) { this.time = time; } + /** + * Getter for + * texera_db.operator_runtime_statistics.input_tuple_cnt. + */ @Override public Long getInputTupleCnt() { return this.inputTupleCnt; } + /** + * Setter for + * texera_db.operator_runtime_statistics.input_tuple_cnt. + */ @Override public void setInputTupleCnt(Long inputTupleCnt) { this.inputTupleCnt = inputTupleCnt; } + /** + * Getter for + * texera_db.operator_runtime_statistics.output_tuple_cnt. + */ @Override public Long getOutputTupleCnt() { return this.outputTupleCnt; } + /** + * Setter for + * texera_db.operator_runtime_statistics.output_tuple_cnt. + */ @Override public void setOutputTupleCnt(Long outputTupleCnt) { this.outputTupleCnt = outputTupleCnt; } + /** + * Getter for texera_db.operator_runtime_statistics.status. + */ @Override public Short getStatus() { return this.status; } + /** + * Setter for texera_db.operator_runtime_statistics.status. + */ @Override public void setStatus(Short status) { this.status = status; } + /** + * Getter for + * texera_db.operator_runtime_statistics.data_processing_time. + */ @Override public Long getDataProcessingTime() { return this.dataProcessingTime; } + /** + * Setter for + * texera_db.operator_runtime_statistics.data_processing_time. + */ @Override public void setDataProcessingTime(Long dataProcessingTime) { this.dataProcessingTime = dataProcessingTime; } + /** + * Getter for + * texera_db.operator_runtime_statistics.control_processing_time. + */ @Override public Long getControlProcessingTime() { return this.controlProcessingTime; } + /** + * Setter for + * texera_db.operator_runtime_statistics.control_processing_time. + */ @Override public void setControlProcessingTime(Long controlProcessingTime) { this.controlProcessingTime = controlProcessingTime; } + /** + * Getter for texera_db.operator_runtime_statistics.idle_time. + */ @Override public Long getIdleTime() { return this.idleTime; } + /** + * Setter for texera_db.operator_runtime_statistics.idle_time. + */ @Override public void setIdleTime(Long idleTime) { this.idleTime = idleTime; } + /** + * Getter for + * texera_db.operator_runtime_statistics.num_workers. + */ @Override public Integer getNumWorkers() { return this.numWorkers; } + /** + * Setter for + * texera_db.operator_runtime_statistics.num_workers. + */ @Override public void setNumWorkers(Integer numWorkers) { this.numWorkers = numWorkers; diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Project.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Project.java index 1fbb148ec01..734fc91e19b 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Project.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Project.java @@ -6,7 +6,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IProject; -import java.sql.Timestamp; +import java.time.LocalDateTime; /** @@ -15,14 +15,14 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Project implements IProject { - private static final long serialVersionUID = -554987569; + private static final long serialVersionUID = 1L; - private Integer pid; - private String name; - private String description; - private Integer ownerId; - private Timestamp creationTime; - private String color; + private Integer pid; + private String name; + private String description; + private Integer ownerId; + private LocalDateTime creationTime; + private String color; public Project() {} @@ -36,12 +36,12 @@ public Project(IProject value) { } public Project( - Integer pid, - String name, - String description, - Integer ownerId, - Timestamp creationTime, - String color + Integer pid, + String name, + String description, + Integer ownerId, + LocalDateTime creationTime, + String color ) { this.pid = pid; this.name = name; @@ -51,61 +51,97 @@ public Project( this.color = color; } + /** + * Getter for texera_db.project.pid. + */ @Override public Integer getPid() { return this.pid; } + /** + * Setter for texera_db.project.pid. + */ @Override public void setPid(Integer pid) { this.pid = pid; } + /** + * Getter for texera_db.project.name. + */ @Override public String getName() { return this.name; } + /** + * Setter for texera_db.project.name. + */ @Override public void setName(String name) { this.name = name; } + /** + * Getter for texera_db.project.description. + */ @Override public String getDescription() { return this.description; } + /** + * Setter for texera_db.project.description. + */ @Override public void setDescription(String description) { this.description = description; } + /** + * Getter for texera_db.project.owner_id. + */ @Override public Integer getOwnerId() { return this.ownerId; } + /** + * Setter for texera_db.project.owner_id. + */ @Override public void setOwnerId(Integer ownerId) { this.ownerId = ownerId; } + /** + * Getter for texera_db.project.creation_time. + */ @Override - public Timestamp getCreationTime() { + public LocalDateTime getCreationTime() { return this.creationTime; } + /** + * Setter for texera_db.project.creation_time. + */ @Override - public void setCreationTime(Timestamp creationTime) { + public void setCreationTime(LocalDateTime creationTime) { this.creationTime = creationTime; } + /** + * Getter for texera_db.project.color. + */ @Override public String getColor() { return this.color; } + /** + * Setter for texera_db.project.color. + */ @Override public void setColor(String color) { this.color = color; diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/ProjectUserAccess.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/ProjectUserAccess.java index 9d76a135446..251e2bf4c15 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/ProjectUserAccess.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/ProjectUserAccess.java @@ -14,7 +14,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class ProjectUserAccess implements IProjectUserAccess { - private static final long serialVersionUID = 190987603; + private static final long serialVersionUID = 1L; private Integer uid; private Integer pid; @@ -38,31 +38,49 @@ public ProjectUserAccess( this.privilege = privilege; } + /** + * Getter for texera_db.project_user_access.uid. + */ @Override public Integer getUid() { return this.uid; } + /** + * Setter for texera_db.project_user_access.uid. + */ @Override public void setUid(Integer uid) { this.uid = uid; } + /** + * Getter for texera_db.project_user_access.pid. + */ @Override public Integer getPid() { return this.pid; } + /** + * Setter for texera_db.project_user_access.pid. + */ @Override public void setPid(Integer pid) { this.pid = pid; } + /** + * Getter for texera_db.project_user_access.privilege. + */ @Override public PrivilegeEnum getPrivilege() { return this.privilege; } + /** + * Setter for texera_db.project_user_access.privilege. + */ @Override public void setPrivilege(PrivilegeEnum privilege) { this.privilege = privilege; diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/PublicProject.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/PublicProject.java index 1f128491093..e1d40a03c05 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/PublicProject.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/PublicProject.java @@ -13,7 +13,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class PublicProject implements IPublicProject { - private static final long serialVersionUID = 52156527; + private static final long serialVersionUID = 1L; private Integer pid; private Integer uid; @@ -33,21 +33,33 @@ public PublicProject( this.uid = uid; } + /** + * Getter for texera_db.public_project.pid. + */ @Override public Integer getPid() { return this.pid; } + /** + * Setter for texera_db.public_project.pid. + */ @Override public void setPid(Integer pid) { this.pid = pid; } + /** + * Getter for texera_db.public_project.uid. + */ @Override public Integer getUid() { return this.uid; } + /** + * Setter for texera_db.public_project.uid. + */ @Override public void setUid(Integer uid) { this.uid = uid; diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/User.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/User.java index 33afcef4abf..dd0fac2eace 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/User.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/User.java @@ -14,7 +14,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class User implements IUser { - private static final long serialVersionUID = 1743077803; + private static final long serialVersionUID = 1L; private Integer uid; private String name; @@ -54,71 +54,113 @@ public User( this.googleAvatar = googleAvatar; } + /** + * Getter for texera_db.user.uid. + */ @Override public Integer getUid() { return this.uid; } + /** + * Setter for texera_db.user.uid. + */ @Override public void setUid(Integer uid) { this.uid = uid; } + /** + * Getter for texera_db.user.name. + */ @Override public String getName() { return this.name; } + /** + * Setter for texera_db.user.name. + */ @Override public void setName(String name) { this.name = name; } + /** + * Getter for texera_db.user.email. + */ @Override public String getEmail() { return this.email; } + /** + * Setter for texera_db.user.email. + */ @Override public void setEmail(String email) { this.email = email; } + /** + * Getter for texera_db.user.password. + */ @Override public String getPassword() { return this.password; } + /** + * Setter for texera_db.user.password. + */ @Override public void setPassword(String password) { this.password = password; } + /** + * Getter for texera_db.user.google_id. + */ @Override public String getGoogleId() { return this.googleId; } + /** + * Setter for texera_db.user.google_id. + */ @Override public void setGoogleId(String googleId) { this.googleId = googleId; } + /** + * Getter for texera_db.user.role. + */ @Override public UserRoleEnum getRole() { return this.role; } + /** + * Setter for texera_db.user.role. + */ @Override public void setRole(UserRoleEnum role) { this.role = role; } + /** + * Getter for texera_db.user.google_avatar. + */ @Override public String getGoogleAvatar() { return this.googleAvatar; } + /** + * Setter for texera_db.user.google_avatar. + */ @Override public void setGoogleAvatar(String googleAvatar) { this.googleAvatar = googleAvatar; diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/UserActivity.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/UserActivity.java index 2e33c5a1165..24d39dabea9 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/UserActivity.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/UserActivity.java @@ -6,7 +6,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IUserActivity; -import java.sql.Timestamp; +import java.time.LocalDateTime; /** @@ -15,14 +15,14 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class UserActivity implements IUserActivity { - private static final long serialVersionUID = -2119184409; + private static final long serialVersionUID = 1L; - private Integer uid; - private Integer id; - private String type; - private String ip; - private String activate; - private Timestamp activityTime; + private Integer uid; + private Integer id; + private String type; + private String ip; + private String activate; + private LocalDateTime activityTime; public UserActivity() {} @@ -36,12 +36,12 @@ public UserActivity(IUserActivity value) { } public UserActivity( - Integer uid, - Integer id, - String type, - String ip, - String activate, - Timestamp activityTime + Integer uid, + Integer id, + String type, + String ip, + String activate, + LocalDateTime activityTime ) { this.uid = uid; this.id = id; @@ -51,63 +51,99 @@ public UserActivity( this.activityTime = activityTime; } + /** + * Getter for texera_db.user_activity.uid. + */ @Override public Integer getUid() { return this.uid; } + /** + * Setter for texera_db.user_activity.uid. + */ @Override public void setUid(Integer uid) { this.uid = uid; } + /** + * Getter for texera_db.user_activity.id. + */ @Override public Integer getId() { return this.id; } + /** + * Setter for texera_db.user_activity.id. + */ @Override public void setId(Integer id) { this.id = id; } + /** + * Getter for texera_db.user_activity.type. + */ @Override public String getType() { return this.type; } + /** + * Setter for texera_db.user_activity.type. + */ @Override public void setType(String type) { this.type = type; } + /** + * Getter for texera_db.user_activity.ip. + */ @Override public String getIp() { return this.ip; } + /** + * Setter for texera_db.user_activity.ip. + */ @Override public void setIp(String ip) { this.ip = ip; } + /** + * Getter for texera_db.user_activity.activate. + */ @Override public String getActivate() { return this.activate; } + /** + * Setter for texera_db.user_activity.activate. + */ @Override public void setActivate(String activate) { this.activate = activate; } + /** + * Getter for texera_db.user_activity.activity_time. + */ @Override - public Timestamp getActivityTime() { + public LocalDateTime getActivityTime() { return this.activityTime; } + /** + * Setter for texera_db.user_activity.activity_time. + */ @Override - public void setActivityTime(Timestamp activityTime) { + public void setActivityTime(LocalDateTime activityTime) { this.activityTime = activityTime; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/UserConfig.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/UserConfig.java index 8d39d089711..aa2d2ec7133 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/UserConfig.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/UserConfig.java @@ -13,7 +13,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class UserConfig implements IUserConfig { - private static final long serialVersionUID = 1430065156; + private static final long serialVersionUID = 1L; private Integer uid; private String key; @@ -37,31 +37,49 @@ public UserConfig( this.value = value; } + /** + * Getter for texera_db.user_config.uid. + */ @Override public Integer getUid() { return this.uid; } + /** + * Setter for texera_db.user_config.uid. + */ @Override public void setUid(Integer uid) { this.uid = uid; } + /** + * Getter for texera_db.user_config.key. + */ @Override public String getKey() { return this.key; } + /** + * Setter for texera_db.user_config.key. + */ @Override public void setKey(String key) { this.key = key; } + /** + * Getter for texera_db.user_config.value. + */ @Override public String getValue() { return this.value; } + /** + * Setter for texera_db.user_config.value. + */ @Override public void setValue(String value) { this.value = value; diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Workflow.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Workflow.java index 37e0f269805..b170b97f2bf 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Workflow.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Workflow.java @@ -6,7 +6,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflow; -import java.sql.Timestamp; +import java.time.LocalDateTime; /** @@ -15,15 +15,15 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Workflow implements IWorkflow { - private static final long serialVersionUID = -835911825; + private static final long serialVersionUID = 1L; - private Integer wid; - private String name; - private String description; - private String content; - private Timestamp creationTime; - private Timestamp lastModifiedTime; - private Boolean isPublic; + private Integer wid; + private String name; + private String description; + private String content; + private LocalDateTime creationTime; + private LocalDateTime lastModifiedTime; + private Boolean isPublic; public Workflow() {} @@ -38,13 +38,13 @@ public Workflow(IWorkflow value) { } public Workflow( - Integer wid, - String name, - String description, - String content, - Timestamp creationTime, - Timestamp lastModifiedTime, - Boolean isPublic + Integer wid, + String name, + String description, + String content, + LocalDateTime creationTime, + LocalDateTime lastModifiedTime, + Boolean isPublic ) { this.wid = wid; this.name = name; @@ -55,71 +55,113 @@ public Workflow( this.isPublic = isPublic; } + /** + * Getter for texera_db.workflow.wid. + */ @Override public Integer getWid() { return this.wid; } + /** + * Setter for texera_db.workflow.wid. + */ @Override public void setWid(Integer wid) { this.wid = wid; } + /** + * Getter for texera_db.workflow.name. + */ @Override public String getName() { return this.name; } + /** + * Setter for texera_db.workflow.name. + */ @Override public void setName(String name) { this.name = name; } + /** + * Getter for texera_db.workflow.description. + */ @Override public String getDescription() { return this.description; } + /** + * Setter for texera_db.workflow.description. + */ @Override public void setDescription(String description) { this.description = description; } + /** + * Getter for texera_db.workflow.content. + */ @Override public String getContent() { return this.content; } + /** + * Setter for texera_db.workflow.content. + */ @Override public void setContent(String content) { this.content = content; } + /** + * Getter for texera_db.workflow.creation_time. + */ @Override - public Timestamp getCreationTime() { + public LocalDateTime getCreationTime() { return this.creationTime; } + /** + * Setter for texera_db.workflow.creation_time. + */ @Override - public void setCreationTime(Timestamp creationTime) { + public void setCreationTime(LocalDateTime creationTime) { this.creationTime = creationTime; } + /** + * Getter for texera_db.workflow.last_modified_time. + */ @Override - public Timestamp getLastModifiedTime() { + public LocalDateTime getLastModifiedTime() { return this.lastModifiedTime; } + /** + * Setter for texera_db.workflow.last_modified_time. + */ @Override - public void setLastModifiedTime(Timestamp lastModifiedTime) { + public void setLastModifiedTime(LocalDateTime lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } + /** + * Getter for texera_db.workflow.is_public. + */ @Override public Boolean getIsPublic() { return this.isPublic; } + /** + * Setter for texera_db.workflow.is_public. + */ @Override public void setIsPublic(Boolean isPublic) { this.isPublic = isPublic; diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowExecutions.java index a6779b66e98..225c6093a7c 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowExecutions.java @@ -6,7 +6,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowExecutions; -import java.sql.Timestamp; +import java.time.LocalDateTime; /** @@ -15,19 +15,19 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowExecutions implements IWorkflowExecutions { - private static final long serialVersionUID = 2121798601; + private static final long serialVersionUID = 1L; - private Integer eid; - private Integer vid; - private Integer uid; - private Short status; - private String result; - private Timestamp startingTime; - private Timestamp lastUpdateTime; - private Boolean bookmarked; - private String name; - private String environmentVersion; - private String logLocation; + private Integer eid; + private Integer vid; + private Integer uid; + private Short status; + private String result; + private LocalDateTime startingTime; + private LocalDateTime lastUpdateTime; + private Boolean bookmarked; + private String name; + private String environmentVersion; + private String logLocation; public WorkflowExecutions() {} @@ -46,17 +46,17 @@ public WorkflowExecutions(IWorkflowExecutions value) { } public WorkflowExecutions( - Integer eid, - Integer vid, - Integer uid, - Short status, - String result, - Timestamp startingTime, - Timestamp lastUpdateTime, - Boolean bookmarked, - String name, - String environmentVersion, - String logLocation + Integer eid, + Integer vid, + Integer uid, + Short status, + String result, + LocalDateTime startingTime, + LocalDateTime lastUpdateTime, + Boolean bookmarked, + String name, + String environmentVersion, + String logLocation ) { this.eid = eid; this.vid = vid; @@ -71,111 +71,179 @@ public WorkflowExecutions( this.logLocation = logLocation; } + /** + * Getter for texera_db.workflow_executions.eid. + */ @Override public Integer getEid() { return this.eid; } + /** + * Setter for texera_db.workflow_executions.eid. + */ @Override public void setEid(Integer eid) { this.eid = eid; } + /** + * Getter for texera_db.workflow_executions.vid. + */ @Override public Integer getVid() { return this.vid; } + /** + * Setter for texera_db.workflow_executions.vid. + */ @Override public void setVid(Integer vid) { this.vid = vid; } + /** + * Getter for texera_db.workflow_executions.uid. + */ @Override public Integer getUid() { return this.uid; } + /** + * Setter for texera_db.workflow_executions.uid. + */ @Override public void setUid(Integer uid) { this.uid = uid; } + /** + * Getter for texera_db.workflow_executions.status. + */ @Override public Short getStatus() { return this.status; } + /** + * Setter for texera_db.workflow_executions.status. + */ @Override public void setStatus(Short status) { this.status = status; } + /** + * Getter for texera_db.workflow_executions.result. + */ @Override public String getResult() { return this.result; } + /** + * Setter for texera_db.workflow_executions.result. + */ @Override public void setResult(String result) { this.result = result; } + /** + * Getter for texera_db.workflow_executions.starting_time. + */ @Override - public Timestamp getStartingTime() { + public LocalDateTime getStartingTime() { return this.startingTime; } + /** + * Setter for texera_db.workflow_executions.starting_time. + */ @Override - public void setStartingTime(Timestamp startingTime) { + public void setStartingTime(LocalDateTime startingTime) { this.startingTime = startingTime; } + /** + * Getter for texera_db.workflow_executions.last_update_time. + */ @Override - public Timestamp getLastUpdateTime() { + public LocalDateTime getLastUpdateTime() { return this.lastUpdateTime; } + /** + * Setter for texera_db.workflow_executions.last_update_time. + */ @Override - public void setLastUpdateTime(Timestamp lastUpdateTime) { + public void setLastUpdateTime(LocalDateTime lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; } + /** + * Getter for texera_db.workflow_executions.bookmarked. + */ @Override public Boolean getBookmarked() { return this.bookmarked; } + /** + * Setter for texera_db.workflow_executions.bookmarked. + */ @Override public void setBookmarked(Boolean bookmarked) { this.bookmarked = bookmarked; } + /** + * Getter for texera_db.workflow_executions.name. + */ @Override public String getName() { return this.name; } + /** + * Setter for texera_db.workflow_executions.name. + */ @Override public void setName(String name) { this.name = name; } + /** + * Getter for + * texera_db.workflow_executions.environment_version. + */ @Override public String getEnvironmentVersion() { return this.environmentVersion; } + /** + * Setter for + * texera_db.workflow_executions.environment_version. + */ @Override public void setEnvironmentVersion(String environmentVersion) { this.environmentVersion = environmentVersion; } + /** + * Getter for texera_db.workflow_executions.log_location. + */ @Override public String getLogLocation() { return this.logLocation; } + /** + * Setter for texera_db.workflow_executions.log_location. + */ @Override public void setLogLocation(String logLocation) { this.logLocation = logLocation; diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowOfProject.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowOfProject.java index 6a6f52171dc..b6a23d19bac 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowOfProject.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowOfProject.java @@ -13,7 +13,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowOfProject implements IWorkflowOfProject { - private static final long serialVersionUID = -794046443; + private static final long serialVersionUID = 1L; private Integer wid; private Integer pid; @@ -33,21 +33,33 @@ public WorkflowOfProject( this.pid = pid; } + /** + * Getter for texera_db.workflow_of_project.wid. + */ @Override public Integer getWid() { return this.wid; } + /** + * Setter for texera_db.workflow_of_project.wid. + */ @Override public void setWid(Integer wid) { this.wid = wid; } + /** + * Getter for texera_db.workflow_of_project.pid. + */ @Override public Integer getPid() { return this.pid; } + /** + * Setter for texera_db.workflow_of_project.pid. + */ @Override public void setPid(Integer pid) { this.pid = pid; diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowOfUser.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowOfUser.java index 59f74ac3250..ed35d454156 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowOfUser.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowOfUser.java @@ -13,7 +13,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowOfUser implements IWorkflowOfUser { - private static final long serialVersionUID = -628435094; + private static final long serialVersionUID = 1L; private Integer uid; private Integer wid; @@ -33,21 +33,33 @@ public WorkflowOfUser( this.wid = wid; } + /** + * Getter for texera_db.workflow_of_user.uid. + */ @Override public Integer getUid() { return this.uid; } + /** + * Setter for texera_db.workflow_of_user.uid. + */ @Override public void setUid(Integer uid) { this.uid = uid; } + /** + * Getter for texera_db.workflow_of_user.wid. + */ @Override public Integer getWid() { return this.wid; } + /** + * Setter for texera_db.workflow_of_user.wid. + */ @Override public void setWid(Integer wid) { this.wid = wid; diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowUserAccess.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowUserAccess.java index 6832c5d2990..2abaf3090f0 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowUserAccess.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowUserAccess.java @@ -14,7 +14,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowUserAccess implements IWorkflowUserAccess { - private static final long serialVersionUID = -2021275644; + private static final long serialVersionUID = 1L; private Integer uid; private Integer wid; @@ -38,31 +38,49 @@ public WorkflowUserAccess( this.privilege = privilege; } + /** + * Getter for texera_db.workflow_user_access.uid. + */ @Override public Integer getUid() { return this.uid; } + /** + * Setter for texera_db.workflow_user_access.uid. + */ @Override public void setUid(Integer uid) { this.uid = uid; } + /** + * Getter for texera_db.workflow_user_access.wid. + */ @Override public Integer getWid() { return this.wid; } + /** + * Setter for texera_db.workflow_user_access.wid. + */ @Override public void setWid(Integer wid) { this.wid = wid; } + /** + * Getter for texera_db.workflow_user_access.privilege. + */ @Override public PrivilegeEnum getPrivilege() { return this.privilege; } + /** + * Setter for texera_db.workflow_user_access.privilege. + */ @Override public void setPrivilege(PrivilegeEnum privilege) { this.privilege = privilege; diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowUserClones.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowUserClones.java index 2d68a7cd9fc..aabfe032d95 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowUserClones.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowUserClones.java @@ -13,7 +13,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowUserClones implements IWorkflowUserClones { - private static final long serialVersionUID = -665673650; + private static final long serialVersionUID = 1L; private Integer uid; private Integer wid; @@ -33,21 +33,33 @@ public WorkflowUserClones( this.wid = wid; } + /** + * Getter for texera_db.workflow_user_clones.uid. + */ @Override public Integer getUid() { return this.uid; } + /** + * Setter for texera_db.workflow_user_clones.uid. + */ @Override public void setUid(Integer uid) { this.uid = uid; } + /** + * Getter for texera_db.workflow_user_clones.wid. + */ @Override public Integer getWid() { return this.wid; } + /** + * Setter for texera_db.workflow_user_clones.wid. + */ @Override public void setWid(Integer wid) { this.wid = wid; diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowUserLikes.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowUserLikes.java index 8fb9b1d6559..0a1e6eba99b 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowUserLikes.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowUserLikes.java @@ -13,7 +13,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowUserLikes implements IWorkflowUserLikes { - private static final long serialVersionUID = -273807986; + private static final long serialVersionUID = 1L; private Integer uid; private Integer wid; @@ -33,21 +33,33 @@ public WorkflowUserLikes( this.wid = wid; } + /** + * Getter for texera_db.workflow_user_likes.uid. + */ @Override public Integer getUid() { return this.uid; } + /** + * Setter for texera_db.workflow_user_likes.uid. + */ @Override public void setUid(Integer uid) { this.uid = uid; } + /** + * Getter for texera_db.workflow_user_likes.wid. + */ @Override public Integer getWid() { return this.wid; } + /** + * Setter for texera_db.workflow_user_likes.wid. + */ @Override public void setWid(Integer wid) { this.wid = wid; diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowVersion.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowVersion.java index 032fa4da9c8..74869bee74f 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowVersion.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowVersion.java @@ -6,7 +6,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowVersion; -import java.sql.Timestamp; +import java.time.LocalDateTime; /** @@ -15,12 +15,12 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowVersion implements IWorkflowVersion { - private static final long serialVersionUID = -120441290; + private static final long serialVersionUID = 1L; - private Integer vid; - private Integer wid; - private String content; - private Timestamp creationTime; + private Integer vid; + private Integer wid; + private String content; + private LocalDateTime creationTime; public WorkflowVersion() {} @@ -32,10 +32,10 @@ public WorkflowVersion(IWorkflowVersion value) { } public WorkflowVersion( - Integer vid, - Integer wid, - String content, - Timestamp creationTime + Integer vid, + Integer wid, + String content, + LocalDateTime creationTime ) { this.vid = vid; this.wid = wid; @@ -43,43 +43,67 @@ public WorkflowVersion( this.creationTime = creationTime; } + /** + * Getter for texera_db.workflow_version.vid. + */ @Override public Integer getVid() { return this.vid; } + /** + * Setter for texera_db.workflow_version.vid. + */ @Override public void setVid(Integer vid) { this.vid = vid; } + /** + * Getter for texera_db.workflow_version.wid. + */ @Override public Integer getWid() { return this.wid; } + /** + * Setter for texera_db.workflow_version.wid. + */ @Override public void setWid(Integer wid) { this.wid = wid; } + /** + * Getter for texera_db.workflow_version.content. + */ @Override public String getContent() { return this.content; } + /** + * Setter for texera_db.workflow_version.content. + */ @Override public void setContent(String content) { this.content = content; } + /** + * Getter for texera_db.workflow_version.creation_time. + */ @Override - public Timestamp getCreationTime() { + public LocalDateTime getCreationTime() { return this.creationTime; } + /** + * Setter for texera_db.workflow_version.creation_time. + */ @Override - public void setCreationTime(Timestamp creationTime) { + public void setCreationTime(LocalDateTime creationTime) { this.creationTime = creationTime; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowViewCount.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowViewCount.java index 5e19ccc7335..5359c721050 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowViewCount.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowViewCount.java @@ -13,7 +13,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowViewCount implements IWorkflowViewCount { - private static final long serialVersionUID = 1483149706; + private static final long serialVersionUID = 1L; private Integer wid; private Integer viewCount; @@ -33,21 +33,33 @@ public WorkflowViewCount( this.viewCount = viewCount; } + /** + * Getter for texera_db.workflow_view_count.wid. + */ @Override public Integer getWid() { return this.wid; } + /** + * Setter for texera_db.workflow_view_count.wid. + */ @Override public void setWid(Integer wid) { this.wid = wid; } + /** + * Getter for texera_db.workflow_view_count.view_count. + */ @Override public Integer getViewCount() { return this.viewCount; } + /** + * Setter for texera_db.workflow_view_count.view_count. + */ @Override public void setViewCount(Integer viewCount) { this.viewCount = viewCount; diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetRecord.java index 1026262c251..bb5a739246b 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetRecord.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.Dataset; import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IDataset; -import java.sql.Timestamp; +import java.time.LocalDateTime; import org.jooq.Field; import org.jooq.Record1; @@ -20,9 +20,9 @@ * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class DatasetRecord extends UpdatableRecordImpl implements Record6, IDataset { +public class DatasetRecord extends UpdatableRecordImpl implements Record6, IDataset { - private static final long serialVersionUID = 795948837; + private static final long serialVersionUID = 1L; /** * Setter for texera_db.dataset.did. @@ -108,7 +108,7 @@ public String getDescription() { * Setter for texera_db.dataset.creation_time. */ @Override - public void setCreationTime(Timestamp value) { + public void setCreationTime(LocalDateTime value) { set(5, value); } @@ -116,8 +116,8 @@ public void setCreationTime(Timestamp value) { * Getter for texera_db.dataset.creation_time. */ @Override - public Timestamp getCreationTime() { - return (Timestamp) get(5); + public LocalDateTime getCreationTime() { + return (LocalDateTime) get(5); } // ------------------------------------------------------------------------- @@ -134,12 +134,12 @@ public Record1 key() { // ------------------------------------------------------------------------- @Override - public Row6 fieldsRow() { + public Row6 fieldsRow() { return (Row6) super.fieldsRow(); } @Override - public Row6 valuesRow() { + public Row6 valuesRow() { return (Row6) super.valuesRow(); } @@ -169,7 +169,7 @@ public Field field5() { } @Override - public Field field6() { + public Field field6() { return Dataset.DATASET.CREATION_TIME; } @@ -199,7 +199,7 @@ public String component5() { } @Override - public Timestamp component6() { + public LocalDateTime component6() { return getCreationTime(); } @@ -229,7 +229,7 @@ public String value5() { } @Override - public Timestamp value6() { + public LocalDateTime value6() { return getCreationTime(); } @@ -264,13 +264,13 @@ public DatasetRecord value5(String value) { } @Override - public DatasetRecord value6(Timestamp value) { + public DatasetRecord value6(LocalDateTime value) { setCreationTime(value); return this; } @Override - public DatasetRecord values(Integer value1, Integer value2, String value3, Boolean value4, String value5, Timestamp value6) { + public DatasetRecord values(Integer value1, Integer value2, String value3, Boolean value4, String value5, LocalDateTime value6) { value1(value1); value2(value2); value3(value3); @@ -314,14 +314,30 @@ public DatasetRecord() { /** * Create a detached, initialised DatasetRecord */ - public DatasetRecord(Integer did, Integer ownerUid, String name, Boolean isPublic, String description, Timestamp creationTime) { + public DatasetRecord(Integer did, Integer ownerUid, String name, Boolean isPublic, String description, LocalDateTime creationTime) { super(Dataset.DATASET); - set(0, did); - set(1, ownerUid); - set(2, name); - set(3, isPublic); - set(4, description); - set(5, creationTime); + setDid(did); + setOwnerUid(ownerUid); + setName(name); + setIsPublic(isPublic); + setDescription(description); + setCreationTime(creationTime); + } + + /** + * Create a detached, initialised DatasetRecord + */ + public DatasetRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.Dataset value) { + super(Dataset.DATASET); + + if (value != null) { + setDid(value.getDid()); + setOwnerUid(value.getOwnerUid()); + setName(value.getName()); + setIsPublic(value.getIsPublic()); + setDescription(value.getDescription()); + setCreationTime(value.getCreationTime()); + } } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetUserAccessRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetUserAccessRecord.java index dd9a13f4135..ea8702f5bc0 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetUserAccessRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetUserAccessRecord.java @@ -21,7 +21,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class DatasetUserAccessRecord extends UpdatableRecordImpl implements Record3, IDatasetUserAccess { - private static final long serialVersionUID = 171720249; + private static final long serialVersionUID = 1L; /** * Setter for texera_db.dataset_user_access.did. @@ -199,8 +199,21 @@ public DatasetUserAccessRecord() { public DatasetUserAccessRecord(Integer did, Integer uid, PrivilegeEnum privilege) { super(DatasetUserAccess.DATASET_USER_ACCESS); - set(0, did); - set(1, uid); - set(2, privilege); + setDid(did); + setUid(uid); + setPrivilege(privilege); + } + + /** + * Create a detached, initialised DatasetUserAccessRecord + */ + public DatasetUserAccessRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.DatasetUserAccess value) { + super(DatasetUserAccess.DATASET_USER_ACCESS); + + if (value != null) { + setDid(value.getDid()); + setUid(value.getUid()); + setPrivilege(value.getPrivilege()); + } } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetVersionRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetVersionRecord.java index 84026ecd8fe..5b326168f46 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetVersionRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetVersionRecord.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetVersion; import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IDatasetVersion; -import java.sql.Timestamp; +import java.time.LocalDateTime; import org.jooq.Field; import org.jooq.Record1; @@ -20,9 +20,9 @@ * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class DatasetVersionRecord extends UpdatableRecordImpl implements Record6, IDatasetVersion { +public class DatasetVersionRecord extends UpdatableRecordImpl implements Record6, IDatasetVersion { - private static final long serialVersionUID = -1873710625; + private static final long serialVersionUID = 1L; /** * Setter for texera_db.dataset_version.dvid. @@ -108,7 +108,7 @@ public String getVersionHash() { * Setter for texera_db.dataset_version.creation_time. */ @Override - public void setCreationTime(Timestamp value) { + public void setCreationTime(LocalDateTime value) { set(5, value); } @@ -116,8 +116,8 @@ public void setCreationTime(Timestamp value) { * Getter for texera_db.dataset_version.creation_time. */ @Override - public Timestamp getCreationTime() { - return (Timestamp) get(5); + public LocalDateTime getCreationTime() { + return (LocalDateTime) get(5); } // ------------------------------------------------------------------------- @@ -134,12 +134,12 @@ public Record1 key() { // ------------------------------------------------------------------------- @Override - public Row6 fieldsRow() { + public Row6 fieldsRow() { return (Row6) super.fieldsRow(); } @Override - public Row6 valuesRow() { + public Row6 valuesRow() { return (Row6) super.valuesRow(); } @@ -169,7 +169,7 @@ public Field field5() { } @Override - public Field field6() { + public Field field6() { return DatasetVersion.DATASET_VERSION.CREATION_TIME; } @@ -199,7 +199,7 @@ public String component5() { } @Override - public Timestamp component6() { + public LocalDateTime component6() { return getCreationTime(); } @@ -229,7 +229,7 @@ public String value5() { } @Override - public Timestamp value6() { + public LocalDateTime value6() { return getCreationTime(); } @@ -264,13 +264,13 @@ public DatasetVersionRecord value5(String value) { } @Override - public DatasetVersionRecord value6(Timestamp value) { + public DatasetVersionRecord value6(LocalDateTime value) { setCreationTime(value); return this; } @Override - public DatasetVersionRecord values(Integer value1, Integer value2, Integer value3, String value4, String value5, Timestamp value6) { + public DatasetVersionRecord values(Integer value1, Integer value2, Integer value3, String value4, String value5, LocalDateTime value6) { value1(value1); value2(value2); value3(value3); @@ -314,14 +314,30 @@ public DatasetVersionRecord() { /** * Create a detached, initialised DatasetVersionRecord */ - public DatasetVersionRecord(Integer dvid, Integer did, Integer creatorUid, String name, String versionHash, Timestamp creationTime) { + public DatasetVersionRecord(Integer dvid, Integer did, Integer creatorUid, String name, String versionHash, LocalDateTime creationTime) { super(DatasetVersion.DATASET_VERSION); - set(0, dvid); - set(1, did); - set(2, creatorUid); - set(3, name); - set(4, versionHash); - set(5, creationTime); + setDvid(dvid); + setDid(did); + setCreatorUid(creatorUid); + setName(name); + setVersionHash(versionHash); + setCreationTime(creationTime); + } + + /** + * Create a detached, initialised DatasetVersionRecord + */ + public DatasetVersionRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.DatasetVersion value) { + super(DatasetVersion.DATASET_VERSION); + + if (value != null) { + setDvid(value.getDvid()); + setDid(value.getDid()); + setCreatorUid(value.getCreatorUid()); + setName(value.getName()); + setVersionHash(value.getVersionHash()); + setCreationTime(value.getCreationTime()); + } } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorExecutionsRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorExecutionsRecord.java index ef4f2a1d514..da2ac3efa2e 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorExecutionsRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorExecutionsRecord.java @@ -20,10 +20,11 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class OperatorExecutionsRecord extends UpdatableRecordImpl implements Record3, IOperatorExecutions { - private static final long serialVersionUID = 652280981; + private static final long serialVersionUID = 1L; /** - * Setter for texera_db.operator_executions.operator_execution_id. + * Setter for + * texera_db.operator_executions.operator_execution_id. */ @Override public void setOperatorExecutionId(Long value) { @@ -31,7 +32,8 @@ public void setOperatorExecutionId(Long value) { } /** - * Getter for texera_db.operator_executions.operator_execution_id. + * Getter for + * texera_db.operator_executions.operator_execution_id. */ @Override public Long getOperatorExecutionId() { @@ -39,7 +41,8 @@ public Long getOperatorExecutionId() { } /** - * Setter for texera_db.operator_executions.workflow_execution_id. + * Setter for + * texera_db.operator_executions.workflow_execution_id. */ @Override public void setWorkflowExecutionId(Integer value) { @@ -47,7 +50,8 @@ public void setWorkflowExecutionId(Integer value) { } /** - * Getter for texera_db.operator_executions.workflow_execution_id. + * Getter for + * texera_db.operator_executions.workflow_execution_id. */ @Override public Integer getWorkflowExecutionId() { @@ -198,8 +202,21 @@ public OperatorExecutionsRecord() { public OperatorExecutionsRecord(Long operatorExecutionId, Integer workflowExecutionId, String operatorId) { super(OperatorExecutions.OPERATOR_EXECUTIONS); - set(0, operatorExecutionId); - set(1, workflowExecutionId); - set(2, operatorId); + setOperatorExecutionId(operatorExecutionId); + setWorkflowExecutionId(workflowExecutionId); + setOperatorId(operatorId); + } + + /** + * Create a detached, initialised OperatorExecutionsRecord + */ + public OperatorExecutionsRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorExecutions value) { + super(OperatorExecutions.OPERATOR_EXECUTIONS); + + if (value != null) { + setOperatorExecutionId(value.getOperatorExecutionId()); + setWorkflowExecutionId(value.getWorkflowExecutionId()); + setOperatorId(value.getOperatorId()); + } } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorRuntimeStatisticsRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorRuntimeStatisticsRecord.java index 02f9f10c9b9..029852728d9 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorRuntimeStatisticsRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorRuntimeStatisticsRecord.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorRuntimeStatistics; import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IOperatorRuntimeStatistics; -import java.sql.Timestamp; +import java.time.LocalDateTime; import org.jooq.Field; import org.jooq.Record2; @@ -20,12 +20,13 @@ * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class OperatorRuntimeStatisticsRecord extends UpdatableRecordImpl implements Record9, IOperatorRuntimeStatistics { +public class OperatorRuntimeStatisticsRecord extends UpdatableRecordImpl implements Record9, IOperatorRuntimeStatistics { - private static final long serialVersionUID = 484834822; + private static final long serialVersionUID = 1L; /** - * Setter for texera_db.operator_runtime_statistics.operator_execution_id. + * Setter for + * texera_db.operator_runtime_statistics.operator_execution_id. */ @Override public void setOperatorExecutionId(Long value) { @@ -33,7 +34,8 @@ public void setOperatorExecutionId(Long value) { } /** - * Getter for texera_db.operator_runtime_statistics.operator_execution_id. + * Getter for + * texera_db.operator_runtime_statistics.operator_execution_id. */ @Override public Long getOperatorExecutionId() { @@ -44,7 +46,7 @@ public Long getOperatorExecutionId() { * Setter for texera_db.operator_runtime_statistics.time. */ @Override - public void setTime(Timestamp value) { + public void setTime(LocalDateTime value) { set(1, value); } @@ -52,12 +54,13 @@ public void setTime(Timestamp value) { * Getter for texera_db.operator_runtime_statistics.time. */ @Override - public Timestamp getTime() { - return (Timestamp) get(1); + public LocalDateTime getTime() { + return (LocalDateTime) get(1); } /** - * Setter for texera_db.operator_runtime_statistics.input_tuple_cnt. + * Setter for + * texera_db.operator_runtime_statistics.input_tuple_cnt. */ @Override public void setInputTupleCnt(Long value) { @@ -65,7 +68,8 @@ public void setInputTupleCnt(Long value) { } /** - * Getter for texera_db.operator_runtime_statistics.input_tuple_cnt. + * Getter for + * texera_db.operator_runtime_statistics.input_tuple_cnt. */ @Override public Long getInputTupleCnt() { @@ -73,7 +77,8 @@ public Long getInputTupleCnt() { } /** - * Setter for texera_db.operator_runtime_statistics.output_tuple_cnt. + * Setter for + * texera_db.operator_runtime_statistics.output_tuple_cnt. */ @Override public void setOutputTupleCnt(Long value) { @@ -81,7 +86,8 @@ public void setOutputTupleCnt(Long value) { } /** - * Getter for texera_db.operator_runtime_statistics.output_tuple_cnt. + * Getter for + * texera_db.operator_runtime_statistics.output_tuple_cnt. */ @Override public Long getOutputTupleCnt() { @@ -105,7 +111,8 @@ public Short getStatus() { } /** - * Setter for texera_db.operator_runtime_statistics.data_processing_time. + * Setter for + * texera_db.operator_runtime_statistics.data_processing_time. */ @Override public void setDataProcessingTime(Long value) { @@ -113,7 +120,8 @@ public void setDataProcessingTime(Long value) { } /** - * Getter for texera_db.operator_runtime_statistics.data_processing_time. + * Getter for + * texera_db.operator_runtime_statistics.data_processing_time. */ @Override public Long getDataProcessingTime() { @@ -121,7 +129,8 @@ public Long getDataProcessingTime() { } /** - * Setter for texera_db.operator_runtime_statistics.control_processing_time. + * Setter for + * texera_db.operator_runtime_statistics.control_processing_time. */ @Override public void setControlProcessingTime(Long value) { @@ -129,7 +138,8 @@ public void setControlProcessingTime(Long value) { } /** - * Getter for texera_db.operator_runtime_statistics.control_processing_time. + * Getter for + * texera_db.operator_runtime_statistics.control_processing_time. */ @Override public Long getControlProcessingTime() { @@ -153,7 +163,8 @@ public Long getIdleTime() { } /** - * Setter for texera_db.operator_runtime_statistics.num_workers. + * Setter for + * texera_db.operator_runtime_statistics.num_workers. */ @Override public void setNumWorkers(Integer value) { @@ -161,7 +172,8 @@ public void setNumWorkers(Integer value) { } /** - * Getter for texera_db.operator_runtime_statistics.num_workers. + * Getter for + * texera_db.operator_runtime_statistics.num_workers. */ @Override public Integer getNumWorkers() { @@ -173,7 +185,7 @@ public Integer getNumWorkers() { // ------------------------------------------------------------------------- @Override - public Record2 key() { + public Record2 key() { return (Record2) super.key(); } @@ -182,12 +194,12 @@ public Record2 key() { // ------------------------------------------------------------------------- @Override - public Row9 fieldsRow() { + public Row9 fieldsRow() { return (Row9) super.fieldsRow(); } @Override - public Row9 valuesRow() { + public Row9 valuesRow() { return (Row9) super.valuesRow(); } @@ -197,7 +209,7 @@ public Field field1() { } @Override - public Field field2() { + public Field field2() { return OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.TIME; } @@ -242,7 +254,7 @@ public Long component1() { } @Override - public Timestamp component2() { + public LocalDateTime component2() { return getTime(); } @@ -287,7 +299,7 @@ public Long value1() { } @Override - public Timestamp value2() { + public LocalDateTime value2() { return getTime(); } @@ -333,7 +345,7 @@ public OperatorRuntimeStatisticsRecord value1(Long value) { } @Override - public OperatorRuntimeStatisticsRecord value2(Timestamp value) { + public OperatorRuntimeStatisticsRecord value2(LocalDateTime value) { setTime(value); return this; } @@ -381,7 +393,7 @@ public OperatorRuntimeStatisticsRecord value9(Integer value) { } @Override - public OperatorRuntimeStatisticsRecord values(Long value1, Timestamp value2, Long value3, Long value4, Short value5, Long value6, Long value7, Long value8, Integer value9) { + public OperatorRuntimeStatisticsRecord values(Long value1, LocalDateTime value2, Long value3, Long value4, Short value5, Long value6, Long value7, Long value8, Integer value9) { value1(value1); value2(value2); value3(value3); @@ -431,17 +443,36 @@ public OperatorRuntimeStatisticsRecord() { /** * Create a detached, initialised OperatorRuntimeStatisticsRecord */ - public OperatorRuntimeStatisticsRecord(Long operatorExecutionId, Timestamp time, Long inputTupleCnt, Long outputTupleCnt, Short status, Long dataProcessingTime, Long controlProcessingTime, Long idleTime, Integer numWorkers) { + public OperatorRuntimeStatisticsRecord(Long operatorExecutionId, LocalDateTime time, Long inputTupleCnt, Long outputTupleCnt, Short status, Long dataProcessingTime, Long controlProcessingTime, Long idleTime, Integer numWorkers) { super(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS); - set(0, operatorExecutionId); - set(1, time); - set(2, inputTupleCnt); - set(3, outputTupleCnt); - set(4, status); - set(5, dataProcessingTime); - set(6, controlProcessingTime); - set(7, idleTime); - set(8, numWorkers); + setOperatorExecutionId(operatorExecutionId); + setTime(time); + setInputTupleCnt(inputTupleCnt); + setOutputTupleCnt(outputTupleCnt); + setStatus(status); + setDataProcessingTime(dataProcessingTime); + setControlProcessingTime(controlProcessingTime); + setIdleTime(idleTime); + setNumWorkers(numWorkers); + } + + /** + * Create a detached, initialised OperatorRuntimeStatisticsRecord + */ + public OperatorRuntimeStatisticsRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorRuntimeStatistics value) { + super(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS); + + if (value != null) { + setOperatorExecutionId(value.getOperatorExecutionId()); + setTime(value.getTime()); + setInputTupleCnt(value.getInputTupleCnt()); + setOutputTupleCnt(value.getOutputTupleCnt()); + setStatus(value.getStatus()); + setDataProcessingTime(value.getDataProcessingTime()); + setControlProcessingTime(value.getControlProcessingTime()); + setIdleTime(value.getIdleTime()); + setNumWorkers(value.getNumWorkers()); + } } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/ProjectRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/ProjectRecord.java index 855c85c1258..314fb8791c5 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/ProjectRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/ProjectRecord.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.Project; import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IProject; -import java.sql.Timestamp; +import java.time.LocalDateTime; import org.jooq.Field; import org.jooq.Record1; @@ -20,9 +20,9 @@ * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class ProjectRecord extends UpdatableRecordImpl implements Record6, IProject { +public class ProjectRecord extends UpdatableRecordImpl implements Record6, IProject { - private static final long serialVersionUID = 958376938; + private static final long serialVersionUID = 1L; /** * Setter for texera_db.project.pid. @@ -92,7 +92,7 @@ public Integer getOwnerId() { * Setter for texera_db.project.creation_time. */ @Override - public void setCreationTime(Timestamp value) { + public void setCreationTime(LocalDateTime value) { set(4, value); } @@ -100,8 +100,8 @@ public void setCreationTime(Timestamp value) { * Getter for texera_db.project.creation_time. */ @Override - public Timestamp getCreationTime() { - return (Timestamp) get(4); + public LocalDateTime getCreationTime() { + return (LocalDateTime) get(4); } /** @@ -134,12 +134,12 @@ public Record1 key() { // ------------------------------------------------------------------------- @Override - public Row6 fieldsRow() { + public Row6 fieldsRow() { return (Row6) super.fieldsRow(); } @Override - public Row6 valuesRow() { + public Row6 valuesRow() { return (Row6) super.valuesRow(); } @@ -164,7 +164,7 @@ public Field field4() { } @Override - public Field field5() { + public Field field5() { return Project.PROJECT.CREATION_TIME; } @@ -194,7 +194,7 @@ public Integer component4() { } @Override - public Timestamp component5() { + public LocalDateTime component5() { return getCreationTime(); } @@ -224,7 +224,7 @@ public Integer value4() { } @Override - public Timestamp value5() { + public LocalDateTime value5() { return getCreationTime(); } @@ -258,7 +258,7 @@ public ProjectRecord value4(Integer value) { } @Override - public ProjectRecord value5(Timestamp value) { + public ProjectRecord value5(LocalDateTime value) { setCreationTime(value); return this; } @@ -270,7 +270,7 @@ public ProjectRecord value6(String value) { } @Override - public ProjectRecord values(Integer value1, String value2, String value3, Integer value4, Timestamp value5, String value6) { + public ProjectRecord values(Integer value1, String value2, String value3, Integer value4, LocalDateTime value5, String value6) { value1(value1); value2(value2); value3(value3); @@ -314,14 +314,30 @@ public ProjectRecord() { /** * Create a detached, initialised ProjectRecord */ - public ProjectRecord(Integer pid, String name, String description, Integer ownerId, Timestamp creationTime, String color) { + public ProjectRecord(Integer pid, String name, String description, Integer ownerId, LocalDateTime creationTime, String color) { super(Project.PROJECT); - set(0, pid); - set(1, name); - set(2, description); - set(3, ownerId); - set(4, creationTime); - set(5, color); + setPid(pid); + setName(name); + setDescription(description); + setOwnerId(ownerId); + setCreationTime(creationTime); + setColor(color); + } + + /** + * Create a detached, initialised ProjectRecord + */ + public ProjectRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.Project value) { + super(Project.PROJECT); + + if (value != null) { + setPid(value.getPid()); + setName(value.getName()); + setDescription(value.getDescription()); + setOwnerId(value.getOwnerId()); + setCreationTime(value.getCreationTime()); + setColor(value.getColor()); + } } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/ProjectUserAccessRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/ProjectUserAccessRecord.java index c27e7df1be0..d3d6c564a66 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/ProjectUserAccessRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/ProjectUserAccessRecord.java @@ -21,7 +21,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class ProjectUserAccessRecord extends UpdatableRecordImpl implements Record3, IProjectUserAccess { - private static final long serialVersionUID = -522038796; + private static final long serialVersionUID = 1L; /** * Setter for texera_db.project_user_access.uid. @@ -199,8 +199,21 @@ public ProjectUserAccessRecord() { public ProjectUserAccessRecord(Integer uid, Integer pid, PrivilegeEnum privilege) { super(ProjectUserAccess.PROJECT_USER_ACCESS); - set(0, uid); - set(1, pid); - set(2, privilege); + setUid(uid); + setPid(pid); + setPrivilege(privilege); + } + + /** + * Create a detached, initialised ProjectUserAccessRecord + */ + public ProjectUserAccessRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.ProjectUserAccess value) { + super(ProjectUserAccess.PROJECT_USER_ACCESS); + + if (value != null) { + setUid(value.getUid()); + setPid(value.getPid()); + setPrivilege(value.getPrivilege()); + } } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/PublicProjectRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/PublicProjectRecord.java index fd50ee86bb1..45bc4983cda 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/PublicProjectRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/PublicProjectRecord.java @@ -20,7 +20,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class PublicProjectRecord extends UpdatableRecordImpl implements Record2, IPublicProject { - private static final long serialVersionUID = -2103383350; + private static final long serialVersionUID = 1L; /** * Setter for texera_db.public_project.pid. @@ -159,7 +159,19 @@ public PublicProjectRecord() { public PublicProjectRecord(Integer pid, Integer uid) { super(PublicProject.PUBLIC_PROJECT); - set(0, pid); - set(1, uid); + setPid(pid); + setUid(uid); + } + + /** + * Create a detached, initialised PublicProjectRecord + */ + public PublicProjectRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.PublicProject value) { + super(PublicProject.PUBLIC_PROJECT); + + if (value != null) { + setPid(value.getPid()); + setUid(value.getUid()); + } } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserActivityRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserActivityRecord.java index 493a2099583..19a4ab811a4 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserActivityRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserActivityRecord.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.UserActivity; import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IUserActivity; -import java.sql.Timestamp; +import java.time.LocalDateTime; import org.jooq.Field; import org.jooq.Record6; @@ -19,9 +19,9 @@ * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class UserActivityRecord extends TableRecordImpl implements Record6, IUserActivity { +public class UserActivityRecord extends TableRecordImpl implements Record6, IUserActivity { - private static final long serialVersionUID = 2034180445; + private static final long serialVersionUID = 1L; /** * Setter for texera_db.user_activity.uid. @@ -107,7 +107,7 @@ public String getActivate() { * Setter for texera_db.user_activity.activity_time. */ @Override - public void setActivityTime(Timestamp value) { + public void setActivityTime(LocalDateTime value) { set(5, value); } @@ -115,8 +115,8 @@ public void setActivityTime(Timestamp value) { * Getter for texera_db.user_activity.activity_time. */ @Override - public Timestamp getActivityTime() { - return (Timestamp) get(5); + public LocalDateTime getActivityTime() { + return (LocalDateTime) get(5); } // ------------------------------------------------------------------------- @@ -124,12 +124,12 @@ public Timestamp getActivityTime() { // ------------------------------------------------------------------------- @Override - public Row6 fieldsRow() { + public Row6 fieldsRow() { return (Row6) super.fieldsRow(); } @Override - public Row6 valuesRow() { + public Row6 valuesRow() { return (Row6) super.valuesRow(); } @@ -159,7 +159,7 @@ public Field field5() { } @Override - public Field field6() { + public Field field6() { return UserActivity.USER_ACTIVITY.ACTIVITY_TIME; } @@ -189,7 +189,7 @@ public String component5() { } @Override - public Timestamp component6() { + public LocalDateTime component6() { return getActivityTime(); } @@ -219,7 +219,7 @@ public String value5() { } @Override - public Timestamp value6() { + public LocalDateTime value6() { return getActivityTime(); } @@ -254,13 +254,13 @@ public UserActivityRecord value5(String value) { } @Override - public UserActivityRecord value6(Timestamp value) { + public UserActivityRecord value6(LocalDateTime value) { setActivityTime(value); return this; } @Override - public UserActivityRecord values(Integer value1, Integer value2, String value3, String value4, String value5, Timestamp value6) { + public UserActivityRecord values(Integer value1, Integer value2, String value3, String value4, String value5, LocalDateTime value6) { value1(value1); value2(value2); value3(value3); @@ -304,14 +304,30 @@ public UserActivityRecord() { /** * Create a detached, initialised UserActivityRecord */ - public UserActivityRecord(Integer uid, Integer id, String type, String ip, String activate, Timestamp activityTime) { + public UserActivityRecord(Integer uid, Integer id, String type, String ip, String activate, LocalDateTime activityTime) { super(UserActivity.USER_ACTIVITY); - set(0, uid); - set(1, id); - set(2, type); - set(3, ip); - set(4, activate); - set(5, activityTime); + setUid(uid); + setId(id); + setType(type); + setIp(ip); + setActivate(activate); + setActivityTime(activityTime); + } + + /** + * Create a detached, initialised UserActivityRecord + */ + public UserActivityRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.UserActivity value) { + super(UserActivity.USER_ACTIVITY); + + if (value != null) { + setUid(value.getUid()); + setId(value.getId()); + setType(value.getType()); + setIp(value.getIp()); + setActivate(value.getActivate()); + setActivityTime(value.getActivityTime()); + } } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserConfigRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserConfigRecord.java index f888c4c7658..159bf764c16 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserConfigRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserConfigRecord.java @@ -20,7 +20,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class UserConfigRecord extends UpdatableRecordImpl implements Record3, IUserConfig { - private static final long serialVersionUID = -405707042; + private static final long serialVersionUID = 1L; /** * Setter for texera_db.user_config.uid. @@ -198,8 +198,21 @@ public UserConfigRecord() { public UserConfigRecord(Integer uid, String key, String value) { super(UserConfig.USER_CONFIG); - set(0, uid); - set(1, key); - set(2, value); + setUid(uid); + setKey(key); + setValue(value); + } + + /** + * Create a detached, initialised UserConfigRecord + */ + public UserConfigRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.UserConfig value) { + super(UserConfig.USER_CONFIG); + + if (value != null) { + setUid(value.getUid()); + setKey(value.getKey()); + setValue(value.getValue()); + } } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserRecord.java index 46a01920226..8131e8fc34e 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserRecord.java @@ -21,7 +21,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class UserRecord extends UpdatableRecordImpl implements Record7, IUser { - private static final long serialVersionUID = 870175244; + private static final long serialVersionUID = 1L; /** * Setter for texera_db.user.uid. @@ -355,12 +355,29 @@ public UserRecord() { public UserRecord(Integer uid, String name, String email, String password, String googleId, UserRoleEnum role, String googleAvatar) { super(User.USER); - set(0, uid); - set(1, name); - set(2, email); - set(3, password); - set(4, googleId); - set(5, role); - set(6, googleAvatar); + setUid(uid); + setName(name); + setEmail(email); + setPassword(password); + setGoogleId(googleId); + setRole(role); + setGoogleAvatar(googleAvatar); + } + + /** + * Create a detached, initialised UserRecord + */ + public UserRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.User value) { + super(User.USER); + + if (value != null) { + setUid(value.getUid()); + setName(value.getName()); + setEmail(value.getEmail()); + setPassword(value.getPassword()); + setGoogleId(value.getGoogleId()); + setRole(value.getRole()); + setGoogleAvatar(value.getGoogleAvatar()); + } } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowExecutionsRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowExecutionsRecord.java index e1bbe4d6124..e8e9d430074 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowExecutionsRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowExecutionsRecord.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowExecutions; import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowExecutions; -import java.sql.Timestamp; +import java.time.LocalDateTime; import org.jooq.Field; import org.jooq.Record1; @@ -20,9 +20,9 @@ * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowExecutionsRecord extends UpdatableRecordImpl implements Record11, IWorkflowExecutions { +public class WorkflowExecutionsRecord extends UpdatableRecordImpl implements Record11, IWorkflowExecutions { - private static final long serialVersionUID = 42903965; + private static final long serialVersionUID = 1L; /** * Setter for texera_db.workflow_executions.eid. @@ -108,7 +108,7 @@ public String getResult() { * Setter for texera_db.workflow_executions.starting_time. */ @Override - public void setStartingTime(Timestamp value) { + public void setStartingTime(LocalDateTime value) { set(5, value); } @@ -116,15 +116,15 @@ public void setStartingTime(Timestamp value) { * Getter for texera_db.workflow_executions.starting_time. */ @Override - public Timestamp getStartingTime() { - return (Timestamp) get(5); + public LocalDateTime getStartingTime() { + return (LocalDateTime) get(5); } /** * Setter for texera_db.workflow_executions.last_update_time. */ @Override - public void setLastUpdateTime(Timestamp value) { + public void setLastUpdateTime(LocalDateTime value) { set(6, value); } @@ -132,8 +132,8 @@ public void setLastUpdateTime(Timestamp value) { * Getter for texera_db.workflow_executions.last_update_time. */ @Override - public Timestamp getLastUpdateTime() { - return (Timestamp) get(6); + public LocalDateTime getLastUpdateTime() { + return (LocalDateTime) get(6); } /** @@ -169,7 +169,8 @@ public String getName() { } /** - * Setter for texera_db.workflow_executions.environment_version. + * Setter for + * texera_db.workflow_executions.environment_version. */ @Override public void setEnvironmentVersion(String value) { @@ -177,7 +178,8 @@ public void setEnvironmentVersion(String value) { } /** - * Getter for texera_db.workflow_executions.environment_version. + * Getter for + * texera_db.workflow_executions.environment_version. */ @Override public String getEnvironmentVersion() { @@ -214,12 +216,12 @@ public Record1 key() { // ------------------------------------------------------------------------- @Override - public Row11 fieldsRow() { + public Row11 fieldsRow() { return (Row11) super.fieldsRow(); } @Override - public Row11 valuesRow() { + public Row11 valuesRow() { return (Row11) super.valuesRow(); } @@ -249,12 +251,12 @@ public Field field5() { } @Override - public Field field6() { + public Field field6() { return WorkflowExecutions.WORKFLOW_EXECUTIONS.STARTING_TIME; } @Override - public Field field7() { + public Field field7() { return WorkflowExecutions.WORKFLOW_EXECUTIONS.LAST_UPDATE_TIME; } @@ -304,12 +306,12 @@ public String component5() { } @Override - public Timestamp component6() { + public LocalDateTime component6() { return getStartingTime(); } @Override - public Timestamp component7() { + public LocalDateTime component7() { return getLastUpdateTime(); } @@ -359,12 +361,12 @@ public String value5() { } @Override - public Timestamp value6() { + public LocalDateTime value6() { return getStartingTime(); } @Override - public Timestamp value7() { + public LocalDateTime value7() { return getLastUpdateTime(); } @@ -419,13 +421,13 @@ public WorkflowExecutionsRecord value5(String value) { } @Override - public WorkflowExecutionsRecord value6(Timestamp value) { + public WorkflowExecutionsRecord value6(LocalDateTime value) { setStartingTime(value); return this; } @Override - public WorkflowExecutionsRecord value7(Timestamp value) { + public WorkflowExecutionsRecord value7(LocalDateTime value) { setLastUpdateTime(value); return this; } @@ -455,7 +457,7 @@ public WorkflowExecutionsRecord value11(String value) { } @Override - public WorkflowExecutionsRecord values(Integer value1, Integer value2, Integer value3, Short value4, String value5, Timestamp value6, Timestamp value7, Boolean value8, String value9, String value10, String value11) { + public WorkflowExecutionsRecord values(Integer value1, Integer value2, Integer value3, Short value4, String value5, LocalDateTime value6, LocalDateTime value7, Boolean value8, String value9, String value10, String value11) { value1(value1); value2(value2); value3(value3); @@ -509,19 +511,40 @@ public WorkflowExecutionsRecord() { /** * Create a detached, initialised WorkflowExecutionsRecord */ - public WorkflowExecutionsRecord(Integer eid, Integer vid, Integer uid, Short status, String result, Timestamp startingTime, Timestamp lastUpdateTime, Boolean bookmarked, String name, String environmentVersion, String logLocation) { + public WorkflowExecutionsRecord(Integer eid, Integer vid, Integer uid, Short status, String result, LocalDateTime startingTime, LocalDateTime lastUpdateTime, Boolean bookmarked, String name, String environmentVersion, String logLocation) { super(WorkflowExecutions.WORKFLOW_EXECUTIONS); - set(0, eid); - set(1, vid); - set(2, uid); - set(3, status); - set(4, result); - set(5, startingTime); - set(6, lastUpdateTime); - set(7, bookmarked); - set(8, name); - set(9, environmentVersion); - set(10, logLocation); + setEid(eid); + setVid(vid); + setUid(uid); + setStatus(status); + setResult(result); + setStartingTime(startingTime); + setLastUpdateTime(lastUpdateTime); + setBookmarked(bookmarked); + setName(name); + setEnvironmentVersion(environmentVersion); + setLogLocation(logLocation); + } + + /** + * Create a detached, initialised WorkflowExecutionsRecord + */ + public WorkflowExecutionsRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowExecutions value) { + super(WorkflowExecutions.WORKFLOW_EXECUTIONS); + + if (value != null) { + setEid(value.getEid()); + setVid(value.getVid()); + setUid(value.getUid()); + setStatus(value.getStatus()); + setResult(value.getResult()); + setStartingTime(value.getStartingTime()); + setLastUpdateTime(value.getLastUpdateTime()); + setBookmarked(value.getBookmarked()); + setName(value.getName()); + setEnvironmentVersion(value.getEnvironmentVersion()); + setLogLocation(value.getLogLocation()); + } } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowOfProjectRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowOfProjectRecord.java index aa93d77030a..9584f2213ca 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowOfProjectRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowOfProjectRecord.java @@ -19,7 +19,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowOfProjectRecord extends UpdatableRecordImpl implements Record2, IWorkflowOfProject { - private static final long serialVersionUID = -1446029983; + private static final long serialVersionUID = 1L; /** * Setter for texera_db.workflow_of_project.wid. @@ -158,7 +158,19 @@ public WorkflowOfProjectRecord() { public WorkflowOfProjectRecord(Integer wid, Integer pid) { super(WorkflowOfProject.WORKFLOW_OF_PROJECT); - set(0, wid); - set(1, pid); + setWid(wid); + setPid(pid); + } + + /** + * Create a detached, initialised WorkflowOfProjectRecord + */ + public WorkflowOfProjectRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowOfProject value) { + super(WorkflowOfProject.WORKFLOW_OF_PROJECT); + + if (value != null) { + setWid(value.getWid()); + setPid(value.getPid()); + } } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowOfUserRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowOfUserRecord.java index 32601bcfc6b..2e3ed734ef9 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowOfUserRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowOfUserRecord.java @@ -19,7 +19,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowOfUserRecord extends UpdatableRecordImpl implements Record2, IWorkflowOfUser { - private static final long serialVersionUID = 2111298287; + private static final long serialVersionUID = 1L; /** * Setter for texera_db.workflow_of_user.uid. @@ -158,7 +158,19 @@ public WorkflowOfUserRecord() { public WorkflowOfUserRecord(Integer uid, Integer wid) { super(WorkflowOfUser.WORKFLOW_OF_USER); - set(0, uid); - set(1, wid); + setUid(uid); + setWid(wid); + } + + /** + * Create a detached, initialised WorkflowOfUserRecord + */ + public WorkflowOfUserRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowOfUser value) { + super(WorkflowOfUser.WORKFLOW_OF_USER); + + if (value != null) { + setUid(value.getUid()); + setWid(value.getWid()); + } } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowRecord.java index 91e7662982f..fab46a651ec 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowRecord.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.Workflow; import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflow; -import java.sql.Timestamp; +import java.time.LocalDateTime; import org.jooq.Field; import org.jooq.Record1; @@ -20,9 +20,9 @@ * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowRecord extends UpdatableRecordImpl implements Record7, IWorkflow { +public class WorkflowRecord extends UpdatableRecordImpl implements Record7, IWorkflow { - private static final long serialVersionUID = 33022585; + private static final long serialVersionUID = 1L; /** * Setter for texera_db.workflow.wid. @@ -92,7 +92,7 @@ public String getContent() { * Setter for texera_db.workflow.creation_time. */ @Override - public void setCreationTime(Timestamp value) { + public void setCreationTime(LocalDateTime value) { set(4, value); } @@ -100,15 +100,15 @@ public void setCreationTime(Timestamp value) { * Getter for texera_db.workflow.creation_time. */ @Override - public Timestamp getCreationTime() { - return (Timestamp) get(4); + public LocalDateTime getCreationTime() { + return (LocalDateTime) get(4); } /** * Setter for texera_db.workflow.last_modified_time. */ @Override - public void setLastModifiedTime(Timestamp value) { + public void setLastModifiedTime(LocalDateTime value) { set(5, value); } @@ -116,8 +116,8 @@ public void setLastModifiedTime(Timestamp value) { * Getter for texera_db.workflow.last_modified_time. */ @Override - public Timestamp getLastModifiedTime() { - return (Timestamp) get(5); + public LocalDateTime getLastModifiedTime() { + return (LocalDateTime) get(5); } /** @@ -150,12 +150,12 @@ public Record1 key() { // ------------------------------------------------------------------------- @Override - public Row7 fieldsRow() { + public Row7 fieldsRow() { return (Row7) super.fieldsRow(); } @Override - public Row7 valuesRow() { + public Row7 valuesRow() { return (Row7) super.valuesRow(); } @@ -180,12 +180,12 @@ public Field field4() { } @Override - public Field field5() { + public Field field5() { return Workflow.WORKFLOW.CREATION_TIME; } @Override - public Field field6() { + public Field field6() { return Workflow.WORKFLOW.LAST_MODIFIED_TIME; } @@ -215,12 +215,12 @@ public String component4() { } @Override - public Timestamp component5() { + public LocalDateTime component5() { return getCreationTime(); } @Override - public Timestamp component6() { + public LocalDateTime component6() { return getLastModifiedTime(); } @@ -250,12 +250,12 @@ public String value4() { } @Override - public Timestamp value5() { + public LocalDateTime value5() { return getCreationTime(); } @Override - public Timestamp value6() { + public LocalDateTime value6() { return getLastModifiedTime(); } @@ -289,13 +289,13 @@ public WorkflowRecord value4(String value) { } @Override - public WorkflowRecord value5(Timestamp value) { + public WorkflowRecord value5(LocalDateTime value) { setCreationTime(value); return this; } @Override - public WorkflowRecord value6(Timestamp value) { + public WorkflowRecord value6(LocalDateTime value) { setLastModifiedTime(value); return this; } @@ -307,7 +307,7 @@ public WorkflowRecord value7(Boolean value) { } @Override - public WorkflowRecord values(Integer value1, String value2, String value3, String value4, Timestamp value5, Timestamp value6, Boolean value7) { + public WorkflowRecord values(Integer value1, String value2, String value3, String value4, LocalDateTime value5, LocalDateTime value6, Boolean value7) { value1(value1); value2(value2); value3(value3); @@ -353,15 +353,32 @@ public WorkflowRecord() { /** * Create a detached, initialised WorkflowRecord */ - public WorkflowRecord(Integer wid, String name, String description, String content, Timestamp creationTime, Timestamp lastModifiedTime, Boolean isPublic) { + public WorkflowRecord(Integer wid, String name, String description, String content, LocalDateTime creationTime, LocalDateTime lastModifiedTime, Boolean isPublic) { super(Workflow.WORKFLOW); - set(0, wid); - set(1, name); - set(2, description); - set(3, content); - set(4, creationTime); - set(5, lastModifiedTime); - set(6, isPublic); + setWid(wid); + setName(name); + setDescription(description); + setContent(content); + setCreationTime(creationTime); + setLastModifiedTime(lastModifiedTime); + setIsPublic(isPublic); + } + + /** + * Create a detached, initialised WorkflowRecord + */ + public WorkflowRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.Workflow value) { + super(Workflow.WORKFLOW); + + if (value != null) { + setWid(value.getWid()); + setName(value.getName()); + setDescription(value.getDescription()); + setContent(value.getContent()); + setCreationTime(value.getCreationTime()); + setLastModifiedTime(value.getLastModifiedTime()); + setIsPublic(value.getIsPublic()); + } } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowUserAccessRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowUserAccessRecord.java index 0f51a51429c..d03a85b6480 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowUserAccessRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowUserAccessRecord.java @@ -21,7 +21,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowUserAccessRecord extends UpdatableRecordImpl implements Record3, IWorkflowUserAccess { - private static final long serialVersionUID = 1478898780; + private static final long serialVersionUID = 1L; /** * Setter for texera_db.workflow_user_access.uid. @@ -199,8 +199,21 @@ public WorkflowUserAccessRecord() { public WorkflowUserAccessRecord(Integer uid, Integer wid, PrivilegeEnum privilege) { super(WorkflowUserAccess.WORKFLOW_USER_ACCESS); - set(0, uid); - set(1, wid); - set(2, privilege); + setUid(uid); + setWid(wid); + setPrivilege(privilege); + } + + /** + * Create a detached, initialised WorkflowUserAccessRecord + */ + public WorkflowUserAccessRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowUserAccess value) { + super(WorkflowUserAccess.WORKFLOW_USER_ACCESS); + + if (value != null) { + setUid(value.getUid()); + setWid(value.getWid()); + setPrivilege(value.getPrivilege()); + } } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowUserClonesRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowUserClonesRecord.java index 6586b1e6bad..30d7a37b8cb 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowUserClonesRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowUserClonesRecord.java @@ -19,7 +19,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowUserClonesRecord extends UpdatableRecordImpl implements Record2, IWorkflowUserClones { - private static final long serialVersionUID = 2063256809; + private static final long serialVersionUID = 1L; /** * Setter for texera_db.workflow_user_clones.uid. @@ -158,7 +158,19 @@ public WorkflowUserClonesRecord() { public WorkflowUserClonesRecord(Integer uid, Integer wid) { super(WorkflowUserClones.WORKFLOW_USER_CLONES); - set(0, uid); - set(1, wid); + setUid(uid); + setWid(wid); + } + + /** + * Create a detached, initialised WorkflowUserClonesRecord + */ + public WorkflowUserClonesRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowUserClones value) { + super(WorkflowUserClones.WORKFLOW_USER_CLONES); + + if (value != null) { + setUid(value.getUid()); + setWid(value.getWid()); + } } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowUserLikesRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowUserLikesRecord.java index c3ec5a76505..6712a95b798 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowUserLikesRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowUserLikesRecord.java @@ -19,7 +19,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowUserLikesRecord extends UpdatableRecordImpl implements Record2, IWorkflowUserLikes { - private static final long serialVersionUID = 1217413239; + private static final long serialVersionUID = 1L; /** * Setter for texera_db.workflow_user_likes.uid. @@ -158,7 +158,19 @@ public WorkflowUserLikesRecord() { public WorkflowUserLikesRecord(Integer uid, Integer wid) { super(WorkflowUserLikes.WORKFLOW_USER_LIKES); - set(0, uid); - set(1, wid); + setUid(uid); + setWid(wid); + } + + /** + * Create a detached, initialised WorkflowUserLikesRecord + */ + public WorkflowUserLikesRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowUserLikes value) { + super(WorkflowUserLikes.WORKFLOW_USER_LIKES); + + if (value != null) { + setUid(value.getUid()); + setWid(value.getWid()); + } } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowVersionRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowVersionRecord.java index 33f845522d3..232619ed5c2 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowVersionRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowVersionRecord.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowVersion; import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowVersion; -import java.sql.Timestamp; +import java.time.LocalDateTime; import org.jooq.Field; import org.jooq.Record1; @@ -20,9 +20,9 @@ * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowVersionRecord extends UpdatableRecordImpl implements Record4, IWorkflowVersion { +public class WorkflowVersionRecord extends UpdatableRecordImpl implements Record4, IWorkflowVersion { - private static final long serialVersionUID = -1447757171; + private static final long serialVersionUID = 1L; /** * Setter for texera_db.workflow_version.vid. @@ -76,7 +76,7 @@ public String getContent() { * Setter for texera_db.workflow_version.creation_time. */ @Override - public void setCreationTime(Timestamp value) { + public void setCreationTime(LocalDateTime value) { set(3, value); } @@ -84,8 +84,8 @@ public void setCreationTime(Timestamp value) { * Getter for texera_db.workflow_version.creation_time. */ @Override - public Timestamp getCreationTime() { - return (Timestamp) get(3); + public LocalDateTime getCreationTime() { + return (LocalDateTime) get(3); } // ------------------------------------------------------------------------- @@ -102,12 +102,12 @@ public Record1 key() { // ------------------------------------------------------------------------- @Override - public Row4 fieldsRow() { + public Row4 fieldsRow() { return (Row4) super.fieldsRow(); } @Override - public Row4 valuesRow() { + public Row4 valuesRow() { return (Row4) super.valuesRow(); } @@ -127,7 +127,7 @@ public Field field3() { } @Override - public Field field4() { + public Field field4() { return WorkflowVersion.WORKFLOW_VERSION.CREATION_TIME; } @@ -147,7 +147,7 @@ public String component3() { } @Override - public Timestamp component4() { + public LocalDateTime component4() { return getCreationTime(); } @@ -167,7 +167,7 @@ public String value3() { } @Override - public Timestamp value4() { + public LocalDateTime value4() { return getCreationTime(); } @@ -190,13 +190,13 @@ public WorkflowVersionRecord value3(String value) { } @Override - public WorkflowVersionRecord value4(Timestamp value) { + public WorkflowVersionRecord value4(LocalDateTime value) { setCreationTime(value); return this; } @Override - public WorkflowVersionRecord values(Integer value1, Integer value2, String value3, Timestamp value4) { + public WorkflowVersionRecord values(Integer value1, Integer value2, String value3, LocalDateTime value4) { value1(value1); value2(value2); value3(value3); @@ -236,12 +236,26 @@ public WorkflowVersionRecord() { /** * Create a detached, initialised WorkflowVersionRecord */ - public WorkflowVersionRecord(Integer vid, Integer wid, String content, Timestamp creationTime) { + public WorkflowVersionRecord(Integer vid, Integer wid, String content, LocalDateTime creationTime) { super(WorkflowVersion.WORKFLOW_VERSION); - set(0, vid); - set(1, wid); - set(2, content); - set(3, creationTime); + setVid(vid); + setWid(wid); + setContent(content); + setCreationTime(creationTime); + } + + /** + * Create a detached, initialised WorkflowVersionRecord + */ + public WorkflowVersionRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowVersion value) { + super(WorkflowVersion.WORKFLOW_VERSION); + + if (value != null) { + setVid(value.getVid()); + setWid(value.getWid()); + setContent(value.getContent()); + setCreationTime(value.getCreationTime()); + } } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowViewCountRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowViewCountRecord.java index fe1b148ba84..7e06b63e52a 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowViewCountRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowViewCountRecord.java @@ -20,7 +20,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowViewCountRecord extends UpdatableRecordImpl implements Record2, IWorkflowViewCount { - private static final long serialVersionUID = 1879040375; + private static final long serialVersionUID = 1L; /** * Setter for texera_db.workflow_view_count.wid. @@ -159,7 +159,19 @@ public WorkflowViewCountRecord() { public WorkflowViewCountRecord(Integer wid, Integer viewCount) { super(WorkflowViewCount.WORKFLOW_VIEW_COUNT); - set(0, wid); - set(1, viewCount); + setWid(wid); + setViewCount(viewCount); + } + + /** + * Create a detached, initialised WorkflowViewCountRecord + */ + public WorkflowViewCountRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowViewCount value) { + super(WorkflowViewCount.WORKFLOW_VIEW_COUNT); + + if (value != null) { + setWid(value.getWid()); + setViewCount(value.getViewCount()); + } } } diff --git a/core/dao/src/test/scala/edu/uci/ics/texera/dao/MockTexeraDB.scala b/core/dao/src/test/scala/edu/uci/ics/texera/dao/MockTexeraDB.scala index 89586d57ad5..1c763b8dce3 100644 --- a/core/dao/src/test/scala/edu/uci/ics/texera/dao/MockTexeraDB.scala +++ b/core/dao/src/test/scala/edu/uci/ics/texera/dao/MockTexeraDB.scala @@ -1,62 +1,27 @@ package edu.uci.ics.texera.dao -import com.mysql.cj.jdbc.MysqlDataSource -import com.opentable.db.postgres.embedded.EmbeddedPostgres -import com.opentable.db.postgres.junit.EmbeddedPostgresRules -import org.jooq.DSLContext +import io.zonky.test.db.postgres.embedded.EmbeddedPostgres +import org.jooq.{DSLContext, SQLDialect} import org.jooq.impl.DSL -import java.io.{File, FileInputStream, InputStream} -import java.nio.file.{Path, Paths} -import java.sql.{Connection, DriverManager, SQLException, Statement} -import java.util.Scanner +import java.nio.file.Paths +import java.sql.{Connection, DriverManager} +import scala.io.Source trait MockTexeraDB { private var dbInstance: Option[EmbeddedPostgres] = None private var dslContext: Option[DSLContext] = None private val database: String = "texera_db" - private val username: String = "root" + private val username: String = "postgres" private val password: String = "" - def executeScriptInJDBC(path: Path): Unit = { + def executeScriptInJDBC(conn:Connection, script: String): Unit = { assert(dbInstance.nonEmpty) - val sqlFile = new File(path.toString) - val in = new FileInputStream(sqlFile) - val conn = - DriverManager.getConnection( - dbInstance.get.getJdbcUrl("texera_db"), - username, - password - ) - importSQL(conn, in) + conn.prepareStatement(script).execute() conn.close() } - @throws[SQLException] - private def importSQL(conn: Connection, in: InputStream): Unit = { - val s = new Scanner(in) - s.useDelimiter(";") - var st: Statement = null - try { - st = conn.createStatement() - while ({ - s.hasNext - }) { - var line = s.next - if (line.startsWith("/*!") && line.endsWith("*/")) { - val i = line.indexOf(' ') - line = line.substring(i + 1, line.length - " */".length) - } - if (line.trim.nonEmpty) { - // mock DB cannot use SET PERSIST keyword - line = line.replaceAll("(?i)SET PERSIST", "SET GLOBAL") - st.execute(line) - } - } - } finally if (st != null) st.close() - } - def getDSLContext: DSLContext = { dslContext match { case Some(value) => value @@ -67,7 +32,7 @@ trait MockTexeraDB { } } - def getDBInstance: DB = { + def getDBInstance: EmbeddedPostgres = { dbInstance match { case Some(value) => value case None => @@ -80,7 +45,7 @@ trait MockTexeraDB { def shutdownDB(): Unit = { dbInstance match { case Some(value) => - value.stop() + value.close() dbInstance = None dslContext = None case None => @@ -94,15 +59,31 @@ trait MockTexeraDB { val driver = new org.postgresql.Driver() DriverManager.registerDriver(driver) - val embedded = EmbeddedPostgresRules.singleInstance().getEmbeddedPostgres + val embedded = EmbeddedPostgres.builder().start() dbInstance = Some(embedded) - dslContext = Some(DSL.using(dataSource, sqlServerInstance.SQL_DIALECT)) + val ddlPath = { Paths.get("./scripts/sql/texera_ddl.sql").toRealPath() } - executeScriptInJDBC(ddlPath) + val source = Source.fromFile(ddlPath.toString) + val content = try { + source.mkString + } finally { + source.close() + } + val parts: Array[String] = content.split("(?m)^\\\\c texera_db") + def removeCCommands(sql: String): String = + sql.linesIterator + .filterNot(_.trim.startsWith("\\c")) + .mkString("\n") + executeScriptInJDBC(embedded.getPostgresDatabase.getConnection, removeCCommands(parts(0))) + val texeraDB = embedded.getDatabase(username, database) + executeScriptInJDBC(texeraDB.getConnection, removeCCommands(parts(1))) + + val sqlServerInstance = SqlServer.getInstance(embedded.getJdbcUrl(username, database), username, password) + dslContext = Some(DSL.using(texeraDB, SQLDialect.POSTGRES)) sqlServerInstance.replaceDSLContext(dslContext.get) } diff --git a/core/scripts/sql/texera_ddl.sql b/core/scripts/sql/texera_ddl.sql index df29d46a6e5..a39806501c4 100644 --- a/core/scripts/sql/texera_ddl.sql +++ b/core/scripts/sql/texera_ddl.sql @@ -12,7 +12,7 @@ CREATE DATABASE texera_db; \c texera_db CREATE SCHEMA IF NOT EXISTS texera_db; -SET search_path TO texera_db; +SET search_path TO texera_db, public; -- ============================================ -- 3. Drop all tables if they exist @@ -44,17 +44,12 @@ DROP TABLE IF EXISTS user_activity CASCADE; -- 4. Create PostgreSQL enum types to mimic MySQL ENUM -- for user.role and privilege fields -- ============================================ -DO $$ -BEGIN - IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'user_role_enum') THEN + +DROP TYPE IF EXISTS user_role_enum CASCADE; +DROP TYPE IF EXISTS privilege_enum CASCADE; + CREATE TYPE user_role_enum AS ENUM ('INACTIVE', 'RESTRICTED', 'REGULAR', 'ADMIN'); -END IF; - - IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'privilege_enum') THEN CREATE TYPE privilege_enum AS ENUM ('NONE', 'READ', 'WRITE'); -END IF; -END -$$; -- ============================================ -- 5. Create tables From ad7a0be79bc338b8fce8906ea08fb0243eeebe34 Mon Sep 17 00:00:00 2001 From: Shengquan Ni <13672781+shengquan-ni@users.noreply.github.com> Date: Tue, 11 Feb 2025 23:06:46 -0800 Subject: [PATCH 07/20] reformat --- .../texera/web/resource/ResultResource.scala | 2 +- .../execution/AdminExecutionResource.scala | 3 ++- .../web/service/ExecutionResultService.scala | 2 +- .../edu/uci/ics/texera/dao/MockTexeraDB.scala | 17 +++++++++-------- .../result/iceberg/IcebergDocument.scala | 1 - .../result/iceberg/IcebergTableStatsSpec.scala | 3 +-- .../networkGraph/NetworkGraphOpDesc.scala | 2 +- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/ResultResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/ResultResource.scala index 206546e8d56..ffe83824395 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/ResultResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/ResultResource.scala @@ -5,7 +5,7 @@ import edu.uci.ics.amber.core.virtualidentity.WorkflowIdentity import edu.uci.ics.texera.web.auth.SessionUser import edu.uci.ics.texera.web.model.websocket.request.ResultExportRequest import edu.uci.ics.texera.web.model.websocket.response.ResultExportResponse -import edu.uci.ics.texera.web.service.{ResultExportService, WorkflowService} +import edu.uci.ics.texera.web.service.ResultExportService import io.dropwizard.auth.Auth import javax.ws.rs._ diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/execution/AdminExecutionResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/execution/AdminExecutionResource.scala index 303e8c29ccb..687085dd0f7 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/execution/AdminExecutionResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/execution/AdminExecutionResource.scala @@ -181,7 +181,8 @@ class AdminExecutionResource { if (workflowRecord.get(WORKFLOW_EXECUTIONS.LAST_UPDATE_TIME) == null) { lastUpdateTime = 0 } else { - lastUpdateTime = Timestamp.valueOf(workflowRecord.get(WORKFLOW_EXECUTIONS.LAST_UPDATE_TIME)).getTime + lastUpdateTime = + Timestamp.valueOf(workflowRecord.get(WORKFLOW_EXECUTIONS.LAST_UPDATE_TIME)).getTime } val timeDifferenceSeconds = (lastUpdateTime - startingTime) / 1000.0 diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionResultService.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionResultService.scala index 7d0f6b86e83..5596f236f41 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionResultService.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionResultService.scala @@ -4,7 +4,7 @@ import akka.actor.Cancellable import com.fasterxml.jackson.annotation.{JsonTypeInfo, JsonTypeName} import com.fasterxml.jackson.databind.node.ObjectNode import com.typesafe.scalalogging.LazyLogging -import edu.uci.ics.amber.core.storage.DocumentFactory.{ICEBERG, MONGODB} +import edu.uci.ics.amber.core.storage.DocumentFactory.ICEBERG import edu.uci.ics.amber.core.storage.VFSResourceType.MATERIALIZED_RESULT import edu.uci.ics.amber.core.storage.model.VirtualDocument import edu.uci.ics.amber.core.storage.{DocumentFactory, StorageConfig, VFSURIFactory} diff --git a/core/dao/src/test/scala/edu/uci/ics/texera/dao/MockTexeraDB.scala b/core/dao/src/test/scala/edu/uci/ics/texera/dao/MockTexeraDB.scala index 1c763b8dce3..b2eb0ff8480 100644 --- a/core/dao/src/test/scala/edu/uci/ics/texera/dao/MockTexeraDB.scala +++ b/core/dao/src/test/scala/edu/uci/ics/texera/dao/MockTexeraDB.scala @@ -16,7 +16,7 @@ trait MockTexeraDB { private val username: String = "postgres" private val password: String = "" - def executeScriptInJDBC(conn:Connection, script: String): Unit = { + def executeScriptInJDBC(conn: Connection, script: String): Unit = { assert(dbInstance.nonEmpty) conn.prepareStatement(script).execute() conn.close() @@ -63,16 +63,16 @@ trait MockTexeraDB { dbInstance = Some(embedded) - val ddlPath = { Paths.get("./scripts/sql/texera_ddl.sql").toRealPath() } val source = Source.fromFile(ddlPath.toString) - val content = try { - source.mkString - } finally { - source.close() - } + val content = + try { + source.mkString + } finally { + source.close() + } val parts: Array[String] = content.split("(?m)^\\\\c texera_db") def removeCCommands(sql: String): String = sql.linesIterator @@ -82,7 +82,8 @@ trait MockTexeraDB { val texeraDB = embedded.getDatabase(username, database) executeScriptInJDBC(texeraDB.getConnection, removeCCommands(parts(1))) - val sqlServerInstance = SqlServer.getInstance(embedded.getJdbcUrl(username, database), username, password) + val sqlServerInstance = + SqlServer.getInstance(embedded.getJdbcUrl(username, database), username, password) dslContext = Some(DSL.using(texeraDB, SQLDialect.POSTGRES)) sqlServerInstance.replaceDSLContext(dslContext.get) diff --git a/core/workflow-core/src/main/scala/edu/uci/ics/amber/core/storage/result/iceberg/IcebergDocument.scala b/core/workflow-core/src/main/scala/edu/uci/ics/amber/core/storage/result/iceberg/IcebergDocument.scala index 862c953b2eb..88530aa4c8c 100644 --- a/core/workflow-core/src/main/scala/edu/uci/ics/amber/core/storage/result/iceberg/IcebergDocument.scala +++ b/core/workflow-core/src/main/scala/edu/uci/ics/amber/core/storage/result/iceberg/IcebergDocument.scala @@ -12,7 +12,6 @@ import org.apache.iceberg.types.{Conversions, Types} import java.net.URI import java.util.concurrent.locks.{ReentrantLock, ReentrantReadWriteLock} -import scala.collection.mutable import scala.jdk.CollectionConverters._ import java.nio.ByteBuffer import java.time.{Instant, LocalDate, ZoneOffset} diff --git a/core/workflow-core/src/test/scala/edu/uci/ics/amber/storage/result/iceberg/IcebergTableStatsSpec.scala b/core/workflow-core/src/test/scala/edu/uci/ics/amber/storage/result/iceberg/IcebergTableStatsSpec.scala index 2aca3408c0e..08d618309fe 100644 --- a/core/workflow-core/src/test/scala/edu/uci/ics/amber/storage/result/iceberg/IcebergTableStatsSpec.scala +++ b/core/workflow-core/src/test/scala/edu/uci/ics/amber/storage/result/iceberg/IcebergTableStatsSpec.scala @@ -18,10 +18,9 @@ import org.scalatest.{BeforeAndAfterAll, Suite} import java.net.URI import java.sql.Timestamp -import java.time.{Instant, LocalDate, ZoneId, ZoneOffset} +import java.time.{LocalDate, ZoneId} import java.time.format.DateTimeFormatter import java.util.UUID -import scala.jdk.CollectionConverters._ class IcebergTableStatsSpec extends AnyFlatSpec with BeforeAndAfterAll with Suite { diff --git a/core/workflow-operator/src/main/scala/edu/uci/ics/amber/operator/visualization/networkGraph/NetworkGraphOpDesc.scala b/core/workflow-operator/src/main/scala/edu/uci/ics/amber/operator/visualization/networkGraph/NetworkGraphOpDesc.scala index 4f57d167d53..5e9682bec19 100644 --- a/core/workflow-operator/src/main/scala/edu/uci/ics/amber/operator/visualization/networkGraph/NetworkGraphOpDesc.scala +++ b/core/workflow-operator/src/main/scala/edu/uci/ics/amber/operator/visualization/networkGraph/NetworkGraphOpDesc.scala @@ -1,7 +1,7 @@ package edu.uci.ics.amber.operator.visualization.networkGraph import com.fasterxml.jackson.annotation.{JsonProperty, JsonPropertyDescription} -import com.kjetland.jackson.jsonSchema.annotations.{JsonSchemaInject, JsonSchemaTitle} +import com.kjetland.jackson.jsonSchema.annotations.JsonSchemaTitle import edu.uci.ics.amber.core.tuple.{AttributeType, Schema} import edu.uci.ics.amber.core.workflow.OutputPort.OutputMode import edu.uci.ics.amber.core.workflow.{InputPort, OutputPort, PortIdentity} From 3a09817106f3f4935eb5de48fc5b5fbf2f8d56dd Mon Sep 17 00:00:00 2001 From: Shengquan Ni <13672781+shengquan-ni@users.noreply.github.com> Date: Tue, 11 Feb 2025 23:29:37 -0800 Subject: [PATCH 08/20] update jooq generated files --- .../texera/dao/jooq/generated/Indexes.java | 127 ----- .../ics/texera/dao/jooq/generated/Keys.java | 186 ++----- .../ics/texera/dao/jooq/generated/Tables.java | 6 +- .../texera/dao/jooq/generated/TexeraDb.java | 60 +-- .../generated/tables/OperatorExecutions.java | 80 +-- .../tables/OperatorPortExecutions.java | 162 ------ .../tables/OperatorRuntimeStatistics.java | 201 ++++++++ .../generated/tables/WorkflowExecutions.java | 113 +++-- .../tables/daos/OperatorExecutionsDao.java | 100 ++++ .../daos/OperatorRuntimeStatisticsDao.java | 177 +++++++ .../tables/daos/WorkflowExecutionsDao.java | 14 - .../interfaces/IOperatorExecutions.java | 40 +- .../interfaces/IOperatorPortExecutions.java | 71 --- .../IOperatorRuntimeStatistics.java | 134 +++++ .../interfaces/IWorkflowExecutions.java | 10 - .../tables/pojos/OperatorExecutions.java | 72 ++- .../tables/pojos/OperatorPortExecutions.java | 116 ----- .../pojos/OperatorRuntimeStatistics.java | 262 ++++++++++ .../tables/pojos/WorkflowExecutions.java | 164 +++--- .../records/OperatorExecutionsRecord.java | 118 +++-- .../records/OperatorPortExecutionsRecord.java | 236 --------- .../OperatorRuntimeStatisticsRecord.java | 478 ++++++++++++++++++ .../records/WorkflowExecutionsRecord.java | 214 ++++---- 23 files changed, 1888 insertions(+), 1253 deletions(-) delete mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Indexes.java delete mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorPortExecutions.java create mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorRuntimeStatistics.java create mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorExecutionsDao.java create mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorRuntimeStatisticsDao.java delete mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorPortExecutions.java create mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorRuntimeStatistics.java delete mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorPortExecutions.java create mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorRuntimeStatistics.java delete mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorPortExecutionsRecord.java create mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorRuntimeStatisticsRecord.java diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Indexes.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Indexes.java deleted file mode 100644 index dd2593df8cd..00000000000 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Indexes.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package edu.uci.ics.texera.dao.jooq.generated; - - -import edu.uci.ics.texera.dao.jooq.generated.tables.Dataset; -import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetUserAccess; -import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetVersion; -import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorExecutions; -import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorPortExecutions; -import edu.uci.ics.texera.dao.jooq.generated.tables.Project; -import edu.uci.ics.texera.dao.jooq.generated.tables.ProjectUserAccess; -import edu.uci.ics.texera.dao.jooq.generated.tables.PublicProject; -import edu.uci.ics.texera.dao.jooq.generated.tables.User; -import edu.uci.ics.texera.dao.jooq.generated.tables.UserConfig; -import edu.uci.ics.texera.dao.jooq.generated.tables.Workflow; -import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowExecutions; -import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowOfProject; -import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowOfUser; -import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowUserAccess; -import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowUserClones; -import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowUserLikes; -import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowVersion; -import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowViewCount; - -import org.jooq.Index; -import org.jooq.OrderField; -import org.jooq.impl.Internal; - - -/** - * A class modelling indexes of tables of the texera_db schema. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class Indexes { - - // ------------------------------------------------------------------------- - // INDEX definitions - // ------------------------------------------------------------------------- - - public static final Index DATASET_IDX_DATASET_NAME_DESCRIPTION = Indexes0.DATASET_IDX_DATASET_NAME_DESCRIPTION; - public static final Index DATASET_OWNER_UID = Indexes0.DATASET_OWNER_UID; - public static final Index DATASET_PRIMARY = Indexes0.DATASET_PRIMARY; - public static final Index DATASET_USER_ACCESS_PRIMARY = Indexes0.DATASET_USER_ACCESS_PRIMARY; - public static final Index DATASET_USER_ACCESS_UID = Indexes0.DATASET_USER_ACCESS_UID; - public static final Index DATASET_VERSION_DID = Indexes0.DATASET_VERSION_DID; - public static final Index DATASET_VERSION_IDX_DATASET_VERSION_NAME = Indexes0.DATASET_VERSION_IDX_DATASET_VERSION_NAME; - public static final Index DATASET_VERSION_PRIMARY = Indexes0.DATASET_VERSION_PRIMARY; - public static final Index OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID = Indexes0.OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID; - public static final Index OPERATOR_PORT_EXECUTIONS_WORKFLOW_EXECUTION_ID = Indexes0.OPERATOR_PORT_EXECUTIONS_WORKFLOW_EXECUTION_ID; - public static final Index PROJECT_IDX_USER_PROJECT_NAME_DESCRIPTION = Indexes0.PROJECT_IDX_USER_PROJECT_NAME_DESCRIPTION; - public static final Index PROJECT_OWNER_ID = Indexes0.PROJECT_OWNER_ID; - public static final Index PROJECT_PRIMARY = Indexes0.PROJECT_PRIMARY; - public static final Index PROJECT_USER_ACCESS_PID = Indexes0.PROJECT_USER_ACCESS_PID; - public static final Index PROJECT_USER_ACCESS_PRIMARY = Indexes0.PROJECT_USER_ACCESS_PRIMARY; - public static final Index PUBLIC_PROJECT_PRIMARY = Indexes0.PUBLIC_PROJECT_PRIMARY; - public static final Index USER_EMAIL = Indexes0.USER_EMAIL; - public static final Index USER_GOOGLE_ID = Indexes0.USER_GOOGLE_ID; - public static final Index USER_IDX_USER_NAME = Indexes0.USER_IDX_USER_NAME; - public static final Index USER_PRIMARY = Indexes0.USER_PRIMARY; - public static final Index USER_CONFIG_PRIMARY = Indexes0.USER_CONFIG_PRIMARY; - public static final Index WORKFLOW_IDX_WORKFLOW_NAME_DESCRIPTION_CONTENT = Indexes0.WORKFLOW_IDX_WORKFLOW_NAME_DESCRIPTION_CONTENT; - public static final Index WORKFLOW_PRIMARY = Indexes0.WORKFLOW_PRIMARY; - public static final Index WORKFLOW_EXECUTIONS_PRIMARY = Indexes0.WORKFLOW_EXECUTIONS_PRIMARY; - public static final Index WORKFLOW_EXECUTIONS_UID = Indexes0.WORKFLOW_EXECUTIONS_UID; - public static final Index WORKFLOW_EXECUTIONS_VID = Indexes0.WORKFLOW_EXECUTIONS_VID; - public static final Index WORKFLOW_OF_PROJECT_PID = Indexes0.WORKFLOW_OF_PROJECT_PID; - public static final Index WORKFLOW_OF_PROJECT_PRIMARY = Indexes0.WORKFLOW_OF_PROJECT_PRIMARY; - public static final Index WORKFLOW_OF_USER_PRIMARY = Indexes0.WORKFLOW_OF_USER_PRIMARY; - public static final Index WORKFLOW_OF_USER_WID = Indexes0.WORKFLOW_OF_USER_WID; - public static final Index WORKFLOW_USER_ACCESS_PRIMARY = Indexes0.WORKFLOW_USER_ACCESS_PRIMARY; - public static final Index WORKFLOW_USER_ACCESS_WID = Indexes0.WORKFLOW_USER_ACCESS_WID; - public static final Index WORKFLOW_USER_CLONES_PRIMARY = Indexes0.WORKFLOW_USER_CLONES_PRIMARY; - public static final Index WORKFLOW_USER_CLONES_WID = Indexes0.WORKFLOW_USER_CLONES_WID; - public static final Index WORKFLOW_USER_LIKES_PRIMARY = Indexes0.WORKFLOW_USER_LIKES_PRIMARY; - public static final Index WORKFLOW_USER_LIKES_WID = Indexes0.WORKFLOW_USER_LIKES_WID; - public static final Index WORKFLOW_VERSION_PRIMARY = Indexes0.WORKFLOW_VERSION_PRIMARY; - public static final Index WORKFLOW_VERSION_WID = Indexes0.WORKFLOW_VERSION_WID; - public static final Index WORKFLOW_VIEW_COUNT_PRIMARY = Indexes0.WORKFLOW_VIEW_COUNT_PRIMARY; - - // ------------------------------------------------------------------------- - // [#1459] distribute members to avoid static initialisers > 64kb - // ------------------------------------------------------------------------- - - private static class Indexes0 { - public static Index DATASET_IDX_DATASET_NAME_DESCRIPTION = Internal.createIndex("idx_dataset_name_description", Dataset.DATASET, new OrderField[] { Dataset.DATASET.NAME, Dataset.DATASET.DESCRIPTION }, false); - public static Index DATASET_OWNER_UID = Internal.createIndex("owner_uid", Dataset.DATASET, new OrderField[] { Dataset.DATASET.OWNER_UID }, false); - public static Index DATASET_PRIMARY = Internal.createIndex("PRIMARY", Dataset.DATASET, new OrderField[] { Dataset.DATASET.DID }, true); - public static Index DATASET_USER_ACCESS_PRIMARY = Internal.createIndex("PRIMARY", DatasetUserAccess.DATASET_USER_ACCESS, new OrderField[] { DatasetUserAccess.DATASET_USER_ACCESS.DID, DatasetUserAccess.DATASET_USER_ACCESS.UID }, true); - public static Index DATASET_USER_ACCESS_UID = Internal.createIndex("uid", DatasetUserAccess.DATASET_USER_ACCESS, new OrderField[] { DatasetUserAccess.DATASET_USER_ACCESS.UID }, false); - public static Index DATASET_VERSION_DID = Internal.createIndex("did", DatasetVersion.DATASET_VERSION, new OrderField[] { DatasetVersion.DATASET_VERSION.DID }, false); - public static Index DATASET_VERSION_IDX_DATASET_VERSION_NAME = Internal.createIndex("idx_dataset_version_name", DatasetVersion.DATASET_VERSION, new OrderField[] { DatasetVersion.DATASET_VERSION.NAME }, false); - public static Index DATASET_VERSION_PRIMARY = Internal.createIndex("PRIMARY", DatasetVersion.DATASET_VERSION, new OrderField[] { DatasetVersion.DATASET_VERSION.DVID }, true); - public static Index OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID = Internal.createIndex("workflow_execution_id", OperatorExecutions.OPERATOR_EXECUTIONS, new OrderField[] { OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID, OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_ID }, true); - public static Index OPERATOR_PORT_EXECUTIONS_WORKFLOW_EXECUTION_ID = Internal.createIndex("workflow_execution_id", OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS, new OrderField[] { OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.WORKFLOW_EXECUTION_ID, OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.OPERATOR_ID, OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.PORT_ID }, true); - public static Index PROJECT_IDX_USER_PROJECT_NAME_DESCRIPTION = Internal.createIndex("idx_user_project_name_description", Project.PROJECT, new OrderField[] { Project.PROJECT.NAME, Project.PROJECT.DESCRIPTION }, false); - public static Index PROJECT_OWNER_ID = Internal.createIndex("owner_id", Project.PROJECT, new OrderField[] { Project.PROJECT.OWNER_ID, Project.PROJECT.NAME }, true); - public static Index PROJECT_PRIMARY = Internal.createIndex("PRIMARY", Project.PROJECT, new OrderField[] { Project.PROJECT.PID }, true); - public static Index PROJECT_USER_ACCESS_PID = Internal.createIndex("pid", ProjectUserAccess.PROJECT_USER_ACCESS, new OrderField[] { ProjectUserAccess.PROJECT_USER_ACCESS.PID }, false); - public static Index PROJECT_USER_ACCESS_PRIMARY = Internal.createIndex("PRIMARY", ProjectUserAccess.PROJECT_USER_ACCESS, new OrderField[] { ProjectUserAccess.PROJECT_USER_ACCESS.UID, ProjectUserAccess.PROJECT_USER_ACCESS.PID }, true); - public static Index PUBLIC_PROJECT_PRIMARY = Internal.createIndex("PRIMARY", PublicProject.PUBLIC_PROJECT, new OrderField[] { PublicProject.PUBLIC_PROJECT.PID }, true); - public static Index USER_EMAIL = Internal.createIndex("email", User.USER, new OrderField[] { User.USER.EMAIL }, true); - public static Index USER_GOOGLE_ID = Internal.createIndex("google_id", User.USER, new OrderField[] { User.USER.GOOGLE_ID }, true); - public static Index USER_IDX_USER_NAME = Internal.createIndex("idx_user_name", User.USER, new OrderField[] { User.USER.NAME }, false); - public static Index USER_PRIMARY = Internal.createIndex("PRIMARY", User.USER, new OrderField[] { User.USER.UID }, true); - public static Index USER_CONFIG_PRIMARY = Internal.createIndex("PRIMARY", UserConfig.USER_CONFIG, new OrderField[] { UserConfig.USER_CONFIG.UID, UserConfig.USER_CONFIG.KEY }, true); - public static Index WORKFLOW_IDX_WORKFLOW_NAME_DESCRIPTION_CONTENT = Internal.createIndex("idx_workflow_name_description_content", Workflow.WORKFLOW, new OrderField[] { Workflow.WORKFLOW.NAME, Workflow.WORKFLOW.DESCRIPTION, Workflow.WORKFLOW.CONTENT }, false); - public static Index WORKFLOW_PRIMARY = Internal.createIndex("PRIMARY", Workflow.WORKFLOW, new OrderField[] { Workflow.WORKFLOW.WID }, true); - public static Index WORKFLOW_EXECUTIONS_PRIMARY = Internal.createIndex("PRIMARY", WorkflowExecutions.WORKFLOW_EXECUTIONS, new OrderField[] { WorkflowExecutions.WORKFLOW_EXECUTIONS.EID }, true); - public static Index WORKFLOW_EXECUTIONS_UID = Internal.createIndex("uid", WorkflowExecutions.WORKFLOW_EXECUTIONS, new OrderField[] { WorkflowExecutions.WORKFLOW_EXECUTIONS.UID }, false); - public static Index WORKFLOW_EXECUTIONS_VID = Internal.createIndex("vid", WorkflowExecutions.WORKFLOW_EXECUTIONS, new OrderField[] { WorkflowExecutions.WORKFLOW_EXECUTIONS.VID }, false); - public static Index WORKFLOW_OF_PROJECT_PID = Internal.createIndex("pid", WorkflowOfProject.WORKFLOW_OF_PROJECT, new OrderField[] { WorkflowOfProject.WORKFLOW_OF_PROJECT.PID }, false); - public static Index WORKFLOW_OF_PROJECT_PRIMARY = Internal.createIndex("PRIMARY", WorkflowOfProject.WORKFLOW_OF_PROJECT, new OrderField[] { WorkflowOfProject.WORKFLOW_OF_PROJECT.WID, WorkflowOfProject.WORKFLOW_OF_PROJECT.PID }, true); - public static Index WORKFLOW_OF_USER_PRIMARY = Internal.createIndex("PRIMARY", WorkflowOfUser.WORKFLOW_OF_USER, new OrderField[] { WorkflowOfUser.WORKFLOW_OF_USER.UID, WorkflowOfUser.WORKFLOW_OF_USER.WID }, true); - public static Index WORKFLOW_OF_USER_WID = Internal.createIndex("wid", WorkflowOfUser.WORKFLOW_OF_USER, new OrderField[] { WorkflowOfUser.WORKFLOW_OF_USER.WID }, false); - public static Index WORKFLOW_USER_ACCESS_PRIMARY = Internal.createIndex("PRIMARY", WorkflowUserAccess.WORKFLOW_USER_ACCESS, new OrderField[] { WorkflowUserAccess.WORKFLOW_USER_ACCESS.UID, WorkflowUserAccess.WORKFLOW_USER_ACCESS.WID }, true); - public static Index WORKFLOW_USER_ACCESS_WID = Internal.createIndex("wid", WorkflowUserAccess.WORKFLOW_USER_ACCESS, new OrderField[] { WorkflowUserAccess.WORKFLOW_USER_ACCESS.WID }, false); - public static Index WORKFLOW_USER_CLONES_PRIMARY = Internal.createIndex("PRIMARY", WorkflowUserClones.WORKFLOW_USER_CLONES, new OrderField[] { WorkflowUserClones.WORKFLOW_USER_CLONES.UID, WorkflowUserClones.WORKFLOW_USER_CLONES.WID }, true); - public static Index WORKFLOW_USER_CLONES_WID = Internal.createIndex("wid", WorkflowUserClones.WORKFLOW_USER_CLONES, new OrderField[] { WorkflowUserClones.WORKFLOW_USER_CLONES.WID }, false); - public static Index WORKFLOW_USER_LIKES_PRIMARY = Internal.createIndex("PRIMARY", WorkflowUserLikes.WORKFLOW_USER_LIKES, new OrderField[] { WorkflowUserLikes.WORKFLOW_USER_LIKES.UID, WorkflowUserLikes.WORKFLOW_USER_LIKES.WID }, true); - public static Index WORKFLOW_USER_LIKES_WID = Internal.createIndex("wid", WorkflowUserLikes.WORKFLOW_USER_LIKES, new OrderField[] { WorkflowUserLikes.WORKFLOW_USER_LIKES.WID }, false); - public static Index WORKFLOW_VERSION_PRIMARY = Internal.createIndex("PRIMARY", WorkflowVersion.WORKFLOW_VERSION, new OrderField[] { WorkflowVersion.WORKFLOW_VERSION.VID }, true); - public static Index WORKFLOW_VERSION_WID = Internal.createIndex("wid", WorkflowVersion.WORKFLOW_VERSION, new OrderField[] { WorkflowVersion.WORKFLOW_VERSION.WID }, false); - public static Index WORKFLOW_VIEW_COUNT_PRIMARY = Internal.createIndex("PRIMARY", WorkflowViewCount.WORKFLOW_VIEW_COUNT, new OrderField[] { WorkflowViewCount.WORKFLOW_VIEW_COUNT.WID }, true); - } -} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java index 89bc0d1cd83..e61caddd570 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java @@ -8,7 +8,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetUserAccess; import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetVersion; import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorExecutions; -import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorPortExecutions; +import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorRuntimeStatistics; import edu.uci.ics.texera.dao.jooq.generated.tables.Project; import edu.uci.ics.texera.dao.jooq.generated.tables.ProjectUserAccess; import edu.uci.ics.texera.dao.jooq.generated.tables.PublicProject; @@ -27,7 +27,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.records.DatasetUserAccessRecord; import edu.uci.ics.texera.dao.jooq.generated.tables.records.DatasetVersionRecord; import edu.uci.ics.texera.dao.jooq.generated.tables.records.OperatorExecutionsRecord; -import edu.uci.ics.texera.dao.jooq.generated.tables.records.OperatorPortExecutionsRecord; +import edu.uci.ics.texera.dao.jooq.generated.tables.records.OperatorRuntimeStatisticsRecord; import edu.uci.ics.texera.dao.jooq.generated.tables.records.ProjectRecord; import edu.uci.ics.texera.dao.jooq.generated.tables.records.ProjectUserAccessRecord; import edu.uci.ics.texera.dao.jooq.generated.tables.records.PublicProjectRecord; @@ -44,152 +44,74 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowViewCountRecord; import org.jooq.ForeignKey; -import org.jooq.Identity; +import org.jooq.TableField; import org.jooq.UniqueKey; +import org.jooq.impl.DSL; import org.jooq.impl.Internal; -import org.jooq.types.UInteger; /** - * A class modelling foreign key relationships and constraints of tables of - * the texera_db schema. + * A class modelling foreign key relationships and constraints of tables in + * texera_db. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Keys { - // ------------------------------------------------------------------------- - // IDENTITY definitions - // ------------------------------------------------------------------------- - - public static final Identity IDENTITY_DATASET = Identities0.IDENTITY_DATASET; - public static final Identity IDENTITY_DATASET_VERSION = Identities0.IDENTITY_DATASET_VERSION; - public static final Identity IDENTITY_PROJECT = Identities0.IDENTITY_PROJECT; - public static final Identity IDENTITY_USER = Identities0.IDENTITY_USER; - public static final Identity IDENTITY_WORKFLOW = Identities0.IDENTITY_WORKFLOW; - public static final Identity IDENTITY_WORKFLOW_EXECUTIONS = Identities0.IDENTITY_WORKFLOW_EXECUTIONS; - public static final Identity IDENTITY_WORKFLOW_VERSION = Identities0.IDENTITY_WORKFLOW_VERSION; - // ------------------------------------------------------------------------- // UNIQUE and PRIMARY KEY definitions // ------------------------------------------------------------------------- - public static final UniqueKey KEY_DATASET_PRIMARY = UniqueKeys0.KEY_DATASET_PRIMARY; - public static final UniqueKey KEY_DATASET_USER_ACCESS_PRIMARY = UniqueKeys0.KEY_DATASET_USER_ACCESS_PRIMARY; - public static final UniqueKey KEY_DATASET_VERSION_PRIMARY = UniqueKeys0.KEY_DATASET_VERSION_PRIMARY; - public static final UniqueKey KEY_OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID = UniqueKeys0.KEY_OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID; - public static final UniqueKey KEY_OPERATOR_PORT_EXECUTIONS_WORKFLOW_EXECUTION_ID = UniqueKeys0.KEY_OPERATOR_PORT_EXECUTIONS_WORKFLOW_EXECUTION_ID; - public static final UniqueKey KEY_PROJECT_PRIMARY = UniqueKeys0.KEY_PROJECT_PRIMARY; - public static final UniqueKey KEY_PROJECT_OWNER_ID = UniqueKeys0.KEY_PROJECT_OWNER_ID; - public static final UniqueKey KEY_PROJECT_USER_ACCESS_PRIMARY = UniqueKeys0.KEY_PROJECT_USER_ACCESS_PRIMARY; - public static final UniqueKey KEY_PUBLIC_PROJECT_PRIMARY = UniqueKeys0.KEY_PUBLIC_PROJECT_PRIMARY; - public static final UniqueKey KEY_USER_PRIMARY = UniqueKeys0.KEY_USER_PRIMARY; - public static final UniqueKey KEY_USER_EMAIL = UniqueKeys0.KEY_USER_EMAIL; - public static final UniqueKey KEY_USER_GOOGLE_ID = UniqueKeys0.KEY_USER_GOOGLE_ID; - public static final UniqueKey KEY_USER_CONFIG_PRIMARY = UniqueKeys0.KEY_USER_CONFIG_PRIMARY; - public static final UniqueKey KEY_WORKFLOW_PRIMARY = UniqueKeys0.KEY_WORKFLOW_PRIMARY; - public static final UniqueKey KEY_WORKFLOW_EXECUTIONS_PRIMARY = UniqueKeys0.KEY_WORKFLOW_EXECUTIONS_PRIMARY; - public static final UniqueKey KEY_WORKFLOW_OF_PROJECT_PRIMARY = UniqueKeys0.KEY_WORKFLOW_OF_PROJECT_PRIMARY; - public static final UniqueKey KEY_WORKFLOW_OF_USER_PRIMARY = UniqueKeys0.KEY_WORKFLOW_OF_USER_PRIMARY; - public static final UniqueKey KEY_WORKFLOW_USER_ACCESS_PRIMARY = UniqueKeys0.KEY_WORKFLOW_USER_ACCESS_PRIMARY; - public static final UniqueKey KEY_WORKFLOW_USER_CLONES_PRIMARY = UniqueKeys0.KEY_WORKFLOW_USER_CLONES_PRIMARY; - public static final UniqueKey KEY_WORKFLOW_USER_LIKES_PRIMARY = UniqueKeys0.KEY_WORKFLOW_USER_LIKES_PRIMARY; - public static final UniqueKey KEY_WORKFLOW_VERSION_PRIMARY = UniqueKeys0.KEY_WORKFLOW_VERSION_PRIMARY; - public static final UniqueKey KEY_WORKFLOW_VIEW_COUNT_PRIMARY = UniqueKeys0.KEY_WORKFLOW_VIEW_COUNT_PRIMARY; + public static final UniqueKey DATASET_PKEY = Internal.createUniqueKey(Dataset.DATASET, DSL.name("dataset_pkey"), new TableField[] { Dataset.DATASET.DID }, true); + public static final UniqueKey DATASET_USER_ACCESS_PKEY = Internal.createUniqueKey(DatasetUserAccess.DATASET_USER_ACCESS, DSL.name("dataset_user_access_pkey"), new TableField[] { DatasetUserAccess.DATASET_USER_ACCESS.DID, DatasetUserAccess.DATASET_USER_ACCESS.UID }, true); + public static final UniqueKey DATASET_VERSION_PKEY = Internal.createUniqueKey(DatasetVersion.DATASET_VERSION, DSL.name("dataset_version_pkey"), new TableField[] { DatasetVersion.DATASET_VERSION.DVID }, true); + public static final UniqueKey OPERATOR_EXECUTIONS_PKEY = Internal.createUniqueKey(OperatorExecutions.OPERATOR_EXECUTIONS, DSL.name("operator_executions_pkey"), new TableField[] { OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID }, true); + public static final UniqueKey OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID_KEY = Internal.createUniqueKey(OperatorExecutions.OPERATOR_EXECUTIONS, DSL.name("operator_executions_workflow_execution_id_operator_id_key"), new TableField[] { OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID, OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_ID }, true); + public static final UniqueKey OPERATOR_RUNTIME_STATISTICS_PKEY = Internal.createUniqueKey(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS, DSL.name("operator_runtime_statistics_pkey"), new TableField[] { OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OPERATOR_EXECUTION_ID, OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.TIME }, true); + public static final UniqueKey PROJECT_OWNER_ID_NAME_KEY = Internal.createUniqueKey(Project.PROJECT, DSL.name("project_owner_id_name_key"), new TableField[] { Project.PROJECT.OWNER_ID, Project.PROJECT.NAME }, true); + public static final UniqueKey PROJECT_PKEY = Internal.createUniqueKey(Project.PROJECT, DSL.name("project_pkey"), new TableField[] { Project.PROJECT.PID }, true); + public static final UniqueKey PROJECT_USER_ACCESS_PKEY = Internal.createUniqueKey(ProjectUserAccess.PROJECT_USER_ACCESS, DSL.name("project_user_access_pkey"), new TableField[] { ProjectUserAccess.PROJECT_USER_ACCESS.UID, ProjectUserAccess.PROJECT_USER_ACCESS.PID }, true); + public static final UniqueKey PUBLIC_PROJECT_PKEY = Internal.createUniqueKey(PublicProject.PUBLIC_PROJECT, DSL.name("public_project_pkey"), new TableField[] { PublicProject.PUBLIC_PROJECT.PID }, true); + public static final UniqueKey USER_EMAIL_KEY = Internal.createUniqueKey(User.USER, DSL.name("user_email_key"), new TableField[] { User.USER.EMAIL }, true); + public static final UniqueKey USER_GOOGLE_ID_KEY = Internal.createUniqueKey(User.USER, DSL.name("user_google_id_key"), new TableField[] { User.USER.GOOGLE_ID }, true); + public static final UniqueKey USER_PKEY = Internal.createUniqueKey(User.USER, DSL.name("user_pkey"), new TableField[] { User.USER.UID }, true); + public static final UniqueKey USER_CONFIG_PKEY = Internal.createUniqueKey(UserConfig.USER_CONFIG, DSL.name("user_config_pkey"), new TableField[] { UserConfig.USER_CONFIG.UID, UserConfig.USER_CONFIG.KEY }, true); + public static final UniqueKey WORKFLOW_PKEY = Internal.createUniqueKey(Workflow.WORKFLOW, DSL.name("workflow_pkey"), new TableField[] { Workflow.WORKFLOW.WID }, true); + public static final UniqueKey WORKFLOW_EXECUTIONS_PKEY = Internal.createUniqueKey(WorkflowExecutions.WORKFLOW_EXECUTIONS, DSL.name("workflow_executions_pkey"), new TableField[] { WorkflowExecutions.WORKFLOW_EXECUTIONS.EID }, true); + public static final UniqueKey WORKFLOW_OF_PROJECT_PKEY = Internal.createUniqueKey(WorkflowOfProject.WORKFLOW_OF_PROJECT, DSL.name("workflow_of_project_pkey"), new TableField[] { WorkflowOfProject.WORKFLOW_OF_PROJECT.WID, WorkflowOfProject.WORKFLOW_OF_PROJECT.PID }, true); + public static final UniqueKey WORKFLOW_OF_USER_PKEY = Internal.createUniqueKey(WorkflowOfUser.WORKFLOW_OF_USER, DSL.name("workflow_of_user_pkey"), new TableField[] { WorkflowOfUser.WORKFLOW_OF_USER.UID, WorkflowOfUser.WORKFLOW_OF_USER.WID }, true); + public static final UniqueKey WORKFLOW_USER_ACCESS_PKEY = Internal.createUniqueKey(WorkflowUserAccess.WORKFLOW_USER_ACCESS, DSL.name("workflow_user_access_pkey"), new TableField[] { WorkflowUserAccess.WORKFLOW_USER_ACCESS.UID, WorkflowUserAccess.WORKFLOW_USER_ACCESS.WID }, true); + public static final UniqueKey WORKFLOW_USER_CLONES_PKEY = Internal.createUniqueKey(WorkflowUserClones.WORKFLOW_USER_CLONES, DSL.name("workflow_user_clones_pkey"), new TableField[] { WorkflowUserClones.WORKFLOW_USER_CLONES.UID, WorkflowUserClones.WORKFLOW_USER_CLONES.WID }, true); + public static final UniqueKey WORKFLOW_USER_LIKES_PKEY = Internal.createUniqueKey(WorkflowUserLikes.WORKFLOW_USER_LIKES, DSL.name("workflow_user_likes_pkey"), new TableField[] { WorkflowUserLikes.WORKFLOW_USER_LIKES.UID, WorkflowUserLikes.WORKFLOW_USER_LIKES.WID }, true); + public static final UniqueKey WORKFLOW_VERSION_PKEY = Internal.createUniqueKey(WorkflowVersion.WORKFLOW_VERSION, DSL.name("workflow_version_pkey"), new TableField[] { WorkflowVersion.WORKFLOW_VERSION.VID }, true); + public static final UniqueKey WORKFLOW_VIEW_COUNT_PKEY = Internal.createUniqueKey(WorkflowViewCount.WORKFLOW_VIEW_COUNT, DSL.name("workflow_view_count_pkey"), new TableField[] { WorkflowViewCount.WORKFLOW_VIEW_COUNT.WID }, true); // ------------------------------------------------------------------------- // FOREIGN KEY definitions // ------------------------------------------------------------------------- - public static final ForeignKey DATASET_IBFK_1 = ForeignKeys0.DATASET_IBFK_1; - public static final ForeignKey DATASET_USER_ACCESS_IBFK_1 = ForeignKeys0.DATASET_USER_ACCESS_IBFK_1; - public static final ForeignKey DATASET_USER_ACCESS_IBFK_2 = ForeignKeys0.DATASET_USER_ACCESS_IBFK_2; - public static final ForeignKey DATASET_VERSION_IBFK_1 = ForeignKeys0.DATASET_VERSION_IBFK_1; - public static final ForeignKey OPERATOR_EXECUTIONS_IBFK_1 = ForeignKeys0.OPERATOR_EXECUTIONS_IBFK_1; - public static final ForeignKey OPERATOR_PORT_EXECUTIONS_IBFK_1 = ForeignKeys0.OPERATOR_PORT_EXECUTIONS_IBFK_1; - public static final ForeignKey PROJECT_IBFK_1 = ForeignKeys0.PROJECT_IBFK_1; - public static final ForeignKey PROJECT_USER_ACCESS_IBFK_1 = ForeignKeys0.PROJECT_USER_ACCESS_IBFK_1; - public static final ForeignKey PROJECT_USER_ACCESS_IBFK_2 = ForeignKeys0.PROJECT_USER_ACCESS_IBFK_2; - public static final ForeignKey PUBLIC_PROJECT_IBFK_1 = ForeignKeys0.PUBLIC_PROJECT_IBFK_1; - public static final ForeignKey USER_CONFIG_IBFK_1 = ForeignKeys0.USER_CONFIG_IBFK_1; - public static final ForeignKey WORKFLOW_EXECUTIONS_IBFK_1 = ForeignKeys0.WORKFLOW_EXECUTIONS_IBFK_1; - public static final ForeignKey WORKFLOW_EXECUTIONS_IBFK_2 = ForeignKeys0.WORKFLOW_EXECUTIONS_IBFK_2; - public static final ForeignKey WORKFLOW_OF_PROJECT_IBFK_1 = ForeignKeys0.WORKFLOW_OF_PROJECT_IBFK_1; - public static final ForeignKey WORKFLOW_OF_PROJECT_IBFK_2 = ForeignKeys0.WORKFLOW_OF_PROJECT_IBFK_2; - public static final ForeignKey WORKFLOW_OF_USER_IBFK_1 = ForeignKeys0.WORKFLOW_OF_USER_IBFK_1; - public static final ForeignKey WORKFLOW_OF_USER_IBFK_2 = ForeignKeys0.WORKFLOW_OF_USER_IBFK_2; - public static final ForeignKey WORKFLOW_USER_ACCESS_IBFK_1 = ForeignKeys0.WORKFLOW_USER_ACCESS_IBFK_1; - public static final ForeignKey WORKFLOW_USER_ACCESS_IBFK_2 = ForeignKeys0.WORKFLOW_USER_ACCESS_IBFK_2; - public static final ForeignKey WORKFLOW_USER_CLONES_IBFK_1 = ForeignKeys0.WORKFLOW_USER_CLONES_IBFK_1; - public static final ForeignKey WORKFLOW_USER_CLONES_IBFK_2 = ForeignKeys0.WORKFLOW_USER_CLONES_IBFK_2; - public static final ForeignKey WORKFLOW_USER_LIKES_IBFK_1 = ForeignKeys0.WORKFLOW_USER_LIKES_IBFK_1; - public static final ForeignKey WORKFLOW_USER_LIKES_IBFK_2 = ForeignKeys0.WORKFLOW_USER_LIKES_IBFK_2; - public static final ForeignKey WORKFLOW_VERSION_IBFK_1 = ForeignKeys0.WORKFLOW_VERSION_IBFK_1; - public static final ForeignKey WORKFLOW_VIEW_COUNT_IBFK_1 = ForeignKeys0.WORKFLOW_VIEW_COUNT_IBFK_1; - - // ------------------------------------------------------------------------- - // [#1459] distribute members to avoid static initialisers > 64kb - // ------------------------------------------------------------------------- - - private static class Identities0 { - public static Identity IDENTITY_DATASET = Internal.createIdentity(Dataset.DATASET, Dataset.DATASET.DID); - public static Identity IDENTITY_DATASET_VERSION = Internal.createIdentity(DatasetVersion.DATASET_VERSION, DatasetVersion.DATASET_VERSION.DVID); - public static Identity IDENTITY_PROJECT = Internal.createIdentity(Project.PROJECT, Project.PROJECT.PID); - public static Identity IDENTITY_USER = Internal.createIdentity(User.USER, User.USER.UID); - public static Identity IDENTITY_WORKFLOW = Internal.createIdentity(Workflow.WORKFLOW, Workflow.WORKFLOW.WID); - public static Identity IDENTITY_WORKFLOW_EXECUTIONS = Internal.createIdentity(WorkflowExecutions.WORKFLOW_EXECUTIONS, WorkflowExecutions.WORKFLOW_EXECUTIONS.EID); - public static Identity IDENTITY_WORKFLOW_VERSION = Internal.createIdentity(WorkflowVersion.WORKFLOW_VERSION, WorkflowVersion.WORKFLOW_VERSION.VID); - } - - private static class UniqueKeys0 { - public static final UniqueKey KEY_DATASET_PRIMARY = Internal.createUniqueKey(Dataset.DATASET, "KEY_dataset_PRIMARY", Dataset.DATASET.DID); - public static final UniqueKey KEY_DATASET_USER_ACCESS_PRIMARY = Internal.createUniqueKey(DatasetUserAccess.DATASET_USER_ACCESS, "KEY_dataset_user_access_PRIMARY", DatasetUserAccess.DATASET_USER_ACCESS.DID, DatasetUserAccess.DATASET_USER_ACCESS.UID); - public static final UniqueKey KEY_DATASET_VERSION_PRIMARY = Internal.createUniqueKey(DatasetVersion.DATASET_VERSION, "KEY_dataset_version_PRIMARY", DatasetVersion.DATASET_VERSION.DVID); - public static final UniqueKey KEY_OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID = Internal.createUniqueKey(OperatorExecutions.OPERATOR_EXECUTIONS, "KEY_operator_executions_workflow_execution_id", OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID, OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_ID); - public static final UniqueKey KEY_OPERATOR_PORT_EXECUTIONS_WORKFLOW_EXECUTION_ID = Internal.createUniqueKey(OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS, "KEY_operator_port_executions_workflow_execution_id", OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.WORKFLOW_EXECUTION_ID, OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.OPERATOR_ID, OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.PORT_ID); - public static final UniqueKey KEY_PROJECT_PRIMARY = Internal.createUniqueKey(Project.PROJECT, "KEY_project_PRIMARY", Project.PROJECT.PID); - public static final UniqueKey KEY_PROJECT_OWNER_ID = Internal.createUniqueKey(Project.PROJECT, "KEY_project_owner_id", Project.PROJECT.OWNER_ID, Project.PROJECT.NAME); - public static final UniqueKey KEY_PROJECT_USER_ACCESS_PRIMARY = Internal.createUniqueKey(ProjectUserAccess.PROJECT_USER_ACCESS, "KEY_project_user_access_PRIMARY", ProjectUserAccess.PROJECT_USER_ACCESS.UID, ProjectUserAccess.PROJECT_USER_ACCESS.PID); - public static final UniqueKey KEY_PUBLIC_PROJECT_PRIMARY = Internal.createUniqueKey(PublicProject.PUBLIC_PROJECT, "KEY_public_project_PRIMARY", PublicProject.PUBLIC_PROJECT.PID); - public static final UniqueKey KEY_USER_PRIMARY = Internal.createUniqueKey(User.USER, "KEY_user_PRIMARY", User.USER.UID); - public static final UniqueKey KEY_USER_EMAIL = Internal.createUniqueKey(User.USER, "KEY_user_email", User.USER.EMAIL); - public static final UniqueKey KEY_USER_GOOGLE_ID = Internal.createUniqueKey(User.USER, "KEY_user_google_id", User.USER.GOOGLE_ID); - public static final UniqueKey KEY_USER_CONFIG_PRIMARY = Internal.createUniqueKey(UserConfig.USER_CONFIG, "KEY_user_config_PRIMARY", UserConfig.USER_CONFIG.UID, UserConfig.USER_CONFIG.KEY); - public static final UniqueKey KEY_WORKFLOW_PRIMARY = Internal.createUniqueKey(Workflow.WORKFLOW, "KEY_workflow_PRIMARY", Workflow.WORKFLOW.WID); - public static final UniqueKey KEY_WORKFLOW_EXECUTIONS_PRIMARY = Internal.createUniqueKey(WorkflowExecutions.WORKFLOW_EXECUTIONS, "KEY_workflow_executions_PRIMARY", WorkflowExecutions.WORKFLOW_EXECUTIONS.EID); - public static final UniqueKey KEY_WORKFLOW_OF_PROJECT_PRIMARY = Internal.createUniqueKey(WorkflowOfProject.WORKFLOW_OF_PROJECT, "KEY_workflow_of_project_PRIMARY", WorkflowOfProject.WORKFLOW_OF_PROJECT.WID, WorkflowOfProject.WORKFLOW_OF_PROJECT.PID); - public static final UniqueKey KEY_WORKFLOW_OF_USER_PRIMARY = Internal.createUniqueKey(WorkflowOfUser.WORKFLOW_OF_USER, "KEY_workflow_of_user_PRIMARY", WorkflowOfUser.WORKFLOW_OF_USER.UID, WorkflowOfUser.WORKFLOW_OF_USER.WID); - public static final UniqueKey KEY_WORKFLOW_USER_ACCESS_PRIMARY = Internal.createUniqueKey(WorkflowUserAccess.WORKFLOW_USER_ACCESS, "KEY_workflow_user_access_PRIMARY", WorkflowUserAccess.WORKFLOW_USER_ACCESS.UID, WorkflowUserAccess.WORKFLOW_USER_ACCESS.WID); - public static final UniqueKey KEY_WORKFLOW_USER_CLONES_PRIMARY = Internal.createUniqueKey(WorkflowUserClones.WORKFLOW_USER_CLONES, "KEY_workflow_user_clones_PRIMARY", WorkflowUserClones.WORKFLOW_USER_CLONES.UID, WorkflowUserClones.WORKFLOW_USER_CLONES.WID); - public static final UniqueKey KEY_WORKFLOW_USER_LIKES_PRIMARY = Internal.createUniqueKey(WorkflowUserLikes.WORKFLOW_USER_LIKES, "KEY_workflow_user_likes_PRIMARY", WorkflowUserLikes.WORKFLOW_USER_LIKES.UID, WorkflowUserLikes.WORKFLOW_USER_LIKES.WID); - public static final UniqueKey KEY_WORKFLOW_VERSION_PRIMARY = Internal.createUniqueKey(WorkflowVersion.WORKFLOW_VERSION, "KEY_workflow_version_PRIMARY", WorkflowVersion.WORKFLOW_VERSION.VID); - public static final UniqueKey KEY_WORKFLOW_VIEW_COUNT_PRIMARY = Internal.createUniqueKey(WorkflowViewCount.WORKFLOW_VIEW_COUNT, "KEY_workflow_view_count_PRIMARY", WorkflowViewCount.WORKFLOW_VIEW_COUNT.WID); - } - - private static class ForeignKeys0 { - public static final ForeignKey DATASET_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_USER_PRIMARY, Dataset.DATASET, "dataset_ibfk_1", Dataset.DATASET.OWNER_UID); - public static final ForeignKey DATASET_USER_ACCESS_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_DATASET_PRIMARY, DatasetUserAccess.DATASET_USER_ACCESS, "dataset_user_access_ibfk_1", DatasetUserAccess.DATASET_USER_ACCESS.DID); - public static final ForeignKey DATASET_USER_ACCESS_IBFK_2 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_USER_PRIMARY, DatasetUserAccess.DATASET_USER_ACCESS, "dataset_user_access_ibfk_2", DatasetUserAccess.DATASET_USER_ACCESS.UID); - public static final ForeignKey DATASET_VERSION_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_DATASET_PRIMARY, DatasetVersion.DATASET_VERSION, "dataset_version_ibfk_1", DatasetVersion.DATASET_VERSION.DID); - public static final ForeignKey OPERATOR_EXECUTIONS_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_WORKFLOW_EXECUTIONS_PRIMARY, OperatorExecutions.OPERATOR_EXECUTIONS, "operator_executions_ibfk_1", OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID); - public static final ForeignKey OPERATOR_PORT_EXECUTIONS_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_WORKFLOW_EXECUTIONS_PRIMARY, OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS, "operator_port_executions_ibfk_1", OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.WORKFLOW_EXECUTION_ID); - public static final ForeignKey PROJECT_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_USER_PRIMARY, Project.PROJECT, "project_ibfk_1", Project.PROJECT.OWNER_ID); - public static final ForeignKey PROJECT_USER_ACCESS_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_USER_PRIMARY, ProjectUserAccess.PROJECT_USER_ACCESS, "project_user_access_ibfk_1", ProjectUserAccess.PROJECT_USER_ACCESS.UID); - public static final ForeignKey PROJECT_USER_ACCESS_IBFK_2 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_PROJECT_PRIMARY, ProjectUserAccess.PROJECT_USER_ACCESS, "project_user_access_ibfk_2", ProjectUserAccess.PROJECT_USER_ACCESS.PID); - public static final ForeignKey PUBLIC_PROJECT_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_PROJECT_PRIMARY, PublicProject.PUBLIC_PROJECT, "public_project_ibfk_1", PublicProject.PUBLIC_PROJECT.PID); - public static final ForeignKey USER_CONFIG_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_USER_PRIMARY, UserConfig.USER_CONFIG, "user_config_ibfk_1", UserConfig.USER_CONFIG.UID); - public static final ForeignKey WORKFLOW_EXECUTIONS_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_WORKFLOW_VERSION_PRIMARY, WorkflowExecutions.WORKFLOW_EXECUTIONS, "workflow_executions_ibfk_1", WorkflowExecutions.WORKFLOW_EXECUTIONS.VID); - public static final ForeignKey WORKFLOW_EXECUTIONS_IBFK_2 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_USER_PRIMARY, WorkflowExecutions.WORKFLOW_EXECUTIONS, "workflow_executions_ibfk_2", WorkflowExecutions.WORKFLOW_EXECUTIONS.UID); - public static final ForeignKey WORKFLOW_OF_PROJECT_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_WORKFLOW_PRIMARY, WorkflowOfProject.WORKFLOW_OF_PROJECT, "workflow_of_project_ibfk_1", WorkflowOfProject.WORKFLOW_OF_PROJECT.WID); - public static final ForeignKey WORKFLOW_OF_PROJECT_IBFK_2 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_PROJECT_PRIMARY, WorkflowOfProject.WORKFLOW_OF_PROJECT, "workflow_of_project_ibfk_2", WorkflowOfProject.WORKFLOW_OF_PROJECT.PID); - public static final ForeignKey WORKFLOW_OF_USER_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_USER_PRIMARY, WorkflowOfUser.WORKFLOW_OF_USER, "workflow_of_user_ibfk_1", WorkflowOfUser.WORKFLOW_OF_USER.UID); - public static final ForeignKey WORKFLOW_OF_USER_IBFK_2 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_WORKFLOW_PRIMARY, WorkflowOfUser.WORKFLOW_OF_USER, "workflow_of_user_ibfk_2", WorkflowOfUser.WORKFLOW_OF_USER.WID); - public static final ForeignKey WORKFLOW_USER_ACCESS_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_USER_PRIMARY, WorkflowUserAccess.WORKFLOW_USER_ACCESS, "workflow_user_access_ibfk_1", WorkflowUserAccess.WORKFLOW_USER_ACCESS.UID); - public static final ForeignKey WORKFLOW_USER_ACCESS_IBFK_2 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_WORKFLOW_PRIMARY, WorkflowUserAccess.WORKFLOW_USER_ACCESS, "workflow_user_access_ibfk_2", WorkflowUserAccess.WORKFLOW_USER_ACCESS.WID); - public static final ForeignKey WORKFLOW_USER_CLONES_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_USER_PRIMARY, WorkflowUserClones.WORKFLOW_USER_CLONES, "workflow_user_clones_ibfk_1", WorkflowUserClones.WORKFLOW_USER_CLONES.UID); - public static final ForeignKey WORKFLOW_USER_CLONES_IBFK_2 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_WORKFLOW_PRIMARY, WorkflowUserClones.WORKFLOW_USER_CLONES, "workflow_user_clones_ibfk_2", WorkflowUserClones.WORKFLOW_USER_CLONES.WID); - public static final ForeignKey WORKFLOW_USER_LIKES_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_USER_PRIMARY, WorkflowUserLikes.WORKFLOW_USER_LIKES, "workflow_user_likes_ibfk_1", WorkflowUserLikes.WORKFLOW_USER_LIKES.UID); - public static final ForeignKey WORKFLOW_USER_LIKES_IBFK_2 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_WORKFLOW_PRIMARY, WorkflowUserLikes.WORKFLOW_USER_LIKES, "workflow_user_likes_ibfk_2", WorkflowUserLikes.WORKFLOW_USER_LIKES.WID); - public static final ForeignKey WORKFLOW_VERSION_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_WORKFLOW_PRIMARY, WorkflowVersion.WORKFLOW_VERSION, "workflow_version_ibfk_1", WorkflowVersion.WORKFLOW_VERSION.WID); - public static final ForeignKey WORKFLOW_VIEW_COUNT_IBFK_1 = Internal.createForeignKey(edu.uci.ics.texera.dao.jooq.generated.Keys.KEY_WORKFLOW_PRIMARY, WorkflowViewCount.WORKFLOW_VIEW_COUNT, "workflow_view_count_ibfk_1", WorkflowViewCount.WORKFLOW_VIEW_COUNT.WID); - } + public static final ForeignKey DATASET__DATASET_OWNER_UID_FKEY = Internal.createForeignKey(Dataset.DATASET, DSL.name("dataset_owner_uid_fkey"), new TableField[] { Dataset.DATASET.OWNER_UID }, Keys.USER_PKEY, new TableField[] { User.USER.UID }, true); + public static final ForeignKey DATASET_USER_ACCESS__DATASET_USER_ACCESS_DID_FKEY = Internal.createForeignKey(DatasetUserAccess.DATASET_USER_ACCESS, DSL.name("dataset_user_access_did_fkey"), new TableField[] { DatasetUserAccess.DATASET_USER_ACCESS.DID }, Keys.DATASET_PKEY, new TableField[] { Dataset.DATASET.DID }, true); + public static final ForeignKey DATASET_USER_ACCESS__DATASET_USER_ACCESS_UID_FKEY = Internal.createForeignKey(DatasetUserAccess.DATASET_USER_ACCESS, DSL.name("dataset_user_access_uid_fkey"), new TableField[] { DatasetUserAccess.DATASET_USER_ACCESS.UID }, Keys.USER_PKEY, new TableField[] { User.USER.UID }, true); + public static final ForeignKey DATASET_VERSION__DATASET_VERSION_DID_FKEY = Internal.createForeignKey(DatasetVersion.DATASET_VERSION, DSL.name("dataset_version_did_fkey"), new TableField[] { DatasetVersion.DATASET_VERSION.DID }, Keys.DATASET_PKEY, new TableField[] { Dataset.DATASET.DID }, true); + public static final ForeignKey OPERATOR_EXECUTIONS__OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_FKEY = Internal.createForeignKey(OperatorExecutions.OPERATOR_EXECUTIONS, DSL.name("operator_executions_workflow_execution_id_fkey"), new TableField[] { OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID }, Keys.WORKFLOW_EXECUTIONS_PKEY, new TableField[] { WorkflowExecutions.WORKFLOW_EXECUTIONS.EID }, true); + public static final ForeignKey OPERATOR_RUNTIME_STATISTICS__OPERATOR_RUNTIME_STATISTICS_OPERATOR_EXECUTION_ID_FKEY = Internal.createForeignKey(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS, DSL.name("operator_runtime_statistics_operator_execution_id_fkey"), new TableField[] { OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OPERATOR_EXECUTION_ID }, Keys.OPERATOR_EXECUTIONS_PKEY, new TableField[] { OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID }, true); + public static final ForeignKey PROJECT__PROJECT_OWNER_ID_FKEY = Internal.createForeignKey(Project.PROJECT, DSL.name("project_owner_id_fkey"), new TableField[] { Project.PROJECT.OWNER_ID }, Keys.USER_PKEY, new TableField[] { User.USER.UID }, true); + public static final ForeignKey PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_PID_FKEY = Internal.createForeignKey(ProjectUserAccess.PROJECT_USER_ACCESS, DSL.name("project_user_access_pid_fkey"), new TableField[] { ProjectUserAccess.PROJECT_USER_ACCESS.PID }, Keys.PROJECT_PKEY, new TableField[] { Project.PROJECT.PID }, true); + public static final ForeignKey PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_UID_FKEY = Internal.createForeignKey(ProjectUserAccess.PROJECT_USER_ACCESS, DSL.name("project_user_access_uid_fkey"), new TableField[] { ProjectUserAccess.PROJECT_USER_ACCESS.UID }, Keys.USER_PKEY, new TableField[] { User.USER.UID }, true); + public static final ForeignKey PUBLIC_PROJECT__PUBLIC_PROJECT_PID_FKEY = Internal.createForeignKey(PublicProject.PUBLIC_PROJECT, DSL.name("public_project_pid_fkey"), new TableField[] { PublicProject.PUBLIC_PROJECT.PID }, Keys.PROJECT_PKEY, new TableField[] { Project.PROJECT.PID }, true); + public static final ForeignKey USER_CONFIG__USER_CONFIG_UID_FKEY = Internal.createForeignKey(UserConfig.USER_CONFIG, DSL.name("user_config_uid_fkey"), new TableField[] { UserConfig.USER_CONFIG.UID }, Keys.USER_PKEY, new TableField[] { User.USER.UID }, true); + public static final ForeignKey WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_UID_FKEY = Internal.createForeignKey(WorkflowExecutions.WORKFLOW_EXECUTIONS, DSL.name("workflow_executions_uid_fkey"), new TableField[] { WorkflowExecutions.WORKFLOW_EXECUTIONS.UID }, Keys.USER_PKEY, new TableField[] { User.USER.UID }, true); + public static final ForeignKey WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_VID_FKEY = Internal.createForeignKey(WorkflowExecutions.WORKFLOW_EXECUTIONS, DSL.name("workflow_executions_vid_fkey"), new TableField[] { WorkflowExecutions.WORKFLOW_EXECUTIONS.VID }, Keys.WORKFLOW_VERSION_PKEY, new TableField[] { WorkflowVersion.WORKFLOW_VERSION.VID }, true); + public static final ForeignKey WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_PID_FKEY = Internal.createForeignKey(WorkflowOfProject.WORKFLOW_OF_PROJECT, DSL.name("workflow_of_project_pid_fkey"), new TableField[] { WorkflowOfProject.WORKFLOW_OF_PROJECT.PID }, Keys.PROJECT_PKEY, new TableField[] { Project.PROJECT.PID }, true); + public static final ForeignKey WORKFLOW_OF_PROJECT__WORKFLOW_OF_PROJECT_WID_FKEY = Internal.createForeignKey(WorkflowOfProject.WORKFLOW_OF_PROJECT, DSL.name("workflow_of_project_wid_fkey"), new TableField[] { WorkflowOfProject.WORKFLOW_OF_PROJECT.WID }, Keys.WORKFLOW_PKEY, new TableField[] { Workflow.WORKFLOW.WID }, true); + public static final ForeignKey WORKFLOW_OF_USER__WORKFLOW_OF_USER_UID_FKEY = Internal.createForeignKey(WorkflowOfUser.WORKFLOW_OF_USER, DSL.name("workflow_of_user_uid_fkey"), new TableField[] { WorkflowOfUser.WORKFLOW_OF_USER.UID }, Keys.USER_PKEY, new TableField[] { User.USER.UID }, true); + public static final ForeignKey WORKFLOW_OF_USER__WORKFLOW_OF_USER_WID_FKEY = Internal.createForeignKey(WorkflowOfUser.WORKFLOW_OF_USER, DSL.name("workflow_of_user_wid_fkey"), new TableField[] { WorkflowOfUser.WORKFLOW_OF_USER.WID }, Keys.WORKFLOW_PKEY, new TableField[] { Workflow.WORKFLOW.WID }, true); + public static final ForeignKey WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_UID_FKEY = Internal.createForeignKey(WorkflowUserAccess.WORKFLOW_USER_ACCESS, DSL.name("workflow_user_access_uid_fkey"), new TableField[] { WorkflowUserAccess.WORKFLOW_USER_ACCESS.UID }, Keys.USER_PKEY, new TableField[] { User.USER.UID }, true); + public static final ForeignKey WORKFLOW_USER_ACCESS__WORKFLOW_USER_ACCESS_WID_FKEY = Internal.createForeignKey(WorkflowUserAccess.WORKFLOW_USER_ACCESS, DSL.name("workflow_user_access_wid_fkey"), new TableField[] { WorkflowUserAccess.WORKFLOW_USER_ACCESS.WID }, Keys.WORKFLOW_PKEY, new TableField[] { Workflow.WORKFLOW.WID }, true); + public static final ForeignKey WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_UID_FKEY = Internal.createForeignKey(WorkflowUserClones.WORKFLOW_USER_CLONES, DSL.name("workflow_user_clones_uid_fkey"), new TableField[] { WorkflowUserClones.WORKFLOW_USER_CLONES.UID }, Keys.USER_PKEY, new TableField[] { User.USER.UID }, true); + public static final ForeignKey WORKFLOW_USER_CLONES__WORKFLOW_USER_CLONES_WID_FKEY = Internal.createForeignKey(WorkflowUserClones.WORKFLOW_USER_CLONES, DSL.name("workflow_user_clones_wid_fkey"), new TableField[] { WorkflowUserClones.WORKFLOW_USER_CLONES.WID }, Keys.WORKFLOW_PKEY, new TableField[] { Workflow.WORKFLOW.WID }, true); + public static final ForeignKey WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_UID_FKEY = Internal.createForeignKey(WorkflowUserLikes.WORKFLOW_USER_LIKES, DSL.name("workflow_user_likes_uid_fkey"), new TableField[] { WorkflowUserLikes.WORKFLOW_USER_LIKES.UID }, Keys.USER_PKEY, new TableField[] { User.USER.UID }, true); + public static final ForeignKey WORKFLOW_USER_LIKES__WORKFLOW_USER_LIKES_WID_FKEY = Internal.createForeignKey(WorkflowUserLikes.WORKFLOW_USER_LIKES, DSL.name("workflow_user_likes_wid_fkey"), new TableField[] { WorkflowUserLikes.WORKFLOW_USER_LIKES.WID }, Keys.WORKFLOW_PKEY, new TableField[] { Workflow.WORKFLOW.WID }, true); + public static final ForeignKey WORKFLOW_VERSION__WORKFLOW_VERSION_WID_FKEY = Internal.createForeignKey(WorkflowVersion.WORKFLOW_VERSION, DSL.name("workflow_version_wid_fkey"), new TableField[] { WorkflowVersion.WORKFLOW_VERSION.WID }, Keys.WORKFLOW_PKEY, new TableField[] { Workflow.WORKFLOW.WID }, true); + public static final ForeignKey WORKFLOW_VIEW_COUNT__WORKFLOW_VIEW_COUNT_WID_FKEY = Internal.createForeignKey(WorkflowViewCount.WORKFLOW_VIEW_COUNT, DSL.name("workflow_view_count_wid_fkey"), new TableField[] { WorkflowViewCount.WORKFLOW_VIEW_COUNT.WID }, Keys.WORKFLOW_PKEY, new TableField[] { Workflow.WORKFLOW.WID }, true); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Tables.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Tables.java index 870c93e9b1f..90ed93143f3 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Tables.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Tables.java @@ -8,7 +8,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetUserAccess; import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetVersion; import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorExecutions; -import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorPortExecutions; +import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorRuntimeStatistics; import edu.uci.ics.texera.dao.jooq.generated.tables.Project; import edu.uci.ics.texera.dao.jooq.generated.tables.ProjectUserAccess; import edu.uci.ics.texera.dao.jooq.generated.tables.PublicProject; @@ -53,9 +53,9 @@ public class Tables { public static final OperatorExecutions OPERATOR_EXECUTIONS = OperatorExecutions.OPERATOR_EXECUTIONS; /** - * The table texera_db.operator_port_executions. + * The table texera_db.operator_runtime_statistics. */ - public static final OperatorPortExecutions OPERATOR_PORT_EXECUTIONS = OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS; + public static final OperatorRuntimeStatistics OPERATOR_RUNTIME_STATISTICS = OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS; /** * The table texera_db.project. diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/TexeraDb.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/TexeraDb.java index 4d83cd80d6d..966f0aec4d3 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/TexeraDb.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/TexeraDb.java @@ -8,7 +8,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetUserAccess; import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetVersion; import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorExecutions; -import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorPortExecutions; +import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorRuntimeStatistics; import edu.uci.ics.texera.dao.jooq.generated.tables.Project; import edu.uci.ics.texera.dao.jooq.generated.tables.ProjectUserAccess; import edu.uci.ics.texera.dao.jooq.generated.tables.PublicProject; @@ -25,7 +25,6 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowVersion; import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowViewCount; -import java.util.ArrayList; import java.util.Arrays; import java.util.List; @@ -40,7 +39,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class TexeraDb extends SchemaImpl { - private static final long serialVersionUID = -745081464; + private static final long serialVersionUID = 1L; /** * The reference instance of texera_db @@ -50,102 +49,102 @@ public class TexeraDb extends SchemaImpl { /** * The table texera_db.dataset. */ - public final Dataset DATASET = edu.uci.ics.texera.dao.jooq.generated.tables.Dataset.DATASET; + public final Dataset DATASET = Dataset.DATASET; /** * The table texera_db.dataset_user_access. */ - public final DatasetUserAccess DATASET_USER_ACCESS = edu.uci.ics.texera.dao.jooq.generated.tables.DatasetUserAccess.DATASET_USER_ACCESS; + public final DatasetUserAccess DATASET_USER_ACCESS = DatasetUserAccess.DATASET_USER_ACCESS; /** * The table texera_db.dataset_version. */ - public final DatasetVersion DATASET_VERSION = edu.uci.ics.texera.dao.jooq.generated.tables.DatasetVersion.DATASET_VERSION; + public final DatasetVersion DATASET_VERSION = DatasetVersion.DATASET_VERSION; /** * The table texera_db.operator_executions. */ - public final OperatorExecutions OPERATOR_EXECUTIONS = edu.uci.ics.texera.dao.jooq.generated.tables.OperatorExecutions.OPERATOR_EXECUTIONS; + public final OperatorExecutions OPERATOR_EXECUTIONS = OperatorExecutions.OPERATOR_EXECUTIONS; /** - * The table texera_db.operator_port_executions. + * The table texera_db.operator_runtime_statistics. */ - public final OperatorPortExecutions OPERATOR_PORT_EXECUTIONS = edu.uci.ics.texera.dao.jooq.generated.tables.OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS; + public final OperatorRuntimeStatistics OPERATOR_RUNTIME_STATISTICS = OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS; /** * The table texera_db.project. */ - public final Project PROJECT = edu.uci.ics.texera.dao.jooq.generated.tables.Project.PROJECT; + public final Project PROJECT = Project.PROJECT; /** * The table texera_db.project_user_access. */ - public final ProjectUserAccess PROJECT_USER_ACCESS = edu.uci.ics.texera.dao.jooq.generated.tables.ProjectUserAccess.PROJECT_USER_ACCESS; + public final ProjectUserAccess PROJECT_USER_ACCESS = ProjectUserAccess.PROJECT_USER_ACCESS; /** * The table texera_db.public_project. */ - public final PublicProject PUBLIC_PROJECT = edu.uci.ics.texera.dao.jooq.generated.tables.PublicProject.PUBLIC_PROJECT; + public final PublicProject PUBLIC_PROJECT = PublicProject.PUBLIC_PROJECT; /** * The table texera_db.user. */ - public final User USER = edu.uci.ics.texera.dao.jooq.generated.tables.User.USER; + public final User USER = User.USER; /** * The table texera_db.user_activity. */ - public final UserActivity USER_ACTIVITY = edu.uci.ics.texera.dao.jooq.generated.tables.UserActivity.USER_ACTIVITY; + public final UserActivity USER_ACTIVITY = UserActivity.USER_ACTIVITY; /** * The table texera_db.user_config. */ - public final UserConfig USER_CONFIG = edu.uci.ics.texera.dao.jooq.generated.tables.UserConfig.USER_CONFIG; + public final UserConfig USER_CONFIG = UserConfig.USER_CONFIG; /** * The table texera_db.workflow. */ - public final Workflow WORKFLOW = edu.uci.ics.texera.dao.jooq.generated.tables.Workflow.WORKFLOW; + public final Workflow WORKFLOW = Workflow.WORKFLOW; /** * The table texera_db.workflow_executions. */ - public final WorkflowExecutions WORKFLOW_EXECUTIONS = edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowExecutions.WORKFLOW_EXECUTIONS; + public final WorkflowExecutions WORKFLOW_EXECUTIONS = WorkflowExecutions.WORKFLOW_EXECUTIONS; /** * The table texera_db.workflow_of_project. */ - public final WorkflowOfProject WORKFLOW_OF_PROJECT = edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowOfProject.WORKFLOW_OF_PROJECT; + public final WorkflowOfProject WORKFLOW_OF_PROJECT = WorkflowOfProject.WORKFLOW_OF_PROJECT; /** * The table texera_db.workflow_of_user. */ - public final WorkflowOfUser WORKFLOW_OF_USER = edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowOfUser.WORKFLOW_OF_USER; + public final WorkflowOfUser WORKFLOW_OF_USER = WorkflowOfUser.WORKFLOW_OF_USER; /** * The table texera_db.workflow_user_access. */ - public final WorkflowUserAccess WORKFLOW_USER_ACCESS = edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowUserAccess.WORKFLOW_USER_ACCESS; + public final WorkflowUserAccess WORKFLOW_USER_ACCESS = WorkflowUserAccess.WORKFLOW_USER_ACCESS; /** * The table texera_db.workflow_user_clones. */ - public final WorkflowUserClones WORKFLOW_USER_CLONES = edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowUserClones.WORKFLOW_USER_CLONES; + public final WorkflowUserClones WORKFLOW_USER_CLONES = WorkflowUserClones.WORKFLOW_USER_CLONES; /** * The table texera_db.workflow_user_likes. */ - public final WorkflowUserLikes WORKFLOW_USER_LIKES = edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowUserLikes.WORKFLOW_USER_LIKES; + public final WorkflowUserLikes WORKFLOW_USER_LIKES = WorkflowUserLikes.WORKFLOW_USER_LIKES; /** * The table texera_db.workflow_version. */ - public final WorkflowVersion WORKFLOW_VERSION = edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowVersion.WORKFLOW_VERSION; + public final WorkflowVersion WORKFLOW_VERSION = WorkflowVersion.WORKFLOW_VERSION; /** * The table texera_db.workflow_view_count. */ - public final WorkflowViewCount WORKFLOW_VIEW_COUNT = edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowViewCount.WORKFLOW_VIEW_COUNT; + public final WorkflowViewCount WORKFLOW_VIEW_COUNT = WorkflowViewCount.WORKFLOW_VIEW_COUNT; /** * No further instances allowed @@ -162,18 +161,12 @@ public Catalog getCatalog() { @Override public final List> getTables() { - List result = new ArrayList(); - result.addAll(getTables0()); - return result; - } - - private final List> getTables0() { - return Arrays.>asList( + return Arrays.asList( Dataset.DATASET, DatasetUserAccess.DATASET_USER_ACCESS, DatasetVersion.DATASET_VERSION, OperatorExecutions.OPERATOR_EXECUTIONS, - OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS, + OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS, Project.PROJECT, ProjectUserAccess.PROJECT_USER_ACCESS, PublicProject.PUBLIC_PROJECT, @@ -188,6 +181,7 @@ private final List> getTables0() { WorkflowUserClones.WORKFLOW_USER_CLONES, WorkflowUserLikes.WORKFLOW_USER_LIKES, WorkflowVersion.WORKFLOW_VERSION, - WorkflowViewCount.WORKFLOW_VIEW_COUNT); + WorkflowViewCount.WORKFLOW_VIEW_COUNT + ); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorExecutions.java index ea1c35c9c62..978bd142d92 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorExecutions.java @@ -4,7 +4,6 @@ package edu.uci.ics.texera.dao.jooq.generated.tables; -import edu.uci.ics.texera.dao.jooq.generated.Indexes; import edu.uci.ics.texera.dao.jooq.generated.Keys; import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.OperatorExecutionsRecord; @@ -14,17 +13,18 @@ import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Index; +import org.jooq.Identity; import org.jooq.Name; import org.jooq.Record; import org.jooq.Row3; import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; -import org.jooq.types.UInteger; /** @@ -33,7 +33,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class OperatorExecutions extends TableImpl { - private static final long serialVersionUID = -1617835207; + private static final long serialVersionUID = 1L; /** * The reference instance of texera_db.operator_executions @@ -49,47 +49,51 @@ public Class getRecordType() { } /** - * The column texera_db.operator_executions.workflow_execution_id. + * The column + * texera_db.operator_executions.operator_execution_id. */ - public final TableField WORKFLOW_EXECUTION_ID = createField(DSL.name("workflow_execution_id"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField OPERATOR_EXECUTION_ID = createField(DSL.name("operator_execution_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); /** - * The column texera_db.operator_executions.operator_id. + * The column + * texera_db.operator_executions.workflow_execution_id. */ - public final TableField OPERATOR_ID = createField(DSL.name("operator_id"), org.jooq.impl.SQLDataType.VARCHAR(100).nullable(false), this, ""); + public final TableField WORKFLOW_EXECUTION_ID = createField(DSL.name("workflow_execution_id"), SQLDataType.INTEGER.nullable(false), this, ""); /** - * The column texera_db.operator_executions.console_messages_uri. + * The column texera_db.operator_executions.operator_id. */ - public final TableField CONSOLE_MESSAGES_URI = createField(DSL.name("console_messages_uri"), org.jooq.impl.SQLDataType.CLOB, this, ""); + public final TableField OPERATOR_ID = createField(DSL.name("operator_id"), SQLDataType.VARCHAR(100).nullable(false), this, ""); - /** - * Create a texera_db.operator_executions table reference - */ - public OperatorExecutions() { - this(DSL.name("operator_executions"), null); + private OperatorExecutions(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private OperatorExecutions(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); } /** - * Create an aliased texera_db.operator_executions table reference + * Create an aliased texera_db.operator_executions table + * reference */ public OperatorExecutions(String alias) { this(DSL.name(alias), OPERATOR_EXECUTIONS); } /** - * Create an aliased texera_db.operator_executions table reference + * Create an aliased texera_db.operator_executions table + * reference */ public OperatorExecutions(Name alias) { this(alias, OPERATOR_EXECUTIONS); } - private OperatorExecutions(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private OperatorExecutions(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + /** + * Create a texera_db.operator_executions table reference + */ + public OperatorExecutions() { + this(DSL.name("operator_executions"), null); } public OperatorExecutions(Table child, ForeignKey key) { @@ -98,26 +102,40 @@ public OperatorExecutions(Table child, ForeignKey getIndexes() { - return Arrays.asList(Indexes.OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID); + public Identity getIdentity() { + return (Identity) super.getIdentity(); } @Override - public List> getKeys() { - return Arrays.>asList(Keys.KEY_OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID); + public UniqueKey getPrimaryKey() { + return Keys.OPERATOR_EXECUTIONS_PKEY; + } + + @Override + public List> getUniqueKeys() { + return Arrays.asList(Keys.OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID_KEY); } @Override public List> getReferences() { - return Arrays.>asList(Keys.OPERATOR_EXECUTIONS_IBFK_1); + return Arrays.asList(Keys.OPERATOR_EXECUTIONS__OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_FKEY); } + private transient WorkflowExecutions _workflowExecutions; + + /** + * Get the implicit join path to the + * texera_db.workflow_executions table. + */ public WorkflowExecutions workflowExecutions() { - return new WorkflowExecutions(this, Keys.OPERATOR_EXECUTIONS_IBFK_1); + if (_workflowExecutions == null) + _workflowExecutions = new WorkflowExecutions(this, Keys.OPERATOR_EXECUTIONS__OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_FKEY); + + return _workflowExecutions; } @Override @@ -151,7 +169,7 @@ public OperatorExecutions rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row3 fieldsRow() { + public Row3 fieldsRow() { return (Row3) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorPortExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorPortExecutions.java deleted file mode 100644 index 1566696b11d..00000000000 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorPortExecutions.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package edu.uci.ics.texera.dao.jooq.generated.tables; - - -import edu.uci.ics.texera.dao.jooq.generated.Indexes; -import edu.uci.ics.texera.dao.jooq.generated.Keys; -import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; -import edu.uci.ics.texera.dao.jooq.generated.tables.records.OperatorPortExecutionsRecord; - -import java.util.Arrays; -import java.util.List; - -import org.jooq.Field; -import org.jooq.ForeignKey; -import org.jooq.Index; -import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row4; -import org.jooq.Schema; -import org.jooq.Table; -import org.jooq.TableField; -import org.jooq.UniqueKey; -import org.jooq.impl.DSL; -import org.jooq.impl.TableImpl; -import org.jooq.types.UInteger; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class OperatorPortExecutions extends TableImpl { - - private static final long serialVersionUID = -1510415698; - - /** - * The reference instance of texera_db.operator_port_executions - */ - public static final OperatorPortExecutions OPERATOR_PORT_EXECUTIONS = new OperatorPortExecutions(); - - /** - * The class holding records for this type - */ - @Override - public Class getRecordType() { - return OperatorPortExecutionsRecord.class; - } - - /** - * The column texera_db.operator_port_executions.workflow_execution_id. - */ - public final TableField WORKFLOW_EXECUTION_ID = createField(DSL.name("workflow_execution_id"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); - - /** - * The column texera_db.operator_port_executions.operator_id. - */ - public final TableField OPERATOR_ID = createField(DSL.name("operator_id"), org.jooq.impl.SQLDataType.VARCHAR(100).nullable(false), this, ""); - - /** - * The column texera_db.operator_port_executions.port_id. - */ - public final TableField PORT_ID = createField(DSL.name("port_id"), org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); - - /** - * The column texera_db.operator_port_executions.result_uri. - */ - public final TableField RESULT_URI = createField(DSL.name("result_uri"), org.jooq.impl.SQLDataType.CLOB, this, ""); - - /** - * Create a texera_db.operator_port_executions table reference - */ - public OperatorPortExecutions() { - this(DSL.name("operator_port_executions"), null); - } - - /** - * Create an aliased texera_db.operator_port_executions table reference - */ - public OperatorPortExecutions(String alias) { - this(DSL.name(alias), OPERATOR_PORT_EXECUTIONS); - } - - /** - * Create an aliased texera_db.operator_port_executions table reference - */ - public OperatorPortExecutions(Name alias) { - this(alias, OPERATOR_PORT_EXECUTIONS); - } - - private OperatorPortExecutions(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private OperatorPortExecutions(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); - } - - public OperatorPortExecutions(Table child, ForeignKey key) { - super(child, key, OPERATOR_PORT_EXECUTIONS); - } - - @Override - public Schema getSchema() { - return TexeraDb.TEXERA_DB; - } - - @Override - public List getIndexes() { - return Arrays.asList(Indexes.OPERATOR_PORT_EXECUTIONS_WORKFLOW_EXECUTION_ID); - } - - @Override - public List> getKeys() { - return Arrays.>asList(Keys.KEY_OPERATOR_PORT_EXECUTIONS_WORKFLOW_EXECUTION_ID); - } - - @Override - public List> getReferences() { - return Arrays.>asList(Keys.OPERATOR_PORT_EXECUTIONS_IBFK_1); - } - - public WorkflowExecutions workflowExecutions() { - return new WorkflowExecutions(this, Keys.OPERATOR_PORT_EXECUTIONS_IBFK_1); - } - - @Override - public OperatorPortExecutions as(String alias) { - return new OperatorPortExecutions(DSL.name(alias), this); - } - - @Override - public OperatorPortExecutions as(Name alias) { - return new OperatorPortExecutions(alias, this); - } - - /** - * Rename this table - */ - @Override - public OperatorPortExecutions rename(String name) { - return new OperatorPortExecutions(DSL.name(name), null); - } - - /** - * Rename this table - */ - @Override - public OperatorPortExecutions rename(Name name) { - return new OperatorPortExecutions(name, null); - } - - // ------------------------------------------------------------------------- - // Row4 type methods - // ------------------------------------------------------------------------- - - @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); - } -} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorRuntimeStatistics.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorRuntimeStatistics.java new file mode 100644 index 00000000000..cc30db2aa23 --- /dev/null +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorRuntimeStatistics.java @@ -0,0 +1,201 @@ +/* + * This file is generated by jOOQ. + */ +package edu.uci.ics.texera.dao.jooq.generated.tables; + + +import edu.uci.ics.texera.dao.jooq.generated.Keys; +import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; +import edu.uci.ics.texera.dao.jooq.generated.tables.records.OperatorRuntimeStatisticsRecord; + +import java.time.LocalDateTime; +import java.util.Arrays; +import java.util.List; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Row9; +import org.jooq.Schema; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class OperatorRuntimeStatistics extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of + * texera_db.operator_runtime_statistics + */ + public static final OperatorRuntimeStatistics OPERATOR_RUNTIME_STATISTICS = new OperatorRuntimeStatistics(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return OperatorRuntimeStatisticsRecord.class; + } + + /** + * The column + * texera_db.operator_runtime_statistics.operator_execution_id. + */ + public final TableField OPERATOR_EXECUTION_ID = createField(DSL.name("operator_execution_id"), SQLDataType.BIGINT.nullable(false), this, ""); + + /** + * The column texera_db.operator_runtime_statistics.time. + */ + public final TableField TIME = createField(DSL.name("time"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP(6)", SQLDataType.LOCALDATETIME)), this, ""); + + /** + * The column + * texera_db.operator_runtime_statistics.input_tuple_cnt. + */ + public final TableField INPUT_TUPLE_CNT = createField(DSL.name("input_tuple_cnt"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field("0", SQLDataType.BIGINT)), this, ""); + + /** + * The column + * texera_db.operator_runtime_statistics.output_tuple_cnt. + */ + public final TableField OUTPUT_TUPLE_CNT = createField(DSL.name("output_tuple_cnt"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field("0", SQLDataType.BIGINT)), this, ""); + + /** + * The column texera_db.operator_runtime_statistics.status. + */ + public final TableField STATUS = createField(DSL.name("status"), SQLDataType.SMALLINT.nullable(false).defaultValue(DSL.field("1", SQLDataType.SMALLINT)), this, ""); + + /** + * The column + * texera_db.operator_runtime_statistics.data_processing_time. + */ + public final TableField DATA_PROCESSING_TIME = createField(DSL.name("data_processing_time"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field("0", SQLDataType.BIGINT)), this, ""); + + /** + * The column + * texera_db.operator_runtime_statistics.control_processing_time. + */ + public final TableField CONTROL_PROCESSING_TIME = createField(DSL.name("control_processing_time"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field("0", SQLDataType.BIGINT)), this, ""); + + /** + * The column texera_db.operator_runtime_statistics.idle_time. + */ + public final TableField IDLE_TIME = createField(DSL.name("idle_time"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field("0", SQLDataType.BIGINT)), this, ""); + + /** + * The column + * texera_db.operator_runtime_statistics.num_workers. + */ + public final TableField NUM_WORKERS = createField(DSL.name("num_workers"), SQLDataType.INTEGER.nullable(false).defaultValue(DSL.field("0", SQLDataType.INTEGER)), this, ""); + + private OperatorRuntimeStatistics(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private OperatorRuntimeStatistics(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased texera_db.operator_runtime_statistics + * table reference + */ + public OperatorRuntimeStatistics(String alias) { + this(DSL.name(alias), OPERATOR_RUNTIME_STATISTICS); + } + + /** + * Create an aliased texera_db.operator_runtime_statistics + * table reference + */ + public OperatorRuntimeStatistics(Name alias) { + this(alias, OPERATOR_RUNTIME_STATISTICS); + } + + /** + * Create a texera_db.operator_runtime_statistics table + * reference + */ + public OperatorRuntimeStatistics() { + this(DSL.name("operator_runtime_statistics"), null); + } + + public OperatorRuntimeStatistics(Table child, ForeignKey key) { + super(child, key, OPERATOR_RUNTIME_STATISTICS); + } + + @Override + public Schema getSchema() { + return aliased() ? null : TexeraDb.TEXERA_DB; + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.OPERATOR_RUNTIME_STATISTICS_PKEY; + } + + @Override + public List> getReferences() { + return Arrays.asList(Keys.OPERATOR_RUNTIME_STATISTICS__OPERATOR_RUNTIME_STATISTICS_OPERATOR_EXECUTION_ID_FKEY); + } + + private transient OperatorExecutions _operatorExecutions; + + /** + * Get the implicit join path to the + * texera_db.operator_executions table. + */ + public OperatorExecutions operatorExecutions() { + if (_operatorExecutions == null) + _operatorExecutions = new OperatorExecutions(this, Keys.OPERATOR_RUNTIME_STATISTICS__OPERATOR_RUNTIME_STATISTICS_OPERATOR_EXECUTION_ID_FKEY); + + return _operatorExecutions; + } + + @Override + public OperatorRuntimeStatistics as(String alias) { + return new OperatorRuntimeStatistics(DSL.name(alias), this); + } + + @Override + public OperatorRuntimeStatistics as(Name alias) { + return new OperatorRuntimeStatistics(alias, this); + } + + /** + * Rename this table + */ + @Override + public OperatorRuntimeStatistics rename(String name) { + return new OperatorRuntimeStatistics(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public OperatorRuntimeStatistics rename(Name name) { + return new OperatorRuntimeStatistics(name, null); + } + + // ------------------------------------------------------------------------- + // Row9 type methods + // ------------------------------------------------------------------------- + + @Override + public Row9 fieldsRow() { + return (Row9) super.fieldsRow(); + } +} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowExecutions.java index 7e64fcc5bc2..c136a188f1c 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowExecutions.java @@ -4,29 +4,28 @@ package edu.uci.ics.texera.dao.jooq.generated.tables; -import edu.uci.ics.texera.dao.jooq.generated.Indexes; import edu.uci.ics.texera.dao.jooq.generated.Keys; import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowExecutionsRecord; -import java.sql.Timestamp; +import java.time.LocalDateTime; import java.util.Arrays; import java.util.List; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq.Identity; -import org.jooq.Index; import org.jooq.Name; import org.jooq.Record; -import org.jooq.Row12; +import org.jooq.Row11; import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; -import org.jooq.types.UInteger; /** @@ -35,7 +34,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowExecutions extends TableImpl { - private static final long serialVersionUID = 1330691939; + private static final long serialVersionUID = 1L; /** * The reference instance of texera_db.workflow_executions @@ -53,90 +52,88 @@ public Class getRecordType() { /** * The column texera_db.workflow_executions.eid. */ - public final TableField EID = createField(DSL.name("eid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false).identity(true), this, ""); + public final TableField EID = createField(DSL.name("eid"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); /** * The column texera_db.workflow_executions.vid. */ - public final TableField VID = createField(DSL.name("vid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField VID = createField(DSL.name("vid"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.workflow_executions.uid. */ - public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField UID = createField(DSL.name("uid"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.workflow_executions.status. */ - public final TableField STATUS = createField(DSL.name("status"), org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaultValue(org.jooq.impl.DSL.inline("1", org.jooq.impl.SQLDataType.TINYINT)), this, ""); + public final TableField STATUS = createField(DSL.name("status"), SQLDataType.SMALLINT.nullable(false).defaultValue(DSL.field("1", SQLDataType.SMALLINT)), this, ""); /** * The column texera_db.workflow_executions.result. */ - public final TableField RESULT = createField(DSL.name("result"), org.jooq.impl.SQLDataType.CLOB, this, ""); + public final TableField RESULT = createField(DSL.name("result"), SQLDataType.CLOB, this, ""); /** * The column texera_db.workflow_executions.starting_time. */ - public final TableField STARTING_TIME = createField(DSL.name("starting_time"), org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, ""); + public final TableField STARTING_TIME = createField(DSL.name("starting_time"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.LOCALDATETIME)), this, ""); /** * The column texera_db.workflow_executions.last_update_time. */ - public final TableField LAST_UPDATE_TIME = createField(DSL.name("last_update_time"), org.jooq.impl.SQLDataType.TIMESTAMP, this, ""); + public final TableField LAST_UPDATE_TIME = createField(DSL.name("last_update_time"), SQLDataType.LOCALDATETIME(6), this, ""); /** * The column texera_db.workflow_executions.bookmarked. */ - public final TableField BOOKMARKED = createField(DSL.name("bookmarked"), org.jooq.impl.SQLDataType.TINYINT.defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.TINYINT)), this, ""); + public final TableField BOOKMARKED = createField(DSL.name("bookmarked"), SQLDataType.BOOLEAN.defaultValue(DSL.field("false", SQLDataType.BOOLEAN)), this, ""); /** * The column texera_db.workflow_executions.name. */ - public final TableField NAME = createField(DSL.name("name"), org.jooq.impl.SQLDataType.VARCHAR(128).nullable(false).defaultValue(org.jooq.impl.DSL.inline("Untitled Execution", org.jooq.impl.SQLDataType.VARCHAR)), this, ""); + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(128).nullable(false).defaultValue(DSL.field("'Untitled Execution'::character varying", SQLDataType.VARCHAR)), this, ""); /** - * The column texera_db.workflow_executions.environment_version. + * The column + * texera_db.workflow_executions.environment_version. */ - public final TableField ENVIRONMENT_VERSION = createField(DSL.name("environment_version"), org.jooq.impl.SQLDataType.VARCHAR(128).nullable(false), this, ""); + public final TableField ENVIRONMENT_VERSION = createField(DSL.name("environment_version"), SQLDataType.VARCHAR(128).nullable(false), this, ""); /** * The column texera_db.workflow_executions.log_location. */ - public final TableField LOG_LOCATION = createField(DSL.name("log_location"), org.jooq.impl.SQLDataType.CLOB, this, ""); + public final TableField LOG_LOCATION = createField(DSL.name("log_location"), SQLDataType.CLOB, this, ""); - /** - * The column texera_db.workflow_executions.runtime_stats_uri. - */ - public final TableField RUNTIME_STATS_URI = createField(DSL.name("runtime_stats_uri"), org.jooq.impl.SQLDataType.CLOB, this, ""); + private WorkflowExecutions(Name alias, Table aliased) { + this(alias, aliased, null); + } - /** - * Create a texera_db.workflow_executions table reference - */ - public WorkflowExecutions() { - this(DSL.name("workflow_executions"), null); + private WorkflowExecutions(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); } /** - * Create an aliased texera_db.workflow_executions table reference + * Create an aliased texera_db.workflow_executions table + * reference */ public WorkflowExecutions(String alias) { this(DSL.name(alias), WORKFLOW_EXECUTIONS); } /** - * Create an aliased texera_db.workflow_executions table reference + * Create an aliased texera_db.workflow_executions table + * reference */ public WorkflowExecutions(Name alias) { this(alias, WORKFLOW_EXECUTIONS); } - private WorkflowExecutions(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private WorkflowExecutions(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + /** + * Create a texera_db.workflow_executions table reference + */ + public WorkflowExecutions() { + this(DSL.name("workflow_executions"), null); } public WorkflowExecutions(Table child, ForeignKey key) { @@ -145,40 +142,46 @@ public WorkflowExecutions(Table child, ForeignKey getIndexes() { - return Arrays.asList(Indexes.WORKFLOW_EXECUTIONS_PRIMARY, Indexes.WORKFLOW_EXECUTIONS_UID, Indexes.WORKFLOW_EXECUTIONS_VID); - } - - @Override - public Identity getIdentity() { - return Keys.IDENTITY_WORKFLOW_EXECUTIONS; + public Identity getIdentity() { + return (Identity) super.getIdentity(); } @Override public UniqueKey getPrimaryKey() { - return Keys.KEY_WORKFLOW_EXECUTIONS_PRIMARY; - } - - @Override - public List> getKeys() { - return Arrays.>asList(Keys.KEY_WORKFLOW_EXECUTIONS_PRIMARY); + return Keys.WORKFLOW_EXECUTIONS_PKEY; } @Override public List> getReferences() { - return Arrays.>asList(Keys.WORKFLOW_EXECUTIONS_IBFK_1, Keys.WORKFLOW_EXECUTIONS_IBFK_2); + return Arrays.asList(Keys.WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_VID_FKEY, Keys.WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_UID_FKEY); } + private transient WorkflowVersion _workflowVersion; + private transient User _user; + + /** + * Get the implicit join path to the texera_db.workflow_version + * table. + */ public WorkflowVersion workflowVersion() { - return new WorkflowVersion(this, Keys.WORKFLOW_EXECUTIONS_IBFK_1); + if (_workflowVersion == null) + _workflowVersion = new WorkflowVersion(this, Keys.WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_VID_FKEY); + + return _workflowVersion; } + /** + * Get the implicit join path to the texera_db.user table. + */ public User user() { - return new User(this, Keys.WORKFLOW_EXECUTIONS_IBFK_2); + if (_user == null) + _user = new User(this, Keys.WORKFLOW_EXECUTIONS__WORKFLOW_EXECUTIONS_UID_FKEY); + + return _user; } @Override @@ -208,11 +211,11 @@ public WorkflowExecutions rename(Name name) { } // ------------------------------------------------------------------------- - // Row12 type methods + // Row11 type methods // ------------------------------------------------------------------------- @Override - public Row12 fieldsRow() { - return (Row12) super.fieldsRow(); + public Row11 fieldsRow() { + return (Row11) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorExecutionsDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorExecutionsDao.java new file mode 100644 index 00000000000..49241af23e6 --- /dev/null +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorExecutionsDao.java @@ -0,0 +1,100 @@ +/* + * This file is generated by jOOQ. + */ +package edu.uci.ics.texera.dao.jooq.generated.tables.daos; + + +import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorExecutions; +import edu.uci.ics.texera.dao.jooq.generated.tables.records.OperatorExecutionsRecord; + +import java.util.List; +import java.util.Optional; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class OperatorExecutionsDao extends DAOImpl { + + /** + * Create a new OperatorExecutionsDao without any configuration + */ + public OperatorExecutionsDao() { + super(OperatorExecutions.OPERATOR_EXECUTIONS, edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorExecutions.class); + } + + /** + * Create a new OperatorExecutionsDao with an attached configuration + */ + public OperatorExecutionsDao(Configuration configuration) { + super(OperatorExecutions.OPERATOR_EXECUTIONS, edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorExecutions.class, configuration); + } + + @Override + public Long getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorExecutions object) { + return object.getOperatorExecutionId(); + } + + /** + * Fetch records that have operator_execution_id BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfOperatorExecutionId(Long lowerInclusive, Long upperInclusive) { + return fetchRange(OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have operator_execution_id IN (values) + */ + public List fetchByOperatorExecutionId(Long... values) { + return fetch(OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID, values); + } + + /** + * Fetch a unique record that has operator_execution_id = value + */ + public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorExecutions fetchOneByOperatorExecutionId(Long value) { + return fetchOne(OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID, value); + } + + /** + * Fetch a unique record that has operator_execution_id = value + */ + public Optional fetchOptionalByOperatorExecutionId(Long value) { + return fetchOptional(OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID, value); + } + + /** + * Fetch records that have workflow_execution_id BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfWorkflowExecutionId(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have workflow_execution_id IN (values) + */ + public List fetchByWorkflowExecutionId(Integer... values) { + return fetch(OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID, values); + } + + /** + * Fetch records that have operator_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfOperatorId(String lowerInclusive, String upperInclusive) { + return fetchRange(OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have operator_id IN (values) + */ + public List fetchByOperatorId(String... values) { + return fetch(OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_ID, values); + } +} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorRuntimeStatisticsDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorRuntimeStatisticsDao.java new file mode 100644 index 00000000000..967d0686442 --- /dev/null +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorRuntimeStatisticsDao.java @@ -0,0 +1,177 @@ +/* + * This file is generated by jOOQ. + */ +package edu.uci.ics.texera.dao.jooq.generated.tables.daos; + + +import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorRuntimeStatistics; +import edu.uci.ics.texera.dao.jooq.generated.tables.records.OperatorRuntimeStatisticsRecord; + +import java.time.LocalDateTime; +import java.util.List; + +import org.jooq.Configuration; +import org.jooq.Record2; +import org.jooq.impl.DAOImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class OperatorRuntimeStatisticsDao extends DAOImpl> { + + /** + * Create a new OperatorRuntimeStatisticsDao without any configuration + */ + public OperatorRuntimeStatisticsDao() { + super(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS, edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorRuntimeStatistics.class); + } + + /** + * Create a new OperatorRuntimeStatisticsDao with an attached configuration + */ + public OperatorRuntimeStatisticsDao(Configuration configuration) { + super(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS, edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorRuntimeStatistics.class, configuration); + } + + @Override + public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorRuntimeStatistics object) { + return compositeKeyRecord(object.getOperatorExecutionId(), object.getTime()); + } + + /** + * Fetch records that have operator_execution_id BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfOperatorExecutionId(Long lowerInclusive, Long upperInclusive) { + return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OPERATOR_EXECUTION_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have operator_execution_id IN (values) + */ + public List fetchByOperatorExecutionId(Long... values) { + return fetch(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OPERATOR_EXECUTION_ID, values); + } + + /** + * Fetch records that have time BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.TIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have time IN (values) + */ + public List fetchByTime(LocalDateTime... values) { + return fetch(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.TIME, values); + } + + /** + * Fetch records that have input_tuple_cnt BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfInputTupleCnt(Long lowerInclusive, Long upperInclusive) { + return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.INPUT_TUPLE_CNT, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have input_tuple_cnt IN (values) + */ + public List fetchByInputTupleCnt(Long... values) { + return fetch(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.INPUT_TUPLE_CNT, values); + } + + /** + * Fetch records that have output_tuple_cnt BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfOutputTupleCnt(Long lowerInclusive, Long upperInclusive) { + return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OUTPUT_TUPLE_CNT, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have output_tuple_cnt IN (values) + */ + public List fetchByOutputTupleCnt(Long... values) { + return fetch(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OUTPUT_TUPLE_CNT, values); + } + + /** + * Fetch records that have status BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfStatus(Short lowerInclusive, Short upperInclusive) { + return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.STATUS, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have status IN (values) + */ + public List fetchByStatus(Short... values) { + return fetch(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.STATUS, values); + } + + /** + * Fetch records that have data_processing_time BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfDataProcessingTime(Long lowerInclusive, Long upperInclusive) { + return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.DATA_PROCESSING_TIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have data_processing_time IN (values) + */ + public List fetchByDataProcessingTime(Long... values) { + return fetch(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.DATA_PROCESSING_TIME, values); + } + + /** + * Fetch records that have control_processing_time BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfControlProcessingTime(Long lowerInclusive, Long upperInclusive) { + return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.CONTROL_PROCESSING_TIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have control_processing_time IN (values) + */ + public List fetchByControlProcessingTime(Long... values) { + return fetch(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.CONTROL_PROCESSING_TIME, values); + } + + /** + * Fetch records that have idle_time BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfIdleTime(Long lowerInclusive, Long upperInclusive) { + return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.IDLE_TIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have idle_time IN (values) + */ + public List fetchByIdleTime(Long... values) { + return fetch(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.IDLE_TIME, values); + } + + /** + * Fetch records that have num_workers BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfNumWorkers(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.NUM_WORKERS, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have num_workers IN (values) + */ + public List fetchByNumWorkers(Integer... values) { + return fetch(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.NUM_WORKERS, values); + } +} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowExecutionsDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowExecutionsDao.java index d9784e0ed21..04f96708c44 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowExecutionsDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowExecutionsDao.java @@ -218,18 +218,4 @@ public List fetchByLogLocation(String... values) { return fetch(WorkflowExecutions.WORKFLOW_EXECUTIONS.LOG_LOCATION, values); } - - /** - * Fetch records that have runtime_stats_uri BETWEEN lowerInclusive AND upperInclusive - */ - public List fetchRangeOfRuntimeStatsUri(String lowerInclusive, String upperInclusive) { - return fetchRange(WorkflowExecutions.WORKFLOW_EXECUTIONS.RUNTIME_STATS_URI, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have runtime_stats_uri IN (values) - */ - public List fetchByRuntimeStatsUri(String... values) { - return fetch(WorkflowExecutions.WORKFLOW_EXECUTIONS.RUNTIME_STATS_URI, values); - } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorExecutions.java index cf2db966eae..614a994fecd 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorExecutions.java @@ -6,8 +6,6 @@ import java.io.Serializable; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -16,46 +14,52 @@ public interface IOperatorExecutions extends Serializable { /** - * Setter for texera_db.operator_executions.workflow_execution_id. + * Setter for + * texera_db.operator_executions.operator_execution_id. */ - public void setWorkflowExecutionId(UInteger value); + public void setOperatorExecutionId(Long value); /** - * Getter for texera_db.operator_executions.workflow_execution_id. + * Getter for + * texera_db.operator_executions.operator_execution_id. */ - public UInteger getWorkflowExecutionId(); + public Long getOperatorExecutionId(); /** - * Setter for texera_db.operator_executions.operator_id. + * Setter for + * texera_db.operator_executions.workflow_execution_id. */ - public void setOperatorId(String value); + public void setWorkflowExecutionId(Integer value); /** - * Getter for texera_db.operator_executions.operator_id. + * Getter for + * texera_db.operator_executions.workflow_execution_id. */ - public String getOperatorId(); + public Integer getWorkflowExecutionId(); /** - * Setter for texera_db.operator_executions.console_messages_uri. + * Setter for texera_db.operator_executions.operator_id. */ - public void setConsoleMessagesUri(String value); + public void setOperatorId(String value); /** - * Getter for texera_db.operator_executions.console_messages_uri. + * Getter for texera_db.operator_executions.operator_id. */ - public String getConsoleMessagesUri(); + public String getOperatorId(); // ------------------------------------------------------------------------- // FROM and INTO // ------------------------------------------------------------------------- /** - * Load data from another generated Record/POJO implementing the common interface IOperatorExecutions + * Load data from another generated Record/POJO implementing the common + * interface IOperatorExecutions */ - public void from(edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IOperatorExecutions from); + public void from(IOperatorExecutions from); /** - * Copy data into another generated Record/POJO implementing the common interface IOperatorExecutions + * Copy data into another generated Record/POJO implementing the common + * interface IOperatorExecutions */ - public E into(E into); + public E into(E into); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorPortExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorPortExecutions.java deleted file mode 100644 index 27d65505851..00000000000 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorPortExecutions.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package edu.uci.ics.texera.dao.jooq.generated.tables.interfaces; - - -import java.io.Serializable; - -import org.jooq.types.UInteger; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public interface IOperatorPortExecutions extends Serializable { - - /** - * Setter for texera_db.operator_port_executions.workflow_execution_id. - */ - public void setWorkflowExecutionId(UInteger value); - - /** - * Getter for texera_db.operator_port_executions.workflow_execution_id. - */ - public UInteger getWorkflowExecutionId(); - - /** - * Setter for texera_db.operator_port_executions.operator_id. - */ - public void setOperatorId(String value); - - /** - * Getter for texera_db.operator_port_executions.operator_id. - */ - public String getOperatorId(); - - /** - * Setter for texera_db.operator_port_executions.port_id. - */ - public void setPortId(Integer value); - - /** - * Getter for texera_db.operator_port_executions.port_id. - */ - public Integer getPortId(); - - /** - * Setter for texera_db.operator_port_executions.result_uri. - */ - public void setResultUri(String value); - - /** - * Getter for texera_db.operator_port_executions.result_uri. - */ - public String getResultUri(); - - // ------------------------------------------------------------------------- - // FROM and INTO - // ------------------------------------------------------------------------- - - /** - * Load data from another generated Record/POJO implementing the common interface IOperatorPortExecutions - */ - public void from(edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IOperatorPortExecutions from); - - /** - * Copy data into another generated Record/POJO implementing the common interface IOperatorPortExecutions - */ - public E into(E into); -} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorRuntimeStatistics.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorRuntimeStatistics.java new file mode 100644 index 00000000000..3eec878d53a --- /dev/null +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorRuntimeStatistics.java @@ -0,0 +1,134 @@ +/* + * This file is generated by jOOQ. + */ +package edu.uci.ics.texera.dao.jooq.generated.tables.interfaces; + + +import java.io.Serializable; +import java.time.LocalDateTime; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public interface IOperatorRuntimeStatistics extends Serializable { + + /** + * Setter for + * texera_db.operator_runtime_statistics.operator_execution_id. + */ + public void setOperatorExecutionId(Long value); + + /** + * Getter for + * texera_db.operator_runtime_statistics.operator_execution_id. + */ + public Long getOperatorExecutionId(); + + /** + * Setter for texera_db.operator_runtime_statistics.time. + */ + public void setTime(LocalDateTime value); + + /** + * Getter for texera_db.operator_runtime_statistics.time. + */ + public LocalDateTime getTime(); + + /** + * Setter for + * texera_db.operator_runtime_statistics.input_tuple_cnt. + */ + public void setInputTupleCnt(Long value); + + /** + * Getter for + * texera_db.operator_runtime_statistics.input_tuple_cnt. + */ + public Long getInputTupleCnt(); + + /** + * Setter for + * texera_db.operator_runtime_statistics.output_tuple_cnt. + */ + public void setOutputTupleCnt(Long value); + + /** + * Getter for + * texera_db.operator_runtime_statistics.output_tuple_cnt. + */ + public Long getOutputTupleCnt(); + + /** + * Setter for texera_db.operator_runtime_statistics.status. + */ + public void setStatus(Short value); + + /** + * Getter for texera_db.operator_runtime_statistics.status. + */ + public Short getStatus(); + + /** + * Setter for + * texera_db.operator_runtime_statistics.data_processing_time. + */ + public void setDataProcessingTime(Long value); + + /** + * Getter for + * texera_db.operator_runtime_statistics.data_processing_time. + */ + public Long getDataProcessingTime(); + + /** + * Setter for + * texera_db.operator_runtime_statistics.control_processing_time. + */ + public void setControlProcessingTime(Long value); + + /** + * Getter for + * texera_db.operator_runtime_statistics.control_processing_time. + */ + public Long getControlProcessingTime(); + + /** + * Setter for texera_db.operator_runtime_statistics.idle_time. + */ + public void setIdleTime(Long value); + + /** + * Getter for texera_db.operator_runtime_statistics.idle_time. + */ + public Long getIdleTime(); + + /** + * Setter for + * texera_db.operator_runtime_statistics.num_workers. + */ + public void setNumWorkers(Integer value); + + /** + * Getter for + * texera_db.operator_runtime_statistics.num_workers. + */ + public Integer getNumWorkers(); + + // ------------------------------------------------------------------------- + // FROM and INTO + // ------------------------------------------------------------------------- + + /** + * Load data from another generated Record/POJO implementing the common + * interface IOperatorRuntimeStatistics + */ + public void from(IOperatorRuntimeStatistics from); + + /** + * Copy data into another generated Record/POJO implementing the common + * interface IOperatorRuntimeStatistics + */ + public E into(E into); +} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowExecutions.java index 105f22e2474..df70b51895b 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowExecutions.java @@ -126,16 +126,6 @@ public interface IWorkflowExecutions extends Serializable { */ public String getLogLocation(); - /** - * Setter for texera_db.workflow_executions.runtime_stats_uri. - */ - public void setRuntimeStatsUri(String value); - - /** - * Getter for texera_db.workflow_executions.runtime_stats_uri. - */ - public String getRuntimeStatsUri(); - // ------------------------------------------------------------------------- // FROM and INTO // ------------------------------------------------------------------------- diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorExecutions.java index 22b55c58cac..ffda0909942 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorExecutions.java @@ -6,8 +6,6 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IOperatorExecutions; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -15,67 +13,89 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class OperatorExecutions implements IOperatorExecutions { - private static final long serialVersionUID = -85872319; + private static final long serialVersionUID = 1L; - private UInteger workflowExecutionId; - private String operatorId; - private String consoleMessagesUri; + private Long operatorExecutionId; + private Integer workflowExecutionId; + private String operatorId; public OperatorExecutions() {} public OperatorExecutions(IOperatorExecutions value) { + this.operatorExecutionId = value.getOperatorExecutionId(); this.workflowExecutionId = value.getWorkflowExecutionId(); this.operatorId = value.getOperatorId(); - this.consoleMessagesUri = value.getConsoleMessagesUri(); } public OperatorExecutions( - UInteger workflowExecutionId, - String operatorId, - String consoleMessagesUri + Long operatorExecutionId, + Integer workflowExecutionId, + String operatorId ) { + this.operatorExecutionId = operatorExecutionId; this.workflowExecutionId = workflowExecutionId; this.operatorId = operatorId; - this.consoleMessagesUri = consoleMessagesUri; } + /** + * Getter for + * texera_db.operator_executions.operator_execution_id. + */ @Override - public UInteger getWorkflowExecutionId() { - return this.workflowExecutionId; + public Long getOperatorExecutionId() { + return this.operatorExecutionId; } + /** + * Setter for + * texera_db.operator_executions.operator_execution_id. + */ @Override - public void setWorkflowExecutionId(UInteger workflowExecutionId) { - this.workflowExecutionId = workflowExecutionId; + public void setOperatorExecutionId(Long operatorExecutionId) { + this.operatorExecutionId = operatorExecutionId; } + /** + * Getter for + * texera_db.operator_executions.workflow_execution_id. + */ @Override - public String getOperatorId() { - return this.operatorId; + public Integer getWorkflowExecutionId() { + return this.workflowExecutionId; } + /** + * Setter for + * texera_db.operator_executions.workflow_execution_id. + */ @Override - public void setOperatorId(String operatorId) { - this.operatorId = operatorId; + public void setWorkflowExecutionId(Integer workflowExecutionId) { + this.workflowExecutionId = workflowExecutionId; } + /** + * Getter for texera_db.operator_executions.operator_id. + */ @Override - public String getConsoleMessagesUri() { - return this.consoleMessagesUri; + public String getOperatorId() { + return this.operatorId; } + /** + * Setter for texera_db.operator_executions.operator_id. + */ @Override - public void setConsoleMessagesUri(String consoleMessagesUri) { - this.consoleMessagesUri = consoleMessagesUri; + public void setOperatorId(String operatorId) { + this.operatorId = operatorId; } @Override public String toString() { StringBuilder sb = new StringBuilder("OperatorExecutions ("); - sb.append(workflowExecutionId); + sb.append(operatorExecutionId); + sb.append(", ").append(workflowExecutionId); sb.append(", ").append(operatorId); - sb.append(", ").append(consoleMessagesUri); sb.append(")"); return sb.toString(); @@ -87,9 +107,9 @@ public String toString() { @Override public void from(IOperatorExecutions from) { + setOperatorExecutionId(from.getOperatorExecutionId()); setWorkflowExecutionId(from.getWorkflowExecutionId()); setOperatorId(from.getOperatorId()); - setConsoleMessagesUri(from.getConsoleMessagesUri()); } @Override diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorPortExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorPortExecutions.java deleted file mode 100644 index 8aef28b48a6..00000000000 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorPortExecutions.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package edu.uci.ics.texera.dao.jooq.generated.tables.pojos; - - -import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IOperatorPortExecutions; - -import org.jooq.types.UInteger; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class OperatorPortExecutions implements IOperatorPortExecutions { - - private static final long serialVersionUID = -912694271; - - private UInteger workflowExecutionId; - private String operatorId; - private Integer portId; - private String resultUri; - - public OperatorPortExecutions() {} - - public OperatorPortExecutions(IOperatorPortExecutions value) { - this.workflowExecutionId = value.getWorkflowExecutionId(); - this.operatorId = value.getOperatorId(); - this.portId = value.getPortId(); - this.resultUri = value.getResultUri(); - } - - public OperatorPortExecutions( - UInteger workflowExecutionId, - String operatorId, - Integer portId, - String resultUri - ) { - this.workflowExecutionId = workflowExecutionId; - this.operatorId = operatorId; - this.portId = portId; - this.resultUri = resultUri; - } - - @Override - public UInteger getWorkflowExecutionId() { - return this.workflowExecutionId; - } - - @Override - public void setWorkflowExecutionId(UInteger workflowExecutionId) { - this.workflowExecutionId = workflowExecutionId; - } - - @Override - public String getOperatorId() { - return this.operatorId; - } - - @Override - public void setOperatorId(String operatorId) { - this.operatorId = operatorId; - } - - @Override - public Integer getPortId() { - return this.portId; - } - - @Override - public void setPortId(Integer portId) { - this.portId = portId; - } - - @Override - public String getResultUri() { - return this.resultUri; - } - - @Override - public void setResultUri(String resultUri) { - this.resultUri = resultUri; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("OperatorPortExecutions ("); - - sb.append(workflowExecutionId); - sb.append(", ").append(operatorId); - sb.append(", ").append(portId); - sb.append(", ").append(resultUri); - - sb.append(")"); - return sb.toString(); - } - - // ------------------------------------------------------------------------- - // FROM and INTO - // ------------------------------------------------------------------------- - - @Override - public void from(IOperatorPortExecutions from) { - setWorkflowExecutionId(from.getWorkflowExecutionId()); - setOperatorId(from.getOperatorId()); - setPortId(from.getPortId()); - setResultUri(from.getResultUri()); - } - - @Override - public E into(E into) { - into.from(this); - return into; - } -} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorRuntimeStatistics.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorRuntimeStatistics.java new file mode 100644 index 00000000000..1fd925eafb3 --- /dev/null +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorRuntimeStatistics.java @@ -0,0 +1,262 @@ +/* + * This file is generated by jOOQ. + */ +package edu.uci.ics.texera.dao.jooq.generated.tables.pojos; + + +import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IOperatorRuntimeStatistics; + +import java.time.LocalDateTime; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class OperatorRuntimeStatistics implements IOperatorRuntimeStatistics { + + private static final long serialVersionUID = 1L; + + private Long operatorExecutionId; + private LocalDateTime time; + private Long inputTupleCnt; + private Long outputTupleCnt; + private Short status; + private Long dataProcessingTime; + private Long controlProcessingTime; + private Long idleTime; + private Integer numWorkers; + + public OperatorRuntimeStatistics() {} + + public OperatorRuntimeStatistics(IOperatorRuntimeStatistics value) { + this.operatorExecutionId = value.getOperatorExecutionId(); + this.time = value.getTime(); + this.inputTupleCnt = value.getInputTupleCnt(); + this.outputTupleCnt = value.getOutputTupleCnt(); + this.status = value.getStatus(); + this.dataProcessingTime = value.getDataProcessingTime(); + this.controlProcessingTime = value.getControlProcessingTime(); + this.idleTime = value.getIdleTime(); + this.numWorkers = value.getNumWorkers(); + } + + public OperatorRuntimeStatistics( + Long operatorExecutionId, + LocalDateTime time, + Long inputTupleCnt, + Long outputTupleCnt, + Short status, + Long dataProcessingTime, + Long controlProcessingTime, + Long idleTime, + Integer numWorkers + ) { + this.operatorExecutionId = operatorExecutionId; + this.time = time; + this.inputTupleCnt = inputTupleCnt; + this.outputTupleCnt = outputTupleCnt; + this.status = status; + this.dataProcessingTime = dataProcessingTime; + this.controlProcessingTime = controlProcessingTime; + this.idleTime = idleTime; + this.numWorkers = numWorkers; + } + + /** + * Getter for + * texera_db.operator_runtime_statistics.operator_execution_id. + */ + @Override + public Long getOperatorExecutionId() { + return this.operatorExecutionId; + } + + /** + * Setter for + * texera_db.operator_runtime_statistics.operator_execution_id. + */ + @Override + public void setOperatorExecutionId(Long operatorExecutionId) { + this.operatorExecutionId = operatorExecutionId; + } + + /** + * Getter for texera_db.operator_runtime_statistics.time. + */ + @Override + public LocalDateTime getTime() { + return this.time; + } + + /** + * Setter for texera_db.operator_runtime_statistics.time. + */ + @Override + public void setTime(LocalDateTime time) { + this.time = time; + } + + /** + * Getter for + * texera_db.operator_runtime_statistics.input_tuple_cnt. + */ + @Override + public Long getInputTupleCnt() { + return this.inputTupleCnt; + } + + /** + * Setter for + * texera_db.operator_runtime_statistics.input_tuple_cnt. + */ + @Override + public void setInputTupleCnt(Long inputTupleCnt) { + this.inputTupleCnt = inputTupleCnt; + } + + /** + * Getter for + * texera_db.operator_runtime_statistics.output_tuple_cnt. + */ + @Override + public Long getOutputTupleCnt() { + return this.outputTupleCnt; + } + + /** + * Setter for + * texera_db.operator_runtime_statistics.output_tuple_cnt. + */ + @Override + public void setOutputTupleCnt(Long outputTupleCnt) { + this.outputTupleCnt = outputTupleCnt; + } + + /** + * Getter for texera_db.operator_runtime_statistics.status. + */ + @Override + public Short getStatus() { + return this.status; + } + + /** + * Setter for texera_db.operator_runtime_statistics.status. + */ + @Override + public void setStatus(Short status) { + this.status = status; + } + + /** + * Getter for + * texera_db.operator_runtime_statistics.data_processing_time. + */ + @Override + public Long getDataProcessingTime() { + return this.dataProcessingTime; + } + + /** + * Setter for + * texera_db.operator_runtime_statistics.data_processing_time. + */ + @Override + public void setDataProcessingTime(Long dataProcessingTime) { + this.dataProcessingTime = dataProcessingTime; + } + + /** + * Getter for + * texera_db.operator_runtime_statistics.control_processing_time. + */ + @Override + public Long getControlProcessingTime() { + return this.controlProcessingTime; + } + + /** + * Setter for + * texera_db.operator_runtime_statistics.control_processing_time. + */ + @Override + public void setControlProcessingTime(Long controlProcessingTime) { + this.controlProcessingTime = controlProcessingTime; + } + + /** + * Getter for texera_db.operator_runtime_statistics.idle_time. + */ + @Override + public Long getIdleTime() { + return this.idleTime; + } + + /** + * Setter for texera_db.operator_runtime_statistics.idle_time. + */ + @Override + public void setIdleTime(Long idleTime) { + this.idleTime = idleTime; + } + + /** + * Getter for + * texera_db.operator_runtime_statistics.num_workers. + */ + @Override + public Integer getNumWorkers() { + return this.numWorkers; + } + + /** + * Setter for + * texera_db.operator_runtime_statistics.num_workers. + */ + @Override + public void setNumWorkers(Integer numWorkers) { + this.numWorkers = numWorkers; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("OperatorRuntimeStatistics ("); + + sb.append(operatorExecutionId); + sb.append(", ").append(time); + sb.append(", ").append(inputTupleCnt); + sb.append(", ").append(outputTupleCnt); + sb.append(", ").append(status); + sb.append(", ").append(dataProcessingTime); + sb.append(", ").append(controlProcessingTime); + sb.append(", ").append(idleTime); + sb.append(", ").append(numWorkers); + + sb.append(")"); + return sb.toString(); + } + + // ------------------------------------------------------------------------- + // FROM and INTO + // ------------------------------------------------------------------------- + + @Override + public void from(IOperatorRuntimeStatistics from) { + setOperatorExecutionId(from.getOperatorExecutionId()); + setTime(from.getTime()); + setInputTupleCnt(from.getInputTupleCnt()); + setOutputTupleCnt(from.getOutputTupleCnt()); + setStatus(from.getStatus()); + setDataProcessingTime(from.getDataProcessingTime()); + setControlProcessingTime(from.getControlProcessingTime()); + setIdleTime(from.getIdleTime()); + setNumWorkers(from.getNumWorkers()); + } + + @Override + public E into(E into) { + into.from(this); + return into; + } +} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowExecutions.java index d80d5987d6e..225c6093a7c 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowExecutions.java @@ -6,9 +6,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowExecutions; -import java.sql.Timestamp; - -import org.jooq.types.UInteger; +import java.time.LocalDateTime; /** @@ -17,20 +15,19 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class WorkflowExecutions implements IWorkflowExecutions { - private static final long serialVersionUID = 1258377197; - - private UInteger eid; - private UInteger vid; - private UInteger uid; - private Byte status; - private String result; - private Timestamp startingTime; - private Timestamp lastUpdateTime; - private Byte bookmarked; - private String name; - private String environmentVersion; - private String logLocation; - private String runtimeStatsUri; + private static final long serialVersionUID = 1L; + + private Integer eid; + private Integer vid; + private Integer uid; + private Short status; + private String result; + private LocalDateTime startingTime; + private LocalDateTime lastUpdateTime; + private Boolean bookmarked; + private String name; + private String environmentVersion; + private String logLocation; public WorkflowExecutions() {} @@ -46,22 +43,20 @@ public WorkflowExecutions(IWorkflowExecutions value) { this.name = value.getName(); this.environmentVersion = value.getEnvironmentVersion(); this.logLocation = value.getLogLocation(); - this.runtimeStatsUri = value.getRuntimeStatsUri(); } public WorkflowExecutions( - UInteger eid, - UInteger vid, - UInteger uid, - Byte status, - String result, - Timestamp startingTime, - Timestamp lastUpdateTime, - Byte bookmarked, - String name, - String environmentVersion, - String logLocation, - String runtimeStatsUri + Integer eid, + Integer vid, + Integer uid, + Short status, + String result, + LocalDateTime startingTime, + LocalDateTime lastUpdateTime, + Boolean bookmarked, + String name, + String environmentVersion, + String logLocation ) { this.eid = eid; this.vid = vid; @@ -74,129 +69,186 @@ public WorkflowExecutions( this.name = name; this.environmentVersion = environmentVersion; this.logLocation = logLocation; - this.runtimeStatsUri = runtimeStatsUri; } + /** + * Getter for texera_db.workflow_executions.eid. + */ @Override - public UInteger getEid() { + public Integer getEid() { return this.eid; } + /** + * Setter for texera_db.workflow_executions.eid. + */ @Override - public void setEid(UInteger eid) { + public void setEid(Integer eid) { this.eid = eid; } + /** + * Getter for texera_db.workflow_executions.vid. + */ @Override - public UInteger getVid() { + public Integer getVid() { return this.vid; } + /** + * Setter for texera_db.workflow_executions.vid. + */ @Override - public void setVid(UInteger vid) { + public void setVid(Integer vid) { this.vid = vid; } + /** + * Getter for texera_db.workflow_executions.uid. + */ @Override - public UInteger getUid() { + public Integer getUid() { return this.uid; } + /** + * Setter for texera_db.workflow_executions.uid. + */ @Override - public void setUid(UInteger uid) { + public void setUid(Integer uid) { this.uid = uid; } + /** + * Getter for texera_db.workflow_executions.status. + */ @Override - public Byte getStatus() { + public Short getStatus() { return this.status; } + /** + * Setter for texera_db.workflow_executions.status. + */ @Override - public void setStatus(Byte status) { + public void setStatus(Short status) { this.status = status; } + /** + * Getter for texera_db.workflow_executions.result. + */ @Override public String getResult() { return this.result; } + /** + * Setter for texera_db.workflow_executions.result. + */ @Override public void setResult(String result) { this.result = result; } + /** + * Getter for texera_db.workflow_executions.starting_time. + */ @Override - public Timestamp getStartingTime() { + public LocalDateTime getStartingTime() { return this.startingTime; } + /** + * Setter for texera_db.workflow_executions.starting_time. + */ @Override - public void setStartingTime(Timestamp startingTime) { + public void setStartingTime(LocalDateTime startingTime) { this.startingTime = startingTime; } + /** + * Getter for texera_db.workflow_executions.last_update_time. + */ @Override - public Timestamp getLastUpdateTime() { + public LocalDateTime getLastUpdateTime() { return this.lastUpdateTime; } + /** + * Setter for texera_db.workflow_executions.last_update_time. + */ @Override - public void setLastUpdateTime(Timestamp lastUpdateTime) { + public void setLastUpdateTime(LocalDateTime lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; } + /** + * Getter for texera_db.workflow_executions.bookmarked. + */ @Override - public Byte getBookmarked() { + public Boolean getBookmarked() { return this.bookmarked; } + /** + * Setter for texera_db.workflow_executions.bookmarked. + */ @Override - public void setBookmarked(Byte bookmarked) { + public void setBookmarked(Boolean bookmarked) { this.bookmarked = bookmarked; } + /** + * Getter for texera_db.workflow_executions.name. + */ @Override public String getName() { return this.name; } + /** + * Setter for texera_db.workflow_executions.name. + */ @Override public void setName(String name) { this.name = name; } + /** + * Getter for + * texera_db.workflow_executions.environment_version. + */ @Override public String getEnvironmentVersion() { return this.environmentVersion; } + /** + * Setter for + * texera_db.workflow_executions.environment_version. + */ @Override public void setEnvironmentVersion(String environmentVersion) { this.environmentVersion = environmentVersion; } + /** + * Getter for texera_db.workflow_executions.log_location. + */ @Override public String getLogLocation() { return this.logLocation; } + /** + * Setter for texera_db.workflow_executions.log_location. + */ @Override public void setLogLocation(String logLocation) { this.logLocation = logLocation; } - @Override - public String getRuntimeStatsUri() { - return this.runtimeStatsUri; - } - - @Override - public void setRuntimeStatsUri(String runtimeStatsUri) { - this.runtimeStatsUri = runtimeStatsUri; - } - @Override public String toString() { StringBuilder sb = new StringBuilder("WorkflowExecutions ("); @@ -212,7 +264,6 @@ public String toString() { sb.append(", ").append(name); sb.append(", ").append(environmentVersion); sb.append(", ").append(logLocation); - sb.append(", ").append(runtimeStatsUri); sb.append(")"); return sb.toString(); @@ -235,7 +286,6 @@ public void from(IWorkflowExecutions from) { setName(from.getName()); setEnvironmentVersion(from.getEnvironmentVersion()); setLogLocation(from.getLogLocation()); - setRuntimeStatsUri(from.getRuntimeStatsUri()); } @Override diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorExecutionsRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorExecutionsRecord.java index 318ee79b2ef..da2ac3efa2e 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorExecutionsRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorExecutionsRecord.java @@ -8,147 +8,160 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IOperatorExecutions; import org.jooq.Field; +import org.jooq.Record1; import org.jooq.Record3; import org.jooq.Row3; -import org.jooq.impl.TableRecordImpl; -import org.jooq.types.UInteger; +import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class OperatorExecutionsRecord extends TableRecordImpl implements Record3, IOperatorExecutions { +public class OperatorExecutionsRecord extends UpdatableRecordImpl implements Record3, IOperatorExecutions { - private static final long serialVersionUID = -930651648; + private static final long serialVersionUID = 1L; /** - * Setter for texera_db.operator_executions.workflow_execution_id. + * Setter for + * texera_db.operator_executions.operator_execution_id. */ @Override - public void setWorkflowExecutionId(UInteger value) { + public void setOperatorExecutionId(Long value) { set(0, value); } /** - * Getter for texera_db.operator_executions.workflow_execution_id. + * Getter for + * texera_db.operator_executions.operator_execution_id. */ @Override - public UInteger getWorkflowExecutionId() { - return (UInteger) get(0); + public Long getOperatorExecutionId() { + return (Long) get(0); } /** - * Setter for texera_db.operator_executions.operator_id. + * Setter for + * texera_db.operator_executions.workflow_execution_id. */ @Override - public void setOperatorId(String value) { + public void setWorkflowExecutionId(Integer value) { set(1, value); } /** - * Getter for texera_db.operator_executions.operator_id. + * Getter for + * texera_db.operator_executions.workflow_execution_id. */ @Override - public String getOperatorId() { - return (String) get(1); + public Integer getWorkflowExecutionId() { + return (Integer) get(1); } /** - * Setter for texera_db.operator_executions.console_messages_uri. + * Setter for texera_db.operator_executions.operator_id. */ @Override - public void setConsoleMessagesUri(String value) { + public void setOperatorId(String value) { set(2, value); } /** - * Getter for texera_db.operator_executions.console_messages_uri. + * Getter for texera_db.operator_executions.operator_id. */ @Override - public String getConsoleMessagesUri() { + public String getOperatorId() { return (String) get(2); } + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + // ------------------------------------------------------------------------- // Record3 type implementation // ------------------------------------------------------------------------- @Override - public Row3 fieldsRow() { + public Row3 fieldsRow() { return (Row3) super.fieldsRow(); } @Override - public Row3 valuesRow() { + public Row3 valuesRow() { return (Row3) super.valuesRow(); } @Override - public Field field1() { - return OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID; + public Field field1() { + return OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID; } @Override - public Field field2() { - return OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_ID; + public Field field2() { + return OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID; } @Override public Field field3() { - return OperatorExecutions.OPERATOR_EXECUTIONS.CONSOLE_MESSAGES_URI; + return OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_ID; } @Override - public UInteger component1() { - return getWorkflowExecutionId(); + public Long component1() { + return getOperatorExecutionId(); } @Override - public String component2() { - return getOperatorId(); + public Integer component2() { + return getWorkflowExecutionId(); } @Override public String component3() { - return getConsoleMessagesUri(); + return getOperatorId(); } @Override - public UInteger value1() { - return getWorkflowExecutionId(); + public Long value1() { + return getOperatorExecutionId(); } @Override - public String value2() { - return getOperatorId(); + public Integer value2() { + return getWorkflowExecutionId(); } @Override public String value3() { - return getConsoleMessagesUri(); + return getOperatorId(); } @Override - public OperatorExecutionsRecord value1(UInteger value) { - setWorkflowExecutionId(value); + public OperatorExecutionsRecord value1(Long value) { + setOperatorExecutionId(value); return this; } @Override - public OperatorExecutionsRecord value2(String value) { - setOperatorId(value); + public OperatorExecutionsRecord value2(Integer value) { + setWorkflowExecutionId(value); return this; } @Override public OperatorExecutionsRecord value3(String value) { - setConsoleMessagesUri(value); + setOperatorId(value); return this; } @Override - public OperatorExecutionsRecord values(UInteger value1, String value2, String value3) { + public OperatorExecutionsRecord values(Long value1, Integer value2, String value3) { value1(value1); value2(value2); value3(value3); @@ -161,9 +174,9 @@ public OperatorExecutionsRecord values(UInteger value1, String value2, String va @Override public void from(IOperatorExecutions from) { + setOperatorExecutionId(from.getOperatorExecutionId()); setWorkflowExecutionId(from.getWorkflowExecutionId()); setOperatorId(from.getOperatorId()); - setConsoleMessagesUri(from.getConsoleMessagesUri()); } @Override @@ -186,11 +199,24 @@ public OperatorExecutionsRecord() { /** * Create a detached, initialised OperatorExecutionsRecord */ - public OperatorExecutionsRecord(UInteger workflowExecutionId, String operatorId, String consoleMessagesUri) { + public OperatorExecutionsRecord(Long operatorExecutionId, Integer workflowExecutionId, String operatorId) { + super(OperatorExecutions.OPERATOR_EXECUTIONS); + + setOperatorExecutionId(operatorExecutionId); + setWorkflowExecutionId(workflowExecutionId); + setOperatorId(operatorId); + } + + /** + * Create a detached, initialised OperatorExecutionsRecord + */ + public OperatorExecutionsRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorExecutions value) { super(OperatorExecutions.OPERATOR_EXECUTIONS); - set(0, workflowExecutionId); - set(1, operatorId); - set(2, consoleMessagesUri); + if (value != null) { + setOperatorExecutionId(value.getOperatorExecutionId()); + setWorkflowExecutionId(value.getWorkflowExecutionId()); + setOperatorId(value.getOperatorId()); + } } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorPortExecutionsRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorPortExecutionsRecord.java deleted file mode 100644 index d05ba339cb4..00000000000 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorPortExecutionsRecord.java +++ /dev/null @@ -1,236 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package edu.uci.ics.texera.dao.jooq.generated.tables.records; - - -import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorPortExecutions; -import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IOperatorPortExecutions; - -import org.jooq.Field; -import org.jooq.Record4; -import org.jooq.Row4; -import org.jooq.impl.TableRecordImpl; -import org.jooq.types.UInteger; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class OperatorPortExecutionsRecord extends TableRecordImpl implements Record4, IOperatorPortExecutions { - - private static final long serialVersionUID = 1555812432; - - /** - * Setter for texera_db.operator_port_executions.workflow_execution_id. - */ - @Override - public void setWorkflowExecutionId(UInteger value) { - set(0, value); - } - - /** - * Getter for texera_db.operator_port_executions.workflow_execution_id. - */ - @Override - public UInteger getWorkflowExecutionId() { - return (UInteger) get(0); - } - - /** - * Setter for texera_db.operator_port_executions.operator_id. - */ - @Override - public void setOperatorId(String value) { - set(1, value); - } - - /** - * Getter for texera_db.operator_port_executions.operator_id. - */ - @Override - public String getOperatorId() { - return (String) get(1); - } - - /** - * Setter for texera_db.operator_port_executions.port_id. - */ - @Override - public void setPortId(Integer value) { - set(2, value); - } - - /** - * Getter for texera_db.operator_port_executions.port_id. - */ - @Override - public Integer getPortId() { - return (Integer) get(2); - } - - /** - * Setter for texera_db.operator_port_executions.result_uri. - */ - @Override - public void setResultUri(String value) { - set(3, value); - } - - /** - * Getter for texera_db.operator_port_executions.result_uri. - */ - @Override - public String getResultUri() { - return (String) get(3); - } - - // ------------------------------------------------------------------------- - // Record4 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row4 fieldsRow() { - return (Row4) super.fieldsRow(); - } - - @Override - public Row4 valuesRow() { - return (Row4) super.valuesRow(); - } - - @Override - public Field field1() { - return OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.WORKFLOW_EXECUTION_ID; - } - - @Override - public Field field2() { - return OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.OPERATOR_ID; - } - - @Override - public Field field3() { - return OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.PORT_ID; - } - - @Override - public Field field4() { - return OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.RESULT_URI; - } - - @Override - public UInteger component1() { - return getWorkflowExecutionId(); - } - - @Override - public String component2() { - return getOperatorId(); - } - - @Override - public Integer component3() { - return getPortId(); - } - - @Override - public String component4() { - return getResultUri(); - } - - @Override - public UInteger value1() { - return getWorkflowExecutionId(); - } - - @Override - public String value2() { - return getOperatorId(); - } - - @Override - public Integer value3() { - return getPortId(); - } - - @Override - public String value4() { - return getResultUri(); - } - - @Override - public OperatorPortExecutionsRecord value1(UInteger value) { - setWorkflowExecutionId(value); - return this; - } - - @Override - public OperatorPortExecutionsRecord value2(String value) { - setOperatorId(value); - return this; - } - - @Override - public OperatorPortExecutionsRecord value3(Integer value) { - setPortId(value); - return this; - } - - @Override - public OperatorPortExecutionsRecord value4(String value) { - setResultUri(value); - return this; - } - - @Override - public OperatorPortExecutionsRecord values(UInteger value1, String value2, Integer value3, String value4) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - return this; - } - - // ------------------------------------------------------------------------- - // FROM and INTO - // ------------------------------------------------------------------------- - - @Override - public void from(IOperatorPortExecutions from) { - setWorkflowExecutionId(from.getWorkflowExecutionId()); - setOperatorId(from.getOperatorId()); - setPortId(from.getPortId()); - setResultUri(from.getResultUri()); - } - - @Override - public E into(E into) { - into.from(this); - return into; - } - - // ------------------------------------------------------------------------- - // Constructors - // ------------------------------------------------------------------------- - - /** - * Create a detached OperatorPortExecutionsRecord - */ - public OperatorPortExecutionsRecord() { - super(OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS); - } - - /** - * Create a detached, initialised OperatorPortExecutionsRecord - */ - public OperatorPortExecutionsRecord(UInteger workflowExecutionId, String operatorId, Integer portId, String resultUri) { - super(OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS); - - set(0, workflowExecutionId); - set(1, operatorId); - set(2, portId); - set(3, resultUri); - } -} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorRuntimeStatisticsRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorRuntimeStatisticsRecord.java new file mode 100644 index 00000000000..029852728d9 --- /dev/null +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorRuntimeStatisticsRecord.java @@ -0,0 +1,478 @@ +/* + * This file is generated by jOOQ. + */ +package edu.uci.ics.texera.dao.jooq.generated.tables.records; + + +import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorRuntimeStatistics; +import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IOperatorRuntimeStatistics; + +import java.time.LocalDateTime; + +import org.jooq.Field; +import org.jooq.Record2; +import org.jooq.Record9; +import org.jooq.Row9; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class OperatorRuntimeStatisticsRecord extends UpdatableRecordImpl implements Record9, IOperatorRuntimeStatistics { + + private static final long serialVersionUID = 1L; + + /** + * Setter for + * texera_db.operator_runtime_statistics.operator_execution_id. + */ + @Override + public void setOperatorExecutionId(Long value) { + set(0, value); + } + + /** + * Getter for + * texera_db.operator_runtime_statistics.operator_execution_id. + */ + @Override + public Long getOperatorExecutionId() { + return (Long) get(0); + } + + /** + * Setter for texera_db.operator_runtime_statistics.time. + */ + @Override + public void setTime(LocalDateTime value) { + set(1, value); + } + + /** + * Getter for texera_db.operator_runtime_statistics.time. + */ + @Override + public LocalDateTime getTime() { + return (LocalDateTime) get(1); + } + + /** + * Setter for + * texera_db.operator_runtime_statistics.input_tuple_cnt. + */ + @Override + public void setInputTupleCnt(Long value) { + set(2, value); + } + + /** + * Getter for + * texera_db.operator_runtime_statistics.input_tuple_cnt. + */ + @Override + public Long getInputTupleCnt() { + return (Long) get(2); + } + + /** + * Setter for + * texera_db.operator_runtime_statistics.output_tuple_cnt. + */ + @Override + public void setOutputTupleCnt(Long value) { + set(3, value); + } + + /** + * Getter for + * texera_db.operator_runtime_statistics.output_tuple_cnt. + */ + @Override + public Long getOutputTupleCnt() { + return (Long) get(3); + } + + /** + * Setter for texera_db.operator_runtime_statistics.status. + */ + @Override + public void setStatus(Short value) { + set(4, value); + } + + /** + * Getter for texera_db.operator_runtime_statistics.status. + */ + @Override + public Short getStatus() { + return (Short) get(4); + } + + /** + * Setter for + * texera_db.operator_runtime_statistics.data_processing_time. + */ + @Override + public void setDataProcessingTime(Long value) { + set(5, value); + } + + /** + * Getter for + * texera_db.operator_runtime_statistics.data_processing_time. + */ + @Override + public Long getDataProcessingTime() { + return (Long) get(5); + } + + /** + * Setter for + * texera_db.operator_runtime_statistics.control_processing_time. + */ + @Override + public void setControlProcessingTime(Long value) { + set(6, value); + } + + /** + * Getter for + * texera_db.operator_runtime_statistics.control_processing_time. + */ + @Override + public Long getControlProcessingTime() { + return (Long) get(6); + } + + /** + * Setter for texera_db.operator_runtime_statistics.idle_time. + */ + @Override + public void setIdleTime(Long value) { + set(7, value); + } + + /** + * Getter for texera_db.operator_runtime_statistics.idle_time. + */ + @Override + public Long getIdleTime() { + return (Long) get(7); + } + + /** + * Setter for + * texera_db.operator_runtime_statistics.num_workers. + */ + @Override + public void setNumWorkers(Integer value) { + set(8, value); + } + + /** + * Getter for + * texera_db.operator_runtime_statistics.num_workers. + */ + @Override + public Integer getNumWorkers() { + return (Integer) get(8); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record2 key() { + return (Record2) super.key(); + } + + // ------------------------------------------------------------------------- + // Record9 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row9 fieldsRow() { + return (Row9) super.fieldsRow(); + } + + @Override + public Row9 valuesRow() { + return (Row9) super.valuesRow(); + } + + @Override + public Field field1() { + return OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OPERATOR_EXECUTION_ID; + } + + @Override + public Field field2() { + return OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.TIME; + } + + @Override + public Field field3() { + return OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.INPUT_TUPLE_CNT; + } + + @Override + public Field field4() { + return OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OUTPUT_TUPLE_CNT; + } + + @Override + public Field field5() { + return OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.STATUS; + } + + @Override + public Field field6() { + return OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.DATA_PROCESSING_TIME; + } + + @Override + public Field field7() { + return OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.CONTROL_PROCESSING_TIME; + } + + @Override + public Field field8() { + return OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.IDLE_TIME; + } + + @Override + public Field field9() { + return OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.NUM_WORKERS; + } + + @Override + public Long component1() { + return getOperatorExecutionId(); + } + + @Override + public LocalDateTime component2() { + return getTime(); + } + + @Override + public Long component3() { + return getInputTupleCnt(); + } + + @Override + public Long component4() { + return getOutputTupleCnt(); + } + + @Override + public Short component5() { + return getStatus(); + } + + @Override + public Long component6() { + return getDataProcessingTime(); + } + + @Override + public Long component7() { + return getControlProcessingTime(); + } + + @Override + public Long component8() { + return getIdleTime(); + } + + @Override + public Integer component9() { + return getNumWorkers(); + } + + @Override + public Long value1() { + return getOperatorExecutionId(); + } + + @Override + public LocalDateTime value2() { + return getTime(); + } + + @Override + public Long value3() { + return getInputTupleCnt(); + } + + @Override + public Long value4() { + return getOutputTupleCnt(); + } + + @Override + public Short value5() { + return getStatus(); + } + + @Override + public Long value6() { + return getDataProcessingTime(); + } + + @Override + public Long value7() { + return getControlProcessingTime(); + } + + @Override + public Long value8() { + return getIdleTime(); + } + + @Override + public Integer value9() { + return getNumWorkers(); + } + + @Override + public OperatorRuntimeStatisticsRecord value1(Long value) { + setOperatorExecutionId(value); + return this; + } + + @Override + public OperatorRuntimeStatisticsRecord value2(LocalDateTime value) { + setTime(value); + return this; + } + + @Override + public OperatorRuntimeStatisticsRecord value3(Long value) { + setInputTupleCnt(value); + return this; + } + + @Override + public OperatorRuntimeStatisticsRecord value4(Long value) { + setOutputTupleCnt(value); + return this; + } + + @Override + public OperatorRuntimeStatisticsRecord value5(Short value) { + setStatus(value); + return this; + } + + @Override + public OperatorRuntimeStatisticsRecord value6(Long value) { + setDataProcessingTime(value); + return this; + } + + @Override + public OperatorRuntimeStatisticsRecord value7(Long value) { + setControlProcessingTime(value); + return this; + } + + @Override + public OperatorRuntimeStatisticsRecord value8(Long value) { + setIdleTime(value); + return this; + } + + @Override + public OperatorRuntimeStatisticsRecord value9(Integer value) { + setNumWorkers(value); + return this; + } + + @Override + public OperatorRuntimeStatisticsRecord values(Long value1, LocalDateTime value2, Long value3, Long value4, Short value5, Long value6, Long value7, Long value8, Integer value9) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + value5(value5); + value6(value6); + value7(value7); + value8(value8); + value9(value9); + return this; + } + + // ------------------------------------------------------------------------- + // FROM and INTO + // ------------------------------------------------------------------------- + + @Override + public void from(IOperatorRuntimeStatistics from) { + setOperatorExecutionId(from.getOperatorExecutionId()); + setTime(from.getTime()); + setInputTupleCnt(from.getInputTupleCnt()); + setOutputTupleCnt(from.getOutputTupleCnt()); + setStatus(from.getStatus()); + setDataProcessingTime(from.getDataProcessingTime()); + setControlProcessingTime(from.getControlProcessingTime()); + setIdleTime(from.getIdleTime()); + setNumWorkers(from.getNumWorkers()); + } + + @Override + public E into(E into) { + into.from(this); + return into; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached OperatorRuntimeStatisticsRecord + */ + public OperatorRuntimeStatisticsRecord() { + super(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS); + } + + /** + * Create a detached, initialised OperatorRuntimeStatisticsRecord + */ + public OperatorRuntimeStatisticsRecord(Long operatorExecutionId, LocalDateTime time, Long inputTupleCnt, Long outputTupleCnt, Short status, Long dataProcessingTime, Long controlProcessingTime, Long idleTime, Integer numWorkers) { + super(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS); + + setOperatorExecutionId(operatorExecutionId); + setTime(time); + setInputTupleCnt(inputTupleCnt); + setOutputTupleCnt(outputTupleCnt); + setStatus(status); + setDataProcessingTime(dataProcessingTime); + setControlProcessingTime(controlProcessingTime); + setIdleTime(idleTime); + setNumWorkers(numWorkers); + } + + /** + * Create a detached, initialised OperatorRuntimeStatisticsRecord + */ + public OperatorRuntimeStatisticsRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorRuntimeStatistics value) { + super(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS); + + if (value != null) { + setOperatorExecutionId(value.getOperatorExecutionId()); + setTime(value.getTime()); + setInputTupleCnt(value.getInputTupleCnt()); + setOutputTupleCnt(value.getOutputTupleCnt()); + setStatus(value.getStatus()); + setDataProcessingTime(value.getDataProcessingTime()); + setControlProcessingTime(value.getControlProcessingTime()); + setIdleTime(value.getIdleTime()); + setNumWorkers(value.getNumWorkers()); + } + } +} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowExecutionsRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowExecutionsRecord.java index 17c967b2726..e8e9d430074 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowExecutionsRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowExecutionsRecord.java @@ -7,29 +7,28 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowExecutions; import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowExecutions; -import java.sql.Timestamp; +import java.time.LocalDateTime; import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record12; -import org.jooq.Row12; +import org.jooq.Record11; +import org.jooq.Row11; import org.jooq.impl.UpdatableRecordImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowExecutionsRecord extends UpdatableRecordImpl implements Record12, IWorkflowExecutions { +public class WorkflowExecutionsRecord extends UpdatableRecordImpl implements Record11, IWorkflowExecutions { - private static final long serialVersionUID = -986922842; + private static final long serialVersionUID = 1L; /** * Setter for texera_db.workflow_executions.eid. */ @Override - public void setEid(UInteger value) { + public void setEid(Integer value) { set(0, value); } @@ -37,15 +36,15 @@ public void setEid(UInteger value) { * Getter for texera_db.workflow_executions.eid. */ @Override - public UInteger getEid() { - return (UInteger) get(0); + public Integer getEid() { + return (Integer) get(0); } /** * Setter for texera_db.workflow_executions.vid. */ @Override - public void setVid(UInteger value) { + public void setVid(Integer value) { set(1, value); } @@ -53,15 +52,15 @@ public void setVid(UInteger value) { * Getter for texera_db.workflow_executions.vid. */ @Override - public UInteger getVid() { - return (UInteger) get(1); + public Integer getVid() { + return (Integer) get(1); } /** * Setter for texera_db.workflow_executions.uid. */ @Override - public void setUid(UInteger value) { + public void setUid(Integer value) { set(2, value); } @@ -69,15 +68,15 @@ public void setUid(UInteger value) { * Getter for texera_db.workflow_executions.uid. */ @Override - public UInteger getUid() { - return (UInteger) get(2); + public Integer getUid() { + return (Integer) get(2); } /** * Setter for texera_db.workflow_executions.status. */ @Override - public void setStatus(Byte value) { + public void setStatus(Short value) { set(3, value); } @@ -85,8 +84,8 @@ public void setStatus(Byte value) { * Getter for texera_db.workflow_executions.status. */ @Override - public Byte getStatus() { - return (Byte) get(3); + public Short getStatus() { + return (Short) get(3); } /** @@ -109,7 +108,7 @@ public String getResult() { * Setter for texera_db.workflow_executions.starting_time. */ @Override - public void setStartingTime(Timestamp value) { + public void setStartingTime(LocalDateTime value) { set(5, value); } @@ -117,15 +116,15 @@ public void setStartingTime(Timestamp value) { * Getter for texera_db.workflow_executions.starting_time. */ @Override - public Timestamp getStartingTime() { - return (Timestamp) get(5); + public LocalDateTime getStartingTime() { + return (LocalDateTime) get(5); } /** * Setter for texera_db.workflow_executions.last_update_time. */ @Override - public void setLastUpdateTime(Timestamp value) { + public void setLastUpdateTime(LocalDateTime value) { set(6, value); } @@ -133,15 +132,15 @@ public void setLastUpdateTime(Timestamp value) { * Getter for texera_db.workflow_executions.last_update_time. */ @Override - public Timestamp getLastUpdateTime() { - return (Timestamp) get(6); + public LocalDateTime getLastUpdateTime() { + return (LocalDateTime) get(6); } /** * Setter for texera_db.workflow_executions.bookmarked. */ @Override - public void setBookmarked(Byte value) { + public void setBookmarked(Boolean value) { set(7, value); } @@ -149,8 +148,8 @@ public void setBookmarked(Byte value) { * Getter for texera_db.workflow_executions.bookmarked. */ @Override - public Byte getBookmarked() { - return (Byte) get(7); + public Boolean getBookmarked() { + return (Boolean) get(7); } /** @@ -170,7 +169,8 @@ public String getName() { } /** - * Setter for texera_db.workflow_executions.environment_version. + * Setter for + * texera_db.workflow_executions.environment_version. */ @Override public void setEnvironmentVersion(String value) { @@ -178,7 +178,8 @@ public void setEnvironmentVersion(String value) { } /** - * Getter for texera_db.workflow_executions.environment_version. + * Getter for + * texera_db.workflow_executions.environment_version. */ @Override public String getEnvironmentVersion() { @@ -201,62 +202,46 @@ public String getLogLocation() { return (String) get(10); } - /** - * Setter for texera_db.workflow_executions.runtime_stats_uri. - */ - @Override - public void setRuntimeStatsUri(String value) { - set(11, value); - } - - /** - * Getter for texera_db.workflow_executions.runtime_stats_uri. - */ - @Override - public String getRuntimeStatsUri() { - return (String) get(11); - } - // ------------------------------------------------------------------------- // Primary key information // ------------------------------------------------------------------------- @Override - public Record1 key() { + public Record1 key() { return (Record1) super.key(); } // ------------------------------------------------------------------------- - // Record12 type implementation + // Record11 type implementation // ------------------------------------------------------------------------- @Override - public Row12 fieldsRow() { - return (Row12) super.fieldsRow(); + public Row11 fieldsRow() { + return (Row11) super.fieldsRow(); } @Override - public Row12 valuesRow() { - return (Row12) super.valuesRow(); + public Row11 valuesRow() { + return (Row11) super.valuesRow(); } @Override - public Field field1() { + public Field field1() { return WorkflowExecutions.WORKFLOW_EXECUTIONS.EID; } @Override - public Field field2() { + public Field field2() { return WorkflowExecutions.WORKFLOW_EXECUTIONS.VID; } @Override - public Field field3() { + public Field field3() { return WorkflowExecutions.WORKFLOW_EXECUTIONS.UID; } @Override - public Field field4() { + public Field field4() { return WorkflowExecutions.WORKFLOW_EXECUTIONS.STATUS; } @@ -266,17 +251,17 @@ public Field field5() { } @Override - public Field field6() { + public Field field6() { return WorkflowExecutions.WORKFLOW_EXECUTIONS.STARTING_TIME; } @Override - public Field field7() { + public Field field7() { return WorkflowExecutions.WORKFLOW_EXECUTIONS.LAST_UPDATE_TIME; } @Override - public Field field8() { + public Field field8() { return WorkflowExecutions.WORKFLOW_EXECUTIONS.BOOKMARKED; } @@ -296,27 +281,22 @@ public Field field11() { } @Override - public Field field12() { - return WorkflowExecutions.WORKFLOW_EXECUTIONS.RUNTIME_STATS_URI; - } - - @Override - public UInteger component1() { + public Integer component1() { return getEid(); } @Override - public UInteger component2() { + public Integer component2() { return getVid(); } @Override - public UInteger component3() { + public Integer component3() { return getUid(); } @Override - public Byte component4() { + public Short component4() { return getStatus(); } @@ -326,17 +306,17 @@ public String component5() { } @Override - public Timestamp component6() { + public LocalDateTime component6() { return getStartingTime(); } @Override - public Timestamp component7() { + public LocalDateTime component7() { return getLastUpdateTime(); } @Override - public Byte component8() { + public Boolean component8() { return getBookmarked(); } @@ -356,27 +336,22 @@ public String component11() { } @Override - public String component12() { - return getRuntimeStatsUri(); - } - - @Override - public UInteger value1() { + public Integer value1() { return getEid(); } @Override - public UInteger value2() { + public Integer value2() { return getVid(); } @Override - public UInteger value3() { + public Integer value3() { return getUid(); } @Override - public Byte value4() { + public Short value4() { return getStatus(); } @@ -386,17 +361,17 @@ public String value5() { } @Override - public Timestamp value6() { + public LocalDateTime value6() { return getStartingTime(); } @Override - public Timestamp value7() { + public LocalDateTime value7() { return getLastUpdateTime(); } @Override - public Byte value8() { + public Boolean value8() { return getBookmarked(); } @@ -416,30 +391,25 @@ public String value11() { } @Override - public String value12() { - return getRuntimeStatsUri(); - } - - @Override - public WorkflowExecutionsRecord value1(UInteger value) { + public WorkflowExecutionsRecord value1(Integer value) { setEid(value); return this; } @Override - public WorkflowExecutionsRecord value2(UInteger value) { + public WorkflowExecutionsRecord value2(Integer value) { setVid(value); return this; } @Override - public WorkflowExecutionsRecord value3(UInteger value) { + public WorkflowExecutionsRecord value3(Integer value) { setUid(value); return this; } @Override - public WorkflowExecutionsRecord value4(Byte value) { + public WorkflowExecutionsRecord value4(Short value) { setStatus(value); return this; } @@ -451,19 +421,19 @@ public WorkflowExecutionsRecord value5(String value) { } @Override - public WorkflowExecutionsRecord value6(Timestamp value) { + public WorkflowExecutionsRecord value6(LocalDateTime value) { setStartingTime(value); return this; } @Override - public WorkflowExecutionsRecord value7(Timestamp value) { + public WorkflowExecutionsRecord value7(LocalDateTime value) { setLastUpdateTime(value); return this; } @Override - public WorkflowExecutionsRecord value8(Byte value) { + public WorkflowExecutionsRecord value8(Boolean value) { setBookmarked(value); return this; } @@ -487,13 +457,7 @@ public WorkflowExecutionsRecord value11(String value) { } @Override - public WorkflowExecutionsRecord value12(String value) { - setRuntimeStatsUri(value); - return this; - } - - @Override - public WorkflowExecutionsRecord values(UInteger value1, UInteger value2, UInteger value3, Byte value4, String value5, Timestamp value6, Timestamp value7, Byte value8, String value9, String value10, String value11, String value12) { + public WorkflowExecutionsRecord values(Integer value1, Integer value2, Integer value3, Short value4, String value5, LocalDateTime value6, LocalDateTime value7, Boolean value8, String value9, String value10, String value11) { value1(value1); value2(value2); value3(value3); @@ -505,7 +469,6 @@ public WorkflowExecutionsRecord values(UInteger value1, UInteger value2, UIntege value9(value9); value10(value10); value11(value11); - value12(value12); return this; } @@ -526,7 +489,6 @@ public void from(IWorkflowExecutions from) { setName(from.getName()); setEnvironmentVersion(from.getEnvironmentVersion()); setLogLocation(from.getLogLocation()); - setRuntimeStatsUri(from.getRuntimeStatsUri()); } @Override @@ -549,20 +511,40 @@ public WorkflowExecutionsRecord() { /** * Create a detached, initialised WorkflowExecutionsRecord */ - public WorkflowExecutionsRecord(UInteger eid, UInteger vid, UInteger uid, Byte status, String result, Timestamp startingTime, Timestamp lastUpdateTime, Byte bookmarked, String name, String environmentVersion, String logLocation, String runtimeStatsUri) { + public WorkflowExecutionsRecord(Integer eid, Integer vid, Integer uid, Short status, String result, LocalDateTime startingTime, LocalDateTime lastUpdateTime, Boolean bookmarked, String name, String environmentVersion, String logLocation) { + super(WorkflowExecutions.WORKFLOW_EXECUTIONS); + + setEid(eid); + setVid(vid); + setUid(uid); + setStatus(status); + setResult(result); + setStartingTime(startingTime); + setLastUpdateTime(lastUpdateTime); + setBookmarked(bookmarked); + setName(name); + setEnvironmentVersion(environmentVersion); + setLogLocation(logLocation); + } + + /** + * Create a detached, initialised WorkflowExecutionsRecord + */ + public WorkflowExecutionsRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowExecutions value) { super(WorkflowExecutions.WORKFLOW_EXECUTIONS); - set(0, eid); - set(1, vid); - set(2, uid); - set(3, status); - set(4, result); - set(5, startingTime); - set(6, lastUpdateTime); - set(7, bookmarked); - set(8, name); - set(9, environmentVersion); - set(10, logLocation); - set(11, runtimeStatsUri); + if (value != null) { + setEid(value.getEid()); + setVid(value.getVid()); + setUid(value.getUid()); + setStatus(value.getStatus()); + setResult(value.getResult()); + setStartingTime(value.getStartingTime()); + setLastUpdateTime(value.getLastUpdateTime()); + setBookmarked(value.getBookmarked()); + setName(value.getName()); + setEnvironmentVersion(value.getEnvironmentVersion()); + setLogLocation(value.getLogLocation()); + } } } From b8915f31a2f8e4efe1bd545a385705e143c4a7e3 Mon Sep 17 00:00:00 2001 From: Shengquan Ni <13672781+shengquan-ni@users.noreply.github.com> Date: Tue, 11 Feb 2025 23:31:01 -0800 Subject: [PATCH 09/20] update jooq files --- .../ics/texera/dao/jooq/generated/Keys.java | 9 +- .../ics/texera/dao/jooq/generated/Tables.java | 6 +- .../texera/dao/jooq/generated/TexeraDb.java | 8 +- .../generated/tables/OperatorExecutions.java | 25 +- .../tables/OperatorPortExecutions.java | 168 ++++++ .../tables/OperatorRuntimeStatistics.java | 201 -------- .../jooq/generated/tables/UserActivity.java | 2 +- .../generated/tables/WorkflowExecutions.java | 13 +- .../tables/daos/OperatorExecutionsDao.java | 100 ---- .../daos/OperatorRuntimeStatisticsDao.java | 177 ------- .../tables/daos/WorkflowExecutionsDao.java | 15 + .../interfaces/IOperatorExecutions.java | 24 +- .../interfaces/IOperatorPortExecutions.java | 73 +++ .../IOperatorRuntimeStatistics.java | 134 ----- .../interfaces/IWorkflowExecutions.java | 10 + .../tables/pojos/OperatorExecutions.java | 52 +- .../tables/pojos/OperatorPortExecutions.java | 140 +++++ .../pojos/OperatorRuntimeStatistics.java | 262 ---------- .../tables/pojos/WorkflowExecutions.java | 24 +- .../records/OperatorExecutionsRecord.java | 100 ++-- .../records/OperatorPortExecutionsRecord.java | 251 +++++++++ .../OperatorRuntimeStatisticsRecord.java | 478 ------------------ .../records/WorkflowExecutionsRecord.java | 61 ++- 23 files changed, 842 insertions(+), 1491 deletions(-) create mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorPortExecutions.java delete mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorRuntimeStatistics.java delete mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorExecutionsDao.java delete mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorRuntimeStatisticsDao.java create mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorPortExecutions.java delete mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorRuntimeStatistics.java create mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorPortExecutions.java delete mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorRuntimeStatistics.java create mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorPortExecutionsRecord.java delete mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorRuntimeStatisticsRecord.java diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java index e61caddd570..485ca8d2281 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java @@ -8,7 +8,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetUserAccess; import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetVersion; import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorExecutions; -import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorRuntimeStatistics; +import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorPortExecutions; import edu.uci.ics.texera.dao.jooq.generated.tables.Project; import edu.uci.ics.texera.dao.jooq.generated.tables.ProjectUserAccess; import edu.uci.ics.texera.dao.jooq.generated.tables.PublicProject; @@ -27,7 +27,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.records.DatasetUserAccessRecord; import edu.uci.ics.texera.dao.jooq.generated.tables.records.DatasetVersionRecord; import edu.uci.ics.texera.dao.jooq.generated.tables.records.OperatorExecutionsRecord; -import edu.uci.ics.texera.dao.jooq.generated.tables.records.OperatorRuntimeStatisticsRecord; +import edu.uci.ics.texera.dao.jooq.generated.tables.records.OperatorPortExecutionsRecord; import edu.uci.ics.texera.dao.jooq.generated.tables.records.ProjectRecord; import edu.uci.ics.texera.dao.jooq.generated.tables.records.ProjectUserAccessRecord; import edu.uci.ics.texera.dao.jooq.generated.tables.records.PublicProjectRecord; @@ -64,9 +64,8 @@ public class Keys { public static final UniqueKey DATASET_PKEY = Internal.createUniqueKey(Dataset.DATASET, DSL.name("dataset_pkey"), new TableField[] { Dataset.DATASET.DID }, true); public static final UniqueKey DATASET_USER_ACCESS_PKEY = Internal.createUniqueKey(DatasetUserAccess.DATASET_USER_ACCESS, DSL.name("dataset_user_access_pkey"), new TableField[] { DatasetUserAccess.DATASET_USER_ACCESS.DID, DatasetUserAccess.DATASET_USER_ACCESS.UID }, true); public static final UniqueKey DATASET_VERSION_PKEY = Internal.createUniqueKey(DatasetVersion.DATASET_VERSION, DSL.name("dataset_version_pkey"), new TableField[] { DatasetVersion.DATASET_VERSION.DVID }, true); - public static final UniqueKey OPERATOR_EXECUTIONS_PKEY = Internal.createUniqueKey(OperatorExecutions.OPERATOR_EXECUTIONS, DSL.name("operator_executions_pkey"), new TableField[] { OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID }, true); public static final UniqueKey OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID_KEY = Internal.createUniqueKey(OperatorExecutions.OPERATOR_EXECUTIONS, DSL.name("operator_executions_workflow_execution_id_operator_id_key"), new TableField[] { OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID, OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_ID }, true); - public static final UniqueKey OPERATOR_RUNTIME_STATISTICS_PKEY = Internal.createUniqueKey(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS, DSL.name("operator_runtime_statistics_pkey"), new TableField[] { OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OPERATOR_EXECUTION_ID, OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.TIME }, true); + public static final UniqueKey OPERATOR_PORT_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID__KEY = Internal.createUniqueKey(OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS, DSL.name("operator_port_executions_workflow_execution_id_operator_id__key"), new TableField[] { OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.WORKFLOW_EXECUTION_ID, OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.OPERATOR_ID, OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.PORT_ID }, true); public static final UniqueKey PROJECT_OWNER_ID_NAME_KEY = Internal.createUniqueKey(Project.PROJECT, DSL.name("project_owner_id_name_key"), new TableField[] { Project.PROJECT.OWNER_ID, Project.PROJECT.NAME }, true); public static final UniqueKey PROJECT_PKEY = Internal.createUniqueKey(Project.PROJECT, DSL.name("project_pkey"), new TableField[] { Project.PROJECT.PID }, true); public static final UniqueKey PROJECT_USER_ACCESS_PKEY = Internal.createUniqueKey(ProjectUserAccess.PROJECT_USER_ACCESS, DSL.name("project_user_access_pkey"), new TableField[] { ProjectUserAccess.PROJECT_USER_ACCESS.UID, ProjectUserAccess.PROJECT_USER_ACCESS.PID }, true); @@ -94,7 +93,7 @@ public class Keys { public static final ForeignKey DATASET_USER_ACCESS__DATASET_USER_ACCESS_UID_FKEY = Internal.createForeignKey(DatasetUserAccess.DATASET_USER_ACCESS, DSL.name("dataset_user_access_uid_fkey"), new TableField[] { DatasetUserAccess.DATASET_USER_ACCESS.UID }, Keys.USER_PKEY, new TableField[] { User.USER.UID }, true); public static final ForeignKey DATASET_VERSION__DATASET_VERSION_DID_FKEY = Internal.createForeignKey(DatasetVersion.DATASET_VERSION, DSL.name("dataset_version_did_fkey"), new TableField[] { DatasetVersion.DATASET_VERSION.DID }, Keys.DATASET_PKEY, new TableField[] { Dataset.DATASET.DID }, true); public static final ForeignKey OPERATOR_EXECUTIONS__OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_FKEY = Internal.createForeignKey(OperatorExecutions.OPERATOR_EXECUTIONS, DSL.name("operator_executions_workflow_execution_id_fkey"), new TableField[] { OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID }, Keys.WORKFLOW_EXECUTIONS_PKEY, new TableField[] { WorkflowExecutions.WORKFLOW_EXECUTIONS.EID }, true); - public static final ForeignKey OPERATOR_RUNTIME_STATISTICS__OPERATOR_RUNTIME_STATISTICS_OPERATOR_EXECUTION_ID_FKEY = Internal.createForeignKey(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS, DSL.name("operator_runtime_statistics_operator_execution_id_fkey"), new TableField[] { OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OPERATOR_EXECUTION_ID }, Keys.OPERATOR_EXECUTIONS_PKEY, new TableField[] { OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID }, true); + public static final ForeignKey OPERATOR_PORT_EXECUTIONS__OPERATOR_PORT_EXECUTIONS_WORKFLOW_EXECUTION_ID_FKEY = Internal.createForeignKey(OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS, DSL.name("operator_port_executions_workflow_execution_id_fkey"), new TableField[] { OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.WORKFLOW_EXECUTION_ID }, Keys.WORKFLOW_EXECUTIONS_PKEY, new TableField[] { WorkflowExecutions.WORKFLOW_EXECUTIONS.EID }, true); public static final ForeignKey PROJECT__PROJECT_OWNER_ID_FKEY = Internal.createForeignKey(Project.PROJECT, DSL.name("project_owner_id_fkey"), new TableField[] { Project.PROJECT.OWNER_ID }, Keys.USER_PKEY, new TableField[] { User.USER.UID }, true); public static final ForeignKey PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_PID_FKEY = Internal.createForeignKey(ProjectUserAccess.PROJECT_USER_ACCESS, DSL.name("project_user_access_pid_fkey"), new TableField[] { ProjectUserAccess.PROJECT_USER_ACCESS.PID }, Keys.PROJECT_PKEY, new TableField[] { Project.PROJECT.PID }, true); public static final ForeignKey PROJECT_USER_ACCESS__PROJECT_USER_ACCESS_UID_FKEY = Internal.createForeignKey(ProjectUserAccess.PROJECT_USER_ACCESS, DSL.name("project_user_access_uid_fkey"), new TableField[] { ProjectUserAccess.PROJECT_USER_ACCESS.UID }, Keys.USER_PKEY, new TableField[] { User.USER.UID }, true); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Tables.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Tables.java index 90ed93143f3..870c93e9b1f 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Tables.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Tables.java @@ -8,7 +8,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetUserAccess; import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetVersion; import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorExecutions; -import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorRuntimeStatistics; +import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorPortExecutions; import edu.uci.ics.texera.dao.jooq.generated.tables.Project; import edu.uci.ics.texera.dao.jooq.generated.tables.ProjectUserAccess; import edu.uci.ics.texera.dao.jooq.generated.tables.PublicProject; @@ -53,9 +53,9 @@ public class Tables { public static final OperatorExecutions OPERATOR_EXECUTIONS = OperatorExecutions.OPERATOR_EXECUTIONS; /** - * The table texera_db.operator_runtime_statistics. + * The table texera_db.operator_port_executions. */ - public static final OperatorRuntimeStatistics OPERATOR_RUNTIME_STATISTICS = OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS; + public static final OperatorPortExecutions OPERATOR_PORT_EXECUTIONS = OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS; /** * The table texera_db.project. diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/TexeraDb.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/TexeraDb.java index 966f0aec4d3..6b7c9b4d752 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/TexeraDb.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/TexeraDb.java @@ -8,7 +8,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetUserAccess; import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetVersion; import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorExecutions; -import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorRuntimeStatistics; +import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorPortExecutions; import edu.uci.ics.texera.dao.jooq.generated.tables.Project; import edu.uci.ics.texera.dao.jooq.generated.tables.ProjectUserAccess; import edu.uci.ics.texera.dao.jooq.generated.tables.PublicProject; @@ -67,9 +67,9 @@ public class TexeraDb extends SchemaImpl { public final OperatorExecutions OPERATOR_EXECUTIONS = OperatorExecutions.OPERATOR_EXECUTIONS; /** - * The table texera_db.operator_runtime_statistics. + * The table texera_db.operator_port_executions. */ - public final OperatorRuntimeStatistics OPERATOR_RUNTIME_STATISTICS = OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS; + public final OperatorPortExecutions OPERATOR_PORT_EXECUTIONS = OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS; /** * The table texera_db.project. @@ -166,7 +166,7 @@ public final List> getTables() { DatasetUserAccess.DATASET_USER_ACCESS, DatasetVersion.DATASET_VERSION, OperatorExecutions.OPERATOR_EXECUTIONS, - OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS, + OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS, Project.PROJECT, ProjectUserAccess.PROJECT_USER_ACCESS, PublicProject.PUBLIC_PROJECT, diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorExecutions.java index 978bd142d92..c0355d6dc63 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorExecutions.java @@ -13,7 +13,6 @@ import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Identity; import org.jooq.Name; import org.jooq.Record; import org.jooq.Row3; @@ -48,12 +47,6 @@ public Class getRecordType() { return OperatorExecutionsRecord.class; } - /** - * The column - * texera_db.operator_executions.operator_execution_id. - */ - public final TableField OPERATOR_EXECUTION_ID = createField(DSL.name("operator_execution_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); - /** * The column * texera_db.operator_executions.workflow_execution_id. @@ -65,6 +58,12 @@ public Class getRecordType() { */ public final TableField OPERATOR_ID = createField(DSL.name("operator_id"), SQLDataType.VARCHAR(100).nullable(false), this, ""); + /** + * The column + * texera_db.operator_executions.console_messages_uri. + */ + public final TableField CONSOLE_MESSAGES_URI = createField(DSL.name("console_messages_uri"), SQLDataType.CLOB, this, ""); + private OperatorExecutions(Name alias, Table aliased) { this(alias, aliased, null); } @@ -105,16 +104,6 @@ public Schema getSchema() { return aliased() ? null : TexeraDb.TEXERA_DB; } - @Override - public Identity getIdentity() { - return (Identity) super.getIdentity(); - } - - @Override - public UniqueKey getPrimaryKey() { - return Keys.OPERATOR_EXECUTIONS_PKEY; - } - @Override public List> getUniqueKeys() { return Arrays.asList(Keys.OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID_KEY); @@ -169,7 +158,7 @@ public OperatorExecutions rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row3 fieldsRow() { + public Row3 fieldsRow() { return (Row3) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorPortExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorPortExecutions.java new file mode 100644 index 00000000000..e5cb009fa56 --- /dev/null +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorPortExecutions.java @@ -0,0 +1,168 @@ +/* + * This file is generated by jOOQ. + */ +package edu.uci.ics.texera.dao.jooq.generated.tables; + + +import edu.uci.ics.texera.dao.jooq.generated.Keys; +import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; +import edu.uci.ics.texera.dao.jooq.generated.tables.records.OperatorPortExecutionsRecord; + +import java.util.Arrays; +import java.util.List; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Row4; +import org.jooq.Schema; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class OperatorPortExecutions extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of texera_db.operator_port_executions + */ + public static final OperatorPortExecutions OPERATOR_PORT_EXECUTIONS = new OperatorPortExecutions(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return OperatorPortExecutionsRecord.class; + } + + /** + * The column + * texera_db.operator_port_executions.workflow_execution_id. + */ + public final TableField WORKFLOW_EXECUTION_ID = createField(DSL.name("workflow_execution_id"), SQLDataType.INTEGER.nullable(false), this, ""); + + /** + * The column texera_db.operator_port_executions.operator_id. + */ + public final TableField OPERATOR_ID = createField(DSL.name("operator_id"), SQLDataType.VARCHAR(100).nullable(false), this, ""); + + /** + * The column texera_db.operator_port_executions.port_id. + */ + public final TableField PORT_ID = createField(DSL.name("port_id"), SQLDataType.INTEGER.nullable(false), this, ""); + + /** + * The column texera_db.operator_port_executions.result_uri. + */ + public final TableField RESULT_URI = createField(DSL.name("result_uri"), SQLDataType.CLOB, this, ""); + + private OperatorPortExecutions(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private OperatorPortExecutions(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased texera_db.operator_port_executions table + * reference + */ + public OperatorPortExecutions(String alias) { + this(DSL.name(alias), OPERATOR_PORT_EXECUTIONS); + } + + /** + * Create an aliased texera_db.operator_port_executions table + * reference + */ + public OperatorPortExecutions(Name alias) { + this(alias, OPERATOR_PORT_EXECUTIONS); + } + + /** + * Create a texera_db.operator_port_executions table reference + */ + public OperatorPortExecutions() { + this(DSL.name("operator_port_executions"), null); + } + + public OperatorPortExecutions(Table child, ForeignKey key) { + super(child, key, OPERATOR_PORT_EXECUTIONS); + } + + @Override + public Schema getSchema() { + return aliased() ? null : TexeraDb.TEXERA_DB; + } + + @Override + public List> getUniqueKeys() { + return Arrays.asList(Keys.OPERATOR_PORT_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID__KEY); + } + + @Override + public List> getReferences() { + return Arrays.asList(Keys.OPERATOR_PORT_EXECUTIONS__OPERATOR_PORT_EXECUTIONS_WORKFLOW_EXECUTION_ID_FKEY); + } + + private transient WorkflowExecutions _workflowExecutions; + + /** + * Get the implicit join path to the + * texera_db.workflow_executions table. + */ + public WorkflowExecutions workflowExecutions() { + if (_workflowExecutions == null) + _workflowExecutions = new WorkflowExecutions(this, Keys.OPERATOR_PORT_EXECUTIONS__OPERATOR_PORT_EXECUTIONS_WORKFLOW_EXECUTION_ID_FKEY); + + return _workflowExecutions; + } + + @Override + public OperatorPortExecutions as(String alias) { + return new OperatorPortExecutions(DSL.name(alias), this); + } + + @Override + public OperatorPortExecutions as(Name alias) { + return new OperatorPortExecutions(alias, this); + } + + /** + * Rename this table + */ + @Override + public OperatorPortExecutions rename(String name) { + return new OperatorPortExecutions(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public OperatorPortExecutions rename(Name name) { + return new OperatorPortExecutions(name, null); + } + + // ------------------------------------------------------------------------- + // Row4 type methods + // ------------------------------------------------------------------------- + + @Override + public Row4 fieldsRow() { + return (Row4) super.fieldsRow(); + } +} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorRuntimeStatistics.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorRuntimeStatistics.java deleted file mode 100644 index cc30db2aa23..00000000000 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorRuntimeStatistics.java +++ /dev/null @@ -1,201 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package edu.uci.ics.texera.dao.jooq.generated.tables; - - -import edu.uci.ics.texera.dao.jooq.generated.Keys; -import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; -import edu.uci.ics.texera.dao.jooq.generated.tables.records.OperatorRuntimeStatisticsRecord; - -import java.time.LocalDateTime; -import java.util.Arrays; -import java.util.List; - -import org.jooq.Field; -import org.jooq.ForeignKey; -import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row9; -import org.jooq.Schema; -import org.jooq.Table; -import org.jooq.TableField; -import org.jooq.TableOptions; -import org.jooq.UniqueKey; -import org.jooq.impl.DSL; -import org.jooq.impl.SQLDataType; -import org.jooq.impl.TableImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class OperatorRuntimeStatistics extends TableImpl { - - private static final long serialVersionUID = 1L; - - /** - * The reference instance of - * texera_db.operator_runtime_statistics - */ - public static final OperatorRuntimeStatistics OPERATOR_RUNTIME_STATISTICS = new OperatorRuntimeStatistics(); - - /** - * The class holding records for this type - */ - @Override - public Class getRecordType() { - return OperatorRuntimeStatisticsRecord.class; - } - - /** - * The column - * texera_db.operator_runtime_statistics.operator_execution_id. - */ - public final TableField OPERATOR_EXECUTION_ID = createField(DSL.name("operator_execution_id"), SQLDataType.BIGINT.nullable(false), this, ""); - - /** - * The column texera_db.operator_runtime_statistics.time. - */ - public final TableField TIME = createField(DSL.name("time"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP(6)", SQLDataType.LOCALDATETIME)), this, ""); - - /** - * The column - * texera_db.operator_runtime_statistics.input_tuple_cnt. - */ - public final TableField INPUT_TUPLE_CNT = createField(DSL.name("input_tuple_cnt"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field("0", SQLDataType.BIGINT)), this, ""); - - /** - * The column - * texera_db.operator_runtime_statistics.output_tuple_cnt. - */ - public final TableField OUTPUT_TUPLE_CNT = createField(DSL.name("output_tuple_cnt"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field("0", SQLDataType.BIGINT)), this, ""); - - /** - * The column texera_db.operator_runtime_statistics.status. - */ - public final TableField STATUS = createField(DSL.name("status"), SQLDataType.SMALLINT.nullable(false).defaultValue(DSL.field("1", SQLDataType.SMALLINT)), this, ""); - - /** - * The column - * texera_db.operator_runtime_statistics.data_processing_time. - */ - public final TableField DATA_PROCESSING_TIME = createField(DSL.name("data_processing_time"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field("0", SQLDataType.BIGINT)), this, ""); - - /** - * The column - * texera_db.operator_runtime_statistics.control_processing_time. - */ - public final TableField CONTROL_PROCESSING_TIME = createField(DSL.name("control_processing_time"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field("0", SQLDataType.BIGINT)), this, ""); - - /** - * The column texera_db.operator_runtime_statistics.idle_time. - */ - public final TableField IDLE_TIME = createField(DSL.name("idle_time"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field("0", SQLDataType.BIGINT)), this, ""); - - /** - * The column - * texera_db.operator_runtime_statistics.num_workers. - */ - public final TableField NUM_WORKERS = createField(DSL.name("num_workers"), SQLDataType.INTEGER.nullable(false).defaultValue(DSL.field("0", SQLDataType.INTEGER)), this, ""); - - private OperatorRuntimeStatistics(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private OperatorRuntimeStatistics(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); - } - - /** - * Create an aliased texera_db.operator_runtime_statistics - * table reference - */ - public OperatorRuntimeStatistics(String alias) { - this(DSL.name(alias), OPERATOR_RUNTIME_STATISTICS); - } - - /** - * Create an aliased texera_db.operator_runtime_statistics - * table reference - */ - public OperatorRuntimeStatistics(Name alias) { - this(alias, OPERATOR_RUNTIME_STATISTICS); - } - - /** - * Create a texera_db.operator_runtime_statistics table - * reference - */ - public OperatorRuntimeStatistics() { - this(DSL.name("operator_runtime_statistics"), null); - } - - public OperatorRuntimeStatistics(Table child, ForeignKey key) { - super(child, key, OPERATOR_RUNTIME_STATISTICS); - } - - @Override - public Schema getSchema() { - return aliased() ? null : TexeraDb.TEXERA_DB; - } - - @Override - public UniqueKey getPrimaryKey() { - return Keys.OPERATOR_RUNTIME_STATISTICS_PKEY; - } - - @Override - public List> getReferences() { - return Arrays.asList(Keys.OPERATOR_RUNTIME_STATISTICS__OPERATOR_RUNTIME_STATISTICS_OPERATOR_EXECUTION_ID_FKEY); - } - - private transient OperatorExecutions _operatorExecutions; - - /** - * Get the implicit join path to the - * texera_db.operator_executions table. - */ - public OperatorExecutions operatorExecutions() { - if (_operatorExecutions == null) - _operatorExecutions = new OperatorExecutions(this, Keys.OPERATOR_RUNTIME_STATISTICS__OPERATOR_RUNTIME_STATISTICS_OPERATOR_EXECUTION_ID_FKEY); - - return _operatorExecutions; - } - - @Override - public OperatorRuntimeStatistics as(String alias) { - return new OperatorRuntimeStatistics(DSL.name(alias), this); - } - - @Override - public OperatorRuntimeStatistics as(Name alias) { - return new OperatorRuntimeStatistics(alias, this); - } - - /** - * Rename this table - */ - @Override - public OperatorRuntimeStatistics rename(String name) { - return new OperatorRuntimeStatistics(DSL.name(name), null); - } - - /** - * Rename this table - */ - @Override - public OperatorRuntimeStatistics rename(Name name) { - return new OperatorRuntimeStatistics(name, null); - } - - // ------------------------------------------------------------------------- - // Row9 type methods - // ------------------------------------------------------------------------- - - @Override - public Row9 fieldsRow() { - return (Row9) super.fieldsRow(); - } -} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserActivity.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserActivity.java index 27570b20a9f..a90325a26f3 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserActivity.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserActivity.java @@ -72,7 +72,7 @@ public Class getRecordType() { /** * The column texera_db.user_activity.activity_time. */ - public final TableField ACTIVITY_TIME = createField(DSL.name("activity_time"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.LOCALDATETIME)), this, ""); + public final TableField ACTIVITY_TIME = createField(DSL.name("activity_time"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.LOCALDATETIME)), this, ""); private UserActivity(Name alias, Table aliased) { this(alias, aliased, null); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowExecutions.java index c136a188f1c..ed0a3ae5021 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowExecutions.java @@ -17,7 +17,7 @@ import org.jooq.Identity; import org.jooq.Name; import org.jooq.Record; -import org.jooq.Row11; +import org.jooq.Row12; import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; @@ -105,6 +105,11 @@ public Class getRecordType() { */ public final TableField LOG_LOCATION = createField(DSL.name("log_location"), SQLDataType.CLOB, this, ""); + /** + * The column texera_db.workflow_executions.runtime_stats_uri. + */ + public final TableField RUNTIME_STATS_URI = createField(DSL.name("runtime_stats_uri"), SQLDataType.CLOB, this, ""); + private WorkflowExecutions(Name alias, Table aliased) { this(alias, aliased, null); } @@ -211,11 +216,11 @@ public WorkflowExecutions rename(Name name) { } // ------------------------------------------------------------------------- - // Row11 type methods + // Row12 type methods // ------------------------------------------------------------------------- @Override - public Row11 fieldsRow() { - return (Row11) super.fieldsRow(); + public Row12 fieldsRow() { + return (Row12) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorExecutionsDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorExecutionsDao.java deleted file mode 100644 index 49241af23e6..00000000000 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorExecutionsDao.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package edu.uci.ics.texera.dao.jooq.generated.tables.daos; - - -import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorExecutions; -import edu.uci.ics.texera.dao.jooq.generated.tables.records.OperatorExecutionsRecord; - -import java.util.List; -import java.util.Optional; - -import org.jooq.Configuration; -import org.jooq.impl.DAOImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class OperatorExecutionsDao extends DAOImpl { - - /** - * Create a new OperatorExecutionsDao without any configuration - */ - public OperatorExecutionsDao() { - super(OperatorExecutions.OPERATOR_EXECUTIONS, edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorExecutions.class); - } - - /** - * Create a new OperatorExecutionsDao with an attached configuration - */ - public OperatorExecutionsDao(Configuration configuration) { - super(OperatorExecutions.OPERATOR_EXECUTIONS, edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorExecutions.class, configuration); - } - - @Override - public Long getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorExecutions object) { - return object.getOperatorExecutionId(); - } - - /** - * Fetch records that have operator_execution_id BETWEEN - * lowerInclusive AND upperInclusive - */ - public List fetchRangeOfOperatorExecutionId(Long lowerInclusive, Long upperInclusive) { - return fetchRange(OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have operator_execution_id IN (values) - */ - public List fetchByOperatorExecutionId(Long... values) { - return fetch(OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID, values); - } - - /** - * Fetch a unique record that has operator_execution_id = value - */ - public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorExecutions fetchOneByOperatorExecutionId(Long value) { - return fetchOne(OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID, value); - } - - /** - * Fetch a unique record that has operator_execution_id = value - */ - public Optional fetchOptionalByOperatorExecutionId(Long value) { - return fetchOptional(OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID, value); - } - - /** - * Fetch records that have workflow_execution_id BETWEEN - * lowerInclusive AND upperInclusive - */ - public List fetchRangeOfWorkflowExecutionId(Integer lowerInclusive, Integer upperInclusive) { - return fetchRange(OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have workflow_execution_id IN (values) - */ - public List fetchByWorkflowExecutionId(Integer... values) { - return fetch(OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID, values); - } - - /** - * Fetch records that have operator_id BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfOperatorId(String lowerInclusive, String upperInclusive) { - return fetchRange(OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_ID, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have operator_id IN (values) - */ - public List fetchByOperatorId(String... values) { - return fetch(OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_ID, values); - } -} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorRuntimeStatisticsDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorRuntimeStatisticsDao.java deleted file mode 100644 index 967d0686442..00000000000 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorRuntimeStatisticsDao.java +++ /dev/null @@ -1,177 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package edu.uci.ics.texera.dao.jooq.generated.tables.daos; - - -import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorRuntimeStatistics; -import edu.uci.ics.texera.dao.jooq.generated.tables.records.OperatorRuntimeStatisticsRecord; - -import java.time.LocalDateTime; -import java.util.List; - -import org.jooq.Configuration; -import org.jooq.Record2; -import org.jooq.impl.DAOImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class OperatorRuntimeStatisticsDao extends DAOImpl> { - - /** - * Create a new OperatorRuntimeStatisticsDao without any configuration - */ - public OperatorRuntimeStatisticsDao() { - super(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS, edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorRuntimeStatistics.class); - } - - /** - * Create a new OperatorRuntimeStatisticsDao with an attached configuration - */ - public OperatorRuntimeStatisticsDao(Configuration configuration) { - super(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS, edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorRuntimeStatistics.class, configuration); - } - - @Override - public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorRuntimeStatistics object) { - return compositeKeyRecord(object.getOperatorExecutionId(), object.getTime()); - } - - /** - * Fetch records that have operator_execution_id BETWEEN - * lowerInclusive AND upperInclusive - */ - public List fetchRangeOfOperatorExecutionId(Long lowerInclusive, Long upperInclusive) { - return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OPERATOR_EXECUTION_ID, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have operator_execution_id IN (values) - */ - public List fetchByOperatorExecutionId(Long... values) { - return fetch(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OPERATOR_EXECUTION_ID, values); - } - - /** - * Fetch records that have time BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { - return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.TIME, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have time IN (values) - */ - public List fetchByTime(LocalDateTime... values) { - return fetch(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.TIME, values); - } - - /** - * Fetch records that have input_tuple_cnt BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfInputTupleCnt(Long lowerInclusive, Long upperInclusive) { - return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.INPUT_TUPLE_CNT, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have input_tuple_cnt IN (values) - */ - public List fetchByInputTupleCnt(Long... values) { - return fetch(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.INPUT_TUPLE_CNT, values); - } - - /** - * Fetch records that have output_tuple_cnt BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfOutputTupleCnt(Long lowerInclusive, Long upperInclusive) { - return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OUTPUT_TUPLE_CNT, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have output_tuple_cnt IN (values) - */ - public List fetchByOutputTupleCnt(Long... values) { - return fetch(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OUTPUT_TUPLE_CNT, values); - } - - /** - * Fetch records that have status BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfStatus(Short lowerInclusive, Short upperInclusive) { - return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.STATUS, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have status IN (values) - */ - public List fetchByStatus(Short... values) { - return fetch(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.STATUS, values); - } - - /** - * Fetch records that have data_processing_time BETWEEN lowerInclusive - * AND upperInclusive - */ - public List fetchRangeOfDataProcessingTime(Long lowerInclusive, Long upperInclusive) { - return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.DATA_PROCESSING_TIME, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have data_processing_time IN (values) - */ - public List fetchByDataProcessingTime(Long... values) { - return fetch(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.DATA_PROCESSING_TIME, values); - } - - /** - * Fetch records that have control_processing_time BETWEEN - * lowerInclusive AND upperInclusive - */ - public List fetchRangeOfControlProcessingTime(Long lowerInclusive, Long upperInclusive) { - return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.CONTROL_PROCESSING_TIME, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have control_processing_time IN (values) - */ - public List fetchByControlProcessingTime(Long... values) { - return fetch(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.CONTROL_PROCESSING_TIME, values); - } - - /** - * Fetch records that have idle_time BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfIdleTime(Long lowerInclusive, Long upperInclusive) { - return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.IDLE_TIME, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have idle_time IN (values) - */ - public List fetchByIdleTime(Long... values) { - return fetch(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.IDLE_TIME, values); - } - - /** - * Fetch records that have num_workers BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfNumWorkers(Integer lowerInclusive, Integer upperInclusive) { - return fetchRange(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.NUM_WORKERS, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have num_workers IN (values) - */ - public List fetchByNumWorkers(Integer... values) { - return fetch(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.NUM_WORKERS, values); - } -} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowExecutionsDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowExecutionsDao.java index 04f96708c44..5716ba3197f 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowExecutionsDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowExecutionsDao.java @@ -218,4 +218,19 @@ public List fetchByLogLocation(String... values) { return fetch(WorkflowExecutions.WORKFLOW_EXECUTIONS.LOG_LOCATION, values); } + + /** + * Fetch records that have runtime_stats_uri BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfRuntimeStatsUri(String lowerInclusive, String upperInclusive) { + return fetchRange(WorkflowExecutions.WORKFLOW_EXECUTIONS.RUNTIME_STATS_URI, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have runtime_stats_uri IN (values) + */ + public List fetchByRuntimeStatsUri(String... values) { + return fetch(WorkflowExecutions.WORKFLOW_EXECUTIONS.RUNTIME_STATS_URI, values); + } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorExecutions.java index 614a994fecd..f84ea8b6510 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorExecutions.java @@ -13,18 +13,6 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public interface IOperatorExecutions extends Serializable { - /** - * Setter for - * texera_db.operator_executions.operator_execution_id. - */ - public void setOperatorExecutionId(Long value); - - /** - * Getter for - * texera_db.operator_executions.operator_execution_id. - */ - public Long getOperatorExecutionId(); - /** * Setter for * texera_db.operator_executions.workflow_execution_id. @@ -47,6 +35,18 @@ public interface IOperatorExecutions extends Serializable { */ public String getOperatorId(); + /** + * Setter for + * texera_db.operator_executions.console_messages_uri. + */ + public void setConsoleMessagesUri(String value); + + /** + * Getter for + * texera_db.operator_executions.console_messages_uri. + */ + public String getConsoleMessagesUri(); + // ------------------------------------------------------------------------- // FROM and INTO // ------------------------------------------------------------------------- diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorPortExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorPortExecutions.java new file mode 100644 index 00000000000..07fb0f4b212 --- /dev/null +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorPortExecutions.java @@ -0,0 +1,73 @@ +/* + * This file is generated by jOOQ. + */ +package edu.uci.ics.texera.dao.jooq.generated.tables.interfaces; + + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public interface IOperatorPortExecutions extends Serializable { + + /** + * Setter for + * texera_db.operator_port_executions.workflow_execution_id. + */ + public void setWorkflowExecutionId(Integer value); + + /** + * Getter for + * texera_db.operator_port_executions.workflow_execution_id. + */ + public Integer getWorkflowExecutionId(); + + /** + * Setter for texera_db.operator_port_executions.operator_id. + */ + public void setOperatorId(String value); + + /** + * Getter for texera_db.operator_port_executions.operator_id. + */ + public String getOperatorId(); + + /** + * Setter for texera_db.operator_port_executions.port_id. + */ + public void setPortId(Integer value); + + /** + * Getter for texera_db.operator_port_executions.port_id. + */ + public Integer getPortId(); + + /** + * Setter for texera_db.operator_port_executions.result_uri. + */ + public void setResultUri(String value); + + /** + * Getter for texera_db.operator_port_executions.result_uri. + */ + public String getResultUri(); + + // ------------------------------------------------------------------------- + // FROM and INTO + // ------------------------------------------------------------------------- + + /** + * Load data from another generated Record/POJO implementing the common + * interface IOperatorPortExecutions + */ + public void from(IOperatorPortExecutions from); + + /** + * Copy data into another generated Record/POJO implementing the common + * interface IOperatorPortExecutions + */ + public E into(E into); +} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorRuntimeStatistics.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorRuntimeStatistics.java deleted file mode 100644 index 3eec878d53a..00000000000 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IOperatorRuntimeStatistics.java +++ /dev/null @@ -1,134 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package edu.uci.ics.texera.dao.jooq.generated.tables.interfaces; - - -import java.io.Serializable; -import java.time.LocalDateTime; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public interface IOperatorRuntimeStatistics extends Serializable { - - /** - * Setter for - * texera_db.operator_runtime_statistics.operator_execution_id. - */ - public void setOperatorExecutionId(Long value); - - /** - * Getter for - * texera_db.operator_runtime_statistics.operator_execution_id. - */ - public Long getOperatorExecutionId(); - - /** - * Setter for texera_db.operator_runtime_statistics.time. - */ - public void setTime(LocalDateTime value); - - /** - * Getter for texera_db.operator_runtime_statistics.time. - */ - public LocalDateTime getTime(); - - /** - * Setter for - * texera_db.operator_runtime_statistics.input_tuple_cnt. - */ - public void setInputTupleCnt(Long value); - - /** - * Getter for - * texera_db.operator_runtime_statistics.input_tuple_cnt. - */ - public Long getInputTupleCnt(); - - /** - * Setter for - * texera_db.operator_runtime_statistics.output_tuple_cnt. - */ - public void setOutputTupleCnt(Long value); - - /** - * Getter for - * texera_db.operator_runtime_statistics.output_tuple_cnt. - */ - public Long getOutputTupleCnt(); - - /** - * Setter for texera_db.operator_runtime_statistics.status. - */ - public void setStatus(Short value); - - /** - * Getter for texera_db.operator_runtime_statistics.status. - */ - public Short getStatus(); - - /** - * Setter for - * texera_db.operator_runtime_statistics.data_processing_time. - */ - public void setDataProcessingTime(Long value); - - /** - * Getter for - * texera_db.operator_runtime_statistics.data_processing_time. - */ - public Long getDataProcessingTime(); - - /** - * Setter for - * texera_db.operator_runtime_statistics.control_processing_time. - */ - public void setControlProcessingTime(Long value); - - /** - * Getter for - * texera_db.operator_runtime_statistics.control_processing_time. - */ - public Long getControlProcessingTime(); - - /** - * Setter for texera_db.operator_runtime_statistics.idle_time. - */ - public void setIdleTime(Long value); - - /** - * Getter for texera_db.operator_runtime_statistics.idle_time. - */ - public Long getIdleTime(); - - /** - * Setter for - * texera_db.operator_runtime_statistics.num_workers. - */ - public void setNumWorkers(Integer value); - - /** - * Getter for - * texera_db.operator_runtime_statistics.num_workers. - */ - public Integer getNumWorkers(); - - // ------------------------------------------------------------------------- - // FROM and INTO - // ------------------------------------------------------------------------- - - /** - * Load data from another generated Record/POJO implementing the common - * interface IOperatorRuntimeStatistics - */ - public void from(IOperatorRuntimeStatistics from); - - /** - * Copy data into another generated Record/POJO implementing the common - * interface IOperatorRuntimeStatistics - */ - public E into(E into); -} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowExecutions.java index df70b51895b..105f22e2474 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowExecutions.java @@ -126,6 +126,16 @@ public interface IWorkflowExecutions extends Serializable { */ public String getLogLocation(); + /** + * Setter for texera_db.workflow_executions.runtime_stats_uri. + */ + public void setRuntimeStatsUri(String value); + + /** + * Getter for texera_db.workflow_executions.runtime_stats_uri. + */ + public String getRuntimeStatsUri(); + // ------------------------------------------------------------------------- // FROM and INTO // ------------------------------------------------------------------------- diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorExecutions.java index ffda0909942..bbe6bc194d0 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorExecutions.java @@ -15,44 +15,26 @@ public class OperatorExecutions implements IOperatorExecutions { private static final long serialVersionUID = 1L; - private Long operatorExecutionId; private Integer workflowExecutionId; private String operatorId; + private String consoleMessagesUri; public OperatorExecutions() {} public OperatorExecutions(IOperatorExecutions value) { - this.operatorExecutionId = value.getOperatorExecutionId(); this.workflowExecutionId = value.getWorkflowExecutionId(); this.operatorId = value.getOperatorId(); + this.consoleMessagesUri = value.getConsoleMessagesUri(); } public OperatorExecutions( - Long operatorExecutionId, Integer workflowExecutionId, - String operatorId + String operatorId, + String consoleMessagesUri ) { - this.operatorExecutionId = operatorExecutionId; this.workflowExecutionId = workflowExecutionId; this.operatorId = operatorId; - } - - /** - * Getter for - * texera_db.operator_executions.operator_execution_id. - */ - @Override - public Long getOperatorExecutionId() { - return this.operatorExecutionId; - } - - /** - * Setter for - * texera_db.operator_executions.operator_execution_id. - */ - @Override - public void setOperatorExecutionId(Long operatorExecutionId) { - this.operatorExecutionId = operatorExecutionId; + this.consoleMessagesUri = consoleMessagesUri; } /** @@ -89,13 +71,31 @@ public void setOperatorId(String operatorId) { this.operatorId = operatorId; } + /** + * Getter for + * texera_db.operator_executions.console_messages_uri. + */ + @Override + public String getConsoleMessagesUri() { + return this.consoleMessagesUri; + } + + /** + * Setter for + * texera_db.operator_executions.console_messages_uri. + */ + @Override + public void setConsoleMessagesUri(String consoleMessagesUri) { + this.consoleMessagesUri = consoleMessagesUri; + } + @Override public String toString() { StringBuilder sb = new StringBuilder("OperatorExecutions ("); - sb.append(operatorExecutionId); - sb.append(", ").append(workflowExecutionId); + sb.append(workflowExecutionId); sb.append(", ").append(operatorId); + sb.append(", ").append(consoleMessagesUri); sb.append(")"); return sb.toString(); @@ -107,9 +107,9 @@ public String toString() { @Override public void from(IOperatorExecutions from) { - setOperatorExecutionId(from.getOperatorExecutionId()); setWorkflowExecutionId(from.getWorkflowExecutionId()); setOperatorId(from.getOperatorId()); + setConsoleMessagesUri(from.getConsoleMessagesUri()); } @Override diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorPortExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorPortExecutions.java new file mode 100644 index 00000000000..4c88d214847 --- /dev/null +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorPortExecutions.java @@ -0,0 +1,140 @@ +/* + * This file is generated by jOOQ. + */ +package edu.uci.ics.texera.dao.jooq.generated.tables.pojos; + + +import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IOperatorPortExecutions; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class OperatorPortExecutions implements IOperatorPortExecutions { + + private static final long serialVersionUID = 1L; + + private Integer workflowExecutionId; + private String operatorId; + private Integer portId; + private String resultUri; + + public OperatorPortExecutions() {} + + public OperatorPortExecutions(IOperatorPortExecutions value) { + this.workflowExecutionId = value.getWorkflowExecutionId(); + this.operatorId = value.getOperatorId(); + this.portId = value.getPortId(); + this.resultUri = value.getResultUri(); + } + + public OperatorPortExecutions( + Integer workflowExecutionId, + String operatorId, + Integer portId, + String resultUri + ) { + this.workflowExecutionId = workflowExecutionId; + this.operatorId = operatorId; + this.portId = portId; + this.resultUri = resultUri; + } + + /** + * Getter for + * texera_db.operator_port_executions.workflow_execution_id. + */ + @Override + public Integer getWorkflowExecutionId() { + return this.workflowExecutionId; + } + + /** + * Setter for + * texera_db.operator_port_executions.workflow_execution_id. + */ + @Override + public void setWorkflowExecutionId(Integer workflowExecutionId) { + this.workflowExecutionId = workflowExecutionId; + } + + /** + * Getter for texera_db.operator_port_executions.operator_id. + */ + @Override + public String getOperatorId() { + return this.operatorId; + } + + /** + * Setter for texera_db.operator_port_executions.operator_id. + */ + @Override + public void setOperatorId(String operatorId) { + this.operatorId = operatorId; + } + + /** + * Getter for texera_db.operator_port_executions.port_id. + */ + @Override + public Integer getPortId() { + return this.portId; + } + + /** + * Setter for texera_db.operator_port_executions.port_id. + */ + @Override + public void setPortId(Integer portId) { + this.portId = portId; + } + + /** + * Getter for texera_db.operator_port_executions.result_uri. + */ + @Override + public String getResultUri() { + return this.resultUri; + } + + /** + * Setter for texera_db.operator_port_executions.result_uri. + */ + @Override + public void setResultUri(String resultUri) { + this.resultUri = resultUri; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("OperatorPortExecutions ("); + + sb.append(workflowExecutionId); + sb.append(", ").append(operatorId); + sb.append(", ").append(portId); + sb.append(", ").append(resultUri); + + sb.append(")"); + return sb.toString(); + } + + // ------------------------------------------------------------------------- + // FROM and INTO + // ------------------------------------------------------------------------- + + @Override + public void from(IOperatorPortExecutions from) { + setWorkflowExecutionId(from.getWorkflowExecutionId()); + setOperatorId(from.getOperatorId()); + setPortId(from.getPortId()); + setResultUri(from.getResultUri()); + } + + @Override + public E into(E into) { + into.from(this); + return into; + } +} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorRuntimeStatistics.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorRuntimeStatistics.java deleted file mode 100644 index 1fd925eafb3..00000000000 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/OperatorRuntimeStatistics.java +++ /dev/null @@ -1,262 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package edu.uci.ics.texera.dao.jooq.generated.tables.pojos; - - -import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IOperatorRuntimeStatistics; - -import java.time.LocalDateTime; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class OperatorRuntimeStatistics implements IOperatorRuntimeStatistics { - - private static final long serialVersionUID = 1L; - - private Long operatorExecutionId; - private LocalDateTime time; - private Long inputTupleCnt; - private Long outputTupleCnt; - private Short status; - private Long dataProcessingTime; - private Long controlProcessingTime; - private Long idleTime; - private Integer numWorkers; - - public OperatorRuntimeStatistics() {} - - public OperatorRuntimeStatistics(IOperatorRuntimeStatistics value) { - this.operatorExecutionId = value.getOperatorExecutionId(); - this.time = value.getTime(); - this.inputTupleCnt = value.getInputTupleCnt(); - this.outputTupleCnt = value.getOutputTupleCnt(); - this.status = value.getStatus(); - this.dataProcessingTime = value.getDataProcessingTime(); - this.controlProcessingTime = value.getControlProcessingTime(); - this.idleTime = value.getIdleTime(); - this.numWorkers = value.getNumWorkers(); - } - - public OperatorRuntimeStatistics( - Long operatorExecutionId, - LocalDateTime time, - Long inputTupleCnt, - Long outputTupleCnt, - Short status, - Long dataProcessingTime, - Long controlProcessingTime, - Long idleTime, - Integer numWorkers - ) { - this.operatorExecutionId = operatorExecutionId; - this.time = time; - this.inputTupleCnt = inputTupleCnt; - this.outputTupleCnt = outputTupleCnt; - this.status = status; - this.dataProcessingTime = dataProcessingTime; - this.controlProcessingTime = controlProcessingTime; - this.idleTime = idleTime; - this.numWorkers = numWorkers; - } - - /** - * Getter for - * texera_db.operator_runtime_statistics.operator_execution_id. - */ - @Override - public Long getOperatorExecutionId() { - return this.operatorExecutionId; - } - - /** - * Setter for - * texera_db.operator_runtime_statistics.operator_execution_id. - */ - @Override - public void setOperatorExecutionId(Long operatorExecutionId) { - this.operatorExecutionId = operatorExecutionId; - } - - /** - * Getter for texera_db.operator_runtime_statistics.time. - */ - @Override - public LocalDateTime getTime() { - return this.time; - } - - /** - * Setter for texera_db.operator_runtime_statistics.time. - */ - @Override - public void setTime(LocalDateTime time) { - this.time = time; - } - - /** - * Getter for - * texera_db.operator_runtime_statistics.input_tuple_cnt. - */ - @Override - public Long getInputTupleCnt() { - return this.inputTupleCnt; - } - - /** - * Setter for - * texera_db.operator_runtime_statistics.input_tuple_cnt. - */ - @Override - public void setInputTupleCnt(Long inputTupleCnt) { - this.inputTupleCnt = inputTupleCnt; - } - - /** - * Getter for - * texera_db.operator_runtime_statistics.output_tuple_cnt. - */ - @Override - public Long getOutputTupleCnt() { - return this.outputTupleCnt; - } - - /** - * Setter for - * texera_db.operator_runtime_statistics.output_tuple_cnt. - */ - @Override - public void setOutputTupleCnt(Long outputTupleCnt) { - this.outputTupleCnt = outputTupleCnt; - } - - /** - * Getter for texera_db.operator_runtime_statistics.status. - */ - @Override - public Short getStatus() { - return this.status; - } - - /** - * Setter for texera_db.operator_runtime_statistics.status. - */ - @Override - public void setStatus(Short status) { - this.status = status; - } - - /** - * Getter for - * texera_db.operator_runtime_statistics.data_processing_time. - */ - @Override - public Long getDataProcessingTime() { - return this.dataProcessingTime; - } - - /** - * Setter for - * texera_db.operator_runtime_statistics.data_processing_time. - */ - @Override - public void setDataProcessingTime(Long dataProcessingTime) { - this.dataProcessingTime = dataProcessingTime; - } - - /** - * Getter for - * texera_db.operator_runtime_statistics.control_processing_time. - */ - @Override - public Long getControlProcessingTime() { - return this.controlProcessingTime; - } - - /** - * Setter for - * texera_db.operator_runtime_statistics.control_processing_time. - */ - @Override - public void setControlProcessingTime(Long controlProcessingTime) { - this.controlProcessingTime = controlProcessingTime; - } - - /** - * Getter for texera_db.operator_runtime_statistics.idle_time. - */ - @Override - public Long getIdleTime() { - return this.idleTime; - } - - /** - * Setter for texera_db.operator_runtime_statistics.idle_time. - */ - @Override - public void setIdleTime(Long idleTime) { - this.idleTime = idleTime; - } - - /** - * Getter for - * texera_db.operator_runtime_statistics.num_workers. - */ - @Override - public Integer getNumWorkers() { - return this.numWorkers; - } - - /** - * Setter for - * texera_db.operator_runtime_statistics.num_workers. - */ - @Override - public void setNumWorkers(Integer numWorkers) { - this.numWorkers = numWorkers; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("OperatorRuntimeStatistics ("); - - sb.append(operatorExecutionId); - sb.append(", ").append(time); - sb.append(", ").append(inputTupleCnt); - sb.append(", ").append(outputTupleCnt); - sb.append(", ").append(status); - sb.append(", ").append(dataProcessingTime); - sb.append(", ").append(controlProcessingTime); - sb.append(", ").append(idleTime); - sb.append(", ").append(numWorkers); - - sb.append(")"); - return sb.toString(); - } - - // ------------------------------------------------------------------------- - // FROM and INTO - // ------------------------------------------------------------------------- - - @Override - public void from(IOperatorRuntimeStatistics from) { - setOperatorExecutionId(from.getOperatorExecutionId()); - setTime(from.getTime()); - setInputTupleCnt(from.getInputTupleCnt()); - setOutputTupleCnt(from.getOutputTupleCnt()); - setStatus(from.getStatus()); - setDataProcessingTime(from.getDataProcessingTime()); - setControlProcessingTime(from.getControlProcessingTime()); - setIdleTime(from.getIdleTime()); - setNumWorkers(from.getNumWorkers()); - } - - @Override - public E into(E into) { - into.from(this); - return into; - } -} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowExecutions.java index 225c6093a7c..487b22dcbfb 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowExecutions.java @@ -28,6 +28,7 @@ public class WorkflowExecutions implements IWorkflowExecutions { private String name; private String environmentVersion; private String logLocation; + private String runtimeStatsUri; public WorkflowExecutions() {} @@ -43,6 +44,7 @@ public WorkflowExecutions(IWorkflowExecutions value) { this.name = value.getName(); this.environmentVersion = value.getEnvironmentVersion(); this.logLocation = value.getLogLocation(); + this.runtimeStatsUri = value.getRuntimeStatsUri(); } public WorkflowExecutions( @@ -56,7 +58,8 @@ public WorkflowExecutions( Boolean bookmarked, String name, String environmentVersion, - String logLocation + String logLocation, + String runtimeStatsUri ) { this.eid = eid; this.vid = vid; @@ -69,6 +72,7 @@ public WorkflowExecutions( this.name = name; this.environmentVersion = environmentVersion; this.logLocation = logLocation; + this.runtimeStatsUri = runtimeStatsUri; } /** @@ -249,6 +253,22 @@ public void setLogLocation(String logLocation) { this.logLocation = logLocation; } + /** + * Getter for texera_db.workflow_executions.runtime_stats_uri. + */ + @Override + public String getRuntimeStatsUri() { + return this.runtimeStatsUri; + } + + /** + * Setter for texera_db.workflow_executions.runtime_stats_uri. + */ + @Override + public void setRuntimeStatsUri(String runtimeStatsUri) { + this.runtimeStatsUri = runtimeStatsUri; + } + @Override public String toString() { StringBuilder sb = new StringBuilder("WorkflowExecutions ("); @@ -264,6 +284,7 @@ public String toString() { sb.append(", ").append(name); sb.append(", ").append(environmentVersion); sb.append(", ").append(logLocation); + sb.append(", ").append(runtimeStatsUri); sb.append(")"); return sb.toString(); @@ -286,6 +307,7 @@ public void from(IWorkflowExecutions from) { setName(from.getName()); setEnvironmentVersion(from.getEnvironmentVersion()); setLogLocation(from.getLogLocation()); + setRuntimeStatsUri(from.getRuntimeStatsUri()); } @Override diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorExecutionsRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorExecutionsRecord.java index da2ac3efa2e..2f8bcfec16d 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorExecutionsRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorExecutionsRecord.java @@ -8,160 +8,150 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IOperatorExecutions; import org.jooq.Field; -import org.jooq.Record1; import org.jooq.Record3; import org.jooq.Row3; -import org.jooq.impl.UpdatableRecordImpl; +import org.jooq.impl.TableRecordImpl; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class OperatorExecutionsRecord extends UpdatableRecordImpl implements Record3, IOperatorExecutions { +public class OperatorExecutionsRecord extends TableRecordImpl implements Record3, IOperatorExecutions { private static final long serialVersionUID = 1L; /** * Setter for - * texera_db.operator_executions.operator_execution_id. + * texera_db.operator_executions.workflow_execution_id. */ @Override - public void setOperatorExecutionId(Long value) { + public void setWorkflowExecutionId(Integer value) { set(0, value); } /** * Getter for - * texera_db.operator_executions.operator_execution_id. + * texera_db.operator_executions.workflow_execution_id. */ @Override - public Long getOperatorExecutionId() { - return (Long) get(0); + public Integer getWorkflowExecutionId() { + return (Integer) get(0); } /** - * Setter for - * texera_db.operator_executions.workflow_execution_id. + * Setter for texera_db.operator_executions.operator_id. */ @Override - public void setWorkflowExecutionId(Integer value) { + public void setOperatorId(String value) { set(1, value); } /** - * Getter for - * texera_db.operator_executions.workflow_execution_id. + * Getter for texera_db.operator_executions.operator_id. */ @Override - public Integer getWorkflowExecutionId() { - return (Integer) get(1); + public String getOperatorId() { + return (String) get(1); } /** - * Setter for texera_db.operator_executions.operator_id. + * Setter for + * texera_db.operator_executions.console_messages_uri. */ @Override - public void setOperatorId(String value) { + public void setConsoleMessagesUri(String value) { set(2, value); } /** - * Getter for texera_db.operator_executions.operator_id. + * Getter for + * texera_db.operator_executions.console_messages_uri. */ @Override - public String getOperatorId() { + public String getConsoleMessagesUri() { return (String) get(2); } - // ------------------------------------------------------------------------- - // Primary key information - // ------------------------------------------------------------------------- - - @Override - public Record1 key() { - return (Record1) super.key(); - } - // ------------------------------------------------------------------------- // Record3 type implementation // ------------------------------------------------------------------------- @Override - public Row3 fieldsRow() { + public Row3 fieldsRow() { return (Row3) super.fieldsRow(); } @Override - public Row3 valuesRow() { + public Row3 valuesRow() { return (Row3) super.valuesRow(); } @Override - public Field field1() { - return OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_EXECUTION_ID; - } - - @Override - public Field field2() { + public Field field1() { return OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID; } @Override - public Field field3() { + public Field field2() { return OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_ID; } @Override - public Long component1() { - return getOperatorExecutionId(); + public Field field3() { + return OperatorExecutions.OPERATOR_EXECUTIONS.CONSOLE_MESSAGES_URI; } @Override - public Integer component2() { + public Integer component1() { return getWorkflowExecutionId(); } @Override - public String component3() { + public String component2() { return getOperatorId(); } @Override - public Long value1() { - return getOperatorExecutionId(); + public String component3() { + return getConsoleMessagesUri(); } @Override - public Integer value2() { + public Integer value1() { return getWorkflowExecutionId(); } @Override - public String value3() { + public String value2() { return getOperatorId(); } @Override - public OperatorExecutionsRecord value1(Long value) { - setOperatorExecutionId(value); - return this; + public String value3() { + return getConsoleMessagesUri(); } @Override - public OperatorExecutionsRecord value2(Integer value) { + public OperatorExecutionsRecord value1(Integer value) { setWorkflowExecutionId(value); return this; } @Override - public OperatorExecutionsRecord value3(String value) { + public OperatorExecutionsRecord value2(String value) { setOperatorId(value); return this; } @Override - public OperatorExecutionsRecord values(Long value1, Integer value2, String value3) { + public OperatorExecutionsRecord value3(String value) { + setConsoleMessagesUri(value); + return this; + } + + @Override + public OperatorExecutionsRecord values(Integer value1, String value2, String value3) { value1(value1); value2(value2); value3(value3); @@ -174,9 +164,9 @@ public OperatorExecutionsRecord values(Long value1, Integer value2, String value @Override public void from(IOperatorExecutions from) { - setOperatorExecutionId(from.getOperatorExecutionId()); setWorkflowExecutionId(from.getWorkflowExecutionId()); setOperatorId(from.getOperatorId()); + setConsoleMessagesUri(from.getConsoleMessagesUri()); } @Override @@ -199,12 +189,12 @@ public OperatorExecutionsRecord() { /** * Create a detached, initialised OperatorExecutionsRecord */ - public OperatorExecutionsRecord(Long operatorExecutionId, Integer workflowExecutionId, String operatorId) { + public OperatorExecutionsRecord(Integer workflowExecutionId, String operatorId, String consoleMessagesUri) { super(OperatorExecutions.OPERATOR_EXECUTIONS); - setOperatorExecutionId(operatorExecutionId); setWorkflowExecutionId(workflowExecutionId); setOperatorId(operatorId); + setConsoleMessagesUri(consoleMessagesUri); } /** @@ -214,9 +204,9 @@ public OperatorExecutionsRecord(edu.uci.ics.texera.dao.jooq.generated.tables.poj super(OperatorExecutions.OPERATOR_EXECUTIONS); if (value != null) { - setOperatorExecutionId(value.getOperatorExecutionId()); setWorkflowExecutionId(value.getWorkflowExecutionId()); setOperatorId(value.getOperatorId()); + setConsoleMessagesUri(value.getConsoleMessagesUri()); } } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorPortExecutionsRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorPortExecutionsRecord.java new file mode 100644 index 00000000000..f9ac120f486 --- /dev/null +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorPortExecutionsRecord.java @@ -0,0 +1,251 @@ +/* + * This file is generated by jOOQ. + */ +package edu.uci.ics.texera.dao.jooq.generated.tables.records; + + +import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorPortExecutions; +import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IOperatorPortExecutions; + +import org.jooq.Field; +import org.jooq.Record4; +import org.jooq.Row4; +import org.jooq.impl.TableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class OperatorPortExecutionsRecord extends TableRecordImpl implements Record4, IOperatorPortExecutions { + + private static final long serialVersionUID = 1L; + + /** + * Setter for + * texera_db.operator_port_executions.workflow_execution_id. + */ + @Override + public void setWorkflowExecutionId(Integer value) { + set(0, value); + } + + /** + * Getter for + * texera_db.operator_port_executions.workflow_execution_id. + */ + @Override + public Integer getWorkflowExecutionId() { + return (Integer) get(0); + } + + /** + * Setter for texera_db.operator_port_executions.operator_id. + */ + @Override + public void setOperatorId(String value) { + set(1, value); + } + + /** + * Getter for texera_db.operator_port_executions.operator_id. + */ + @Override + public String getOperatorId() { + return (String) get(1); + } + + /** + * Setter for texera_db.operator_port_executions.port_id. + */ + @Override + public void setPortId(Integer value) { + set(2, value); + } + + /** + * Getter for texera_db.operator_port_executions.port_id. + */ + @Override + public Integer getPortId() { + return (Integer) get(2); + } + + /** + * Setter for texera_db.operator_port_executions.result_uri. + */ + @Override + public void setResultUri(String value) { + set(3, value); + } + + /** + * Getter for texera_db.operator_port_executions.result_uri. + */ + @Override + public String getResultUri() { + return (String) get(3); + } + + // ------------------------------------------------------------------------- + // Record4 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row4 fieldsRow() { + return (Row4) super.fieldsRow(); + } + + @Override + public Row4 valuesRow() { + return (Row4) super.valuesRow(); + } + + @Override + public Field field1() { + return OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.WORKFLOW_EXECUTION_ID; + } + + @Override + public Field field2() { + return OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.OPERATOR_ID; + } + + @Override + public Field field3() { + return OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.PORT_ID; + } + + @Override + public Field field4() { + return OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.RESULT_URI; + } + + @Override + public Integer component1() { + return getWorkflowExecutionId(); + } + + @Override + public String component2() { + return getOperatorId(); + } + + @Override + public Integer component3() { + return getPortId(); + } + + @Override + public String component4() { + return getResultUri(); + } + + @Override + public Integer value1() { + return getWorkflowExecutionId(); + } + + @Override + public String value2() { + return getOperatorId(); + } + + @Override + public Integer value3() { + return getPortId(); + } + + @Override + public String value4() { + return getResultUri(); + } + + @Override + public OperatorPortExecutionsRecord value1(Integer value) { + setWorkflowExecutionId(value); + return this; + } + + @Override + public OperatorPortExecutionsRecord value2(String value) { + setOperatorId(value); + return this; + } + + @Override + public OperatorPortExecutionsRecord value3(Integer value) { + setPortId(value); + return this; + } + + @Override + public OperatorPortExecutionsRecord value4(String value) { + setResultUri(value); + return this; + } + + @Override + public OperatorPortExecutionsRecord values(Integer value1, String value2, Integer value3, String value4) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + return this; + } + + // ------------------------------------------------------------------------- + // FROM and INTO + // ------------------------------------------------------------------------- + + @Override + public void from(IOperatorPortExecutions from) { + setWorkflowExecutionId(from.getWorkflowExecutionId()); + setOperatorId(from.getOperatorId()); + setPortId(from.getPortId()); + setResultUri(from.getResultUri()); + } + + @Override + public E into(E into) { + into.from(this); + return into; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached OperatorPortExecutionsRecord + */ + public OperatorPortExecutionsRecord() { + super(OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS); + } + + /** + * Create a detached, initialised OperatorPortExecutionsRecord + */ + public OperatorPortExecutionsRecord(Integer workflowExecutionId, String operatorId, Integer portId, String resultUri) { + super(OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS); + + setWorkflowExecutionId(workflowExecutionId); + setOperatorId(operatorId); + setPortId(portId); + setResultUri(resultUri); + } + + /** + * Create a detached, initialised OperatorPortExecutionsRecord + */ + public OperatorPortExecutionsRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorPortExecutions value) { + super(OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS); + + if (value != null) { + setWorkflowExecutionId(value.getWorkflowExecutionId()); + setOperatorId(value.getOperatorId()); + setPortId(value.getPortId()); + setResultUri(value.getResultUri()); + } + } +} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorRuntimeStatisticsRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorRuntimeStatisticsRecord.java deleted file mode 100644 index 029852728d9..00000000000 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorRuntimeStatisticsRecord.java +++ /dev/null @@ -1,478 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package edu.uci.ics.texera.dao.jooq.generated.tables.records; - - -import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorRuntimeStatistics; -import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IOperatorRuntimeStatistics; - -import java.time.LocalDateTime; - -import org.jooq.Field; -import org.jooq.Record2; -import org.jooq.Record9; -import org.jooq.Row9; -import org.jooq.impl.UpdatableRecordImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class OperatorRuntimeStatisticsRecord extends UpdatableRecordImpl implements Record9, IOperatorRuntimeStatistics { - - private static final long serialVersionUID = 1L; - - /** - * Setter for - * texera_db.operator_runtime_statistics.operator_execution_id. - */ - @Override - public void setOperatorExecutionId(Long value) { - set(0, value); - } - - /** - * Getter for - * texera_db.operator_runtime_statistics.operator_execution_id. - */ - @Override - public Long getOperatorExecutionId() { - return (Long) get(0); - } - - /** - * Setter for texera_db.operator_runtime_statistics.time. - */ - @Override - public void setTime(LocalDateTime value) { - set(1, value); - } - - /** - * Getter for texera_db.operator_runtime_statistics.time. - */ - @Override - public LocalDateTime getTime() { - return (LocalDateTime) get(1); - } - - /** - * Setter for - * texera_db.operator_runtime_statistics.input_tuple_cnt. - */ - @Override - public void setInputTupleCnt(Long value) { - set(2, value); - } - - /** - * Getter for - * texera_db.operator_runtime_statistics.input_tuple_cnt. - */ - @Override - public Long getInputTupleCnt() { - return (Long) get(2); - } - - /** - * Setter for - * texera_db.operator_runtime_statistics.output_tuple_cnt. - */ - @Override - public void setOutputTupleCnt(Long value) { - set(3, value); - } - - /** - * Getter for - * texera_db.operator_runtime_statistics.output_tuple_cnt. - */ - @Override - public Long getOutputTupleCnt() { - return (Long) get(3); - } - - /** - * Setter for texera_db.operator_runtime_statistics.status. - */ - @Override - public void setStatus(Short value) { - set(4, value); - } - - /** - * Getter for texera_db.operator_runtime_statistics.status. - */ - @Override - public Short getStatus() { - return (Short) get(4); - } - - /** - * Setter for - * texera_db.operator_runtime_statistics.data_processing_time. - */ - @Override - public void setDataProcessingTime(Long value) { - set(5, value); - } - - /** - * Getter for - * texera_db.operator_runtime_statistics.data_processing_time. - */ - @Override - public Long getDataProcessingTime() { - return (Long) get(5); - } - - /** - * Setter for - * texera_db.operator_runtime_statistics.control_processing_time. - */ - @Override - public void setControlProcessingTime(Long value) { - set(6, value); - } - - /** - * Getter for - * texera_db.operator_runtime_statistics.control_processing_time. - */ - @Override - public Long getControlProcessingTime() { - return (Long) get(6); - } - - /** - * Setter for texera_db.operator_runtime_statistics.idle_time. - */ - @Override - public void setIdleTime(Long value) { - set(7, value); - } - - /** - * Getter for texera_db.operator_runtime_statistics.idle_time. - */ - @Override - public Long getIdleTime() { - return (Long) get(7); - } - - /** - * Setter for - * texera_db.operator_runtime_statistics.num_workers. - */ - @Override - public void setNumWorkers(Integer value) { - set(8, value); - } - - /** - * Getter for - * texera_db.operator_runtime_statistics.num_workers. - */ - @Override - public Integer getNumWorkers() { - return (Integer) get(8); - } - - // ------------------------------------------------------------------------- - // Primary key information - // ------------------------------------------------------------------------- - - @Override - public Record2 key() { - return (Record2) super.key(); - } - - // ------------------------------------------------------------------------- - // Record9 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row9 fieldsRow() { - return (Row9) super.fieldsRow(); - } - - @Override - public Row9 valuesRow() { - return (Row9) super.valuesRow(); - } - - @Override - public Field field1() { - return OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OPERATOR_EXECUTION_ID; - } - - @Override - public Field field2() { - return OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.TIME; - } - - @Override - public Field field3() { - return OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.INPUT_TUPLE_CNT; - } - - @Override - public Field field4() { - return OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.OUTPUT_TUPLE_CNT; - } - - @Override - public Field field5() { - return OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.STATUS; - } - - @Override - public Field field6() { - return OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.DATA_PROCESSING_TIME; - } - - @Override - public Field field7() { - return OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.CONTROL_PROCESSING_TIME; - } - - @Override - public Field field8() { - return OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.IDLE_TIME; - } - - @Override - public Field field9() { - return OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS.NUM_WORKERS; - } - - @Override - public Long component1() { - return getOperatorExecutionId(); - } - - @Override - public LocalDateTime component2() { - return getTime(); - } - - @Override - public Long component3() { - return getInputTupleCnt(); - } - - @Override - public Long component4() { - return getOutputTupleCnt(); - } - - @Override - public Short component5() { - return getStatus(); - } - - @Override - public Long component6() { - return getDataProcessingTime(); - } - - @Override - public Long component7() { - return getControlProcessingTime(); - } - - @Override - public Long component8() { - return getIdleTime(); - } - - @Override - public Integer component9() { - return getNumWorkers(); - } - - @Override - public Long value1() { - return getOperatorExecutionId(); - } - - @Override - public LocalDateTime value2() { - return getTime(); - } - - @Override - public Long value3() { - return getInputTupleCnt(); - } - - @Override - public Long value4() { - return getOutputTupleCnt(); - } - - @Override - public Short value5() { - return getStatus(); - } - - @Override - public Long value6() { - return getDataProcessingTime(); - } - - @Override - public Long value7() { - return getControlProcessingTime(); - } - - @Override - public Long value8() { - return getIdleTime(); - } - - @Override - public Integer value9() { - return getNumWorkers(); - } - - @Override - public OperatorRuntimeStatisticsRecord value1(Long value) { - setOperatorExecutionId(value); - return this; - } - - @Override - public OperatorRuntimeStatisticsRecord value2(LocalDateTime value) { - setTime(value); - return this; - } - - @Override - public OperatorRuntimeStatisticsRecord value3(Long value) { - setInputTupleCnt(value); - return this; - } - - @Override - public OperatorRuntimeStatisticsRecord value4(Long value) { - setOutputTupleCnt(value); - return this; - } - - @Override - public OperatorRuntimeStatisticsRecord value5(Short value) { - setStatus(value); - return this; - } - - @Override - public OperatorRuntimeStatisticsRecord value6(Long value) { - setDataProcessingTime(value); - return this; - } - - @Override - public OperatorRuntimeStatisticsRecord value7(Long value) { - setControlProcessingTime(value); - return this; - } - - @Override - public OperatorRuntimeStatisticsRecord value8(Long value) { - setIdleTime(value); - return this; - } - - @Override - public OperatorRuntimeStatisticsRecord value9(Integer value) { - setNumWorkers(value); - return this; - } - - @Override - public OperatorRuntimeStatisticsRecord values(Long value1, LocalDateTime value2, Long value3, Long value4, Short value5, Long value6, Long value7, Long value8, Integer value9) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - value6(value6); - value7(value7); - value8(value8); - value9(value9); - return this; - } - - // ------------------------------------------------------------------------- - // FROM and INTO - // ------------------------------------------------------------------------- - - @Override - public void from(IOperatorRuntimeStatistics from) { - setOperatorExecutionId(from.getOperatorExecutionId()); - setTime(from.getTime()); - setInputTupleCnt(from.getInputTupleCnt()); - setOutputTupleCnt(from.getOutputTupleCnt()); - setStatus(from.getStatus()); - setDataProcessingTime(from.getDataProcessingTime()); - setControlProcessingTime(from.getControlProcessingTime()); - setIdleTime(from.getIdleTime()); - setNumWorkers(from.getNumWorkers()); - } - - @Override - public E into(E into) { - into.from(this); - return into; - } - - // ------------------------------------------------------------------------- - // Constructors - // ------------------------------------------------------------------------- - - /** - * Create a detached OperatorRuntimeStatisticsRecord - */ - public OperatorRuntimeStatisticsRecord() { - super(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS); - } - - /** - * Create a detached, initialised OperatorRuntimeStatisticsRecord - */ - public OperatorRuntimeStatisticsRecord(Long operatorExecutionId, LocalDateTime time, Long inputTupleCnt, Long outputTupleCnt, Short status, Long dataProcessingTime, Long controlProcessingTime, Long idleTime, Integer numWorkers) { - super(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS); - - setOperatorExecutionId(operatorExecutionId); - setTime(time); - setInputTupleCnt(inputTupleCnt); - setOutputTupleCnt(outputTupleCnt); - setStatus(status); - setDataProcessingTime(dataProcessingTime); - setControlProcessingTime(controlProcessingTime); - setIdleTime(idleTime); - setNumWorkers(numWorkers); - } - - /** - * Create a detached, initialised OperatorRuntimeStatisticsRecord - */ - public OperatorRuntimeStatisticsRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorRuntimeStatistics value) { - super(OperatorRuntimeStatistics.OPERATOR_RUNTIME_STATISTICS); - - if (value != null) { - setOperatorExecutionId(value.getOperatorExecutionId()); - setTime(value.getTime()); - setInputTupleCnt(value.getInputTupleCnt()); - setOutputTupleCnt(value.getOutputTupleCnt()); - setStatus(value.getStatus()); - setDataProcessingTime(value.getDataProcessingTime()); - setControlProcessingTime(value.getControlProcessingTime()); - setIdleTime(value.getIdleTime()); - setNumWorkers(value.getNumWorkers()); - } - } -} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowExecutionsRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowExecutionsRecord.java index e8e9d430074..98537e17dd6 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowExecutionsRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowExecutionsRecord.java @@ -11,8 +11,8 @@ import org.jooq.Field; import org.jooq.Record1; -import org.jooq.Record11; -import org.jooq.Row11; +import org.jooq.Record12; +import org.jooq.Row12; import org.jooq.impl.UpdatableRecordImpl; @@ -20,7 +20,7 @@ * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowExecutionsRecord extends UpdatableRecordImpl implements Record11, IWorkflowExecutions { +public class WorkflowExecutionsRecord extends UpdatableRecordImpl implements Record12, IWorkflowExecutions { private static final long serialVersionUID = 1L; @@ -202,6 +202,22 @@ public String getLogLocation() { return (String) get(10); } + /** + * Setter for texera_db.workflow_executions.runtime_stats_uri. + */ + @Override + public void setRuntimeStatsUri(String value) { + set(11, value); + } + + /** + * Getter for texera_db.workflow_executions.runtime_stats_uri. + */ + @Override + public String getRuntimeStatsUri() { + return (String) get(11); + } + // ------------------------------------------------------------------------- // Primary key information // ------------------------------------------------------------------------- @@ -212,17 +228,17 @@ public Record1 key() { } // ------------------------------------------------------------------------- - // Record11 type implementation + // Record12 type implementation // ------------------------------------------------------------------------- @Override - public Row11 fieldsRow() { - return (Row11) super.fieldsRow(); + public Row12 fieldsRow() { + return (Row12) super.fieldsRow(); } @Override - public Row11 valuesRow() { - return (Row11) super.valuesRow(); + public Row12 valuesRow() { + return (Row12) super.valuesRow(); } @Override @@ -280,6 +296,11 @@ public Field field11() { return WorkflowExecutions.WORKFLOW_EXECUTIONS.LOG_LOCATION; } + @Override + public Field field12() { + return WorkflowExecutions.WORKFLOW_EXECUTIONS.RUNTIME_STATS_URI; + } + @Override public Integer component1() { return getEid(); @@ -335,6 +356,11 @@ public String component11() { return getLogLocation(); } + @Override + public String component12() { + return getRuntimeStatsUri(); + } + @Override public Integer value1() { return getEid(); @@ -390,6 +416,11 @@ public String value11() { return getLogLocation(); } + @Override + public String value12() { + return getRuntimeStatsUri(); + } + @Override public WorkflowExecutionsRecord value1(Integer value) { setEid(value); @@ -457,7 +488,13 @@ public WorkflowExecutionsRecord value11(String value) { } @Override - public WorkflowExecutionsRecord values(Integer value1, Integer value2, Integer value3, Short value4, String value5, LocalDateTime value6, LocalDateTime value7, Boolean value8, String value9, String value10, String value11) { + public WorkflowExecutionsRecord value12(String value) { + setRuntimeStatsUri(value); + return this; + } + + @Override + public WorkflowExecutionsRecord values(Integer value1, Integer value2, Integer value3, Short value4, String value5, LocalDateTime value6, LocalDateTime value7, Boolean value8, String value9, String value10, String value11, String value12) { value1(value1); value2(value2); value3(value3); @@ -469,6 +506,7 @@ public WorkflowExecutionsRecord values(Integer value1, Integer value2, Integer v value9(value9); value10(value10); value11(value11); + value12(value12); return this; } @@ -489,6 +527,7 @@ public void from(IWorkflowExecutions from) { setName(from.getName()); setEnvironmentVersion(from.getEnvironmentVersion()); setLogLocation(from.getLogLocation()); + setRuntimeStatsUri(from.getRuntimeStatsUri()); } @Override @@ -511,7 +550,7 @@ public WorkflowExecutionsRecord() { /** * Create a detached, initialised WorkflowExecutionsRecord */ - public WorkflowExecutionsRecord(Integer eid, Integer vid, Integer uid, Short status, String result, LocalDateTime startingTime, LocalDateTime lastUpdateTime, Boolean bookmarked, String name, String environmentVersion, String logLocation) { + public WorkflowExecutionsRecord(Integer eid, Integer vid, Integer uid, Short status, String result, LocalDateTime startingTime, LocalDateTime lastUpdateTime, Boolean bookmarked, String name, String environmentVersion, String logLocation, String runtimeStatsUri) { super(WorkflowExecutions.WORKFLOW_EXECUTIONS); setEid(eid); @@ -525,6 +564,7 @@ public WorkflowExecutionsRecord(Integer eid, Integer vid, Integer uid, Short sta setName(name); setEnvironmentVersion(environmentVersion); setLogLocation(logLocation); + setRuntimeStatsUri(runtimeStatsUri); } /** @@ -545,6 +585,7 @@ public WorkflowExecutionsRecord(edu.uci.ics.texera.dao.jooq.generated.tables.poj setName(value.getName()); setEnvironmentVersion(value.getEnvironmentVersion()); setLogLocation(value.getLogLocation()); + setRuntimeStatsUri(value.getRuntimeStatsUri()); } } } From d0d92d4fdaea501534c715b255145868e4c4d8ca Mon Sep 17 00:00:00 2001 From: Shengquan Ni <13672781+shengquan-ni@users.noreply.github.com> Date: Tue, 11 Feb 2025 23:38:42 -0800 Subject: [PATCH 10/20] reformat --- .../scheduling/CostEstimator.scala | 8 ++- .../workflow/WorkflowExecutionsResource.scala | 50 ++++++++++--------- .../web/service/ExecutionStatsService.scala | 1 - .../service/WorkflowExecutionService.scala | 1 - 4 files changed, 30 insertions(+), 30 deletions(-) diff --git a/core/amber/src/main/scala/edu/uci/ics/amber/engine/architecture/scheduling/CostEstimator.scala b/core/amber/src/main/scala/edu/uci/ics/amber/engine/architecture/scheduling/CostEstimator.scala index 27bab3c49c3..ab89f9db2c3 100644 --- a/core/amber/src/main/scala/edu/uci/ics/amber/engine/architecture/scheduling/CostEstimator.scala +++ b/core/amber/src/main/scala/edu/uci/ics/amber/engine/architecture/scheduling/CostEstimator.scala @@ -2,18 +2,16 @@ package edu.uci.ics.amber.engine.architecture.scheduling import edu.uci.ics.amber.core.storage.{DocumentFactory, StorageConfig} import edu.uci.ics.amber.core.tuple.Tuple +import edu.uci.ics.amber.core.virtualidentity.ActorVirtualIdentity import edu.uci.ics.amber.core.workflow.WorkflowContext import edu.uci.ics.amber.engine.architecture.scheduling.DefaultCostEstimator.DEFAULT_OPERATOR_COST import edu.uci.ics.amber.engine.common.AmberLogging -import edu.uci.ics.amber.core.virtualidentity.ActorVirtualIdentity import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.dao.SqlServer.withTransaction -import edu.uci.ics.texera.dao.jooq.generated.Tables.{OPERATOR_EXECUTIONS, OPERATOR_RUNTIME_STATISTICS, WORKFLOW_EXECUTIONS, WORKFLOW_VERSION} -import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowExecutionsResource.WorkflowRuntimeStatistics -import org.jooq.types.UInteger +import edu.uci.ics.texera.dao.jooq.generated.Tables.{WORKFLOW_EXECUTIONS, WORKFLOW_VERSION} -import scala.util.{Failure, Success, Try} import java.net.URI +import scala.util.{Failure, Success, Try} /** * A cost estimator should estimate a cost of running a region under the given resource constraints as units. diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala index 560eda345b7..530a5aacada 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala @@ -3,20 +3,24 @@ package edu.uci.ics.texera.web.resource.dashboard.user.workflow import edu.uci.ics.amber.core.storage.result.ExecutionResourcesMapping import edu.uci.ics.amber.core.storage.{DocumentFactory, StorageConfig, VFSURIFactory} import edu.uci.ics.amber.core.tuple.Tuple -import edu.uci.ics.amber.engine.architecture.logreplay.{ReplayDestination, ReplayLogRecord} -import edu.uci.ics.amber.engine.common.storage.SequentialRecordStorage -import edu.uci.ics.amber.core.virtualidentity.{ChannelMarkerIdentity, ExecutionIdentity, OperatorIdentity, WorkflowIdentity} +import edu.uci.ics.amber.core.virtualidentity.{ + ChannelMarkerIdentity, + ExecutionIdentity, + OperatorIdentity, + WorkflowIdentity +} import edu.uci.ics.amber.core.workflow.PortIdentity +import edu.uci.ics.amber.engine.architecture.logreplay.{ReplayDestination, ReplayLogRecord} import edu.uci.ics.amber.engine.common.AmberConfig +import edu.uci.ics.amber.engine.common.storage.SequentialRecordStorage import edu.uci.ics.texera.dao.SqlServer -import edu.uci.ics.texera.web.auth.SessionUser -import edu.uci.ics.texera.dao.jooq.generated.Tables.{OPERATOR_EXECUTIONS, OPERATOR_PORT_EXECUTIONS, USER, WORKFLOW_EXECUTIONS, WORKFLOW_VERSION} +import edu.uci.ics.texera.dao.jooq.generated.Tables._ import edu.uci.ics.texera.dao.jooq.generated.tables.daos.WorkflowExecutionsDao import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowExecutions +import edu.uci.ics.texera.web.auth.SessionUser import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowExecutionsResource._ import edu.uci.ics.texera.web.service.ExecutionsMetadataPersistService import io.dropwizard.auth.Auth -import org.jooq.types.UInteger import java.net.URI import java.sql.Timestamp @@ -112,13 +116,13 @@ object WorkflowExecutionsResource { .set(WORKFLOW_EXECUTIONS.RUNTIME_STATS_URI, uri.toString) .where( WORKFLOW_EXECUTIONS.EID - .eq(UInteger.valueOf(eid)) + .eq(eid.toInt) .and( WORKFLOW_EXECUTIONS.VID.in( context .select(WORKFLOW_VERSION.VID) .from(WORKFLOW_VERSION) - .where(WORKFLOW_VERSION.WID.eq(UInteger.valueOf(wid))) + .where(WORKFLOW_VERSION.WID.eq(wid.toInt)) ) ) ) @@ -130,7 +134,7 @@ object WorkflowExecutionsResource { context .select(OPERATOR_PORT_EXECUTIONS.RESULT_URI) .from(OPERATOR_PORT_EXECUTIONS) - .where(OPERATOR_PORT_EXECUTIONS.WORKFLOW_EXECUTION_ID.eq(UInteger.valueOf(eid.id))) + .where(OPERATOR_PORT_EXECUTIONS.WORKFLOW_EXECUTION_ID.eq(eid.id.toInt)) .fetchInto(classOf[String]) .asScala .toList @@ -144,7 +148,7 @@ object WorkflowExecutionsResource { if (AmberConfig.isUserSystemEnabled) { context .delete(OPERATOR_PORT_EXECUTIONS) - .where(OPERATOR_PORT_EXECUTIONS.WORKFLOW_EXECUTION_ID.eq(UInteger.valueOf(eid.id))) + .where(OPERATOR_PORT_EXECUTIONS.WORKFLOW_EXECUTION_ID.eq(eid.id.toInt)) .execute() } else { ExecutionResourcesMapping.removeExecutionResources(eid) @@ -164,7 +168,7 @@ object WorkflowExecutionsResource { .from(OPERATOR_PORT_EXECUTIONS) .where( OPERATOR_PORT_EXECUTIONS.WORKFLOW_EXECUTION_ID - .eq(UInteger.valueOf(eid.id)) + .eq(eid.id.toInt) .and(OPERATOR_PORT_EXECUTIONS.OPERATOR_ID.eq(opId.id)) .and(OPERATOR_PORT_EXECUTIONS.PORT_ID.eq(portId.id)) ) @@ -199,12 +203,12 @@ object WorkflowExecutionsResource { case class WorkflowRuntimeStatistics( operatorId: String, timestamp: Timestamp, - inputTupleCount: ULong, - outputTupleCount: ULong, - dataProcessingTime: ULong, - controlProcessingTime: ULong, - idleTime: ULong, - numWorkers: UInteger, + inputTupleCount: Long, + outputTupleCount: Long, + dataProcessingTime: Long, + controlProcessingTime: Long, + idleTime: Long, + numWorkers: Int, status: Int ) } @@ -345,12 +349,12 @@ class WorkflowExecutionsResource { WorkflowRuntimeStatistics( operatorId = record.getField(0).asInstanceOf[String], timestamp = record.getField(1).asInstanceOf[Timestamp], - inputTupleCount = ULong.valueOf(record.getField(2).asInstanceOf[Long]), - outputTupleCount = ULong.valueOf(record.getField(3).asInstanceOf[Long]), - dataProcessingTime = ULong.valueOf(record.getField(4).asInstanceOf[Long]), - controlProcessingTime = ULong.valueOf(record.getField(5).asInstanceOf[Long]), - idleTime = ULong.valueOf(record.getField(6).asInstanceOf[Long]), - numWorkers = UInteger.valueOf(record.getField(7).asInstanceOf[Int]), + inputTupleCount = record.getField(2).asInstanceOf[Long], + outputTupleCount = record.getField(3).asInstanceOf[Long], + dataProcessingTime = record.getField(4).asInstanceOf[Long], + controlProcessingTime = record.getField(5).asInstanceOf[Long], + idleTime = record.getField(6).asInstanceOf[Long], + numWorkers = record.getField(7).asInstanceOf[Int], status = record.getField(8).asInstanceOf[Int] ) }) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionStatsService.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionStatsService.scala index 9a8c8923722..8c996ae0f9c 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionStatsService.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionStatsService.scala @@ -44,7 +44,6 @@ import java.util.concurrent.Executors class ExecutionStatsService( client: AmberClient, stateStore: ExecutionStateStore, - operatorIdToExecutionId: Map[String, Long], workflowContext: WorkflowContext ) extends SubscriptionManager with LazyLogging { diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/WorkflowExecutionService.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/WorkflowExecutionService.scala index 74f711055e6..522d629ef45 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/WorkflowExecutionService.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/WorkflowExecutionService.scala @@ -10,7 +10,6 @@ import edu.uci.ics.amber.engine.architecture.rpc.controlreturns.WorkflowAggregat import edu.uci.ics.amber.engine.common.client.AmberClient import edu.uci.ics.amber.engine.common.executionruntimestate.ExecutionMetadataStore import edu.uci.ics.amber.engine.common.{AmberConfig, Utils} -import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorExecutions import edu.uci.ics.texera.web.model.websocket.event.{ TexeraWebSocketEvent, WorkflowErrorEvent, From 892b39dd750b48d68b9fd4dd76d81f69144027da Mon Sep 17 00:00:00 2001 From: Shengquan Ni <13672781+shengquan-ni@users.noreply.github.com> Date: Wed, 12 Feb 2025 13:53:52 -0800 Subject: [PATCH 11/20] Update WorkflowExecutionsResource.scala --- .../workflow/WorkflowExecutionsResource.scala | 38 ++++++++----------- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala index 530a5aacada..705970f6cd4 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala @@ -3,12 +3,7 @@ package edu.uci.ics.texera.web.resource.dashboard.user.workflow import edu.uci.ics.amber.core.storage.result.ExecutionResourcesMapping import edu.uci.ics.amber.core.storage.{DocumentFactory, StorageConfig, VFSURIFactory} import edu.uci.ics.amber.core.tuple.Tuple -import edu.uci.ics.amber.core.virtualidentity.{ - ChannelMarkerIdentity, - ExecutionIdentity, - OperatorIdentity, - WorkflowIdentity -} +import edu.uci.ics.amber.core.virtualidentity.{ChannelMarkerIdentity, ExecutionIdentity, OperatorIdentity, WorkflowIdentity} import edu.uci.ics.amber.core.workflow.PortIdentity import edu.uci.ics.amber.engine.architecture.logreplay.{ReplayDestination, ReplayLogRecord} import edu.uci.ics.amber.engine.common.AmberConfig @@ -29,7 +24,7 @@ import javax.annotation.security.RolesAllowed import javax.ws.rs._ import javax.ws.rs.core.{MediaType, Response} import scala.collection.mutable -import scala.jdk.CollectionConverters.ListHasAsScala +import scala.jdk.CollectionConverters._ object WorkflowExecutionsResource { final private lazy val context = SqlServer @@ -371,23 +366,23 @@ class WorkflowExecutionsResource { @Auth sessionUser: SessionUser ): Unit = { validateUserCanAccessWorkflow(sessionUser.getUser.getUid, request.wid) + val eIdsList = request.eIds.toSeq.asJava if (request.isBookmarked) { - val eIdArray = request.eIds.mkString("(", ",", ")") - val sqlString = "update texera_db.workflow_executions " + - "set texera_db.workflow_executions.bookmarked = 0 " + - s"where texera_db.workflow_executions.eid in $eIdArray" + // If currently bookmarked, un-bookmark (set bookmarked = false) context - .query(sqlString) + .update(WORKFLOW_EXECUTIONS) + .set(WORKFLOW_EXECUTIONS.BOOKMARKED, java.lang.Boolean.valueOf(false)) + .where(WORKFLOW_EXECUTIONS.EID.in(eIdsList)) .execute() } else { - val eIdArray = request.eIds.mkString("(", ",", ")") - val sqlString = "UPDATE texera_db.workflow_executions " + - "SET texera_db.workflow_executions.bookmarked = 1 " + - s"WHERE texera_db.workflow_executions.eid IN $eIdArray" + // If currently not bookmarked, bookmark (set bookmarked = true) context - .query(sqlString) + .update(WORKFLOW_EXECUTIONS) + .set(WORKFLOW_EXECUTIONS.BOOKMARKED, java.lang.Boolean.valueOf(true)) + .where(WORKFLOW_EXECUTIONS.EID.in(eIdsList)) .execute() } + } /** Determine if user is authorized to access the workflow, if not raise 401 */ @@ -406,12 +401,11 @@ class WorkflowExecutionsResource { @Auth sessionUser: SessionUser ): Unit = { validateUserCanAccessWorkflow(sessionUser.getUser.getUid, request.wid) - /* delete the execution in sql */ - val eIdArray = request.eIds.mkString("(", ",", ")") - val sqlString: String = "DELETE FROM texera_db.workflow_executions " + - s"WHERE texera_db.workflow_executions.eid IN $eIdArray" + val eIdsList = request.eIds.toSeq.asJava + context - .query(sqlString) + .deleteFrom(WORKFLOW_EXECUTIONS) + .where(WORKFLOW_EXECUTIONS.EID.in(eIdsList)) .execute() } From 646c755e1d7b3da6bbaaf155dde75280937f1929 Mon Sep 17 00:00:00 2001 From: Shengquan Ni <13672781+shengquan-ni@users.noreply.github.com> Date: Wed, 12 Feb 2025 13:54:56 -0800 Subject: [PATCH 12/20] Update WorkflowExecutionsResource.scala --- .../user/workflow/WorkflowExecutionsResource.scala | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala index 705970f6cd4..88f0fdacfe7 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala @@ -3,7 +3,12 @@ package edu.uci.ics.texera.web.resource.dashboard.user.workflow import edu.uci.ics.amber.core.storage.result.ExecutionResourcesMapping import edu.uci.ics.amber.core.storage.{DocumentFactory, StorageConfig, VFSURIFactory} import edu.uci.ics.amber.core.tuple.Tuple -import edu.uci.ics.amber.core.virtualidentity.{ChannelMarkerIdentity, ExecutionIdentity, OperatorIdentity, WorkflowIdentity} +import edu.uci.ics.amber.core.virtualidentity.{ + ChannelMarkerIdentity, + ExecutionIdentity, + OperatorIdentity, + WorkflowIdentity +} import edu.uci.ics.amber.core.workflow.PortIdentity import edu.uci.ics.amber.engine.architecture.logreplay.{ReplayDestination, ReplayLogRecord} import edu.uci.ics.amber.engine.common.AmberConfig From 1cbde0ab211433a1260154cad6ad28d6a9b90f35 Mon Sep 17 00:00:00 2001 From: Shengquan Ni <13672781+shengquan-ni@users.noreply.github.com> Date: Thu, 13 Feb 2025 01:52:37 -0800 Subject: [PATCH 13/20] Update Utils.scala --- .../edu/uci/ics/amber/engine/common/Utils.scala | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/core/amber/src/main/scala/edu/uci/ics/amber/engine/common/Utils.scala b/core/amber/src/main/scala/edu/uci/ics/amber/engine/common/Utils.scala index 5181a3ed307..6b40da3ba5a 100644 --- a/core/amber/src/main/scala/edu/uci/ics/amber/engine/common/Utils.scala +++ b/core/amber/src/main/scala/edu/uci/ics/amber/engine/common/Utils.scala @@ -1,7 +1,9 @@ package edu.uci.ics.amber.engine.common import com.fasterxml.jackson.annotation.JsonInclude.Include -import com.fasterxml.jackson.databind.ObjectMapper +import com.fasterxml.jackson.core.JsonGenerator +import com.fasterxml.jackson.databind.{ObjectMapper, SerializerProvider} +import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule import com.fasterxml.jackson.module.noctordeser.NoCtorDeserModule import com.fasterxml.jackson.module.scala.DefaultScalaModule import com.typesafe.scalalogging.LazyLogging @@ -10,7 +12,9 @@ import org.jooq.DSLContext import org.jooq.impl.DSL import java.nio.file.{Files, Path, Paths} +import java.sql.Timestamp import java.text.SimpleDateFormat +import java.time.LocalDateTime import java.util.concurrent.locks.Lock import scala.annotation.tailrec @@ -19,6 +23,14 @@ object Utils extends LazyLogging { final val objectMapper = new ObjectMapper() .registerModule(DefaultScalaModule) .registerModule(new NoCtorDeserModule()) + .registerModule( + new JavaTimeModule().addSerializer( + classOf[LocalDateTime], + (value: LocalDateTime, gen: JsonGenerator, provider: SerializerProvider) => { + gen.writeNumber(Timestamp.valueOf(value).getTime) + } + ) + ) .setSerializationInclusion(Include.NON_NULL) .setSerializationInclusion(Include.NON_ABSENT) .setDateFormat(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")) From 347118bfdadf787f0339b795c8bc46f8be4cfda8 Mon Sep 17 00:00:00 2001 From: Shengquan Ni <13672781+shengquan-ni@users.noreply.github.com> Date: Thu, 13 Feb 2025 02:29:50 -0800 Subject: [PATCH 14/20] update --- .../uci/ics/amber/engine/common/Utils.scala | 14 +- .../dashboard/FulltextSearchQueryUtils.scala | 9 +- .../dashboard/UnifiedResourceSchema.scala | 6 +- .../execution/AdminExecutionResource.scala | 8 +- .../utils/DatasetStatisticsUtils.scala | 3 +- .../user/quota/UserQuotaResource.scala | 5 +- .../workflow/WorkflowExecutionsResource.scala | 2 +- .../user/workflow/WorkflowResource.scala | 8 +- .../workflow/WorkflowVersionResource.scala | 8 +- .../ExecutionsMetadataPersistService.scala | 2 +- .../web/storage/ExecutionStateStore.scala | 2 +- .../dashboard/file/WorkflowResourceSpec.scala | 8 +- core/dao/src/main/resources/jooq-conf.xml | 9 +- .../ics/texera/dao/jooq/generated/Keys.java | 3 + .../ics/texera/dao/jooq/generated/Tables.java | 6 + .../texera/dao/jooq/generated/TexeraDb.java | 7 + .../dao/jooq/generated/tables/Dataset.java | 6 +- .../jooq/generated/tables/DatasetVersion.java | 6 +- .../dao/jooq/generated/tables/Project.java | 6 +- .../jooq/generated/tables/UserActivity.java | 6 +- .../dao/jooq/generated/tables/Workflow.java | 8 +- .../tables/WorkflowComputingUnit.java | 159 +++++++++ .../generated/tables/WorkflowExecutions.java | 8 +- .../generated/tables/WorkflowVersion.java | 6 +- .../generated/tables/daos/DatasetDao.java | 6 +- .../tables/daos/DatasetVersionDao.java | 6 +- .../generated/tables/daos/ProjectDao.java | 6 +- .../tables/daos/WorkflowComputingUnitDao.java | 131 ++++++++ .../generated/tables/daos/WorkflowDao.java | 10 +- .../tables/daos/WorkflowExecutionsDao.java | 10 +- .../tables/daos/WorkflowVersionDao.java | 6 +- .../generated/tables/interfaces/IDataset.java | 6 +- .../tables/interfaces/IDatasetVersion.java | 6 +- .../generated/tables/interfaces/IProject.java | 6 +- .../tables/interfaces/IUserActivity.java | 6 +- .../tables/interfaces/IWorkflow.java | 10 +- .../interfaces/IWorkflowComputingUnit.java | 82 +++++ .../interfaces/IWorkflowExecutions.java | 10 +- .../tables/interfaces/IWorkflowVersion.java | 6 +- .../jooq/generated/tables/pojos/Dataset.java | 30 +- .../tables/pojos/DatasetVersion.java | 30 +- .../jooq/generated/tables/pojos/Project.java | 30 +- .../generated/tables/pojos/UserActivity.java | 30 +- .../jooq/generated/tables/pojos/Workflow.java | 38 +-- .../tables/pojos/WorkflowComputingUnit.java | 162 ++++++++++ .../tables/pojos/WorkflowExecutions.java | 58 ++-- .../tables/pojos/WorkflowVersion.java | 22 +- .../tables/records/DatasetRecord.java | 26 +- .../tables/records/DatasetVersionRecord.java | 26 +- .../tables/records/ProjectRecord.java | 26 +- .../tables/records/UserActivityRecord.java | 26 +- .../records/WorkflowComputingUnitRecord.java | 302 ++++++++++++++++++ .../records/WorkflowExecutionsRecord.java | 40 +-- .../tables/records/WorkflowRecord.java | 40 +-- .../tables/records/WorkflowVersionRecord.java | 26 +- 55 files changed, 1182 insertions(+), 342 deletions(-) create mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowComputingUnit.java create mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowComputingUnitDao.java create mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowComputingUnit.java create mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowComputingUnit.java create mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowComputingUnitRecord.java diff --git a/core/amber/src/main/scala/edu/uci/ics/amber/engine/common/Utils.scala b/core/amber/src/main/scala/edu/uci/ics/amber/engine/common/Utils.scala index 6b40da3ba5a..5181a3ed307 100644 --- a/core/amber/src/main/scala/edu/uci/ics/amber/engine/common/Utils.scala +++ b/core/amber/src/main/scala/edu/uci/ics/amber/engine/common/Utils.scala @@ -1,9 +1,7 @@ package edu.uci.ics.amber.engine.common import com.fasterxml.jackson.annotation.JsonInclude.Include -import com.fasterxml.jackson.core.JsonGenerator -import com.fasterxml.jackson.databind.{ObjectMapper, SerializerProvider} -import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule +import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.module.noctordeser.NoCtorDeserModule import com.fasterxml.jackson.module.scala.DefaultScalaModule import com.typesafe.scalalogging.LazyLogging @@ -12,9 +10,7 @@ import org.jooq.DSLContext import org.jooq.impl.DSL import java.nio.file.{Files, Path, Paths} -import java.sql.Timestamp import java.text.SimpleDateFormat -import java.time.LocalDateTime import java.util.concurrent.locks.Lock import scala.annotation.tailrec @@ -23,14 +19,6 @@ object Utils extends LazyLogging { final val objectMapper = new ObjectMapper() .registerModule(DefaultScalaModule) .registerModule(new NoCtorDeserModule()) - .registerModule( - new JavaTimeModule().addSerializer( - classOf[LocalDateTime], - (value: LocalDateTime, gen: JsonGenerator, provider: SerializerProvider) => { - gen.writeNumber(Timestamp.valueOf(value).getTime) - } - ) - ) .setSerializationInclusion(Include.NON_NULL) .setSerializationInclusion(Include.NON_ABSENT) .setDateFormat(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/FulltextSearchQueryUtils.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/FulltextSearchQueryUtils.scala index 9dcbf65dbfa..0538840d65d 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/FulltextSearchQueryUtils.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/FulltextSearchQueryUtils.scala @@ -5,7 +5,6 @@ import org.jooq.{Condition, Field} import java.sql.Timestamp import java.text.{ParseException, SimpleDateFormat} -import java.time.LocalDateTime import java.util.concurrent.TimeUnit import scala.jdk.CollectionConverters.CollectionHasAsScala @@ -116,21 +115,21 @@ object FulltextSearchQueryUtils { def getDateFilter( startDate: String, endDate: String, - fieldToFilterOn: Field[LocalDateTime] + fieldToFilterOn: Field[Timestamp] ): Condition = { if (startDate.nonEmpty || endDate.nonEmpty) { val start = if (startDate.nonEmpty) startDate else "1970-01-01" val end = if (endDate.nonEmpty) endDate else "9999-12-31" val dateFormat = new SimpleDateFormat("yyyy-MM-dd") - val startTimestamp = new Timestamp(dateFormat.parse(start).getTime).toLocalDateTime + val startTimestamp = new Timestamp(dateFormat.parse(start).getTime) val endTimestamp = if (end == "9999-12-31") { - new Timestamp(dateFormat.parse(end).getTime).toLocalDateTime + new Timestamp(dateFormat.parse(end).getTime) } else { new Timestamp( dateFormat.parse(end).getTime + TimeUnit.DAYS.toMillis(1) - 1 - ).toLocalDateTime + ) } fieldToFilterOn.between(startTimestamp, endTimestamp) } else { diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/UnifiedResourceSchema.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/UnifiedResourceSchema.scala index 831a1dbfba2..8b382e568e4 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/UnifiedResourceSchema.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/UnifiedResourceSchema.scala @@ -7,7 +7,7 @@ import edu.uci.ics.texera.web.resource.dashboard.UnifiedResourceSchema.context import org.jooq.impl.DSL import org.jooq.{Field, Record} -import java.time.LocalDateTime +import java.sql.Timestamp import scala.collection.mutable object UnifiedResourceSchema { @@ -36,8 +36,8 @@ object UnifiedResourceSchema { resourceType: Field[String] = DSL.inline(""), name: Field[String] = DSL.inline(""), description: Field[String] = DSL.inline(""), - creationTime: Field[LocalDateTime] = DSL.cast(null, classOf[LocalDateTime]), - lastModifiedTime: Field[LocalDateTime] = DSL.cast(null, classOf[LocalDateTime]), + creationTime: Field[Timestamp] = DSL.cast(null, classOf[Timestamp]), + lastModifiedTime: Field[Timestamp] = DSL.cast(null, classOf[Timestamp]), ownerId: Field[Integer] = DSL.cast(null, classOf[Integer]), wid: Field[Integer] = DSL.cast(null, classOf[Integer]), workflowUserAccess: Field[PrivilegeEnum] = DSL.castNull(classOf[PrivilegeEnum]), diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/execution/AdminExecutionResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/execution/AdminExecutionResource.scala index 687085dd0f7..2674a162a30 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/execution/AdminExecutionResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/execution/AdminExecutionResource.scala @@ -2,13 +2,12 @@ package edu.uci.ics.texera.web.resource.dashboard.admin.execution import edu.uci.ics.amber.core.storage.StorageConfig import edu.uci.ics.texera.dao.SqlServer -import edu.uci.ics.texera.web.auth.SessionUser import edu.uci.ics.texera.dao.jooq.generated.Tables._ +import edu.uci.ics.texera.web.auth.SessionUser import edu.uci.ics.texera.web.resource.dashboard.admin.execution.AdminExecutionResource._ import io.dropwizard.auth.Auth import org.jooq.impl.DSL -import java.sql.Timestamp import javax.annotation.security.RolesAllowed import javax.ws.rs._ import javax.ws.rs.core.MediaType @@ -175,14 +174,13 @@ class AdminExecutionResource { executions .map(workflowRecord => { val startingTime = - Timestamp.valueOf(workflowRecord.get(WORKFLOW_EXECUTIONS.STARTING_TIME)).getTime + workflowRecord.get(WORKFLOW_EXECUTIONS.STARTING_TIME).getTime var lastUpdateTime: Long = 0 if (workflowRecord.get(WORKFLOW_EXECUTIONS.LAST_UPDATE_TIME) == null) { lastUpdateTime = 0 } else { - lastUpdateTime = - Timestamp.valueOf(workflowRecord.get(WORKFLOW_EXECUTIONS.LAST_UPDATE_TIME)).getTime + lastUpdateTime = workflowRecord.get(WORKFLOW_EXECUTIONS.LAST_UPDATE_TIME).getTime } val timeDifferenceSeconds = (lastUpdateTime - startingTime) / 1000.0 diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/utils/DatasetStatisticsUtils.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/utils/DatasetStatisticsUtils.scala index b2de01ce3b6..7b84f778373 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/utils/DatasetStatisticsUtils.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/utils/DatasetStatisticsUtils.scala @@ -6,7 +6,6 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.Dataset.DATASET import edu.uci.ics.texera.web.resource.dashboard.user.dataset.DatasetResource import edu.uci.ics.texera.web.resource.dashboard.user.quota.UserQuotaResource.DatasetQuota -import java.sql.Timestamp import scala.jdk.CollectionConverters._ object DatasetStatisticsUtils { @@ -42,7 +41,7 @@ object DatasetStatisticsUtils { DatasetQuota( did = record.getValue(DATASET.DID), name = record.getValue(DATASET.NAME), - creationTime = Timestamp.valueOf(record.getValue(DATASET.CREATION_TIME)).getTime, + creationTime = record.getValue(DATASET.CREATION_TIME).getTime, size = 0 ) ) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/quota/UserQuotaResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/quota/UserQuotaResource.scala index 7ab34e16843..475e058e781 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/quota/UserQuotaResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/quota/UserQuotaResource.scala @@ -11,7 +11,6 @@ import edu.uci.ics.texera.web.resource.dashboard.user.quota.UserQuotaResource._ import io.dropwizard.auth.Auth import org.bson.Document -import java.sql.Timestamp import java.util import javax.ws.rs._ import javax.ws.rs.core.MediaType @@ -112,8 +111,8 @@ object UserQuotaResource { workflowRecord.get(WORKFLOW_OF_USER.UID), workflowRecord.get(WORKFLOW_OF_USER.WID), workflowRecord.get(WORKFLOW.NAME), - Timestamp.valueOf(workflowRecord.get(WORKFLOW.CREATION_TIME)).getTime, - Timestamp.valueOf(workflowRecord.get(WORKFLOW.LAST_MODIFIED_TIME)).getTime + workflowRecord.get(WORKFLOW.CREATION_TIME).getTime, + workflowRecord.get(WORKFLOW.LAST_MODIFIED_TIME).getTime ) }) .asScala diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala index 88f0fdacfe7..7d4f4d51f61 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala @@ -44,7 +44,7 @@ object WorkflowExecutionsResource { def getExpiredExecutionsWithResultOrLog(timeToLive: Int): List[WorkflowExecutions] = { val deadline = new Timestamp( System.currentTimeMillis() - TimeUnit.SECONDS.toMillis(timeToLive) - ).toLocalDateTime + ) context .selectFrom(WORKFLOW_EXECUTIONS) .where( diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala index 849de68797e..8954aff9cc6 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala @@ -342,8 +342,8 @@ class WorkflowResource extends LazyLogging { workflow.getDescription, workflow.getWid, workflow.getContent, - Timestamp.valueOf(workflow.getCreationTime), - Timestamp.valueOf(workflow.getLastModifiedTime), + workflow.getCreationTime, + workflow.getLastModifiedTime, workflow.getIsPublic, !WorkflowAccessResource.hasWriteAccess(wid, user.getUid) ) @@ -646,8 +646,8 @@ class WorkflowResource extends LazyLogging { workflow.getDescription, workflow.getWid, workflow.getContent, - Timestamp.valueOf(workflow.getCreationTime), - Timestamp.valueOf(workflow.getLastModifiedTime), + workflow.getCreationTime, + workflow.getLastModifiedTime, workflow.getIsPublic, readonly = true ) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowVersionResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowVersionResource.scala index e27b5fcb0af..d9b4faea7fb 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowVersionResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowVersionResource.scala @@ -183,7 +183,7 @@ object WorkflowVersionResource { var lastVersionTime = lastVersion.getCreationTime impEncodedVersions = impEncodedVersions :+ VersionEntry( lastVersion.getVid, - Timestamp.valueOf(lastVersion.getCreationTime), + lastVersion.getCreationTime, lastVersion.getContent, true ) // the first (latest) @@ -192,8 +192,8 @@ object WorkflowVersionResource { for (version <- currentVersions.tail) { if ( isWithinTimeLimit( - Timestamp.valueOf(lastVersionTime), - Timestamp.valueOf(version.getCreationTime) + lastVersionTime, + version.getCreationTime ) ) { versionImportance = false @@ -205,7 +205,7 @@ object WorkflowVersionResource { } impEncodedVersions = impEncodedVersions :+ VersionEntry( version.getVid, - Timestamp.valueOf(version.getCreationTime), + version.getCreationTime, version.getContent, versionImportance ) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionsMetadataPersistService.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionsMetadataPersistService.scala index cff0576daaf..f8ec0127820 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionsMetadataPersistService.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionsMetadataPersistService.scala @@ -47,7 +47,7 @@ object ExecutionsMetadataPersistService extends LazyLogging { } newExecution.setVid(vid) newExecution.setUid(uid.orNull) - newExecution.setStartingTime(new Timestamp(System.currentTimeMillis()).toLocalDateTime) + newExecution.setStartingTime(new Timestamp(System.currentTimeMillis())) newExecution.setEnvironmentVersion(environmentVersion) workflowExecutionsDao.insert(newExecution) ExecutionIdentity(newExecution.getEid.longValue()) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/storage/ExecutionStateStore.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/storage/ExecutionStateStore.scala index 5f193215089..707235c3768 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/storage/ExecutionStateStore.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/storage/ExecutionStateStore.scala @@ -23,7 +23,7 @@ object ExecutionStateStore { ExecutionsMetadataPersistService.tryUpdateExistingExecution(metadataStore.executionId) { execution => execution.setStatus(maptoStatusCode(state)) - execution.setLastUpdateTime(new Timestamp(System.currentTimeMillis()).toLocalDateTime) + execution.setLastUpdateTime(new Timestamp(System.currentTimeMillis())) } metadataStore.withState(state) } diff --git a/core/amber/src/test/scala/edu/uci/ics/texera/web/resource/dashboard/file/WorkflowResourceSpec.scala b/core/amber/src/test/scala/edu/uci/ics/texera/web/resource/dashboard/file/WorkflowResourceSpec.scala index fbe65f99e15..a02f462211e 100644 --- a/core/amber/src/test/scala/edu/uci/ics/texera/web/resource/dashboard/file/WorkflowResourceSpec.scala +++ b/core/amber/src/test/scala/edu/uci/ics/texera/web/resource/dashboard/file/WorkflowResourceSpec.scala @@ -413,11 +413,11 @@ class WorkflowResourceSpec WORKFLOW.CREATION_TIME ) val dateFormat = new SimpleDateFormat("yyyy-MM-dd") - val startTimestamp = new Timestamp(dateFormat.parse("2023-01-01").getTime).toLocalDateTime + val startTimestamp = new Timestamp(dateFormat.parse("2023-01-01").getTime) val endTimestamp = new Timestamp( dateFormat.parse("2023-12-31").getTime + TimeUnit.DAYS.toMillis(1) - 1 - ).toLocalDateTime + ) assert( dateFilter.toString == WORKFLOW.CREATION_TIME.between(startTimestamp, endTimestamp).toString ) @@ -431,11 +431,11 @@ class WorkflowResourceSpec WORKFLOW.LAST_MODIFIED_TIME ) val dateFormat = new SimpleDateFormat("yyyy-MM-dd") - val startTimestamp = new Timestamp(dateFormat.parse("2023-01-01").getTime).toLocalDateTime + val startTimestamp = new Timestamp(dateFormat.parse("2023-01-01").getTime) val endTimestamp = new Timestamp( dateFormat.parse("2023-12-31").getTime + TimeUnit.DAYS.toMillis(1) - 1 - ).toLocalDateTime + ) assert( dateFilter.toString == WORKFLOW.LAST_MODIFIED_TIME .between(startTimestamp, endTimestamp) diff --git a/core/dao/src/main/resources/jooq-conf.xml b/core/dao/src/main/resources/jooq-conf.xml index a7113853a89..1909565fadf 100644 --- a/core/dao/src/main/resources/jooq-conf.xml +++ b/core/dao/src/main/resources/jooq-conf.xml @@ -3,7 +3,7 @@ false - + false true true @@ -32,7 +32,12 @@ (A Java regular expression. Use the pipe to separate several expressions). Excludes match before includes, i.e. excludes have a higher priority --> (test_.*)|(ignore_.*) - + + + TIMESTAMP + (?i)TIMESTAMP + + diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java index 485ca8d2281..d4f13bb9ce3 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java @@ -15,6 +15,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.User; import edu.uci.ics.texera.dao.jooq.generated.tables.UserConfig; import edu.uci.ics.texera.dao.jooq.generated.tables.Workflow; +import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowComputingUnit; import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowExecutions; import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowOfProject; import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowOfUser; @@ -33,6 +34,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.records.PublicProjectRecord; import edu.uci.ics.texera.dao.jooq.generated.tables.records.UserConfigRecord; import edu.uci.ics.texera.dao.jooq.generated.tables.records.UserRecord; +import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowComputingUnitRecord; import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowExecutionsRecord; import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowOfProjectRecord; import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowOfUserRecord; @@ -75,6 +77,7 @@ public class Keys { public static final UniqueKey USER_PKEY = Internal.createUniqueKey(User.USER, DSL.name("user_pkey"), new TableField[] { User.USER.UID }, true); public static final UniqueKey USER_CONFIG_PKEY = Internal.createUniqueKey(UserConfig.USER_CONFIG, DSL.name("user_config_pkey"), new TableField[] { UserConfig.USER_CONFIG.UID, UserConfig.USER_CONFIG.KEY }, true); public static final UniqueKey WORKFLOW_PKEY = Internal.createUniqueKey(Workflow.WORKFLOW, DSL.name("workflow_pkey"), new TableField[] { Workflow.WORKFLOW.WID }, true); + public static final UniqueKey WORKFLOW_COMPUTING_UNIT_PKEY = Internal.createUniqueKey(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT, DSL.name("workflow_computing_unit_pkey"), new TableField[] { WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.CUID }, true); public static final UniqueKey WORKFLOW_EXECUTIONS_PKEY = Internal.createUniqueKey(WorkflowExecutions.WORKFLOW_EXECUTIONS, DSL.name("workflow_executions_pkey"), new TableField[] { WorkflowExecutions.WORKFLOW_EXECUTIONS.EID }, true); public static final UniqueKey WORKFLOW_OF_PROJECT_PKEY = Internal.createUniqueKey(WorkflowOfProject.WORKFLOW_OF_PROJECT, DSL.name("workflow_of_project_pkey"), new TableField[] { WorkflowOfProject.WORKFLOW_OF_PROJECT.WID, WorkflowOfProject.WORKFLOW_OF_PROJECT.PID }, true); public static final UniqueKey WORKFLOW_OF_USER_PKEY = Internal.createUniqueKey(WorkflowOfUser.WORKFLOW_OF_USER, DSL.name("workflow_of_user_pkey"), new TableField[] { WorkflowOfUser.WORKFLOW_OF_USER.UID, WorkflowOfUser.WORKFLOW_OF_USER.WID }, true); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Tables.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Tables.java index 870c93e9b1f..787ce5eb946 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Tables.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Tables.java @@ -16,6 +16,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.UserActivity; import edu.uci.ics.texera.dao.jooq.generated.tables.UserConfig; import edu.uci.ics.texera.dao.jooq.generated.tables.Workflow; +import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowComputingUnit; import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowExecutions; import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowOfProject; import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowOfUser; @@ -92,6 +93,11 @@ public class Tables { */ public static final Workflow WORKFLOW = Workflow.WORKFLOW; + /** + * The table texera_db.workflow_computing_unit. + */ + public static final WorkflowComputingUnit WORKFLOW_COMPUTING_UNIT = WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT; + /** * The table texera_db.workflow_executions. */ diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/TexeraDb.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/TexeraDb.java index 6b7c9b4d752..a7ab01156fc 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/TexeraDb.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/TexeraDb.java @@ -16,6 +16,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.UserActivity; import edu.uci.ics.texera.dao.jooq.generated.tables.UserConfig; import edu.uci.ics.texera.dao.jooq.generated.tables.Workflow; +import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowComputingUnit; import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowExecutions; import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowOfProject; import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowOfUser; @@ -106,6 +107,11 @@ public class TexeraDb extends SchemaImpl { */ public final Workflow WORKFLOW = Workflow.WORKFLOW; + /** + * The table texera_db.workflow_computing_unit. + */ + public final WorkflowComputingUnit WORKFLOW_COMPUTING_UNIT = WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT; + /** * The table texera_db.workflow_executions. */ @@ -174,6 +180,7 @@ public final List> getTables() { UserActivity.USER_ACTIVITY, UserConfig.USER_CONFIG, Workflow.WORKFLOW, + WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT, WorkflowExecutions.WORKFLOW_EXECUTIONS, WorkflowOfProject.WORKFLOW_OF_PROJECT, WorkflowOfUser.WORKFLOW_OF_USER, diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Dataset.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Dataset.java index ccdeb0832be..c89b70bc7a7 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Dataset.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Dataset.java @@ -8,7 +8,7 @@ import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.DatasetRecord; -import java.time.LocalDateTime; +import java.sql.Timestamp; import java.util.Arrays; import java.util.List; @@ -77,7 +77,7 @@ public Class getRecordType() { /** * The column texera_db.dataset.creation_time. */ - public final TableField CREATION_TIME = createField(DSL.name("creation_time"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.LOCALDATETIME)), this, ""); + public final TableField CREATION_TIME = createField(DSL.name("creation_time"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.TIMESTAMP)), this, ""); private Dataset(Name alias, Table aliased) { this(alias, aliased, null); @@ -175,7 +175,7 @@ public Dataset rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row6 fieldsRow() { + public Row6 fieldsRow() { return (Row6) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetVersion.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetVersion.java index 31695d4af78..ac39c527215 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetVersion.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetVersion.java @@ -8,7 +8,7 @@ import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.DatasetVersionRecord; -import java.time.LocalDateTime; +import java.sql.Timestamp; import java.util.Arrays; import java.util.List; @@ -77,7 +77,7 @@ public Class getRecordType() { /** * The column texera_db.dataset_version.creation_time. */ - public final TableField CREATION_TIME = createField(DSL.name("creation_time"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.LOCALDATETIME)), this, ""); + public final TableField CREATION_TIME = createField(DSL.name("creation_time"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.TIMESTAMP)), this, ""); private DatasetVersion(Name alias, Table aliased) { this(alias, aliased, null); @@ -175,7 +175,7 @@ public DatasetVersion rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row6 fieldsRow() { + public Row6 fieldsRow() { return (Row6) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Project.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Project.java index ba8a95b482a..42fe516fd69 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Project.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Project.java @@ -8,7 +8,7 @@ import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.ProjectRecord; -import java.time.LocalDateTime; +import java.sql.Timestamp; import java.util.Arrays; import java.util.List; @@ -72,7 +72,7 @@ public Class getRecordType() { /** * The column texera_db.project.creation_time. */ - public final TableField CREATION_TIME = createField(DSL.name("creation_time"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.LOCALDATETIME)), this, ""); + public final TableField CREATION_TIME = createField(DSL.name("creation_time"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.TIMESTAMP)), this, ""); /** * The column texera_db.project.color. @@ -180,7 +180,7 @@ public Project rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row6 fieldsRow() { + public Row6 fieldsRow() { return (Row6) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserActivity.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserActivity.java index a90325a26f3..5bd3a0c32bc 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserActivity.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserActivity.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.UserActivityRecord; -import java.time.LocalDateTime; +import java.sql.Timestamp; import org.jooq.Field; import org.jooq.ForeignKey; @@ -72,7 +72,7 @@ public Class getRecordType() { /** * The column texera_db.user_activity.activity_time. */ - public final TableField ACTIVITY_TIME = createField(DSL.name("activity_time"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.LOCALDATETIME)), this, ""); + public final TableField ACTIVITY_TIME = createField(DSL.name("activity_time"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.TIMESTAMP)), this, ""); private UserActivity(Name alias, Table aliased) { this(alias, aliased, null); @@ -143,7 +143,7 @@ public UserActivity rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row6 fieldsRow() { + public Row6 fieldsRow() { return (Row6) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Workflow.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Workflow.java index cf3cab2f18b..27bb86ea355 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Workflow.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/Workflow.java @@ -8,7 +8,7 @@ import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowRecord; -import java.time.LocalDateTime; +import java.sql.Timestamp; import org.jooq.Field; import org.jooq.ForeignKey; @@ -70,12 +70,12 @@ public Class getRecordType() { /** * The column texera_db.workflow.creation_time. */ - public final TableField CREATION_TIME = createField(DSL.name("creation_time"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.LOCALDATETIME)), this, ""); + public final TableField CREATION_TIME = createField(DSL.name("creation_time"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.TIMESTAMP)), this, ""); /** * The column texera_db.workflow.last_modified_time. */ - public final TableField LAST_MODIFIED_TIME = createField(DSL.name("last_modified_time"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.LOCALDATETIME)), this, ""); + public final TableField LAST_MODIFIED_TIME = createField(DSL.name("last_modified_time"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.TIMESTAMP)), this, ""); /** * The column texera_db.workflow.is_public. @@ -161,7 +161,7 @@ public Workflow rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row7 fieldsRow() { + public Row7 fieldsRow() { return (Row7) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowComputingUnit.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowComputingUnit.java new file mode 100644 index 00000000000..8cdb198aba5 --- /dev/null +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowComputingUnit.java @@ -0,0 +1,159 @@ +/* + * This file is generated by jOOQ. + */ +package edu.uci.ics.texera.dao.jooq.generated.tables; + + +import edu.uci.ics.texera.dao.jooq.generated.Keys; +import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; +import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowComputingUnitRecord; + +import java.sql.Timestamp; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Identity; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Row5; +import org.jooq.Schema; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class WorkflowComputingUnit extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of texera_db.workflow_computing_unit + */ + public static final WorkflowComputingUnit WORKFLOW_COMPUTING_UNIT = new WorkflowComputingUnit(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return WorkflowComputingUnitRecord.class; + } + + /** + * The column texera_db.workflow_computing_unit.uid. + */ + public final TableField UID = createField(DSL.name("uid"), SQLDataType.BIGINT.nullable(false), this, ""); + + /** + * The column texera_db.workflow_computing_unit.name. + */ + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(128).nullable(false), this, ""); + + /** + * The column texera_db.workflow_computing_unit.cuid. + */ + public final TableField CUID = createField(DSL.name("cuid"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); + + /** + * The column texera_db.workflow_computing_unit.creation_time. + */ + public final TableField CREATION_TIME = createField(DSL.name("creation_time"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.TIMESTAMP)), this, ""); + + /** + * The column texera_db.workflow_computing_unit.terminate_time. + */ + public final TableField TERMINATE_TIME = createField(DSL.name("terminate_time"), SQLDataType.TIMESTAMP(0), this, ""); + + private WorkflowComputingUnit(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private WorkflowComputingUnit(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased texera_db.workflow_computing_unit table + * reference + */ + public WorkflowComputingUnit(String alias) { + this(DSL.name(alias), WORKFLOW_COMPUTING_UNIT); + } + + /** + * Create an aliased texera_db.workflow_computing_unit table + * reference + */ + public WorkflowComputingUnit(Name alias) { + this(alias, WORKFLOW_COMPUTING_UNIT); + } + + /** + * Create a texera_db.workflow_computing_unit table reference + */ + public WorkflowComputingUnit() { + this(DSL.name("workflow_computing_unit"), null); + } + + public WorkflowComputingUnit(Table child, ForeignKey key) { + super(child, key, WORKFLOW_COMPUTING_UNIT); + } + + @Override + public Schema getSchema() { + return aliased() ? null : TexeraDb.TEXERA_DB; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.WORKFLOW_COMPUTING_UNIT_PKEY; + } + + @Override + public WorkflowComputingUnit as(String alias) { + return new WorkflowComputingUnit(DSL.name(alias), this); + } + + @Override + public WorkflowComputingUnit as(Name alias) { + return new WorkflowComputingUnit(alias, this); + } + + /** + * Rename this table + */ + @Override + public WorkflowComputingUnit rename(String name) { + return new WorkflowComputingUnit(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public WorkflowComputingUnit rename(Name name) { + return new WorkflowComputingUnit(name, null); + } + + // ------------------------------------------------------------------------- + // Row5 type methods + // ------------------------------------------------------------------------- + + @Override + public Row5 fieldsRow() { + return (Row5) super.fieldsRow(); + } +} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowExecutions.java index ed0a3ae5021..fec1b4bb966 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowExecutions.java @@ -8,7 +8,7 @@ import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowExecutionsRecord; -import java.time.LocalDateTime; +import java.sql.Timestamp; import java.util.Arrays; import java.util.List; @@ -77,12 +77,12 @@ public Class getRecordType() { /** * The column texera_db.workflow_executions.starting_time. */ - public final TableField STARTING_TIME = createField(DSL.name("starting_time"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.LOCALDATETIME)), this, ""); + public final TableField STARTING_TIME = createField(DSL.name("starting_time"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.TIMESTAMP)), this, ""); /** * The column texera_db.workflow_executions.last_update_time. */ - public final TableField LAST_UPDATE_TIME = createField(DSL.name("last_update_time"), SQLDataType.LOCALDATETIME(6), this, ""); + public final TableField LAST_UPDATE_TIME = createField(DSL.name("last_update_time"), SQLDataType.TIMESTAMP(0), this, ""); /** * The column texera_db.workflow_executions.bookmarked. @@ -220,7 +220,7 @@ public WorkflowExecutions rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row12 fieldsRow() { + public Row12 fieldsRow() { return (Row12) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowVersion.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowVersion.java index 132560decf0..bcaa809c9f3 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowVersion.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowVersion.java @@ -8,7 +8,7 @@ import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowVersionRecord; -import java.time.LocalDateTime; +import java.sql.Timestamp; import java.util.Arrays; import java.util.List; @@ -67,7 +67,7 @@ public Class getRecordType() { /** * The column texera_db.workflow_version.creation_time. */ - public final TableField CREATION_TIME = createField(DSL.name("creation_time"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.LOCALDATETIME)), this, ""); + public final TableField CREATION_TIME = createField(DSL.name("creation_time"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.TIMESTAMP)), this, ""); private WorkflowVersion(Name alias, Table aliased) { this(alias, aliased, null); @@ -165,7 +165,7 @@ public WorkflowVersion rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row4 fieldsRow() { + public Row4 fieldsRow() { return (Row4) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetDao.java index c0f1000852b..28beb66be54 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetDao.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.Dataset; import edu.uci.ics.texera.dao.jooq.generated.tables.records.DatasetRecord; -import java.time.LocalDateTime; +import java.sql.Timestamp; import java.util.List; import java.util.Optional; @@ -133,14 +133,14 @@ public List fetchByD * Fetch records that have creation_time BETWEEN lowerInclusive AND * upperInclusive */ - public List fetchRangeOfCreationTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + public List fetchRangeOfCreationTime(Timestamp lowerInclusive, Timestamp upperInclusive) { return fetchRange(Dataset.DATASET.CREATION_TIME, lowerInclusive, upperInclusive); } /** * Fetch records that have creation_time IN (values) */ - public List fetchByCreationTime(LocalDateTime... values) { + public List fetchByCreationTime(Timestamp... values) { return fetch(Dataset.DATASET.CREATION_TIME, values); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetVersionDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetVersionDao.java index e1441dca263..92441038079 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetVersionDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetVersionDao.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetVersion; import edu.uci.ics.texera.dao.jooq.generated.tables.records.DatasetVersionRecord; -import java.time.LocalDateTime; +import java.sql.Timestamp; import java.util.List; import java.util.Optional; @@ -133,14 +133,14 @@ public List f * Fetch records that have creation_time BETWEEN lowerInclusive AND * upperInclusive */ - public List fetchRangeOfCreationTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + public List fetchRangeOfCreationTime(Timestamp lowerInclusive, Timestamp upperInclusive) { return fetchRange(DatasetVersion.DATASET_VERSION.CREATION_TIME, lowerInclusive, upperInclusive); } /** * Fetch records that have creation_time IN (values) */ - public List fetchByCreationTime(LocalDateTime... values) { + public List fetchByCreationTime(Timestamp... values) { return fetch(DatasetVersion.DATASET_VERSION.CREATION_TIME, values); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/ProjectDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/ProjectDao.java index cbbf5f2a06b..de946c18069 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/ProjectDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/ProjectDao.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.Project; import edu.uci.ics.texera.dao.jooq.generated.tables.records.ProjectRecord; -import java.time.LocalDateTime; +import java.sql.Timestamp; import java.util.List; import java.util.Optional; @@ -118,14 +118,14 @@ public List fetchByO * Fetch records that have creation_time BETWEEN lowerInclusive AND * upperInclusive */ - public List fetchRangeOfCreationTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + public List fetchRangeOfCreationTime(Timestamp lowerInclusive, Timestamp upperInclusive) { return fetchRange(Project.PROJECT.CREATION_TIME, lowerInclusive, upperInclusive); } /** * Fetch records that have creation_time IN (values) */ - public List fetchByCreationTime(LocalDateTime... values) { + public List fetchByCreationTime(Timestamp... values) { return fetch(Project.PROJECT.CREATION_TIME, values); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowComputingUnitDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowComputingUnitDao.java new file mode 100644 index 00000000000..4a9d1b701ec --- /dev/null +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowComputingUnitDao.java @@ -0,0 +1,131 @@ +/* + * This file is generated by jOOQ. + */ +package edu.uci.ics.texera.dao.jooq.generated.tables.daos; + + +import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowComputingUnit; +import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowComputingUnitRecord; + +import java.sql.Timestamp; +import java.util.List; +import java.util.Optional; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class WorkflowComputingUnitDao extends DAOImpl { + + /** + * Create a new WorkflowComputingUnitDao without any configuration + */ + public WorkflowComputingUnitDao() { + super(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT, edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowComputingUnit.class); + } + + /** + * Create a new WorkflowComputingUnitDao with an attached configuration + */ + public WorkflowComputingUnitDao(Configuration configuration) { + super(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT, edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowComputingUnit.class, configuration); + } + + @Override + public Integer getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowComputingUnit object) { + return object.getCuid(); + } + + /** + * Fetch records that have uid BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfUid(Long lowerInclusive, Long upperInclusive) { + return fetchRange(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.UID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have uid IN (values) + */ + public List fetchByUid(Long... values) { + return fetch(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.UID, values); + } + + /** + * Fetch records that have name BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfName(String lowerInclusive, String upperInclusive) { + return fetchRange(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have name IN (values) + */ + public List fetchByName(String... values) { + return fetch(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.NAME, values); + } + + /** + * Fetch records that have cuid BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCuid(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.CUID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have cuid IN (values) + */ + public List fetchByCuid(Integer... values) { + return fetch(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.CUID, values); + } + + /** + * Fetch a unique record that has cuid = value + */ + public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowComputingUnit fetchOneByCuid(Integer value) { + return fetchOne(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.CUID, value); + } + + /** + * Fetch a unique record that has cuid = value + */ + public Optional fetchOptionalByCuid(Integer value) { + return fetchOptional(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.CUID, value); + } + + /** + * Fetch records that have creation_time BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCreationTime(Timestamp lowerInclusive, Timestamp upperInclusive) { + return fetchRange(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.CREATION_TIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have creation_time IN (values) + */ + public List fetchByCreationTime(Timestamp... values) { + return fetch(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.CREATION_TIME, values); + } + + /** + * Fetch records that have terminate_time BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfTerminateTime(Timestamp lowerInclusive, Timestamp upperInclusive) { + return fetchRange(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.TERMINATE_TIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have terminate_time IN (values) + */ + public List fetchByTerminateTime(Timestamp... values) { + return fetch(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.TERMINATE_TIME, values); + } +} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowDao.java index fb9b1acbc8b..1f6a5916029 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowDao.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.Workflow; import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowRecord; -import java.time.LocalDateTime; +import java.sql.Timestamp; import java.util.List; import java.util.Optional; @@ -118,14 +118,14 @@ public List fetchBy * Fetch records that have creation_time BETWEEN lowerInclusive AND * upperInclusive */ - public List fetchRangeOfCreationTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + public List fetchRangeOfCreationTime(Timestamp lowerInclusive, Timestamp upperInclusive) { return fetchRange(Workflow.WORKFLOW.CREATION_TIME, lowerInclusive, upperInclusive); } /** * Fetch records that have creation_time IN (values) */ - public List fetchByCreationTime(LocalDateTime... values) { + public List fetchByCreationTime(Timestamp... values) { return fetch(Workflow.WORKFLOW.CREATION_TIME, values); } @@ -133,14 +133,14 @@ public List fetchBy * Fetch records that have last_modified_time BETWEEN lowerInclusive * AND upperInclusive */ - public List fetchRangeOfLastModifiedTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + public List fetchRangeOfLastModifiedTime(Timestamp lowerInclusive, Timestamp upperInclusive) { return fetchRange(Workflow.WORKFLOW.LAST_MODIFIED_TIME, lowerInclusive, upperInclusive); } /** * Fetch records that have last_modified_time IN (values) */ - public List fetchByLastModifiedTime(LocalDateTime... values) { + public List fetchByLastModifiedTime(Timestamp... values) { return fetch(Workflow.WORKFLOW.LAST_MODIFIED_TIME, values); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowExecutionsDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowExecutionsDao.java index 5716ba3197f..7ecc79ee04a 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowExecutionsDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowExecutionsDao.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowExecutions; import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowExecutionsRecord; -import java.time.LocalDateTime; +import java.sql.Timestamp; import java.util.List; import java.util.Optional; @@ -133,14 +133,14 @@ public Liststarting_time BETWEEN lowerInclusive AND * upperInclusive */ - public List fetchRangeOfStartingTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + public List fetchRangeOfStartingTime(Timestamp lowerInclusive, Timestamp upperInclusive) { return fetchRange(WorkflowExecutions.WORKFLOW_EXECUTIONS.STARTING_TIME, lowerInclusive, upperInclusive); } /** * Fetch records that have starting_time IN (values) */ - public List fetchByStartingTime(LocalDateTime... values) { + public List fetchByStartingTime(Timestamp... values) { return fetch(WorkflowExecutions.WORKFLOW_EXECUTIONS.STARTING_TIME, values); } @@ -148,14 +148,14 @@ public Listlast_update_time BETWEEN lowerInclusive AND * upperInclusive */ - public List fetchRangeOfLastUpdateTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + public List fetchRangeOfLastUpdateTime(Timestamp lowerInclusive, Timestamp upperInclusive) { return fetchRange(WorkflowExecutions.WORKFLOW_EXECUTIONS.LAST_UPDATE_TIME, lowerInclusive, upperInclusive); } /** * Fetch records that have last_update_time IN (values) */ - public List fetchByLastUpdateTime(LocalDateTime... values) { + public List fetchByLastUpdateTime(Timestamp... values) { return fetch(WorkflowExecutions.WORKFLOW_EXECUTIONS.LAST_UPDATE_TIME, values); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowVersionDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowVersionDao.java index 0e16917ece1..dca0511b733 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowVersionDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowVersionDao.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowVersion; import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowVersionRecord; -import java.time.LocalDateTime; +import java.sql.Timestamp; import java.util.List; import java.util.Optional; @@ -103,14 +103,14 @@ public List * Fetch records that have creation_time BETWEEN lowerInclusive AND * upperInclusive */ - public List fetchRangeOfCreationTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + public List fetchRangeOfCreationTime(Timestamp lowerInclusive, Timestamp upperInclusive) { return fetchRange(WorkflowVersion.WORKFLOW_VERSION.CREATION_TIME, lowerInclusive, upperInclusive); } /** * Fetch records that have creation_time IN (values) */ - public List fetchByCreationTime(LocalDateTime... values) { + public List fetchByCreationTime(Timestamp... values) { return fetch(WorkflowVersion.WORKFLOW_VERSION.CREATION_TIME, values); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDataset.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDataset.java index d4e9dd84e6f..762454ca331 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDataset.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDataset.java @@ -5,7 +5,7 @@ import java.io.Serializable; -import java.time.LocalDateTime; +import java.sql.Timestamp; /** @@ -67,12 +67,12 @@ public interface IDataset extends Serializable { /** * Setter for texera_db.dataset.creation_time. */ - public void setCreationTime(LocalDateTime value); + public void setCreationTime(Timestamp value); /** * Getter for texera_db.dataset.creation_time. */ - public LocalDateTime getCreationTime(); + public Timestamp getCreationTime(); // ------------------------------------------------------------------------- // FROM and INTO diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetVersion.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetVersion.java index e237bbd9b37..59e0c26e3dd 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetVersion.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetVersion.java @@ -5,7 +5,7 @@ import java.io.Serializable; -import java.time.LocalDateTime; +import java.sql.Timestamp; /** @@ -67,12 +67,12 @@ public interface IDatasetVersion extends Serializable { /** * Setter for texera_db.dataset_version.creation_time. */ - public void setCreationTime(LocalDateTime value); + public void setCreationTime(Timestamp value); /** * Getter for texera_db.dataset_version.creation_time. */ - public LocalDateTime getCreationTime(); + public Timestamp getCreationTime(); // ------------------------------------------------------------------------- // FROM and INTO diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IProject.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IProject.java index 9dd21b1ad76..b5b3d91f1e9 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IProject.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IProject.java @@ -5,7 +5,7 @@ import java.io.Serializable; -import java.time.LocalDateTime; +import java.sql.Timestamp; /** @@ -57,12 +57,12 @@ public interface IProject extends Serializable { /** * Setter for texera_db.project.creation_time. */ - public void setCreationTime(LocalDateTime value); + public void setCreationTime(Timestamp value); /** * Getter for texera_db.project.creation_time. */ - public LocalDateTime getCreationTime(); + public Timestamp getCreationTime(); /** * Setter for texera_db.project.color. diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUserActivity.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUserActivity.java index c6e7c28a749..cb75c4aef99 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUserActivity.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUserActivity.java @@ -5,7 +5,7 @@ import java.io.Serializable; -import java.time.LocalDateTime; +import java.sql.Timestamp; /** @@ -67,12 +67,12 @@ public interface IUserActivity extends Serializable { /** * Setter for texera_db.user_activity.activity_time. */ - public void setActivityTime(LocalDateTime value); + public void setActivityTime(Timestamp value); /** * Getter for texera_db.user_activity.activity_time. */ - public LocalDateTime getActivityTime(); + public Timestamp getActivityTime(); // ------------------------------------------------------------------------- // FROM and INTO diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflow.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflow.java index 58cb2348766..b94e3bbac65 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflow.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflow.java @@ -5,7 +5,7 @@ import java.io.Serializable; -import java.time.LocalDateTime; +import java.sql.Timestamp; /** @@ -57,22 +57,22 @@ public interface IWorkflow extends Serializable { /** * Setter for texera_db.workflow.creation_time. */ - public void setCreationTime(LocalDateTime value); + public void setCreationTime(Timestamp value); /** * Getter for texera_db.workflow.creation_time. */ - public LocalDateTime getCreationTime(); + public Timestamp getCreationTime(); /** * Setter for texera_db.workflow.last_modified_time. */ - public void setLastModifiedTime(LocalDateTime value); + public void setLastModifiedTime(Timestamp value); /** * Getter for texera_db.workflow.last_modified_time. */ - public LocalDateTime getLastModifiedTime(); + public Timestamp getLastModifiedTime(); /** * Setter for texera_db.workflow.is_public. diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowComputingUnit.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowComputingUnit.java new file mode 100644 index 00000000000..8eed828b33b --- /dev/null +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowComputingUnit.java @@ -0,0 +1,82 @@ +/* + * This file is generated by jOOQ. + */ +package edu.uci.ics.texera.dao.jooq.generated.tables.interfaces; + + +import java.io.Serializable; +import java.sql.Timestamp; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public interface IWorkflowComputingUnit extends Serializable { + + /** + * Setter for texera_db.workflow_computing_unit.uid. + */ + public void setUid(Long value); + + /** + * Getter for texera_db.workflow_computing_unit.uid. + */ + public Long getUid(); + + /** + * Setter for texera_db.workflow_computing_unit.name. + */ + public void setName(String value); + + /** + * Getter for texera_db.workflow_computing_unit.name. + */ + public String getName(); + + /** + * Setter for texera_db.workflow_computing_unit.cuid. + */ + public void setCuid(Integer value); + + /** + * Getter for texera_db.workflow_computing_unit.cuid. + */ + public Integer getCuid(); + + /** + * Setter for texera_db.workflow_computing_unit.creation_time. + */ + public void setCreationTime(Timestamp value); + + /** + * Getter for texera_db.workflow_computing_unit.creation_time. + */ + public Timestamp getCreationTime(); + + /** + * Setter for texera_db.workflow_computing_unit.terminate_time. + */ + public void setTerminateTime(Timestamp value); + + /** + * Getter for texera_db.workflow_computing_unit.terminate_time. + */ + public Timestamp getTerminateTime(); + + // ------------------------------------------------------------------------- + // FROM and INTO + // ------------------------------------------------------------------------- + + /** + * Load data from another generated Record/POJO implementing the common + * interface IWorkflowComputingUnit + */ + public void from(IWorkflowComputingUnit from); + + /** + * Copy data into another generated Record/POJO implementing the common + * interface IWorkflowComputingUnit + */ + public E into(E into); +} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowExecutions.java index 105f22e2474..556d2688495 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowExecutions.java @@ -5,7 +5,7 @@ import java.io.Serializable; -import java.time.LocalDateTime; +import java.sql.Timestamp; /** @@ -67,22 +67,22 @@ public interface IWorkflowExecutions extends Serializable { /** * Setter for texera_db.workflow_executions.starting_time. */ - public void setStartingTime(LocalDateTime value); + public void setStartingTime(Timestamp value); /** * Getter for texera_db.workflow_executions.starting_time. */ - public LocalDateTime getStartingTime(); + public Timestamp getStartingTime(); /** * Setter for texera_db.workflow_executions.last_update_time. */ - public void setLastUpdateTime(LocalDateTime value); + public void setLastUpdateTime(Timestamp value); /** * Getter for texera_db.workflow_executions.last_update_time. */ - public LocalDateTime getLastUpdateTime(); + public Timestamp getLastUpdateTime(); /** * Setter for texera_db.workflow_executions.bookmarked. diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowVersion.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowVersion.java index b4fe737b52c..50eeb57af2d 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowVersion.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowVersion.java @@ -5,7 +5,7 @@ import java.io.Serializable; -import java.time.LocalDateTime; +import java.sql.Timestamp; /** @@ -47,12 +47,12 @@ public interface IWorkflowVersion extends Serializable { /** * Setter for texera_db.workflow_version.creation_time. */ - public void setCreationTime(LocalDateTime value); + public void setCreationTime(Timestamp value); /** * Getter for texera_db.workflow_version.creation_time. */ - public LocalDateTime getCreationTime(); + public Timestamp getCreationTime(); // ------------------------------------------------------------------------- // FROM and INTO diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Dataset.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Dataset.java index 6295398f084..6951c20b1aa 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Dataset.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Dataset.java @@ -6,7 +6,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IDataset; -import java.time.LocalDateTime; +import java.sql.Timestamp; /** @@ -17,12 +17,12 @@ public class Dataset implements IDataset { private static final long serialVersionUID = 1L; - private Integer did; - private Integer ownerUid; - private String name; - private Boolean isPublic; - private String description; - private LocalDateTime creationTime; + private Integer did; + private Integer ownerUid; + private String name; + private Boolean isPublic; + private String description; + private Timestamp creationTime; public Dataset() {} @@ -36,12 +36,12 @@ public Dataset(IDataset value) { } public Dataset( - Integer did, - Integer ownerUid, - String name, - Boolean isPublic, - String description, - LocalDateTime creationTime + Integer did, + Integer ownerUid, + String name, + Boolean isPublic, + String description, + Timestamp creationTime ) { this.did = did; this.ownerUid = ownerUid; @@ -135,7 +135,7 @@ public void setDescription(String description) { * Getter for texera_db.dataset.creation_time. */ @Override - public LocalDateTime getCreationTime() { + public Timestamp getCreationTime() { return this.creationTime; } @@ -143,7 +143,7 @@ public LocalDateTime getCreationTime() { * Setter for texera_db.dataset.creation_time. */ @Override - public void setCreationTime(LocalDateTime creationTime) { + public void setCreationTime(Timestamp creationTime) { this.creationTime = creationTime; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetVersion.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetVersion.java index 676c5bc3b98..ad6f6f4a09f 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetVersion.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetVersion.java @@ -6,7 +6,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IDatasetVersion; -import java.time.LocalDateTime; +import java.sql.Timestamp; /** @@ -17,12 +17,12 @@ public class DatasetVersion implements IDatasetVersion { private static final long serialVersionUID = 1L; - private Integer dvid; - private Integer did; - private Integer creatorUid; - private String name; - private String versionHash; - private LocalDateTime creationTime; + private Integer dvid; + private Integer did; + private Integer creatorUid; + private String name; + private String versionHash; + private Timestamp creationTime; public DatasetVersion() {} @@ -36,12 +36,12 @@ public DatasetVersion(IDatasetVersion value) { } public DatasetVersion( - Integer dvid, - Integer did, - Integer creatorUid, - String name, - String versionHash, - LocalDateTime creationTime + Integer dvid, + Integer did, + Integer creatorUid, + String name, + String versionHash, + Timestamp creationTime ) { this.dvid = dvid; this.did = did; @@ -135,7 +135,7 @@ public void setVersionHash(String versionHash) { * Getter for texera_db.dataset_version.creation_time. */ @Override - public LocalDateTime getCreationTime() { + public Timestamp getCreationTime() { return this.creationTime; } @@ -143,7 +143,7 @@ public LocalDateTime getCreationTime() { * Setter for texera_db.dataset_version.creation_time. */ @Override - public void setCreationTime(LocalDateTime creationTime) { + public void setCreationTime(Timestamp creationTime) { this.creationTime = creationTime; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Project.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Project.java index 734fc91e19b..7e72df6fd92 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Project.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Project.java @@ -6,7 +6,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IProject; -import java.time.LocalDateTime; +import java.sql.Timestamp; /** @@ -17,12 +17,12 @@ public class Project implements IProject { private static final long serialVersionUID = 1L; - private Integer pid; - private String name; - private String description; - private Integer ownerId; - private LocalDateTime creationTime; - private String color; + private Integer pid; + private String name; + private String description; + private Integer ownerId; + private Timestamp creationTime; + private String color; public Project() {} @@ -36,12 +36,12 @@ public Project(IProject value) { } public Project( - Integer pid, - String name, - String description, - Integer ownerId, - LocalDateTime creationTime, - String color + Integer pid, + String name, + String description, + Integer ownerId, + Timestamp creationTime, + String color ) { this.pid = pid; this.name = name; @@ -119,7 +119,7 @@ public void setOwnerId(Integer ownerId) { * Getter for texera_db.project.creation_time. */ @Override - public LocalDateTime getCreationTime() { + public Timestamp getCreationTime() { return this.creationTime; } @@ -127,7 +127,7 @@ public LocalDateTime getCreationTime() { * Setter for texera_db.project.creation_time. */ @Override - public void setCreationTime(LocalDateTime creationTime) { + public void setCreationTime(Timestamp creationTime) { this.creationTime = creationTime; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/UserActivity.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/UserActivity.java index 24d39dabea9..e1c4e431b06 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/UserActivity.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/UserActivity.java @@ -6,7 +6,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IUserActivity; -import java.time.LocalDateTime; +import java.sql.Timestamp; /** @@ -17,12 +17,12 @@ public class UserActivity implements IUserActivity { private static final long serialVersionUID = 1L; - private Integer uid; - private Integer id; - private String type; - private String ip; - private String activate; - private LocalDateTime activityTime; + private Integer uid; + private Integer id; + private String type; + private String ip; + private String activate; + private Timestamp activityTime; public UserActivity() {} @@ -36,12 +36,12 @@ public UserActivity(IUserActivity value) { } public UserActivity( - Integer uid, - Integer id, - String type, - String ip, - String activate, - LocalDateTime activityTime + Integer uid, + Integer id, + String type, + String ip, + String activate, + Timestamp activityTime ) { this.uid = uid; this.id = id; @@ -135,7 +135,7 @@ public void setActivate(String activate) { * Getter for texera_db.user_activity.activity_time. */ @Override - public LocalDateTime getActivityTime() { + public Timestamp getActivityTime() { return this.activityTime; } @@ -143,7 +143,7 @@ public LocalDateTime getActivityTime() { * Setter for texera_db.user_activity.activity_time. */ @Override - public void setActivityTime(LocalDateTime activityTime) { + public void setActivityTime(Timestamp activityTime) { this.activityTime = activityTime; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Workflow.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Workflow.java index b170b97f2bf..ebe14912d8a 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Workflow.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/Workflow.java @@ -6,7 +6,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflow; -import java.time.LocalDateTime; +import java.sql.Timestamp; /** @@ -17,13 +17,13 @@ public class Workflow implements IWorkflow { private static final long serialVersionUID = 1L; - private Integer wid; - private String name; - private String description; - private String content; - private LocalDateTime creationTime; - private LocalDateTime lastModifiedTime; - private Boolean isPublic; + private Integer wid; + private String name; + private String description; + private String content; + private Timestamp creationTime; + private Timestamp lastModifiedTime; + private Boolean isPublic; public Workflow() {} @@ -38,13 +38,13 @@ public Workflow(IWorkflow value) { } public Workflow( - Integer wid, - String name, - String description, - String content, - LocalDateTime creationTime, - LocalDateTime lastModifiedTime, - Boolean isPublic + Integer wid, + String name, + String description, + String content, + Timestamp creationTime, + Timestamp lastModifiedTime, + Boolean isPublic ) { this.wid = wid; this.name = name; @@ -123,7 +123,7 @@ public void setContent(String content) { * Getter for texera_db.workflow.creation_time. */ @Override - public LocalDateTime getCreationTime() { + public Timestamp getCreationTime() { return this.creationTime; } @@ -131,7 +131,7 @@ public LocalDateTime getCreationTime() { * Setter for texera_db.workflow.creation_time. */ @Override - public void setCreationTime(LocalDateTime creationTime) { + public void setCreationTime(Timestamp creationTime) { this.creationTime = creationTime; } @@ -139,7 +139,7 @@ public void setCreationTime(LocalDateTime creationTime) { * Getter for texera_db.workflow.last_modified_time. */ @Override - public LocalDateTime getLastModifiedTime() { + public Timestamp getLastModifiedTime() { return this.lastModifiedTime; } @@ -147,7 +147,7 @@ public LocalDateTime getLastModifiedTime() { * Setter for texera_db.workflow.last_modified_time. */ @Override - public void setLastModifiedTime(LocalDateTime lastModifiedTime) { + public void setLastModifiedTime(Timestamp lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowComputingUnit.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowComputingUnit.java new file mode 100644 index 00000000000..74ad01c4388 --- /dev/null +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowComputingUnit.java @@ -0,0 +1,162 @@ +/* + * This file is generated by jOOQ. + */ +package edu.uci.ics.texera.dao.jooq.generated.tables.pojos; + + +import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowComputingUnit; + +import java.sql.Timestamp; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class WorkflowComputingUnit implements IWorkflowComputingUnit { + + private static final long serialVersionUID = 1L; + + private Long uid; + private String name; + private Integer cuid; + private Timestamp creationTime; + private Timestamp terminateTime; + + public WorkflowComputingUnit() {} + + public WorkflowComputingUnit(IWorkflowComputingUnit value) { + this.uid = value.getUid(); + this.name = value.getName(); + this.cuid = value.getCuid(); + this.creationTime = value.getCreationTime(); + this.terminateTime = value.getTerminateTime(); + } + + public WorkflowComputingUnit( + Long uid, + String name, + Integer cuid, + Timestamp creationTime, + Timestamp terminateTime + ) { + this.uid = uid; + this.name = name; + this.cuid = cuid; + this.creationTime = creationTime; + this.terminateTime = terminateTime; + } + + /** + * Getter for texera_db.workflow_computing_unit.uid. + */ + @Override + public Long getUid() { + return this.uid; + } + + /** + * Setter for texera_db.workflow_computing_unit.uid. + */ + @Override + public void setUid(Long uid) { + this.uid = uid; + } + + /** + * Getter for texera_db.workflow_computing_unit.name. + */ + @Override + public String getName() { + return this.name; + } + + /** + * Setter for texera_db.workflow_computing_unit.name. + */ + @Override + public void setName(String name) { + this.name = name; + } + + /** + * Getter for texera_db.workflow_computing_unit.cuid. + */ + @Override + public Integer getCuid() { + return this.cuid; + } + + /** + * Setter for texera_db.workflow_computing_unit.cuid. + */ + @Override + public void setCuid(Integer cuid) { + this.cuid = cuid; + } + + /** + * Getter for texera_db.workflow_computing_unit.creation_time. + */ + @Override + public Timestamp getCreationTime() { + return this.creationTime; + } + + /** + * Setter for texera_db.workflow_computing_unit.creation_time. + */ + @Override + public void setCreationTime(Timestamp creationTime) { + this.creationTime = creationTime; + } + + /** + * Getter for texera_db.workflow_computing_unit.terminate_time. + */ + @Override + public Timestamp getTerminateTime() { + return this.terminateTime; + } + + /** + * Setter for texera_db.workflow_computing_unit.terminate_time. + */ + @Override + public void setTerminateTime(Timestamp terminateTime) { + this.terminateTime = terminateTime; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("WorkflowComputingUnit ("); + + sb.append(uid); + sb.append(", ").append(name); + sb.append(", ").append(cuid); + sb.append(", ").append(creationTime); + sb.append(", ").append(terminateTime); + + sb.append(")"); + return sb.toString(); + } + + // ------------------------------------------------------------------------- + // FROM and INTO + // ------------------------------------------------------------------------- + + @Override + public void from(IWorkflowComputingUnit from) { + setUid(from.getUid()); + setName(from.getName()); + setCuid(from.getCuid()); + setCreationTime(from.getCreationTime()); + setTerminateTime(from.getTerminateTime()); + } + + @Override + public E into(E into) { + into.from(this); + return into; + } +} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowExecutions.java index 487b22dcbfb..d8064b883d1 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowExecutions.java @@ -6,7 +6,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowExecutions; -import java.time.LocalDateTime; +import java.sql.Timestamp; /** @@ -17,18 +17,18 @@ public class WorkflowExecutions implements IWorkflowExecutions { private static final long serialVersionUID = 1L; - private Integer eid; - private Integer vid; - private Integer uid; - private Short status; - private String result; - private LocalDateTime startingTime; - private LocalDateTime lastUpdateTime; - private Boolean bookmarked; - private String name; - private String environmentVersion; - private String logLocation; - private String runtimeStatsUri; + private Integer eid; + private Integer vid; + private Integer uid; + private Short status; + private String result; + private Timestamp startingTime; + private Timestamp lastUpdateTime; + private Boolean bookmarked; + private String name; + private String environmentVersion; + private String logLocation; + private String runtimeStatsUri; public WorkflowExecutions() {} @@ -48,18 +48,18 @@ public WorkflowExecutions(IWorkflowExecutions value) { } public WorkflowExecutions( - Integer eid, - Integer vid, - Integer uid, - Short status, - String result, - LocalDateTime startingTime, - LocalDateTime lastUpdateTime, - Boolean bookmarked, - String name, - String environmentVersion, - String logLocation, - String runtimeStatsUri + Integer eid, + Integer vid, + Integer uid, + Short status, + String result, + Timestamp startingTime, + Timestamp lastUpdateTime, + Boolean bookmarked, + String name, + String environmentVersion, + String logLocation, + String runtimeStatsUri ) { this.eid = eid; this.vid = vid; @@ -159,7 +159,7 @@ public void setResult(String result) { * Getter for texera_db.workflow_executions.starting_time. */ @Override - public LocalDateTime getStartingTime() { + public Timestamp getStartingTime() { return this.startingTime; } @@ -167,7 +167,7 @@ public LocalDateTime getStartingTime() { * Setter for texera_db.workflow_executions.starting_time. */ @Override - public void setStartingTime(LocalDateTime startingTime) { + public void setStartingTime(Timestamp startingTime) { this.startingTime = startingTime; } @@ -175,7 +175,7 @@ public void setStartingTime(LocalDateTime startingTime) { * Getter for texera_db.workflow_executions.last_update_time. */ @Override - public LocalDateTime getLastUpdateTime() { + public Timestamp getLastUpdateTime() { return this.lastUpdateTime; } @@ -183,7 +183,7 @@ public LocalDateTime getLastUpdateTime() { * Setter for texera_db.workflow_executions.last_update_time. */ @Override - public void setLastUpdateTime(LocalDateTime lastUpdateTime) { + public void setLastUpdateTime(Timestamp lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowVersion.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowVersion.java index 74869bee74f..cc51df39dbc 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowVersion.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowVersion.java @@ -6,7 +6,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowVersion; -import java.time.LocalDateTime; +import java.sql.Timestamp; /** @@ -17,10 +17,10 @@ public class WorkflowVersion implements IWorkflowVersion { private static final long serialVersionUID = 1L; - private Integer vid; - private Integer wid; - private String content; - private LocalDateTime creationTime; + private Integer vid; + private Integer wid; + private String content; + private Timestamp creationTime; public WorkflowVersion() {} @@ -32,10 +32,10 @@ public WorkflowVersion(IWorkflowVersion value) { } public WorkflowVersion( - Integer vid, - Integer wid, - String content, - LocalDateTime creationTime + Integer vid, + Integer wid, + String content, + Timestamp creationTime ) { this.vid = vid; this.wid = wid; @@ -95,7 +95,7 @@ public void setContent(String content) { * Getter for texera_db.workflow_version.creation_time. */ @Override - public LocalDateTime getCreationTime() { + public Timestamp getCreationTime() { return this.creationTime; } @@ -103,7 +103,7 @@ public LocalDateTime getCreationTime() { * Setter for texera_db.workflow_version.creation_time. */ @Override - public void setCreationTime(LocalDateTime creationTime) { + public void setCreationTime(Timestamp creationTime) { this.creationTime = creationTime; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetRecord.java index bb5a739246b..2f0dc7cd00a 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetRecord.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.Dataset; import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IDataset; -import java.time.LocalDateTime; +import java.sql.Timestamp; import org.jooq.Field; import org.jooq.Record1; @@ -20,7 +20,7 @@ * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class DatasetRecord extends UpdatableRecordImpl implements Record6, IDataset { +public class DatasetRecord extends UpdatableRecordImpl implements Record6, IDataset { private static final long serialVersionUID = 1L; @@ -108,7 +108,7 @@ public String getDescription() { * Setter for texera_db.dataset.creation_time. */ @Override - public void setCreationTime(LocalDateTime value) { + public void setCreationTime(Timestamp value) { set(5, value); } @@ -116,8 +116,8 @@ public void setCreationTime(LocalDateTime value) { * Getter for texera_db.dataset.creation_time. */ @Override - public LocalDateTime getCreationTime() { - return (LocalDateTime) get(5); + public Timestamp getCreationTime() { + return (Timestamp) get(5); } // ------------------------------------------------------------------------- @@ -134,12 +134,12 @@ public Record1 key() { // ------------------------------------------------------------------------- @Override - public Row6 fieldsRow() { + public Row6 fieldsRow() { return (Row6) super.fieldsRow(); } @Override - public Row6 valuesRow() { + public Row6 valuesRow() { return (Row6) super.valuesRow(); } @@ -169,7 +169,7 @@ public Field field5() { } @Override - public Field field6() { + public Field field6() { return Dataset.DATASET.CREATION_TIME; } @@ -199,7 +199,7 @@ public String component5() { } @Override - public LocalDateTime component6() { + public Timestamp component6() { return getCreationTime(); } @@ -229,7 +229,7 @@ public String value5() { } @Override - public LocalDateTime value6() { + public Timestamp value6() { return getCreationTime(); } @@ -264,13 +264,13 @@ public DatasetRecord value5(String value) { } @Override - public DatasetRecord value6(LocalDateTime value) { + public DatasetRecord value6(Timestamp value) { setCreationTime(value); return this; } @Override - public DatasetRecord values(Integer value1, Integer value2, String value3, Boolean value4, String value5, LocalDateTime value6) { + public DatasetRecord values(Integer value1, Integer value2, String value3, Boolean value4, String value5, Timestamp value6) { value1(value1); value2(value2); value3(value3); @@ -314,7 +314,7 @@ public DatasetRecord() { /** * Create a detached, initialised DatasetRecord */ - public DatasetRecord(Integer did, Integer ownerUid, String name, Boolean isPublic, String description, LocalDateTime creationTime) { + public DatasetRecord(Integer did, Integer ownerUid, String name, Boolean isPublic, String description, Timestamp creationTime) { super(Dataset.DATASET); setDid(did); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetVersionRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetVersionRecord.java index 5b326168f46..987c19a8caa 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetVersionRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetVersionRecord.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetVersion; import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IDatasetVersion; -import java.time.LocalDateTime; +import java.sql.Timestamp; import org.jooq.Field; import org.jooq.Record1; @@ -20,7 +20,7 @@ * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class DatasetVersionRecord extends UpdatableRecordImpl implements Record6, IDatasetVersion { +public class DatasetVersionRecord extends UpdatableRecordImpl implements Record6, IDatasetVersion { private static final long serialVersionUID = 1L; @@ -108,7 +108,7 @@ public String getVersionHash() { * Setter for texera_db.dataset_version.creation_time. */ @Override - public void setCreationTime(LocalDateTime value) { + public void setCreationTime(Timestamp value) { set(5, value); } @@ -116,8 +116,8 @@ public void setCreationTime(LocalDateTime value) { * Getter for texera_db.dataset_version.creation_time. */ @Override - public LocalDateTime getCreationTime() { - return (LocalDateTime) get(5); + public Timestamp getCreationTime() { + return (Timestamp) get(5); } // ------------------------------------------------------------------------- @@ -134,12 +134,12 @@ public Record1 key() { // ------------------------------------------------------------------------- @Override - public Row6 fieldsRow() { + public Row6 fieldsRow() { return (Row6) super.fieldsRow(); } @Override - public Row6 valuesRow() { + public Row6 valuesRow() { return (Row6) super.valuesRow(); } @@ -169,7 +169,7 @@ public Field field5() { } @Override - public Field field6() { + public Field field6() { return DatasetVersion.DATASET_VERSION.CREATION_TIME; } @@ -199,7 +199,7 @@ public String component5() { } @Override - public LocalDateTime component6() { + public Timestamp component6() { return getCreationTime(); } @@ -229,7 +229,7 @@ public String value5() { } @Override - public LocalDateTime value6() { + public Timestamp value6() { return getCreationTime(); } @@ -264,13 +264,13 @@ public DatasetVersionRecord value5(String value) { } @Override - public DatasetVersionRecord value6(LocalDateTime value) { + public DatasetVersionRecord value6(Timestamp value) { setCreationTime(value); return this; } @Override - public DatasetVersionRecord values(Integer value1, Integer value2, Integer value3, String value4, String value5, LocalDateTime value6) { + public DatasetVersionRecord values(Integer value1, Integer value2, Integer value3, String value4, String value5, Timestamp value6) { value1(value1); value2(value2); value3(value3); @@ -314,7 +314,7 @@ public DatasetVersionRecord() { /** * Create a detached, initialised DatasetVersionRecord */ - public DatasetVersionRecord(Integer dvid, Integer did, Integer creatorUid, String name, String versionHash, LocalDateTime creationTime) { + public DatasetVersionRecord(Integer dvid, Integer did, Integer creatorUid, String name, String versionHash, Timestamp creationTime) { super(DatasetVersion.DATASET_VERSION); setDvid(dvid); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/ProjectRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/ProjectRecord.java index 314fb8791c5..f042286bca4 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/ProjectRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/ProjectRecord.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.Project; import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IProject; -import java.time.LocalDateTime; +import java.sql.Timestamp; import org.jooq.Field; import org.jooq.Record1; @@ -20,7 +20,7 @@ * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class ProjectRecord extends UpdatableRecordImpl implements Record6, IProject { +public class ProjectRecord extends UpdatableRecordImpl implements Record6, IProject { private static final long serialVersionUID = 1L; @@ -92,7 +92,7 @@ public Integer getOwnerId() { * Setter for texera_db.project.creation_time. */ @Override - public void setCreationTime(LocalDateTime value) { + public void setCreationTime(Timestamp value) { set(4, value); } @@ -100,8 +100,8 @@ public void setCreationTime(LocalDateTime value) { * Getter for texera_db.project.creation_time. */ @Override - public LocalDateTime getCreationTime() { - return (LocalDateTime) get(4); + public Timestamp getCreationTime() { + return (Timestamp) get(4); } /** @@ -134,12 +134,12 @@ public Record1 key() { // ------------------------------------------------------------------------- @Override - public Row6 fieldsRow() { + public Row6 fieldsRow() { return (Row6) super.fieldsRow(); } @Override - public Row6 valuesRow() { + public Row6 valuesRow() { return (Row6) super.valuesRow(); } @@ -164,7 +164,7 @@ public Field field4() { } @Override - public Field field5() { + public Field field5() { return Project.PROJECT.CREATION_TIME; } @@ -194,7 +194,7 @@ public Integer component4() { } @Override - public LocalDateTime component5() { + public Timestamp component5() { return getCreationTime(); } @@ -224,7 +224,7 @@ public Integer value4() { } @Override - public LocalDateTime value5() { + public Timestamp value5() { return getCreationTime(); } @@ -258,7 +258,7 @@ public ProjectRecord value4(Integer value) { } @Override - public ProjectRecord value5(LocalDateTime value) { + public ProjectRecord value5(Timestamp value) { setCreationTime(value); return this; } @@ -270,7 +270,7 @@ public ProjectRecord value6(String value) { } @Override - public ProjectRecord values(Integer value1, String value2, String value3, Integer value4, LocalDateTime value5, String value6) { + public ProjectRecord values(Integer value1, String value2, String value3, Integer value4, Timestamp value5, String value6) { value1(value1); value2(value2); value3(value3); @@ -314,7 +314,7 @@ public ProjectRecord() { /** * Create a detached, initialised ProjectRecord */ - public ProjectRecord(Integer pid, String name, String description, Integer ownerId, LocalDateTime creationTime, String color) { + public ProjectRecord(Integer pid, String name, String description, Integer ownerId, Timestamp creationTime, String color) { super(Project.PROJECT); setPid(pid); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserActivityRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserActivityRecord.java index 19a4ab811a4..72b72f7f90d 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserActivityRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserActivityRecord.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.UserActivity; import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IUserActivity; -import java.time.LocalDateTime; +import java.sql.Timestamp; import org.jooq.Field; import org.jooq.Record6; @@ -19,7 +19,7 @@ * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class UserActivityRecord extends TableRecordImpl implements Record6, IUserActivity { +public class UserActivityRecord extends TableRecordImpl implements Record6, IUserActivity { private static final long serialVersionUID = 1L; @@ -107,7 +107,7 @@ public String getActivate() { * Setter for texera_db.user_activity.activity_time. */ @Override - public void setActivityTime(LocalDateTime value) { + public void setActivityTime(Timestamp value) { set(5, value); } @@ -115,8 +115,8 @@ public void setActivityTime(LocalDateTime value) { * Getter for texera_db.user_activity.activity_time. */ @Override - public LocalDateTime getActivityTime() { - return (LocalDateTime) get(5); + public Timestamp getActivityTime() { + return (Timestamp) get(5); } // ------------------------------------------------------------------------- @@ -124,12 +124,12 @@ public LocalDateTime getActivityTime() { // ------------------------------------------------------------------------- @Override - public Row6 fieldsRow() { + public Row6 fieldsRow() { return (Row6) super.fieldsRow(); } @Override - public Row6 valuesRow() { + public Row6 valuesRow() { return (Row6) super.valuesRow(); } @@ -159,7 +159,7 @@ public Field field5() { } @Override - public Field field6() { + public Field field6() { return UserActivity.USER_ACTIVITY.ACTIVITY_TIME; } @@ -189,7 +189,7 @@ public String component5() { } @Override - public LocalDateTime component6() { + public Timestamp component6() { return getActivityTime(); } @@ -219,7 +219,7 @@ public String value5() { } @Override - public LocalDateTime value6() { + public Timestamp value6() { return getActivityTime(); } @@ -254,13 +254,13 @@ public UserActivityRecord value5(String value) { } @Override - public UserActivityRecord value6(LocalDateTime value) { + public UserActivityRecord value6(Timestamp value) { setActivityTime(value); return this; } @Override - public UserActivityRecord values(Integer value1, Integer value2, String value3, String value4, String value5, LocalDateTime value6) { + public UserActivityRecord values(Integer value1, Integer value2, String value3, String value4, String value5, Timestamp value6) { value1(value1); value2(value2); value3(value3); @@ -304,7 +304,7 @@ public UserActivityRecord() { /** * Create a detached, initialised UserActivityRecord */ - public UserActivityRecord(Integer uid, Integer id, String type, String ip, String activate, LocalDateTime activityTime) { + public UserActivityRecord(Integer uid, Integer id, String type, String ip, String activate, Timestamp activityTime) { super(UserActivity.USER_ACTIVITY); setUid(uid); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowComputingUnitRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowComputingUnitRecord.java new file mode 100644 index 00000000000..1263be6fe48 --- /dev/null +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowComputingUnitRecord.java @@ -0,0 +1,302 @@ +/* + * This file is generated by jOOQ. + */ +package edu.uci.ics.texera.dao.jooq.generated.tables.records; + + +import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowComputingUnit; +import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowComputingUnit; + +import java.sql.Timestamp; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record5; +import org.jooq.Row5; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class WorkflowComputingUnitRecord extends UpdatableRecordImpl implements Record5, IWorkflowComputingUnit { + + private static final long serialVersionUID = 1L; + + /** + * Setter for texera_db.workflow_computing_unit.uid. + */ + @Override + public void setUid(Long value) { + set(0, value); + } + + /** + * Getter for texera_db.workflow_computing_unit.uid. + */ + @Override + public Long getUid() { + return (Long) get(0); + } + + /** + * Setter for texera_db.workflow_computing_unit.name. + */ + @Override + public void setName(String value) { + set(1, value); + } + + /** + * Getter for texera_db.workflow_computing_unit.name. + */ + @Override + public String getName() { + return (String) get(1); + } + + /** + * Setter for texera_db.workflow_computing_unit.cuid. + */ + @Override + public void setCuid(Integer value) { + set(2, value); + } + + /** + * Getter for texera_db.workflow_computing_unit.cuid. + */ + @Override + public Integer getCuid() { + return (Integer) get(2); + } + + /** + * Setter for texera_db.workflow_computing_unit.creation_time. + */ + @Override + public void setCreationTime(Timestamp value) { + set(3, value); + } + + /** + * Getter for texera_db.workflow_computing_unit.creation_time. + */ + @Override + public Timestamp getCreationTime() { + return (Timestamp) get(3); + } + + /** + * Setter for texera_db.workflow_computing_unit.terminate_time. + */ + @Override + public void setTerminateTime(Timestamp value) { + set(4, value); + } + + /** + * Getter for texera_db.workflow_computing_unit.terminate_time. + */ + @Override + public Timestamp getTerminateTime() { + return (Timestamp) get(4); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record5 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row5 fieldsRow() { + return (Row5) super.fieldsRow(); + } + + @Override + public Row5 valuesRow() { + return (Row5) super.valuesRow(); + } + + @Override + public Field field1() { + return WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.UID; + } + + @Override + public Field field2() { + return WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.NAME; + } + + @Override + public Field field3() { + return WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.CUID; + } + + @Override + public Field field4() { + return WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.CREATION_TIME; + } + + @Override + public Field field5() { + return WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.TERMINATE_TIME; + } + + @Override + public Long component1() { + return getUid(); + } + + @Override + public String component2() { + return getName(); + } + + @Override + public Integer component3() { + return getCuid(); + } + + @Override + public Timestamp component4() { + return getCreationTime(); + } + + @Override + public Timestamp component5() { + return getTerminateTime(); + } + + @Override + public Long value1() { + return getUid(); + } + + @Override + public String value2() { + return getName(); + } + + @Override + public Integer value3() { + return getCuid(); + } + + @Override + public Timestamp value4() { + return getCreationTime(); + } + + @Override + public Timestamp value5() { + return getTerminateTime(); + } + + @Override + public WorkflowComputingUnitRecord value1(Long value) { + setUid(value); + return this; + } + + @Override + public WorkflowComputingUnitRecord value2(String value) { + setName(value); + return this; + } + + @Override + public WorkflowComputingUnitRecord value3(Integer value) { + setCuid(value); + return this; + } + + @Override + public WorkflowComputingUnitRecord value4(Timestamp value) { + setCreationTime(value); + return this; + } + + @Override + public WorkflowComputingUnitRecord value5(Timestamp value) { + setTerminateTime(value); + return this; + } + + @Override + public WorkflowComputingUnitRecord values(Long value1, String value2, Integer value3, Timestamp value4, Timestamp value5) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + value5(value5); + return this; + } + + // ------------------------------------------------------------------------- + // FROM and INTO + // ------------------------------------------------------------------------- + + @Override + public void from(IWorkflowComputingUnit from) { + setUid(from.getUid()); + setName(from.getName()); + setCuid(from.getCuid()); + setCreationTime(from.getCreationTime()); + setTerminateTime(from.getTerminateTime()); + } + + @Override + public E into(E into) { + into.from(this); + return into; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached WorkflowComputingUnitRecord + */ + public WorkflowComputingUnitRecord() { + super(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT); + } + + /** + * Create a detached, initialised WorkflowComputingUnitRecord + */ + public WorkflowComputingUnitRecord(Long uid, String name, Integer cuid, Timestamp creationTime, Timestamp terminateTime) { + super(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT); + + setUid(uid); + setName(name); + setCuid(cuid); + setCreationTime(creationTime); + setTerminateTime(terminateTime); + } + + /** + * Create a detached, initialised WorkflowComputingUnitRecord + */ + public WorkflowComputingUnitRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowComputingUnit value) { + super(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT); + + if (value != null) { + setUid(value.getUid()); + setName(value.getName()); + setCuid(value.getCuid()); + setCreationTime(value.getCreationTime()); + setTerminateTime(value.getTerminateTime()); + } + } +} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowExecutionsRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowExecutionsRecord.java index 98537e17dd6..3b7926c131d 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowExecutionsRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowExecutionsRecord.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowExecutions; import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowExecutions; -import java.time.LocalDateTime; +import java.sql.Timestamp; import org.jooq.Field; import org.jooq.Record1; @@ -20,7 +20,7 @@ * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowExecutionsRecord extends UpdatableRecordImpl implements Record12, IWorkflowExecutions { +public class WorkflowExecutionsRecord extends UpdatableRecordImpl implements Record12, IWorkflowExecutions { private static final long serialVersionUID = 1L; @@ -108,7 +108,7 @@ public String getResult() { * Setter for texera_db.workflow_executions.starting_time. */ @Override - public void setStartingTime(LocalDateTime value) { + public void setStartingTime(Timestamp value) { set(5, value); } @@ -116,15 +116,15 @@ public void setStartingTime(LocalDateTime value) { * Getter for texera_db.workflow_executions.starting_time. */ @Override - public LocalDateTime getStartingTime() { - return (LocalDateTime) get(5); + public Timestamp getStartingTime() { + return (Timestamp) get(5); } /** * Setter for texera_db.workflow_executions.last_update_time. */ @Override - public void setLastUpdateTime(LocalDateTime value) { + public void setLastUpdateTime(Timestamp value) { set(6, value); } @@ -132,8 +132,8 @@ public void setLastUpdateTime(LocalDateTime value) { * Getter for texera_db.workflow_executions.last_update_time. */ @Override - public LocalDateTime getLastUpdateTime() { - return (LocalDateTime) get(6); + public Timestamp getLastUpdateTime() { + return (Timestamp) get(6); } /** @@ -232,12 +232,12 @@ public Record1 key() { // ------------------------------------------------------------------------- @Override - public Row12 fieldsRow() { + public Row12 fieldsRow() { return (Row12) super.fieldsRow(); } @Override - public Row12 valuesRow() { + public Row12 valuesRow() { return (Row12) super.valuesRow(); } @@ -267,12 +267,12 @@ public Field field5() { } @Override - public Field field6() { + public Field field6() { return WorkflowExecutions.WORKFLOW_EXECUTIONS.STARTING_TIME; } @Override - public Field field7() { + public Field field7() { return WorkflowExecutions.WORKFLOW_EXECUTIONS.LAST_UPDATE_TIME; } @@ -327,12 +327,12 @@ public String component5() { } @Override - public LocalDateTime component6() { + public Timestamp component6() { return getStartingTime(); } @Override - public LocalDateTime component7() { + public Timestamp component7() { return getLastUpdateTime(); } @@ -387,12 +387,12 @@ public String value5() { } @Override - public LocalDateTime value6() { + public Timestamp value6() { return getStartingTime(); } @Override - public LocalDateTime value7() { + public Timestamp value7() { return getLastUpdateTime(); } @@ -452,13 +452,13 @@ public WorkflowExecutionsRecord value5(String value) { } @Override - public WorkflowExecutionsRecord value6(LocalDateTime value) { + public WorkflowExecutionsRecord value6(Timestamp value) { setStartingTime(value); return this; } @Override - public WorkflowExecutionsRecord value7(LocalDateTime value) { + public WorkflowExecutionsRecord value7(Timestamp value) { setLastUpdateTime(value); return this; } @@ -494,7 +494,7 @@ public WorkflowExecutionsRecord value12(String value) { } @Override - public WorkflowExecutionsRecord values(Integer value1, Integer value2, Integer value3, Short value4, String value5, LocalDateTime value6, LocalDateTime value7, Boolean value8, String value9, String value10, String value11, String value12) { + public WorkflowExecutionsRecord values(Integer value1, Integer value2, Integer value3, Short value4, String value5, Timestamp value6, Timestamp value7, Boolean value8, String value9, String value10, String value11, String value12) { value1(value1); value2(value2); value3(value3); @@ -550,7 +550,7 @@ public WorkflowExecutionsRecord() { /** * Create a detached, initialised WorkflowExecutionsRecord */ - public WorkflowExecutionsRecord(Integer eid, Integer vid, Integer uid, Short status, String result, LocalDateTime startingTime, LocalDateTime lastUpdateTime, Boolean bookmarked, String name, String environmentVersion, String logLocation, String runtimeStatsUri) { + public WorkflowExecutionsRecord(Integer eid, Integer vid, Integer uid, Short status, String result, Timestamp startingTime, Timestamp lastUpdateTime, Boolean bookmarked, String name, String environmentVersion, String logLocation, String runtimeStatsUri) { super(WorkflowExecutions.WORKFLOW_EXECUTIONS); setEid(eid); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowRecord.java index fab46a651ec..d4a42cfe507 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowRecord.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.Workflow; import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflow; -import java.time.LocalDateTime; +import java.sql.Timestamp; import org.jooq.Field; import org.jooq.Record1; @@ -20,7 +20,7 @@ * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowRecord extends UpdatableRecordImpl implements Record7, IWorkflow { +public class WorkflowRecord extends UpdatableRecordImpl implements Record7, IWorkflow { private static final long serialVersionUID = 1L; @@ -92,7 +92,7 @@ public String getContent() { * Setter for texera_db.workflow.creation_time. */ @Override - public void setCreationTime(LocalDateTime value) { + public void setCreationTime(Timestamp value) { set(4, value); } @@ -100,15 +100,15 @@ public void setCreationTime(LocalDateTime value) { * Getter for texera_db.workflow.creation_time. */ @Override - public LocalDateTime getCreationTime() { - return (LocalDateTime) get(4); + public Timestamp getCreationTime() { + return (Timestamp) get(4); } /** * Setter for texera_db.workflow.last_modified_time. */ @Override - public void setLastModifiedTime(LocalDateTime value) { + public void setLastModifiedTime(Timestamp value) { set(5, value); } @@ -116,8 +116,8 @@ public void setLastModifiedTime(LocalDateTime value) { * Getter for texera_db.workflow.last_modified_time. */ @Override - public LocalDateTime getLastModifiedTime() { - return (LocalDateTime) get(5); + public Timestamp getLastModifiedTime() { + return (Timestamp) get(5); } /** @@ -150,12 +150,12 @@ public Record1 key() { // ------------------------------------------------------------------------- @Override - public Row7 fieldsRow() { + public Row7 fieldsRow() { return (Row7) super.fieldsRow(); } @Override - public Row7 valuesRow() { + public Row7 valuesRow() { return (Row7) super.valuesRow(); } @@ -180,12 +180,12 @@ public Field field4() { } @Override - public Field field5() { + public Field field5() { return Workflow.WORKFLOW.CREATION_TIME; } @Override - public Field field6() { + public Field field6() { return Workflow.WORKFLOW.LAST_MODIFIED_TIME; } @@ -215,12 +215,12 @@ public String component4() { } @Override - public LocalDateTime component5() { + public Timestamp component5() { return getCreationTime(); } @Override - public LocalDateTime component6() { + public Timestamp component6() { return getLastModifiedTime(); } @@ -250,12 +250,12 @@ public String value4() { } @Override - public LocalDateTime value5() { + public Timestamp value5() { return getCreationTime(); } @Override - public LocalDateTime value6() { + public Timestamp value6() { return getLastModifiedTime(); } @@ -289,13 +289,13 @@ public WorkflowRecord value4(String value) { } @Override - public WorkflowRecord value5(LocalDateTime value) { + public WorkflowRecord value5(Timestamp value) { setCreationTime(value); return this; } @Override - public WorkflowRecord value6(LocalDateTime value) { + public WorkflowRecord value6(Timestamp value) { setLastModifiedTime(value); return this; } @@ -307,7 +307,7 @@ public WorkflowRecord value7(Boolean value) { } @Override - public WorkflowRecord values(Integer value1, String value2, String value3, String value4, LocalDateTime value5, LocalDateTime value6, Boolean value7) { + public WorkflowRecord values(Integer value1, String value2, String value3, String value4, Timestamp value5, Timestamp value6, Boolean value7) { value1(value1); value2(value2); value3(value3); @@ -353,7 +353,7 @@ public WorkflowRecord() { /** * Create a detached, initialised WorkflowRecord */ - public WorkflowRecord(Integer wid, String name, String description, String content, LocalDateTime creationTime, LocalDateTime lastModifiedTime, Boolean isPublic) { + public WorkflowRecord(Integer wid, String name, String description, String content, Timestamp creationTime, Timestamp lastModifiedTime, Boolean isPublic) { super(Workflow.WORKFLOW); setWid(wid); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowVersionRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowVersionRecord.java index 232619ed5c2..0305869b6a7 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowVersionRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowVersionRecord.java @@ -7,7 +7,7 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowVersion; import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowVersion; -import java.time.LocalDateTime; +import java.sql.Timestamp; import org.jooq.Field; import org.jooq.Record1; @@ -20,7 +20,7 @@ * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowVersionRecord extends UpdatableRecordImpl implements Record4, IWorkflowVersion { +public class WorkflowVersionRecord extends UpdatableRecordImpl implements Record4, IWorkflowVersion { private static final long serialVersionUID = 1L; @@ -76,7 +76,7 @@ public String getContent() { * Setter for texera_db.workflow_version.creation_time. */ @Override - public void setCreationTime(LocalDateTime value) { + public void setCreationTime(Timestamp value) { set(3, value); } @@ -84,8 +84,8 @@ public void setCreationTime(LocalDateTime value) { * Getter for texera_db.workflow_version.creation_time. */ @Override - public LocalDateTime getCreationTime() { - return (LocalDateTime) get(3); + public Timestamp getCreationTime() { + return (Timestamp) get(3); } // ------------------------------------------------------------------------- @@ -102,12 +102,12 @@ public Record1 key() { // ------------------------------------------------------------------------- @Override - public Row4 fieldsRow() { + public Row4 fieldsRow() { return (Row4) super.fieldsRow(); } @Override - public Row4 valuesRow() { + public Row4 valuesRow() { return (Row4) super.valuesRow(); } @@ -127,7 +127,7 @@ public Field field3() { } @Override - public Field field4() { + public Field field4() { return WorkflowVersion.WORKFLOW_VERSION.CREATION_TIME; } @@ -147,7 +147,7 @@ public String component3() { } @Override - public LocalDateTime component4() { + public Timestamp component4() { return getCreationTime(); } @@ -167,7 +167,7 @@ public String value3() { } @Override - public LocalDateTime value4() { + public Timestamp value4() { return getCreationTime(); } @@ -190,13 +190,13 @@ public WorkflowVersionRecord value3(String value) { } @Override - public WorkflowVersionRecord value4(LocalDateTime value) { + public WorkflowVersionRecord value4(Timestamp value) { setCreationTime(value); return this; } @Override - public WorkflowVersionRecord values(Integer value1, Integer value2, String value3, LocalDateTime value4) { + public WorkflowVersionRecord values(Integer value1, Integer value2, String value3, Timestamp value4) { value1(value1); value2(value2); value3(value3); @@ -236,7 +236,7 @@ public WorkflowVersionRecord() { /** * Create a detached, initialised WorkflowVersionRecord */ - public WorkflowVersionRecord(Integer vid, Integer wid, String content, LocalDateTime creationTime) { + public WorkflowVersionRecord(Integer vid, Integer wid, String content, Timestamp creationTime) { super(WorkflowVersion.WORKFLOW_VERSION); setVid(vid); From 9250e57ec2ac0c289ea97694497c0df2d88417f7 Mon Sep 17 00:00:00 2001 From: Shengquan Ni <13672781+shengquan-ni@users.noreply.github.com> Date: Thu, 13 Feb 2025 12:43:21 -0800 Subject: [PATCH 15/20] update --- .../scheduling/CostEstimator.scala | 8 ++--- .../ics/texera/web/ComputingUnitMaster.scala | 9 +++++- .../ics/texera/web/ComputingUnitWorker.scala | 1 + .../ics/texera/web/TexeraWebApplication.scala | 9 ++++++ .../web/resource/UserConfigResource.scala | 13 ++++---- .../web/resource/auth/AuthResource.scala | 5 ++-- .../resource/auth/GoogleAuthResource.scala | 3 +- .../dashboard/SearchQueryBuilder.scala | 3 +- .../dashboard/UnifiedResourceSchema.scala | 3 +- .../execution/AdminExecutionResource.scala | 3 +- .../admin/user/AdminUserResource.scala | 3 +- .../resource/dashboard/hub/HubResource.scala | 5 ++-- .../user/dataset/DatasetAccessResource.scala | 3 +- .../user/dataset/DatasetResource.scala | 4 +-- .../utils/DatasetStatisticsUtils.scala | 3 +- .../user/project/ProjectAccessResource.scala | 3 +- .../user/project/ProjectResource.scala | 3 +- .../user/project/PublicProjectResource.scala | 3 +- .../user/quota/UserQuotaResource.scala | 3 +- .../workflow/WorkflowAccessResource.scala | 3 +- .../workflow/WorkflowExecutionsResource.scala | 4 +-- .../user/workflow/WorkflowResource.scala | 3 +- .../workflow/WorkflowVersionResource.scala | 3 +- .../ExecutionsMetadataPersistService.scala | 3 +- core/dao/build.sbt | 2 +- .../edu/uci/ics/texera/dao/SqlServer.scala | 30 ++++++++----------- .../edu/uci/ics/texera/dao/MockTexeraDB.scala | 4 +-- .../service/WorkflowCompilingService.scala | 9 ++++++ .../ics/amber/core/storage/FileResolver.scala | 6 +--- 29 files changed, 74 insertions(+), 80 deletions(-) diff --git a/core/amber/src/main/scala/edu/uci/ics/amber/engine/architecture/scheduling/CostEstimator.scala b/core/amber/src/main/scala/edu/uci/ics/amber/engine/architecture/scheduling/CostEstimator.scala index ab89f9db2c3..342e17aeec4 100644 --- a/core/amber/src/main/scala/edu/uci/ics/amber/engine/architecture/scheduling/CostEstimator.scala +++ b/core/amber/src/main/scala/edu/uci/ics/amber/engine/architecture/scheduling/CostEstimator.scala @@ -1,6 +1,6 @@ package edu.uci.ics.amber.engine.architecture.scheduling -import edu.uci.ics.amber.core.storage.{DocumentFactory, StorageConfig} +import edu.uci.ics.amber.core.storage.DocumentFactory import edu.uci.ics.amber.core.tuple.Tuple import edu.uci.ics.amber.core.virtualidentity.ActorVirtualIdentity import edu.uci.ics.amber.core.workflow.WorkflowContext @@ -84,11 +84,7 @@ class DefaultCostEstimator( val uriString: String = withTransaction( SqlServer - .getInstance( - StorageConfig.jdbcUrl, - StorageConfig.jdbcUsername, - StorageConfig.jdbcPassword - ) + .getInstance() .createDSLContext() ) { context => context diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/ComputingUnitMaster.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/ComputingUnitMaster.scala index 399e58c3e14..ca7de7e7592 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/ComputingUnitMaster.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/ComputingUnitMaster.scala @@ -2,7 +2,7 @@ package edu.uci.ics.texera.web import com.fasterxml.jackson.module.scala.DefaultScalaModule import com.typesafe.scalalogging.LazyLogging -import edu.uci.ics.amber.core.storage.DocumentFactory +import edu.uci.ics.amber.core.storage.{DocumentFactory, StorageConfig} import edu.uci.ics.amber.core.storage.util.mongo.MongoDatabaseManager import edu.uci.ics.amber.core.workflow.{PhysicalPlan, WorkflowContext} import edu.uci.ics.amber.engine.architecture.controller.ControllerConfig @@ -16,6 +16,7 @@ import edu.uci.ics.amber.engine.common.client.AmberClient import edu.uci.ics.amber.engine.common.storage.SequentialRecordStorage import edu.uci.ics.amber.engine.common.{AmberConfig, AmberRuntime, Utils} import edu.uci.ics.amber.core.virtualidentity.ExecutionIdentity +import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.web.auth.JwtAuth.setupJwtAuth import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowExecutions import edu.uci.ics.texera.web.resource.WorkflowWebsocketResource @@ -98,6 +99,12 @@ class ComputingUnitMaster extends io.dropwizard.Application[Configuration] with override def run(configuration: Configuration, environment: Environment): Unit = { + SqlServer.initConnection( + StorageConfig.jdbcUrl, + StorageConfig.jdbcUsername, + StorageConfig.jdbcPassword + ) + val webSocketUpgradeFilter = WebSocketUpgradeFilter.configureContext(environment.getApplicationContext) webSocketUpgradeFilter.getFactory.getPolicy.setIdleTimeout(Duration.ofHours(1).toMillis) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/ComputingUnitWorker.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/ComputingUnitWorker.scala index b8302a8aee8..a93e3faf076 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/ComputingUnitWorker.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/ComputingUnitWorker.scala @@ -26,6 +26,7 @@ object ComputingUnitWorker { def main(args: Array[String]): Unit = { val argMap = parseArgs(args) + // start actor system worker node AmberRuntime.startActorWorker(argMap.get(Symbol("serverAddr")).asInstanceOf[Option[String]]) } diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/TexeraWebApplication.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/TexeraWebApplication.scala index b5a52b47542..be2e9691eeb 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/TexeraWebApplication.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/TexeraWebApplication.scala @@ -4,9 +4,11 @@ import com.fasterxml.jackson.databind.module.SimpleModule import com.fasterxml.jackson.module.scala.DefaultScalaModule import com.github.dirkraft.dropwizard.fileassets.FileAssetsBundle import com.typesafe.scalalogging.LazyLogging +import edu.uci.ics.amber.core.storage.StorageConfig import edu.uci.ics.amber.core.storage.util.dataset.GitVersionControlLocalFileStorage import edu.uci.ics.amber.engine.common.Utils import edu.uci.ics.amber.util.PathUtils +import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.web.auth.JwtAuth.setupJwtAuth import edu.uci.ics.texera.web.auth.SessionUser import edu.uci.ics.texera.web.resource._ @@ -98,6 +100,12 @@ class TexeraWebApplication // serve backend at /api environment.jersey.setUrlPattern("/api/*") + SqlServer.initConnection( + StorageConfig.jdbcUrl, + StorageConfig.jdbcUsername, + StorageConfig.jdbcPassword + ) + // redirect all 404 to index page, according to Angular routing requirements val eph = new ErrorPageErrorHandler eph.addErrorPage(404, "/") @@ -148,5 +156,6 @@ class TexeraWebApplication environment.jersey.register(classOf[AdminExecutionResource]) environment.jersey.register(classOf[UserQuotaResource]) environment.jersey.register(classOf[AIAssistantResource]) + } } diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/UserConfigResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/UserConfigResource.scala index ff364962ee9..26420098b80 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/UserConfigResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/UserConfigResource.scala @@ -1,11 +1,10 @@ package edu.uci.ics.texera.web.resource -import edu.uci.ics.amber.core.storage.StorageConfig import edu.uci.ics.texera.dao.SqlServer -import edu.uci.ics.texera.web.auth.SessionUser import edu.uci.ics.texera.dao.jooq.generated.Tables.USER_CONFIG import edu.uci.ics.texera.dao.jooq.generated.tables.daos.UserConfigDao import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.{User, UserConfig} +import edu.uci.ics.texera.web.auth.SessionUser import io.dropwizard.auth.Auth import javax.annotation.security.RolesAllowed @@ -25,7 +24,7 @@ import scala.jdk.CollectionConverters.CollectionHasAsScala class UserConfigResource { final private lazy val userDictionaryDao = new UserConfigDao( SqlServer - .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) + .getInstance() .createDSLContext() .configuration ) @@ -43,7 +42,7 @@ class UserConfigResource { */ private def getDict(user: User): Map[String, String] = { SqlServer - .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) + .getInstance() .createDSLContext() .select() .from(USER_CONFIG) @@ -79,7 +78,7 @@ class UserConfigResource { */ private def getValueByKey(user: User, key: String): String = { SqlServer - .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) + .getInstance() .createDSLContext() .fetchOne( USER_CONFIG, @@ -118,7 +117,7 @@ class UserConfigResource { private def dictEntryExists(user: User, key: String): Boolean = { userDictionaryDao.existsById( SqlServer - .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) + .getInstance() .createDSLContext() .newRecord(USER_CONFIG.UID, USER_CONFIG.KEY) .values(user.getUid, key) @@ -154,7 +153,7 @@ class UserConfigResource { private def deleteDictEntry(user: User, key: String): Unit = { userDictionaryDao.deleteById( SqlServer - .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) + .getInstance() .createDSLContext() .newRecord(USER_CONFIG.UID, USER_CONFIG.KEY) .values(user.getUid, key) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/auth/AuthResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/auth/AuthResource.scala index 83b44d31369..4d4689a5988 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/auth/AuthResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/auth/AuthResource.scala @@ -1,6 +1,5 @@ package edu.uci.ics.texera.web.resource.auth -import edu.uci.ics.amber.core.storage.StorageConfig import edu.uci.ics.amber.engine.common.AmberConfig import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.web.auth.JwtAuth._ @@ -24,7 +23,7 @@ object AuthResource { final private lazy val userDao = new UserDao( SqlServer - .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) + .getInstance() .createDSLContext() .configuration ) @@ -40,7 +39,7 @@ object AuthResource { def retrieveUserByUsernameAndPassword(name: String, password: String): Option[User] = { Option( SqlServer - .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) + .getInstance() .createDSLContext() .select() .from(USER) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/auth/GoogleAuthResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/auth/GoogleAuthResource.scala index f9fdce0e82c..4cac1eb3059 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/auth/GoogleAuthResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/auth/GoogleAuthResource.scala @@ -3,7 +3,6 @@ package edu.uci.ics.texera.web.resource.auth import com.google.api.client.googleapis.auth.oauth2.GoogleIdTokenVerifier import com.google.api.client.http.javanet.NetHttpTransport import com.google.api.client.json.gson.GsonFactory -import edu.uci.ics.amber.core.storage.StorageConfig import edu.uci.ics.amber.engine.common.AmberConfig import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.web.auth.JwtAuth.{ @@ -25,7 +24,7 @@ import javax.ws.rs.core.MediaType object GoogleAuthResource { final private lazy val userDao = new UserDao( SqlServer - .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) + .getInstance() .createDSLContext() .configuration ) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/SearchQueryBuilder.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/SearchQueryBuilder.scala index 5ef6a954437..f129ba43042 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/SearchQueryBuilder.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/SearchQueryBuilder.scala @@ -1,6 +1,5 @@ package edu.uci.ics.texera.web.resource.dashboard -import edu.uci.ics.amber.core.storage.StorageConfig import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.web.resource.dashboard.DashboardResource.{ DashboardClickableFileEntry, @@ -12,7 +11,7 @@ import org.jooq._ object SearchQueryBuilder { final lazy val context = SqlServer - .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) + .getInstance() .createDSLContext() val FILE_RESOURCE_TYPE = "file" val WORKFLOW_RESOURCE_TYPE = "workflow" diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/UnifiedResourceSchema.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/UnifiedResourceSchema.scala index 8b382e568e4..84d67994b3b 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/UnifiedResourceSchema.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/UnifiedResourceSchema.scala @@ -1,6 +1,5 @@ package edu.uci.ics.texera.web.resource.dashboard -import edu.uci.ics.amber.core.storage.StorageConfig import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum import edu.uci.ics.texera.web.resource.dashboard.UnifiedResourceSchema.context @@ -29,7 +28,7 @@ object UnifiedResourceSchema { val resourceLastModifiedTimeField: Field[_] = DSL.field(DSL.name(resourceLastModifiedTimeAlias)) final lazy val context = SqlServer - .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) + .getInstance() .createDSLContext() def apply( diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/execution/AdminExecutionResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/execution/AdminExecutionResource.scala index 2674a162a30..79a994cf924 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/execution/AdminExecutionResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/execution/AdminExecutionResource.scala @@ -1,6 +1,5 @@ package edu.uci.ics.texera.web.resource.dashboard.admin.execution -import edu.uci.ics.amber.core.storage.StorageConfig import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.dao.jooq.generated.Tables._ import edu.uci.ics.texera.web.auth.SessionUser @@ -19,7 +18,7 @@ import scala.jdk.CollectionConverters._ object AdminExecutionResource { final private lazy val context = SqlServer - .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) + .getInstance() .createDSLContext() case class dashboardExecution( diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/user/AdminUserResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/user/AdminUserResource.scala index 6ce58a031b4..e1e1e0f3fcd 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/user/AdminUserResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/admin/user/AdminUserResource.scala @@ -1,6 +1,5 @@ package edu.uci.ics.texera.web.resource.dashboard.admin.user -import edu.uci.ics.amber.core.storage.StorageConfig import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.dao.jooq.generated.enums.UserRoleEnum import edu.uci.ics.texera.dao.jooq.generated.tables.daos.UserDao @@ -16,7 +15,7 @@ import javax.ws.rs.core.{MediaType, Response} object AdminUserResource { final private lazy val context = SqlServer - .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) + .getInstance() .createDSLContext() final private lazy val userDao = new UserDao(context.configuration) } diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/HubResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/HubResource.scala index cbf0ef74f86..ae83365a0ba 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/HubResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/HubResource.scala @@ -1,6 +1,5 @@ package edu.uci.ics.texera.web.resource.dashboard.hub -import edu.uci.ics.amber.core.storage.StorageConfig import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.dao.jooq.generated.Tables._ import edu.uci.ics.texera.dao.jooq.generated.tables.pojos.Workflow @@ -37,7 +36,7 @@ object HubResource { } final private lazy val context = SqlServer - .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) + .getInstance() .createDSLContext() final private val ipv4Pattern: Pattern = Pattern.compile( @@ -280,7 +279,7 @@ object HubResource { @Path("/hub") class HubResource { final private lazy val context = SqlServer - .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) + .getInstance() .createDSLContext() @GET diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetAccessResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetAccessResource.scala index cde745e1e44..099bc002727 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetAccessResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetAccessResource.scala @@ -1,6 +1,5 @@ package edu.uci.ics.texera.web.resource.dashboard.user.dataset -import edu.uci.ics.amber.core.storage.StorageConfig import edu.uci.ics.amber.engine.common.Utils.withTransaction import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.web.model.common.AccessEntry @@ -22,7 +21,7 @@ import javax.ws.rs.core.{MediaType, Response} object DatasetAccessResource { private lazy val context: DSLContext = SqlServer - .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) + .getInstance() .createDSLContext() def isDatasetPublic(ctx: DSLContext, did: Integer): Boolean = { diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetResource.scala index 8af53167943..75a058520de 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetResource.scala @@ -1,6 +1,6 @@ package edu.uci.ics.texera.web.resource.dashboard.user.dataset -import edu.uci.ics.amber.core.storage.{DocumentFactory, FileResolver, StorageConfig} +import edu.uci.ics.amber.core.storage.{DocumentFactory, FileResolver} import edu.uci.ics.amber.core.storage.util.dataset.{ GitVersionControlLocalFileStorage, PhysicalFileNode @@ -62,7 +62,7 @@ object DatasetResource { new scala.collection.concurrent.TrieMap[Integer, ReentrantLock]() private val context = SqlServer - .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) + .getInstance() .createDSLContext() /** diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/utils/DatasetStatisticsUtils.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/utils/DatasetStatisticsUtils.scala index 7b84f778373..77a745c1423 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/utils/DatasetStatisticsUtils.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/utils/DatasetStatisticsUtils.scala @@ -1,6 +1,5 @@ package edu.uci.ics.texera.web.resource.dashboard.user.dataset.utils -import edu.uci.ics.amber.core.storage.StorageConfig import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.dao.jooq.generated.tables.Dataset.DATASET import edu.uci.ics.texera.web.resource.dashboard.user.dataset.DatasetResource @@ -10,7 +9,7 @@ import scala.jdk.CollectionConverters._ object DatasetStatisticsUtils { final private lazy val context = SqlServer - .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) + .getInstance() .createDSLContext() // this function retrieves the total counts of dataset that belongs to the user diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectAccessResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectAccessResource.scala index ab0ed9b58ad..d124343074d 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectAccessResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectAccessResource.scala @@ -1,6 +1,5 @@ package edu.uci.ics.texera.web.resource.dashboard.user.project -import edu.uci.ics.amber.core.storage.StorageConfig import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.web.model.common.AccessEntry import edu.uci.ics.texera.dao.jooq.generated.Tables.{PROJECT_USER_ACCESS, USER} @@ -19,7 +18,7 @@ import javax.ws.rs.core.MediaType @Path("/access/project") class ProjectAccessResource() { final private val context: DSLContext = SqlServer - .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) + .getInstance() .createDSLContext() final private val userDao = new UserDao(context.configuration()) final private val projectDao = new ProjectDao(context.configuration) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectResource.scala index 14c81805d9b..83f4b5cb5ca 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/ProjectResource.scala @@ -1,6 +1,5 @@ package edu.uci.ics.texera.web.resource.dashboard.user.project -import edu.uci.ics.amber.core.storage.StorageConfig import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.web.auth.SessionUser import edu.uci.ics.texera.dao.jooq.generated.Tables._ @@ -35,7 +34,7 @@ import scala.jdk.CollectionConverters.IterableHasAsScala object ProjectResource { final private lazy val context = SqlServer - .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) + .getInstance() .createDSLContext() final private lazy val userProjectDao = new ProjectDao(context.configuration) final private lazy val workflowOfProjectDao = new WorkflowOfProjectDao(context.configuration) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/PublicProjectResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/PublicProjectResource.scala index 5322eb3ae96..9ee9773c5bd 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/PublicProjectResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/project/PublicProjectResource.scala @@ -1,6 +1,5 @@ package edu.uci.ics.texera.web.resource.dashboard.user.project -import edu.uci.ics.amber.core.storage.StorageConfig import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.web.auth.SessionUser import edu.uci.ics.texera.dao.jooq.generated.Tables.{PROJECT, PUBLIC_PROJECT, USER} @@ -26,7 +25,7 @@ case class DashboardPublicProject( class PublicProjectResource { final private val context: DSLContext = SqlServer - .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) + .getInstance() .createDSLContext() final private lazy val publicProjectDao = new PublicProjectDao(context.configuration) final private val projectUserAccessDao = new ProjectUserAccessDao(context.configuration) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/quota/UserQuotaResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/quota/UserQuotaResource.scala index 475e058e781..6c801bb51e6 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/quota/UserQuotaResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/quota/UserQuotaResource.scala @@ -1,6 +1,5 @@ package edu.uci.ics.texera.web.resource.dashboard.user.quota -import edu.uci.ics.amber.core.storage.StorageConfig import edu.uci.ics.amber.core.storage.util.mongo.MongoDatabaseManager import edu.uci.ics.amber.core.storage.util.mongo.MongoDatabaseManager.database import edu.uci.ics.texera.dao.SqlServer @@ -18,7 +17,7 @@ import scala.jdk.CollectionConverters.IterableHasAsScala object UserQuotaResource { final private lazy val context = SqlServer - .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) + .getInstance() .createDSLContext() case class Workflow( diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowAccessResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowAccessResource.scala index 70b41b83c3a..f668297e965 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowAccessResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowAccessResource.scala @@ -1,6 +1,5 @@ package edu.uci.ics.texera.web.resource.dashboard.user.workflow -import edu.uci.ics.amber.core.storage.StorageConfig import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.web.auth.SessionUser import edu.uci.ics.texera.web.model.common.AccessEntry @@ -23,7 +22,7 @@ import javax.ws.rs.core.MediaType object WorkflowAccessResource { final private val context: DSLContext = SqlServer - .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) + .getInstance() .createDSLContext() /** diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala index 7d4f4d51f61..f1ecf0b86d6 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala @@ -1,7 +1,7 @@ package edu.uci.ics.texera.web.resource.dashboard.user.workflow import edu.uci.ics.amber.core.storage.result.ExecutionResourcesMapping -import edu.uci.ics.amber.core.storage.{DocumentFactory, StorageConfig, VFSURIFactory} +import edu.uci.ics.amber.core.storage.{DocumentFactory, VFSURIFactory} import edu.uci.ics.amber.core.tuple.Tuple import edu.uci.ics.amber.core.virtualidentity.{ ChannelMarkerIdentity, @@ -33,7 +33,7 @@ import scala.jdk.CollectionConverters._ object WorkflowExecutionsResource { final private lazy val context = SqlServer - .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) + .getInstance() .createDSLContext() final private lazy val executionsDao = new WorkflowExecutionsDao(context.configuration) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala index 8954aff9cc6..622caee4bae 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala @@ -3,7 +3,6 @@ package edu.uci.ics.texera.web.resource.dashboard.user.workflow import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.module.scala.DefaultScalaModule import com.typesafe.scalalogging.LazyLogging -import edu.uci.ics.amber.core.storage.StorageConfig import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.web.auth.SessionUser import edu.uci.ics.texera.dao.jooq.generated.Tables._ @@ -41,7 +40,7 @@ import scala.util.control.NonFatal object WorkflowResource { final private lazy val context = SqlServer - .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) + .getInstance() .createDSLContext() final private lazy val workflowDao = new WorkflowDao(context.configuration) final private lazy val workflowOfUserDao = new WorkflowOfUserDao( diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowVersionResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowVersionResource.scala index d9b4faea7fb..0af901fee55 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowVersionResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowVersionResource.scala @@ -1,7 +1,6 @@ package edu.uci.ics.texera.web.resource.dashboard.user.workflow import com.flipkart.zjsonpatch.{JsonDiff, JsonPatch} -import edu.uci.ics.amber.core.storage.StorageConfig import edu.uci.ics.amber.engine.common.AmberConfig import edu.uci.ics.amber.engine.common.Utils.objectMapper import edu.uci.ics.texera.dao.SqlServer @@ -29,7 +28,7 @@ import scala.jdk.CollectionConverters.IterableHasAsScala object WorkflowVersionResource { final private lazy val context = SqlServer - .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) + .getInstance() .createDSLContext() final private lazy val workflowVersionDao = new WorkflowVersionDao(context.configuration) final private lazy val workflowDao = new WorkflowDao(context.configuration) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionsMetadataPersistService.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionsMetadataPersistService.scala index f8ec0127820..340299463e1 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionsMetadataPersistService.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionsMetadataPersistService.scala @@ -1,7 +1,6 @@ package edu.uci.ics.texera.web.service import com.typesafe.scalalogging.LazyLogging -import edu.uci.ics.amber.core.storage.StorageConfig import edu.uci.ics.amber.core.workflow.WorkflowContext.DEFAULT_EXECUTION_ID import edu.uci.ics.amber.engine.common.AmberConfig import edu.uci.ics.amber.core.virtualidentity.{ExecutionIdentity, WorkflowIdentity} @@ -18,7 +17,7 @@ import java.sql.Timestamp */ object ExecutionsMetadataPersistService extends LazyLogging { final private lazy val context = SqlServer - .getInstance(StorageConfig.jdbcUrl, StorageConfig.jdbcUsername, StorageConfig.jdbcPassword) + .getInstance() .createDSLContext() private val workflowExecutionsDao = new WorkflowExecutionsDao( context.configuration diff --git a/core/dao/build.sbt b/core/dao/build.sbt index 7fbfbb3849d..ef673546380 100644 --- a/core/dao/build.sbt +++ b/core/dao/build.sbt @@ -78,7 +78,7 @@ libraryDependencies ++= Seq( ///////////////////////////////////////////////////////////////////////////// libraryDependencies ++= Seq( - "org.jooq" % "jooq" % "3.16.6", + "org.jooq" % "jooq" % "3.16.10", "org.jooq" % "jooq-codegen" % "3.16.10" ) diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/SqlServer.scala b/core/dao/src/main/scala/edu/uci/ics/texera/dao/SqlServer.scala index e1a81a2d1b0..2748bf1e948 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/SqlServer.scala +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/SqlServer.scala @@ -14,13 +14,12 @@ import org.postgresql.ds.PGSimpleDataSource class SqlServer private (url: String, user: String, password: String) { val SQL_DIALECT: SQLDialect = SQLDialect.POSTGRES private val dataSource: PGSimpleDataSource = new PGSimpleDataSource() - var context: DSLContext = _ - - { + var context: DSLContext = { dataSource.setUrl(url) dataSource.setUser(user) dataSource.setPassword(password) - context = DSL.using(dataSource, SQL_DIALECT) + dataSource.setConnectTimeout(5) + DSL.using(dataSource, SQL_DIALECT) } def createDSLContext(): DSLContext = context @@ -31,24 +30,19 @@ class SqlServer private (url: String, user: String, password: String) { } object SqlServer { - @volatile private var instance: Option[SqlServer] = None + private var instance: Option[SqlServer] = None - def getInstance(url: String, user: String, password: String): SqlServer = { - instance match { - case Some(server) => server - case None => - synchronized { - instance match { - case Some(server) => server - case None => - val server = new SqlServer(url, user, password) - instance = Some(server) - server - } - } + def initConnection(url: String, user: String, password: String): Unit = { + if (instance.isEmpty) { + val server = new SqlServer(url, user, password) + instance = Some(server) } } + def getInstance(): SqlServer = { + instance.get + } + /** * A utility function for create a transaction block using given sql context * @param dsl the sql context diff --git a/core/dao/src/test/scala/edu/uci/ics/texera/dao/MockTexeraDB.scala b/core/dao/src/test/scala/edu/uci/ics/texera/dao/MockTexeraDB.scala index b2eb0ff8480..b6384e3e2e8 100644 --- a/core/dao/src/test/scala/edu/uci/ics/texera/dao/MockTexeraDB.scala +++ b/core/dao/src/test/scala/edu/uci/ics/texera/dao/MockTexeraDB.scala @@ -82,8 +82,8 @@ trait MockTexeraDB { val texeraDB = embedded.getDatabase(username, database) executeScriptInJDBC(texeraDB.getConnection, removeCCommands(parts(1))) - val sqlServerInstance = - SqlServer.getInstance(embedded.getJdbcUrl(username, database), username, password) + SqlServer.initConnection(embedded.getJdbcUrl(username, database), username, password) + val sqlServerInstance = SqlServer.getInstance() dslContext = Some(DSL.using(texeraDB, SQLDialect.POSTGRES)) sqlServerInstance.replaceDSLContext(dslContext.get) diff --git a/core/workflow-compiling-service/src/main/scala/edu/uci/ics/texera/service/WorkflowCompilingService.scala b/core/workflow-compiling-service/src/main/scala/edu/uci/ics/texera/service/WorkflowCompilingService.scala index fb3d98223ca..c217bfef344 100644 --- a/core/workflow-compiling-service/src/main/scala/edu/uci/ics/texera/service/WorkflowCompilingService.scala +++ b/core/workflow-compiling-service/src/main/scala/edu/uci/ics/texera/service/WorkflowCompilingService.scala @@ -3,7 +3,9 @@ package edu.uci.ics.texera.service import io.dropwizard.core.Application import io.dropwizard.core.setup.{Bootstrap, Environment} import com.fasterxml.jackson.module.scala.DefaultScalaModule +import edu.uci.ics.amber.core.storage.StorageConfig import edu.uci.ics.amber.util.PathUtils.workflowCompilingServicePath +import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.service.resource.WorkflowCompilationResource class WorkflowCompilingService extends Application[WorkflowCompilingServiceConfiguration] { @@ -18,6 +20,13 @@ class WorkflowCompilingService extends Application[WorkflowCompilingServiceConfi ): Unit = { // serve backend at /api environment.jersey.setUrlPattern("/api/*") + + SqlServer.initConnection( + StorageConfig.jdbcUrl, + StorageConfig.jdbcUsername, + StorageConfig.jdbcPassword + ) + // register the compilation endpoint environment.jersey.register(classOf[WorkflowCompilationResource]) } diff --git a/core/workflow-core/src/main/scala/edu/uci/ics/amber/core/storage/FileResolver.scala b/core/workflow-core/src/main/scala/edu/uci/ics/amber/core/storage/FileResolver.scala index 051a07c1050..18a5acd0c60 100644 --- a/core/workflow-core/src/main/scala/edu/uci/ics/amber/core/storage/FileResolver.scala +++ b/core/workflow-core/src/main/scala/edu/uci/ics/amber/core/storage/FileResolver.scala @@ -82,11 +82,7 @@ object FileResolver { val (dataset, datasetVersion) = withTransaction( SqlServer - .getInstance( - StorageConfig.jdbcUrl, - StorageConfig.jdbcUsername, - StorageConfig.jdbcPassword - ) + .getInstance() .createDSLContext() ) { ctx => // fetch the dataset from DB From 827332e6069f13c09dc6d47aeaa4b0a50f9d75e9 Mon Sep 17 00:00:00 2001 From: Shengquan Ni <13672781+shengquan-ni@users.noreply.github.com> Date: Tue, 18 Feb 2025 18:21:10 -0800 Subject: [PATCH 16/20] Update ExecutionsMetadataPersistService.scala --- .../texera/web/service/ExecutionsMetadataPersistService.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionsMetadataPersistService.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionsMetadataPersistService.scala index 340299463e1..7707b5911c6 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionsMetadataPersistService.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/service/ExecutionsMetadataPersistService.scala @@ -19,7 +19,7 @@ object ExecutionsMetadataPersistService extends LazyLogging { final private lazy val context = SqlServer .getInstance() .createDSLContext() - private val workflowExecutionsDao = new WorkflowExecutionsDao( + private lazy val workflowExecutionsDao = new WorkflowExecutionsDao( context.configuration ) From aa8d5ae6e606a1fdb20d0e7817d0e2acd71e2fa6 Mon Sep 17 00:00:00 2001 From: Shengquan Ni <13672781+shengquan-ni@users.noreply.github.com> Date: Tue, 18 Feb 2025 18:31:52 -0800 Subject: [PATCH 17/20] Update WorkflowExecutionsResource.scala --- .../user/workflow/WorkflowExecutionsResource.scala | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala index 8df305ab07f..52961a34524 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala @@ -3,7 +3,12 @@ package edu.uci.ics.texera.web.resource.dashboard.user.workflow import edu.uci.ics.amber.core.storage.result.ExecutionResourcesMapping import edu.uci.ics.amber.core.storage.{DocumentFactory, VFSURIFactory} import edu.uci.ics.amber.core.tuple.Tuple -import edu.uci.ics.amber.core.virtualidentity.{ChannelMarkerIdentity, ExecutionIdentity, OperatorIdentity, WorkflowIdentity} +import edu.uci.ics.amber.core.virtualidentity.{ + ChannelMarkerIdentity, + ExecutionIdentity, + OperatorIdentity, + WorkflowIdentity +} import edu.uci.ics.amber.core.workflow.PortIdentity import edu.uci.ics.amber.engine.architecture.logreplay.{ReplayDestination, ReplayLogRecord} import edu.uci.ics.amber.engine.common.AmberConfig @@ -16,7 +21,6 @@ import edu.uci.ics.texera.web.auth.SessionUser import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowExecutionsResource._ import edu.uci.ics.texera.web.service.ExecutionsMetadataPersistService import io.dropwizard.auth.Auth -import org.jooq.types.ULong import java.net.URI import java.sql.Timestamp @@ -352,8 +356,8 @@ class WorkflowExecutionsResource { outputTupleCount = record.getField(4).asInstanceOf[Long], outputTupleSize = record.getField(5).asInstanceOf[Long], dataProcessingTime = record.getField(6).asInstanceOf[Long], - controlProcessingTime = ULong.valueOf(record.getField(7).asInstanceOf[Long]), - idleTime = ULong.valueOf(record.getField(8).asInstanceOf[Long]), + controlProcessingTime = record.getField(7).asInstanceOf[Long], + idleTime = record.getField(8).asInstanceOf[Long], numWorkers = record.getField(9).asInstanceOf[Int], status = record.getField(10).asInstanceOf[Int] ) From 5e52429da3f93929d15ef52db1ea768363c99839 Mon Sep 17 00:00:00 2001 From: Shengquan Ni <13672781+shengquan-ni@users.noreply.github.com> Date: Wed, 19 Feb 2025 21:48:40 -0800 Subject: [PATCH 18/20] update --- .../resource/dashboard/hub/EntityTables.scala | 27 +- .../resource/dashboard/hub/HubResource.scala | 30 +- .../user/dataset/DatasetResource.scala | 2 +- .../user/workflow/WorkflowResource.scala | 19 +- .../ics/texera/dao/jooq/generated/Keys.java | 12 +- .../ics/texera/dao/jooq/generated/Tables.java | 6 - .../texera/dao/jooq/generated/TexeraDb.java | 21 +- .../generated/tables/DatasetUserLikes.java | 76 +++-- .../generated/tables/DatasetViewCount.java | 67 ++-- .../jooq/generated/tables/UserActivity.java | 4 +- .../tables/WorkflowComputingUnit.java | 159 --------- .../tables/daos/DatasetUserLikesDao.java | 19 +- .../tables/daos/DatasetViewCountDao.java | 29 +- .../tables/daos/WorkflowComputingUnitDao.java | 131 -------- .../tables/interfaces/IDatasetUserLikes.java | 20 +- .../tables/interfaces/IDatasetViewCount.java | 20 +- .../interfaces/IWorkflowComputingUnit.java | 82 ----- .../tables/pojos/DatasetUserLikes.java | 32 +- .../tables/pojos/DatasetViewCount.java | 32 +- .../tables/pojos/WorkflowComputingUnit.java | 162 ---------- .../records/DatasetUserLikesRecord.java | 59 ++-- .../records/DatasetViewCountRecord.java | 59 ++-- .../records/WorkflowComputingUnitRecord.java | 302 ------------------ core/scripts/sql/texera_ddl.sql | 99 +++--- core/scripts/sql/update/01.sql | 7 - core/scripts/sql/update/02.sql | 3 - core/scripts/sql/update/03.sql | 3 - core/scripts/sql/update/04.sql | 14 - core/scripts/sql/update/05.sql | 2 - core/scripts/sql/update/06.sql | 8 - core/scripts/sql/update/07.sql | 41 --- core/scripts/sql/update/08.sql | 4 - core/scripts/sql/update/09.sql | 40 --- core/scripts/sql/update/10.sql | 3 - core/scripts/sql/update/11.sql | 3 - core/scripts/sql/update/12.sql | 4 - core/scripts/sql/update/13.sql | 22 -- core/scripts/sql/update/14.sql | 6 - core/scripts/sql/update/15.sql | 4 - core/scripts/sql/update/16.sql | 26 -- core/scripts/sql/update/17.sql | 8 - core/scripts/sql/update/18.sql | 7 - core/scripts/sql/update/19.sql | 55 ---- core/scripts/sql/update/20.sql | 12 - core/scripts/sql/update/21.sql | 16 - core/scripts/sql/update/22.sql | 20 -- core/scripts/sql/update/fix_groupby.sql | 1 - .../src/main/resources/storage-config.yaml | 2 +- 48 files changed, 361 insertions(+), 1419 deletions(-) delete mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowComputingUnit.java delete mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowComputingUnitDao.java delete mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowComputingUnit.java delete mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowComputingUnit.java delete mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowComputingUnitRecord.java delete mode 100644 core/scripts/sql/update/01.sql delete mode 100644 core/scripts/sql/update/02.sql delete mode 100644 core/scripts/sql/update/03.sql delete mode 100644 core/scripts/sql/update/04.sql delete mode 100644 core/scripts/sql/update/05.sql delete mode 100644 core/scripts/sql/update/06.sql delete mode 100644 core/scripts/sql/update/07.sql delete mode 100644 core/scripts/sql/update/08.sql delete mode 100644 core/scripts/sql/update/09.sql delete mode 100644 core/scripts/sql/update/10.sql delete mode 100644 core/scripts/sql/update/11.sql delete mode 100644 core/scripts/sql/update/12.sql delete mode 100644 core/scripts/sql/update/13.sql delete mode 100644 core/scripts/sql/update/14.sql delete mode 100644 core/scripts/sql/update/15.sql delete mode 100644 core/scripts/sql/update/16.sql delete mode 100644 core/scripts/sql/update/17.sql delete mode 100644 core/scripts/sql/update/18.sql delete mode 100644 core/scripts/sql/update/19.sql delete mode 100644 core/scripts/sql/update/20.sql delete mode 100644 core/scripts/sql/update/21.sql delete mode 100644 core/scripts/sql/update/22.sql delete mode 100644 core/scripts/sql/update/fix_groupby.sql diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/EntityTables.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/EntityTables.scala index 83602e1ad4b..22b803364f1 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/EntityTables.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/EntityTables.scala @@ -1,17 +1,8 @@ package edu.uci.ics.texera.web.resource.dashboard.hub -import edu.uci.ics.texera.dao.jooq.generated.tables.records.{ - DatasetRecord, - DatasetUserLikesRecord, - DatasetViewCountRecord, - WorkflowRecord, - WorkflowUserClonesRecord, - WorkflowUserLikesRecord, - WorkflowViewCountRecord -} -import org.jooq._ - import edu.uci.ics.texera.dao.jooq.generated.Tables._ +import edu.uci.ics.texera.dao.jooq.generated.tables.records._ +import org.jooq._ object EntityTables { // ==================== BASE TABLE ==================== @@ -19,7 +10,7 @@ object EntityTables { type R <: Record val table: Table[R] val isPublicColumn: TableField[R, java.lang.Boolean] - val idColumn: TableField[R, UInteger] + val idColumn: TableField[R, Integer] } object BaseEntityTable { @@ -28,14 +19,14 @@ object EntityTables { override val table: Table[WorkflowRecord] = WORKFLOW override val isPublicColumn: TableField[WorkflowRecord, java.lang.Boolean] = WORKFLOW.IS_PUBLIC - override val idColumn: TableField[WorkflowRecord, UInteger] = WORKFLOW.WID + override val idColumn: TableField[WorkflowRecord, Integer] = WORKFLOW.WID } case object DatasetTable extends BaseEntityTable { override type R = DatasetRecord override val table: Table[DatasetRecord] = DATASET override val isPublicColumn: TableField[DatasetRecord, java.lang.Boolean] = DATASET.IS_PUBLIC - override val idColumn: TableField[DatasetRecord, UInteger] = DATASET.DID + override val idColumn: TableField[DatasetRecord, Integer] = DATASET.DID } def apply(entityType: String): BaseEntityTable = { @@ -74,9 +65,9 @@ object EntityTables { case object DatasetLikeTable extends LikeTable { override type R = DatasetUserLikesRecord override val table: Table[DatasetUserLikesRecord] = DATASET_USER_LIKES - override val uidColumn: TableField[DatasetUserLikesRecord, UInteger] = + override val uidColumn: TableField[DatasetUserLikesRecord, Integer] = DATASET_USER_LIKES.UID - override val idColumn: TableField[DatasetUserLikesRecord, UInteger] = DATASET_USER_LIKES.DID + override val idColumn: TableField[DatasetUserLikesRecord, Integer] = DATASET_USER_LIKES.DID } def apply(entityType: String): LikeTable = @@ -129,8 +120,8 @@ object EntityTables { case object DatasetViewCountTable extends ViewCountTable { override type R = DatasetViewCountRecord override val table: Table[DatasetViewCountRecord] = DATASET_VIEW_COUNT - override val idColumn: TableField[DatasetViewCountRecord, UInteger] = DATASET_VIEW_COUNT.DID - override val viewCountColumn: TableField[DatasetViewCountRecord, UInteger] = + override val idColumn: TableField[DatasetViewCountRecord, Integer] = DATASET_VIEW_COUNT.DID + override val viewCountColumn: TableField[DatasetViewCountRecord, Integer] = DATASET_VIEW_COUNT.VIEW_COUNT } diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/HubResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/HubResource.scala index 51dd2e02cf2..c6f3200de12 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/HubResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/HubResource.scala @@ -2,8 +2,21 @@ package edu.uci.ics.texera.web.resource.dashboard.hub import edu.uci.ics.texera.dao.SqlServer import edu.uci.ics.texera.dao.jooq.generated.Tables._ -import HubResource.{fetchDashboardDatasetsByDids, fetchDashboardWorkflowsByWids, getUserLCCount, isLikedHelper, recordLikeActivity, recordUserActivity, userRequest, validateEntityType} -import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowResource.{DashboardWorkflow, baseWorkflowSelect, mapWorkflowEntries} +import HubResource.{ + fetchDashboardDatasetsByDids, + fetchDashboardWorkflowsByWids, + getUserLCCount, + isLikedHelper, + recordLikeActivity, + recordUserActivity, + userRequest, + validateEntityType +} +import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowResource.{ + DashboardWorkflow, + baseWorkflowSelect, + mapWorkflowEntries +} import org.jooq.impl.DSL import java.util @@ -14,8 +27,11 @@ import javax.ws.rs.core.{Context, MediaType} import scala.jdk.CollectionConverters._ import EntityTables._ import edu.uci.ics.texera.web.resource.dashboard.DashboardResource.DashboardClickableFileEntry -import edu.uci.ics.texera.web.resource.dashboard.user.dataset.DatasetResource.{DashboardDataset, baseDatasetSelect, mapDashboardDataset} -import org.jooq.types.UInteger +import edu.uci.ics.texera.web.resource.dashboard.user.dataset.DatasetResource.{ + DashboardDataset, + baseDatasetSelect, + mapDashboardDataset +} object HubResource { case class userRequest(entityId: Integer, userId: Integer, entityType: String) @@ -219,7 +235,7 @@ object HubResource { .fetchOne(0, classOf[Int]) } - def fetchDashboardWorkflowsByWids(wids: Seq[UInteger], uid: UInteger): List[DashboardWorkflow] = { + def fetchDashboardWorkflowsByWids(wids: Seq[Integer], uid: Integer): List[DashboardWorkflow] = { if (wids.isEmpty) { return List.empty[DashboardWorkflow] } @@ -232,7 +248,7 @@ object HubResource { mapWorkflowEntries(records, uid) } - def fetchDashboardDatasetsByDids(dids: Seq[Integer], uid: UInteger): List[DashboardDataset] = { + def fetchDashboardDatasetsByDids(dids: Seq[Integer], uid: Integer): List[DashboardDataset] = { if (dids.isEmpty) { return List.empty[DashboardDataset] } @@ -413,7 +429,7 @@ class HubResource { .asScala .toSeq - val currentUid: UInteger = if (uid == null || uid == -1) null else UInteger.valueOf(uid) + val currentUid: Integer = if (uid == null || uid == -1) null else Integer.valueOf(uid) val clickableFileEntries = if (entityType == "workflow") { diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetResource.scala index 765cb479c48..27bbedc2247 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/dataset/DatasetResource.scala @@ -355,7 +355,7 @@ object DatasetResource { ) } - def mapDashboardDataset(records: Result[Record], uid: UInteger): List[DashboardDataset] = { + def mapDashboardDataset(records: Result[Record], uid: Integer): List[DashboardDataset] = { records.asScala.map { record => val dataset = record.into(DATASET).into(classOf[Dataset]) val datasetAccess = record.into(DATASET_USER_ACCESS).into(classOf[DatasetUserAccess]) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala index 4a01c6518cf..ddb46d998ae 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala @@ -4,7 +4,6 @@ import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.module.scala.DefaultScalaModule import com.typesafe.scalalogging.LazyLogging import edu.uci.ics.texera.dao.SqlServer -import edu.uci.ics.texera.web.auth.SessionUser import edu.uci.ics.texera.dao.jooq.generated.Tables._ import edu.uci.ics.texera.dao.jooq.generated.enums.PrivilegeEnum import edu.uci.ics.texera.dao.jooq.generated.tables.daos.{ @@ -14,13 +13,13 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.daos.{ WorkflowUserAccessDao } import edu.uci.ics.texera.dao.jooq.generated.tables.pojos._ +import edu.uci.ics.texera.web.auth.SessionUser import edu.uci.ics.texera.web.resource.dashboard.hub.HubResource.recordCloneActivity import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowAccessResource.hasReadAccess import edu.uci.ics.texera.web.resource.dashboard.user.workflow.WorkflowResource._ import io.dropwizard.auth.Auth -import org.jooq.{Condition, Record9, SelectOnConditionStep} import org.jooq.impl.DSL.{groupConcatDistinct, noCondition} -import org.jooq.{Record, Result} +import org.jooq.{Condition, Record9, Result, SelectOnConditionStep} import java.sql.Timestamp import java.util @@ -161,13 +160,13 @@ object WorkflowResource { } def baseWorkflowSelect(): SelectOnConditionStep[Record9[ - Int, + Integer, String, String, Timestamp, Timestamp, - WorkflowUserAccessPrivilege, - Int, + PrivilegeEnum, + Integer, String, String ]] = { @@ -196,13 +195,13 @@ object WorkflowResource { def mapWorkflowEntries( workflowEntries: Result[Record9[ - Int, + Integer, String, String, Timestamp, Timestamp, - WorkflowUserAccessPrivilege, - Int, + PrivilegeEnum, + Integer, String, String ]], @@ -223,7 +222,7 @@ object WorkflowResource { workflowRecord.into(WORKFLOW).into(classOf[Workflow]), if (workflowRecord.component9() == null) List[Integer]() else - workflowRecord.component9().split(',').toList, + workflowRecord.component9().split(',').map(str => Integer.valueOf(str)).toList, workflowRecord.into(WORKFLOW_OF_USER).getUid ) ) diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java index d4f13bb9ce3..3e4a8e29c79 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java @@ -6,7 +6,9 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.Dataset; import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetUserAccess; +import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetUserLikes; import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetVersion; +import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetViewCount; import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorExecutions; import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorPortExecutions; import edu.uci.ics.texera.dao.jooq.generated.tables.Project; @@ -15,7 +17,6 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.User; import edu.uci.ics.texera.dao.jooq.generated.tables.UserConfig; import edu.uci.ics.texera.dao.jooq.generated.tables.Workflow; -import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowComputingUnit; import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowExecutions; import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowOfProject; import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowOfUser; @@ -26,7 +27,9 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowViewCount; import edu.uci.ics.texera.dao.jooq.generated.tables.records.DatasetRecord; import edu.uci.ics.texera.dao.jooq.generated.tables.records.DatasetUserAccessRecord; +import edu.uci.ics.texera.dao.jooq.generated.tables.records.DatasetUserLikesRecord; import edu.uci.ics.texera.dao.jooq.generated.tables.records.DatasetVersionRecord; +import edu.uci.ics.texera.dao.jooq.generated.tables.records.DatasetViewCountRecord; import edu.uci.ics.texera.dao.jooq.generated.tables.records.OperatorExecutionsRecord; import edu.uci.ics.texera.dao.jooq.generated.tables.records.OperatorPortExecutionsRecord; import edu.uci.ics.texera.dao.jooq.generated.tables.records.ProjectRecord; @@ -34,7 +37,6 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.records.PublicProjectRecord; import edu.uci.ics.texera.dao.jooq.generated.tables.records.UserConfigRecord; import edu.uci.ics.texera.dao.jooq.generated.tables.records.UserRecord; -import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowComputingUnitRecord; import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowExecutionsRecord; import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowOfProjectRecord; import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowOfUserRecord; @@ -65,7 +67,9 @@ public class Keys { public static final UniqueKey DATASET_PKEY = Internal.createUniqueKey(Dataset.DATASET, DSL.name("dataset_pkey"), new TableField[] { Dataset.DATASET.DID }, true); public static final UniqueKey DATASET_USER_ACCESS_PKEY = Internal.createUniqueKey(DatasetUserAccess.DATASET_USER_ACCESS, DSL.name("dataset_user_access_pkey"), new TableField[] { DatasetUserAccess.DATASET_USER_ACCESS.DID, DatasetUserAccess.DATASET_USER_ACCESS.UID }, true); + public static final UniqueKey DATASET_USER_LIKES_PKEY = Internal.createUniqueKey(DatasetUserLikes.DATASET_USER_LIKES, DSL.name("dataset_user_likes_pkey"), new TableField[] { DatasetUserLikes.DATASET_USER_LIKES.UID, DatasetUserLikes.DATASET_USER_LIKES.DID }, true); public static final UniqueKey DATASET_VERSION_PKEY = Internal.createUniqueKey(DatasetVersion.DATASET_VERSION, DSL.name("dataset_version_pkey"), new TableField[] { DatasetVersion.DATASET_VERSION.DVID }, true); + public static final UniqueKey DATASET_VIEW_COUNT_PKEY = Internal.createUniqueKey(DatasetViewCount.DATASET_VIEW_COUNT, DSL.name("dataset_view_count_pkey"), new TableField[] { DatasetViewCount.DATASET_VIEW_COUNT.DID }, true); public static final UniqueKey OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID_KEY = Internal.createUniqueKey(OperatorExecutions.OPERATOR_EXECUTIONS, DSL.name("operator_executions_workflow_execution_id_operator_id_key"), new TableField[] { OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID, OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_ID }, true); public static final UniqueKey OPERATOR_PORT_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID__KEY = Internal.createUniqueKey(OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS, DSL.name("operator_port_executions_workflow_execution_id_operator_id__key"), new TableField[] { OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.WORKFLOW_EXECUTION_ID, OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.OPERATOR_ID, OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.PORT_ID }, true); public static final UniqueKey PROJECT_OWNER_ID_NAME_KEY = Internal.createUniqueKey(Project.PROJECT, DSL.name("project_owner_id_name_key"), new TableField[] { Project.PROJECT.OWNER_ID, Project.PROJECT.NAME }, true); @@ -77,7 +81,6 @@ public class Keys { public static final UniqueKey USER_PKEY = Internal.createUniqueKey(User.USER, DSL.name("user_pkey"), new TableField[] { User.USER.UID }, true); public static final UniqueKey USER_CONFIG_PKEY = Internal.createUniqueKey(UserConfig.USER_CONFIG, DSL.name("user_config_pkey"), new TableField[] { UserConfig.USER_CONFIG.UID, UserConfig.USER_CONFIG.KEY }, true); public static final UniqueKey WORKFLOW_PKEY = Internal.createUniqueKey(Workflow.WORKFLOW, DSL.name("workflow_pkey"), new TableField[] { Workflow.WORKFLOW.WID }, true); - public static final UniqueKey WORKFLOW_COMPUTING_UNIT_PKEY = Internal.createUniqueKey(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT, DSL.name("workflow_computing_unit_pkey"), new TableField[] { WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.CUID }, true); public static final UniqueKey WORKFLOW_EXECUTIONS_PKEY = Internal.createUniqueKey(WorkflowExecutions.WORKFLOW_EXECUTIONS, DSL.name("workflow_executions_pkey"), new TableField[] { WorkflowExecutions.WORKFLOW_EXECUTIONS.EID }, true); public static final UniqueKey WORKFLOW_OF_PROJECT_PKEY = Internal.createUniqueKey(WorkflowOfProject.WORKFLOW_OF_PROJECT, DSL.name("workflow_of_project_pkey"), new TableField[] { WorkflowOfProject.WORKFLOW_OF_PROJECT.WID, WorkflowOfProject.WORKFLOW_OF_PROJECT.PID }, true); public static final UniqueKey WORKFLOW_OF_USER_PKEY = Internal.createUniqueKey(WorkflowOfUser.WORKFLOW_OF_USER, DSL.name("workflow_of_user_pkey"), new TableField[] { WorkflowOfUser.WORKFLOW_OF_USER.UID, WorkflowOfUser.WORKFLOW_OF_USER.WID }, true); @@ -94,7 +97,10 @@ public class Keys { public static final ForeignKey DATASET__DATASET_OWNER_UID_FKEY = Internal.createForeignKey(Dataset.DATASET, DSL.name("dataset_owner_uid_fkey"), new TableField[] { Dataset.DATASET.OWNER_UID }, Keys.USER_PKEY, new TableField[] { User.USER.UID }, true); public static final ForeignKey DATASET_USER_ACCESS__DATASET_USER_ACCESS_DID_FKEY = Internal.createForeignKey(DatasetUserAccess.DATASET_USER_ACCESS, DSL.name("dataset_user_access_did_fkey"), new TableField[] { DatasetUserAccess.DATASET_USER_ACCESS.DID }, Keys.DATASET_PKEY, new TableField[] { Dataset.DATASET.DID }, true); public static final ForeignKey DATASET_USER_ACCESS__DATASET_USER_ACCESS_UID_FKEY = Internal.createForeignKey(DatasetUserAccess.DATASET_USER_ACCESS, DSL.name("dataset_user_access_uid_fkey"), new TableField[] { DatasetUserAccess.DATASET_USER_ACCESS.UID }, Keys.USER_PKEY, new TableField[] { User.USER.UID }, true); + public static final ForeignKey DATASET_USER_LIKES__DATASET_USER_LIKES_DID_FKEY = Internal.createForeignKey(DatasetUserLikes.DATASET_USER_LIKES, DSL.name("dataset_user_likes_did_fkey"), new TableField[] { DatasetUserLikes.DATASET_USER_LIKES.DID }, Keys.DATASET_PKEY, new TableField[] { Dataset.DATASET.DID }, true); + public static final ForeignKey DATASET_USER_LIKES__DATASET_USER_LIKES_UID_FKEY = Internal.createForeignKey(DatasetUserLikes.DATASET_USER_LIKES, DSL.name("dataset_user_likes_uid_fkey"), new TableField[] { DatasetUserLikes.DATASET_USER_LIKES.UID }, Keys.USER_PKEY, new TableField[] { User.USER.UID }, true); public static final ForeignKey DATASET_VERSION__DATASET_VERSION_DID_FKEY = Internal.createForeignKey(DatasetVersion.DATASET_VERSION, DSL.name("dataset_version_did_fkey"), new TableField[] { DatasetVersion.DATASET_VERSION.DID }, Keys.DATASET_PKEY, new TableField[] { Dataset.DATASET.DID }, true); + public static final ForeignKey DATASET_VIEW_COUNT__DATASET_VIEW_COUNT_DID_FKEY = Internal.createForeignKey(DatasetViewCount.DATASET_VIEW_COUNT, DSL.name("dataset_view_count_did_fkey"), new TableField[] { DatasetViewCount.DATASET_VIEW_COUNT.DID }, Keys.DATASET_PKEY, new TableField[] { Dataset.DATASET.DID }, true); public static final ForeignKey OPERATOR_EXECUTIONS__OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_FKEY = Internal.createForeignKey(OperatorExecutions.OPERATOR_EXECUTIONS, DSL.name("operator_executions_workflow_execution_id_fkey"), new TableField[] { OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID }, Keys.WORKFLOW_EXECUTIONS_PKEY, new TableField[] { WorkflowExecutions.WORKFLOW_EXECUTIONS.EID }, true); public static final ForeignKey OPERATOR_PORT_EXECUTIONS__OPERATOR_PORT_EXECUTIONS_WORKFLOW_EXECUTION_ID_FKEY = Internal.createForeignKey(OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS, DSL.name("operator_port_executions_workflow_execution_id_fkey"), new TableField[] { OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.WORKFLOW_EXECUTION_ID }, Keys.WORKFLOW_EXECUTIONS_PKEY, new TableField[] { WorkflowExecutions.WORKFLOW_EXECUTIONS.EID }, true); public static final ForeignKey PROJECT__PROJECT_OWNER_ID_FKEY = Internal.createForeignKey(Project.PROJECT, DSL.name("project_owner_id_fkey"), new TableField[] { Project.PROJECT.OWNER_ID }, Keys.USER_PKEY, new TableField[] { User.USER.UID }, true); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Tables.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Tables.java index 693f4763078..02dbcb77bcf 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Tables.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Tables.java @@ -18,7 +18,6 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.UserActivity; import edu.uci.ics.texera.dao.jooq.generated.tables.UserConfig; import edu.uci.ics.texera.dao.jooq.generated.tables.Workflow; -import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowComputingUnit; import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowExecutions; import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowOfProject; import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowOfUser; @@ -105,11 +104,6 @@ public class Tables { */ public static final Workflow WORKFLOW = Workflow.WORKFLOW; - /** - * The table texera_db.workflow_computing_unit. - */ - public static final WorkflowComputingUnit WORKFLOW_COMPUTING_UNIT = WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT; - /** * The table texera_db.workflow_executions. */ diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/TexeraDb.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/TexeraDb.java index a7ab01156fc..f67b14ca734 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/TexeraDb.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/TexeraDb.java @@ -6,7 +6,9 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.Dataset; import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetUserAccess; +import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetUserLikes; import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetVersion; +import edu.uci.ics.texera.dao.jooq.generated.tables.DatasetViewCount; import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorExecutions; import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorPortExecutions; import edu.uci.ics.texera.dao.jooq.generated.tables.Project; @@ -16,7 +18,6 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.UserActivity; import edu.uci.ics.texera.dao.jooq.generated.tables.UserConfig; import edu.uci.ics.texera.dao.jooq.generated.tables.Workflow; -import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowComputingUnit; import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowExecutions; import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowOfProject; import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowOfUser; @@ -57,11 +58,21 @@ public class TexeraDb extends SchemaImpl { */ public final DatasetUserAccess DATASET_USER_ACCESS = DatasetUserAccess.DATASET_USER_ACCESS; + /** + * The table texera_db.dataset_user_likes. + */ + public final DatasetUserLikes DATASET_USER_LIKES = DatasetUserLikes.DATASET_USER_LIKES; + /** * The table texera_db.dataset_version. */ public final DatasetVersion DATASET_VERSION = DatasetVersion.DATASET_VERSION; + /** + * The table texera_db.dataset_view_count. + */ + public final DatasetViewCount DATASET_VIEW_COUNT = DatasetViewCount.DATASET_VIEW_COUNT; + /** * The table texera_db.operator_executions. */ @@ -107,11 +118,6 @@ public class TexeraDb extends SchemaImpl { */ public final Workflow WORKFLOW = Workflow.WORKFLOW; - /** - * The table texera_db.workflow_computing_unit. - */ - public final WorkflowComputingUnit WORKFLOW_COMPUTING_UNIT = WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT; - /** * The table texera_db.workflow_executions. */ @@ -170,7 +176,9 @@ public final List> getTables() { return Arrays.asList( Dataset.DATASET, DatasetUserAccess.DATASET_USER_ACCESS, + DatasetUserLikes.DATASET_USER_LIKES, DatasetVersion.DATASET_VERSION, + DatasetViewCount.DATASET_VIEW_COUNT, OperatorExecutions.OPERATOR_EXECUTIONS, OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS, Project.PROJECT, @@ -180,7 +188,6 @@ public final List> getTables() { UserActivity.USER_ACTIVITY, UserConfig.USER_CONFIG, Workflow.WORKFLOW, - WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT, WorkflowExecutions.WORKFLOW_EXECUTIONS, WorkflowOfProject.WORKFLOW_OF_PROJECT, WorkflowOfUser.WORKFLOW_OF_USER, diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetUserLikes.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetUserLikes.java index ec7ef7aa30c..c739293dc8c 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetUserLikes.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetUserLikes.java @@ -4,7 +4,6 @@ package edu.uci.ics.texera.dao.jooq.generated.tables; -import edu.uci.ics.texera.dao.jooq.generated.Indexes; import edu.uci.ics.texera.dao.jooq.generated.Keys; import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.DatasetUserLikesRecord; @@ -14,17 +13,17 @@ import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Index; import org.jooq.Name; import org.jooq.Record; import org.jooq.Row2; import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; -import org.jooq.types.UInteger; /** @@ -33,7 +32,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class DatasetUserLikes extends TableImpl { - private static final long serialVersionUID = 566607224; + private static final long serialVersionUID = 1L; /** * The reference instance of texera_db.dataset_user_likes @@ -51,40 +50,42 @@ public Class getRecordType() { /** * The column texera_db.dataset_user_likes.uid. */ - public final TableField UID = createField(DSL.name("uid"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField UID = createField(DSL.name("uid"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.dataset_user_likes.did. */ - public final TableField DID = createField(DSL.name("did"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField DID = createField(DSL.name("did"), SQLDataType.INTEGER.nullable(false), this, ""); - /** - * Create a texera_db.dataset_user_likes table reference - */ - public DatasetUserLikes() { - this(DSL.name("dataset_user_likes"), null); + private DatasetUserLikes(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private DatasetUserLikes(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); } /** - * Create an aliased texera_db.dataset_user_likes table reference + * Create an aliased texera_db.dataset_user_likes table + * reference */ public DatasetUserLikes(String alias) { this(DSL.name(alias), DATASET_USER_LIKES); } /** - * Create an aliased texera_db.dataset_user_likes table reference + * Create an aliased texera_db.dataset_user_likes table + * reference */ public DatasetUserLikes(Name alias) { this(alias, DATASET_USER_LIKES); } - private DatasetUserLikes(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private DatasetUserLikes(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + /** + * Create a texera_db.dataset_user_likes table reference + */ + public DatasetUserLikes() { + this(DSL.name("dataset_user_likes"), null); } public DatasetUserLikes(Table child, ForeignKey key) { @@ -93,35 +94,40 @@ public DatasetUserLikes(Table child, ForeignKey getIndexes() { - return Arrays.asList(Indexes.DATASET_USER_LIKES_DID, Indexes.DATASET_USER_LIKES_PRIMARY); + return aliased() ? null : TexeraDb.TEXERA_DB; } @Override public UniqueKey getPrimaryKey() { - return Keys.KEY_DATASET_USER_LIKES_PRIMARY; - } - - @Override - public List> getKeys() { - return Arrays.>asList(Keys.KEY_DATASET_USER_LIKES_PRIMARY); + return Keys.DATASET_USER_LIKES_PKEY; } @Override public List> getReferences() { - return Arrays.>asList(Keys.DATASET_USER_LIKES_IBFK_1, Keys.DATASET_USER_LIKES_IBFK_2); + return Arrays.asList(Keys.DATASET_USER_LIKES__DATASET_USER_LIKES_UID_FKEY, Keys.DATASET_USER_LIKES__DATASET_USER_LIKES_DID_FKEY); } + private transient User _user; + private transient Dataset _dataset; + + /** + * Get the implicit join path to the texera_db.user table. + */ public User user() { - return new User(this, Keys.DATASET_USER_LIKES_IBFK_1); + if (_user == null) + _user = new User(this, Keys.DATASET_USER_LIKES__DATASET_USER_LIKES_UID_FKEY); + + return _user; } + /** + * Get the implicit join path to the texera_db.dataset table. + */ public Dataset dataset() { - return new Dataset(this, Keys.DATASET_USER_LIKES_IBFK_2); + if (_dataset == null) + _dataset = new Dataset(this, Keys.DATASET_USER_LIKES__DATASET_USER_LIKES_DID_FKEY); + + return _dataset; } @Override @@ -155,7 +161,7 @@ public DatasetUserLikes rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row2 fieldsRow() { + public Row2 fieldsRow() { return (Row2) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetViewCount.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetViewCount.java index 60ddcb39e7c..87349be7ea7 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetViewCount.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/DatasetViewCount.java @@ -4,7 +4,6 @@ package edu.uci.ics.texera.dao.jooq.generated.tables; -import edu.uci.ics.texera.dao.jooq.generated.Indexes; import edu.uci.ics.texera.dao.jooq.generated.Keys; import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; import edu.uci.ics.texera.dao.jooq.generated.tables.records.DatasetViewCountRecord; @@ -14,17 +13,17 @@ import org.jooq.Field; import org.jooq.ForeignKey; -import org.jooq.Index; import org.jooq.Name; import org.jooq.Record; import org.jooq.Row2; import org.jooq.Schema; import org.jooq.Table; import org.jooq.TableField; +import org.jooq.TableOptions; import org.jooq.UniqueKey; import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; import org.jooq.impl.TableImpl; -import org.jooq.types.UInteger; /** @@ -33,7 +32,7 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class DatasetViewCount extends TableImpl { - private static final long serialVersionUID = 2087672115; + private static final long serialVersionUID = 1L; /** * The reference instance of texera_db.dataset_view_count @@ -51,40 +50,42 @@ public Class getRecordType() { /** * The column texera_db.dataset_view_count.did. */ - public final TableField DID = createField(DSL.name("did"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false), this, ""); + public final TableField DID = createField(DSL.name("did"), SQLDataType.INTEGER.nullable(false), this, ""); /** * The column texera_db.dataset_view_count.view_count. */ - public final TableField VIEW_COUNT = createField(DSL.name("view_count"), org.jooq.impl.SQLDataType.INTEGERUNSIGNED.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGERUNSIGNED)), this, ""); + public final TableField VIEW_COUNT = createField(DSL.name("view_count"), SQLDataType.INTEGER.nullable(false).defaultValue(DSL.field("0", SQLDataType.INTEGER)), this, ""); - /** - * Create a texera_db.dataset_view_count table reference - */ - public DatasetViewCount() { - this(DSL.name("dataset_view_count"), null); + private DatasetViewCount(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private DatasetViewCount(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); } /** - * Create an aliased texera_db.dataset_view_count table reference + * Create an aliased texera_db.dataset_view_count table + * reference */ public DatasetViewCount(String alias) { this(DSL.name(alias), DATASET_VIEW_COUNT); } /** - * Create an aliased texera_db.dataset_view_count table reference + * Create an aliased texera_db.dataset_view_count table + * reference */ public DatasetViewCount(Name alias) { this(alias, DATASET_VIEW_COUNT); } - private DatasetViewCount(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private DatasetViewCount(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment("")); + /** + * Create a texera_db.dataset_view_count table reference + */ + public DatasetViewCount() { + this(DSL.name("dataset_view_count"), null); } public DatasetViewCount(Table child, ForeignKey key) { @@ -93,31 +94,29 @@ public DatasetViewCount(Table child, ForeignKey getIndexes() { - return Arrays.asList(Indexes.DATASET_VIEW_COUNT_PRIMARY); + return aliased() ? null : TexeraDb.TEXERA_DB; } @Override public UniqueKey getPrimaryKey() { - return Keys.KEY_DATASET_VIEW_COUNT_PRIMARY; - } - - @Override - public List> getKeys() { - return Arrays.>asList(Keys.KEY_DATASET_VIEW_COUNT_PRIMARY); + return Keys.DATASET_VIEW_COUNT_PKEY; } @Override public List> getReferences() { - return Arrays.>asList(Keys.DATASET_VIEW_COUNT_IBFK_1); + return Arrays.asList(Keys.DATASET_VIEW_COUNT__DATASET_VIEW_COUNT_DID_FKEY); } + private transient Dataset _dataset; + + /** + * Get the implicit join path to the texera_db.dataset table. + */ public Dataset dataset() { - return new Dataset(this, Keys.DATASET_VIEW_COUNT_IBFK_1); + if (_dataset == null) + _dataset = new Dataset(this, Keys.DATASET_VIEW_COUNT__DATASET_VIEW_COUNT_DID_FKEY); + + return _dataset; } @Override @@ -151,7 +150,7 @@ public DatasetViewCount rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row2 fieldsRow() { + public Row2 fieldsRow() { return (Row2) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserActivity.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserActivity.java index 5bd3a0c32bc..1ca03175659 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserActivity.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/UserActivity.java @@ -62,7 +62,7 @@ public Class getRecordType() { /** * The column texera_db.user_activity.ip. */ - public final TableField IP = createField(DSL.name("ip"), SQLDataType.VARCHAR(15), this, ""); + public final TableField IP = createField(DSL.name("ip"), SQLDataType.VARCHAR(15).defaultValue(DSL.field("NULL::character varying", SQLDataType.VARCHAR)), this, ""); /** * The column texera_db.user_activity.activate. @@ -72,7 +72,7 @@ public Class getRecordType() { /** * The column texera_db.user_activity.activity_time. */ - public final TableField ACTIVITY_TIME = createField(DSL.name("activity_time"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.TIMESTAMP)), this, ""); + public final TableField ACTIVITY_TIME = createField(DSL.name("activity_time"), SQLDataType.TIMESTAMP(0).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.TIMESTAMP)), this, ""); private UserActivity(Name alias, Table aliased) { this(alias, aliased, null); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowComputingUnit.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowComputingUnit.java deleted file mode 100644 index 8cdb198aba5..00000000000 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/WorkflowComputingUnit.java +++ /dev/null @@ -1,159 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package edu.uci.ics.texera.dao.jooq.generated.tables; - - -import edu.uci.ics.texera.dao.jooq.generated.Keys; -import edu.uci.ics.texera.dao.jooq.generated.TexeraDb; -import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowComputingUnitRecord; - -import java.sql.Timestamp; - -import org.jooq.Field; -import org.jooq.ForeignKey; -import org.jooq.Identity; -import org.jooq.Name; -import org.jooq.Record; -import org.jooq.Row5; -import org.jooq.Schema; -import org.jooq.Table; -import org.jooq.TableField; -import org.jooq.TableOptions; -import org.jooq.UniqueKey; -import org.jooq.impl.DSL; -import org.jooq.impl.SQLDataType; -import org.jooq.impl.TableImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowComputingUnit extends TableImpl { - - private static final long serialVersionUID = 1L; - - /** - * The reference instance of texera_db.workflow_computing_unit - */ - public static final WorkflowComputingUnit WORKFLOW_COMPUTING_UNIT = new WorkflowComputingUnit(); - - /** - * The class holding records for this type - */ - @Override - public Class getRecordType() { - return WorkflowComputingUnitRecord.class; - } - - /** - * The column texera_db.workflow_computing_unit.uid. - */ - public final TableField UID = createField(DSL.name("uid"), SQLDataType.BIGINT.nullable(false), this, ""); - - /** - * The column texera_db.workflow_computing_unit.name. - */ - public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(128).nullable(false), this, ""); - - /** - * The column texera_db.workflow_computing_unit.cuid. - */ - public final TableField CUID = createField(DSL.name("cuid"), SQLDataType.INTEGER.nullable(false).identity(true), this, ""); - - /** - * The column texera_db.workflow_computing_unit.creation_time. - */ - public final TableField CREATION_TIME = createField(DSL.name("creation_time"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.TIMESTAMP)), this, ""); - - /** - * The column texera_db.workflow_computing_unit.terminate_time. - */ - public final TableField TERMINATE_TIME = createField(DSL.name("terminate_time"), SQLDataType.TIMESTAMP(0), this, ""); - - private WorkflowComputingUnit(Name alias, Table aliased) { - this(alias, aliased, null); - } - - private WorkflowComputingUnit(Name alias, Table aliased, Field[] parameters) { - super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); - } - - /** - * Create an aliased texera_db.workflow_computing_unit table - * reference - */ - public WorkflowComputingUnit(String alias) { - this(DSL.name(alias), WORKFLOW_COMPUTING_UNIT); - } - - /** - * Create an aliased texera_db.workflow_computing_unit table - * reference - */ - public WorkflowComputingUnit(Name alias) { - this(alias, WORKFLOW_COMPUTING_UNIT); - } - - /** - * Create a texera_db.workflow_computing_unit table reference - */ - public WorkflowComputingUnit() { - this(DSL.name("workflow_computing_unit"), null); - } - - public WorkflowComputingUnit(Table child, ForeignKey key) { - super(child, key, WORKFLOW_COMPUTING_UNIT); - } - - @Override - public Schema getSchema() { - return aliased() ? null : TexeraDb.TEXERA_DB; - } - - @Override - public Identity getIdentity() { - return (Identity) super.getIdentity(); - } - - @Override - public UniqueKey getPrimaryKey() { - return Keys.WORKFLOW_COMPUTING_UNIT_PKEY; - } - - @Override - public WorkflowComputingUnit as(String alias) { - return new WorkflowComputingUnit(DSL.name(alias), this); - } - - @Override - public WorkflowComputingUnit as(Name alias) { - return new WorkflowComputingUnit(alias, this); - } - - /** - * Rename this table - */ - @Override - public WorkflowComputingUnit rename(String name) { - return new WorkflowComputingUnit(DSL.name(name), null); - } - - /** - * Rename this table - */ - @Override - public WorkflowComputingUnit rename(Name name) { - return new WorkflowComputingUnit(name, null); - } - - // ------------------------------------------------------------------------- - // Row5 type methods - // ------------------------------------------------------------------------- - - @Override - public Row5 fieldsRow() { - return (Row5) super.fieldsRow(); - } -} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetUserLikesDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetUserLikesDao.java index 2285b882dc9..34bd93c72f1 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetUserLikesDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetUserLikesDao.java @@ -12,14 +12,13 @@ import org.jooq.Configuration; import org.jooq.Record2; import org.jooq.impl.DAOImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class DatasetUserLikesDao extends DAOImpl> { +public class DatasetUserLikesDao extends DAOImpl> { /** * Create a new DatasetUserLikesDao without any configuration @@ -36,35 +35,37 @@ public DatasetUserLikesDao(Configuration configuration) { } @Override - public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.DatasetUserLikes object) { + public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.DatasetUserLikes object) { return compositeKeyRecord(object.getUid(), object.getDid()); } /** - * Fetch records that have uid BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have uid BETWEEN lowerInclusive AND + * upperInclusive */ - public List fetchRangeOfUid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfUid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(DatasetUserLikes.DATASET_USER_LIKES.UID, lowerInclusive, upperInclusive); } /** * Fetch records that have uid IN (values) */ - public List fetchByUid(UInteger... values) { + public List fetchByUid(Integer... values) { return fetch(DatasetUserLikes.DATASET_USER_LIKES.UID, values); } /** - * Fetch records that have did BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have did BETWEEN lowerInclusive AND + * upperInclusive */ - public List fetchRangeOfDid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfDid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(DatasetUserLikes.DATASET_USER_LIKES.DID, lowerInclusive, upperInclusive); } /** * Fetch records that have did IN (values) */ - public List fetchByDid(UInteger... values) { + public List fetchByDid(Integer... values) { return fetch(DatasetUserLikes.DATASET_USER_LIKES.DID, values); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetViewCountDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetViewCountDao.java index 054b783c925..72f815e0618 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetViewCountDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/DatasetViewCountDao.java @@ -8,17 +8,17 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.records.DatasetViewCountRecord; import java.util.List; +import java.util.Optional; import org.jooq.Configuration; import org.jooq.impl.DAOImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class DatasetViewCountDao extends DAOImpl { +public class DatasetViewCountDao extends DAOImpl { /** * Create a new DatasetViewCountDao without any configuration @@ -35,42 +35,51 @@ public DatasetViewCountDao(Configuration configuration) { } @Override - public UInteger getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.DatasetViewCount object) { + public Integer getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.DatasetViewCount object) { return object.getDid(); } /** - * Fetch records that have did BETWEEN lowerInclusive AND upperInclusive + * Fetch records that have did BETWEEN lowerInclusive AND + * upperInclusive */ - public List fetchRangeOfDid(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfDid(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(DatasetViewCount.DATASET_VIEW_COUNT.DID, lowerInclusive, upperInclusive); } /** * Fetch records that have did IN (values) */ - public List fetchByDid(UInteger... values) { + public List fetchByDid(Integer... values) { return fetch(DatasetViewCount.DATASET_VIEW_COUNT.DID, values); } /** * Fetch a unique record that has did = value */ - public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.DatasetViewCount fetchOneByDid(UInteger value) { + public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.DatasetViewCount fetchOneByDid(Integer value) { return fetchOne(DatasetViewCount.DATASET_VIEW_COUNT.DID, value); } /** - * Fetch records that have view_count BETWEEN lowerInclusive AND upperInclusive + * Fetch a unique record that has did = value + */ + public Optional fetchOptionalByDid(Integer value) { + return fetchOptional(DatasetViewCount.DATASET_VIEW_COUNT.DID, value); + } + + /** + * Fetch records that have view_count BETWEEN lowerInclusive AND + * upperInclusive */ - public List fetchRangeOfViewCount(UInteger lowerInclusive, UInteger upperInclusive) { + public List fetchRangeOfViewCount(Integer lowerInclusive, Integer upperInclusive) { return fetchRange(DatasetViewCount.DATASET_VIEW_COUNT.VIEW_COUNT, lowerInclusive, upperInclusive); } /** * Fetch records that have view_count IN (values) */ - public List fetchByViewCount(UInteger... values) { + public List fetchByViewCount(Integer... values) { return fetch(DatasetViewCount.DATASET_VIEW_COUNT.VIEW_COUNT, values); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowComputingUnitDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowComputingUnitDao.java deleted file mode 100644 index 4a9d1b701ec..00000000000 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/WorkflowComputingUnitDao.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package edu.uci.ics.texera.dao.jooq.generated.tables.daos; - - -import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowComputingUnit; -import edu.uci.ics.texera.dao.jooq.generated.tables.records.WorkflowComputingUnitRecord; - -import java.sql.Timestamp; -import java.util.List; -import java.util.Optional; - -import org.jooq.Configuration; -import org.jooq.impl.DAOImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowComputingUnitDao extends DAOImpl { - - /** - * Create a new WorkflowComputingUnitDao without any configuration - */ - public WorkflowComputingUnitDao() { - super(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT, edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowComputingUnit.class); - } - - /** - * Create a new WorkflowComputingUnitDao with an attached configuration - */ - public WorkflowComputingUnitDao(Configuration configuration) { - super(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT, edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowComputingUnit.class, configuration); - } - - @Override - public Integer getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowComputingUnit object) { - return object.getCuid(); - } - - /** - * Fetch records that have uid BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfUid(Long lowerInclusive, Long upperInclusive) { - return fetchRange(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.UID, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have uid IN (values) - */ - public List fetchByUid(Long... values) { - return fetch(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.UID, values); - } - - /** - * Fetch records that have name BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfName(String lowerInclusive, String upperInclusive) { - return fetchRange(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.NAME, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have name IN (values) - */ - public List fetchByName(String... values) { - return fetch(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.NAME, values); - } - - /** - * Fetch records that have cuid BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfCuid(Integer lowerInclusive, Integer upperInclusive) { - return fetchRange(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.CUID, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have cuid IN (values) - */ - public List fetchByCuid(Integer... values) { - return fetch(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.CUID, values); - } - - /** - * Fetch a unique record that has cuid = value - */ - public edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowComputingUnit fetchOneByCuid(Integer value) { - return fetchOne(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.CUID, value); - } - - /** - * Fetch a unique record that has cuid = value - */ - public Optional fetchOptionalByCuid(Integer value) { - return fetchOptional(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.CUID, value); - } - - /** - * Fetch records that have creation_time BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfCreationTime(Timestamp lowerInclusive, Timestamp upperInclusive) { - return fetchRange(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.CREATION_TIME, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have creation_time IN (values) - */ - public List fetchByCreationTime(Timestamp... values) { - return fetch(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.CREATION_TIME, values); - } - - /** - * Fetch records that have terminate_time BETWEEN lowerInclusive AND - * upperInclusive - */ - public List fetchRangeOfTerminateTime(Timestamp lowerInclusive, Timestamp upperInclusive) { - return fetchRange(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.TERMINATE_TIME, lowerInclusive, upperInclusive); - } - - /** - * Fetch records that have terminate_time IN (values) - */ - public List fetchByTerminateTime(Timestamp... values) { - return fetch(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.TERMINATE_TIME, values); - } -} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetUserLikes.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetUserLikes.java index b9bf758280e..8be8e4bd2d0 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetUserLikes.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetUserLikes.java @@ -6,8 +6,6 @@ import java.io.Serializable; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -18,34 +16,36 @@ public interface IDatasetUserLikes extends Serializable { /** * Setter for texera_db.dataset_user_likes.uid. */ - public void setUid(UInteger value); + public void setUid(Integer value); /** * Getter for texera_db.dataset_user_likes.uid. */ - public UInteger getUid(); + public Integer getUid(); /** * Setter for texera_db.dataset_user_likes.did. */ - public void setDid(UInteger value); + public void setDid(Integer value); /** * Getter for texera_db.dataset_user_likes.did. */ - public UInteger getDid(); + public Integer getDid(); // ------------------------------------------------------------------------- // FROM and INTO // ------------------------------------------------------------------------- /** - * Load data from another generated Record/POJO implementing the common interface IDatasetUserLikes + * Load data from another generated Record/POJO implementing the common + * interface IDatasetUserLikes */ - public void from(edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IDatasetUserLikes from); + public void from(IDatasetUserLikes from); /** - * Copy data into another generated Record/POJO implementing the common interface IDatasetUserLikes + * Copy data into another generated Record/POJO implementing the common + * interface IDatasetUserLikes */ - public E into(E into); + public E into(E into); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetViewCount.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetViewCount.java index 0894f9c76f2..f87e472f4e5 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetViewCount.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IDatasetViewCount.java @@ -6,8 +6,6 @@ import java.io.Serializable; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -18,34 +16,36 @@ public interface IDatasetViewCount extends Serializable { /** * Setter for texera_db.dataset_view_count.did. */ - public void setDid(UInteger value); + public void setDid(Integer value); /** * Getter for texera_db.dataset_view_count.did. */ - public UInteger getDid(); + public Integer getDid(); /** * Setter for texera_db.dataset_view_count.view_count. */ - public void setViewCount(UInteger value); + public void setViewCount(Integer value); /** * Getter for texera_db.dataset_view_count.view_count. */ - public UInteger getViewCount(); + public Integer getViewCount(); // ------------------------------------------------------------------------- // FROM and INTO // ------------------------------------------------------------------------- /** - * Load data from another generated Record/POJO implementing the common interface IDatasetViewCount + * Load data from another generated Record/POJO implementing the common + * interface IDatasetViewCount */ - public void from(edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IDatasetViewCount from); + public void from(IDatasetViewCount from); /** - * Copy data into another generated Record/POJO implementing the common interface IDatasetViewCount + * Copy data into another generated Record/POJO implementing the common + * interface IDatasetViewCount */ - public E into(E into); + public E into(E into); } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowComputingUnit.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowComputingUnit.java deleted file mode 100644 index 8eed828b33b..00000000000 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IWorkflowComputingUnit.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package edu.uci.ics.texera.dao.jooq.generated.tables.interfaces; - - -import java.io.Serializable; -import java.sql.Timestamp; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public interface IWorkflowComputingUnit extends Serializable { - - /** - * Setter for texera_db.workflow_computing_unit.uid. - */ - public void setUid(Long value); - - /** - * Getter for texera_db.workflow_computing_unit.uid. - */ - public Long getUid(); - - /** - * Setter for texera_db.workflow_computing_unit.name. - */ - public void setName(String value); - - /** - * Getter for texera_db.workflow_computing_unit.name. - */ - public String getName(); - - /** - * Setter for texera_db.workflow_computing_unit.cuid. - */ - public void setCuid(Integer value); - - /** - * Getter for texera_db.workflow_computing_unit.cuid. - */ - public Integer getCuid(); - - /** - * Setter for texera_db.workflow_computing_unit.creation_time. - */ - public void setCreationTime(Timestamp value); - - /** - * Getter for texera_db.workflow_computing_unit.creation_time. - */ - public Timestamp getCreationTime(); - - /** - * Setter for texera_db.workflow_computing_unit.terminate_time. - */ - public void setTerminateTime(Timestamp value); - - /** - * Getter for texera_db.workflow_computing_unit.terminate_time. - */ - public Timestamp getTerminateTime(); - - // ------------------------------------------------------------------------- - // FROM and INTO - // ------------------------------------------------------------------------- - - /** - * Load data from another generated Record/POJO implementing the common - * interface IWorkflowComputingUnit - */ - public void from(IWorkflowComputingUnit from); - - /** - * Copy data into another generated Record/POJO implementing the common - * interface IWorkflowComputingUnit - */ - public E into(E into); -} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetUserLikes.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetUserLikes.java index 7e2829cd8b2..3ab8cadde1c 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetUserLikes.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetUserLikes.java @@ -6,8 +6,6 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IDatasetUserLikes; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -15,10 +13,10 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class DatasetUserLikes implements IDatasetUserLikes { - private static final long serialVersionUID = -230105384; + private static final long serialVersionUID = 1L; - private UInteger uid; - private UInteger did; + private Integer uid; + private Integer did; public DatasetUserLikes() {} @@ -28,30 +26,42 @@ public DatasetUserLikes(IDatasetUserLikes value) { } public DatasetUserLikes( - UInteger uid, - UInteger did + Integer uid, + Integer did ) { this.uid = uid; this.did = did; } + /** + * Getter for texera_db.dataset_user_likes.uid. + */ @Override - public UInteger getUid() { + public Integer getUid() { return this.uid; } + /** + * Setter for texera_db.dataset_user_likes.uid. + */ @Override - public void setUid(UInteger uid) { + public void setUid(Integer uid) { this.uid = uid; } + /** + * Getter for texera_db.dataset_user_likes.did. + */ @Override - public UInteger getDid() { + public Integer getDid() { return this.did; } + /** + * Setter for texera_db.dataset_user_likes.did. + */ @Override - public void setDid(UInteger did) { + public void setDid(Integer did) { this.did = did; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetViewCount.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetViewCount.java index 37f2665a4eb..81314c5fb87 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetViewCount.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/DatasetViewCount.java @@ -6,8 +6,6 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IDatasetViewCount; -import org.jooq.types.UInteger; - /** * This class is generated by jOOQ. @@ -15,10 +13,10 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class DatasetViewCount implements IDatasetViewCount { - private static final long serialVersionUID = 584045490; + private static final long serialVersionUID = 1L; - private UInteger did; - private UInteger viewCount; + private Integer did; + private Integer viewCount; public DatasetViewCount() {} @@ -28,30 +26,42 @@ public DatasetViewCount(IDatasetViewCount value) { } public DatasetViewCount( - UInteger did, - UInteger viewCount + Integer did, + Integer viewCount ) { this.did = did; this.viewCount = viewCount; } + /** + * Getter for texera_db.dataset_view_count.did. + */ @Override - public UInteger getDid() { + public Integer getDid() { return this.did; } + /** + * Setter for texera_db.dataset_view_count.did. + */ @Override - public void setDid(UInteger did) { + public void setDid(Integer did) { this.did = did; } + /** + * Getter for texera_db.dataset_view_count.view_count. + */ @Override - public UInteger getViewCount() { + public Integer getViewCount() { return this.viewCount; } + /** + * Setter for texera_db.dataset_view_count.view_count. + */ @Override - public void setViewCount(UInteger viewCount) { + public void setViewCount(Integer viewCount) { this.viewCount = viewCount; } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowComputingUnit.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowComputingUnit.java deleted file mode 100644 index 74ad01c4388..00000000000 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/WorkflowComputingUnit.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package edu.uci.ics.texera.dao.jooq.generated.tables.pojos; - - -import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowComputingUnit; - -import java.sql.Timestamp; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowComputingUnit implements IWorkflowComputingUnit { - - private static final long serialVersionUID = 1L; - - private Long uid; - private String name; - private Integer cuid; - private Timestamp creationTime; - private Timestamp terminateTime; - - public WorkflowComputingUnit() {} - - public WorkflowComputingUnit(IWorkflowComputingUnit value) { - this.uid = value.getUid(); - this.name = value.getName(); - this.cuid = value.getCuid(); - this.creationTime = value.getCreationTime(); - this.terminateTime = value.getTerminateTime(); - } - - public WorkflowComputingUnit( - Long uid, - String name, - Integer cuid, - Timestamp creationTime, - Timestamp terminateTime - ) { - this.uid = uid; - this.name = name; - this.cuid = cuid; - this.creationTime = creationTime; - this.terminateTime = terminateTime; - } - - /** - * Getter for texera_db.workflow_computing_unit.uid. - */ - @Override - public Long getUid() { - return this.uid; - } - - /** - * Setter for texera_db.workflow_computing_unit.uid. - */ - @Override - public void setUid(Long uid) { - this.uid = uid; - } - - /** - * Getter for texera_db.workflow_computing_unit.name. - */ - @Override - public String getName() { - return this.name; - } - - /** - * Setter for texera_db.workflow_computing_unit.name. - */ - @Override - public void setName(String name) { - this.name = name; - } - - /** - * Getter for texera_db.workflow_computing_unit.cuid. - */ - @Override - public Integer getCuid() { - return this.cuid; - } - - /** - * Setter for texera_db.workflow_computing_unit.cuid. - */ - @Override - public void setCuid(Integer cuid) { - this.cuid = cuid; - } - - /** - * Getter for texera_db.workflow_computing_unit.creation_time. - */ - @Override - public Timestamp getCreationTime() { - return this.creationTime; - } - - /** - * Setter for texera_db.workflow_computing_unit.creation_time. - */ - @Override - public void setCreationTime(Timestamp creationTime) { - this.creationTime = creationTime; - } - - /** - * Getter for texera_db.workflow_computing_unit.terminate_time. - */ - @Override - public Timestamp getTerminateTime() { - return this.terminateTime; - } - - /** - * Setter for texera_db.workflow_computing_unit.terminate_time. - */ - @Override - public void setTerminateTime(Timestamp terminateTime) { - this.terminateTime = terminateTime; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("WorkflowComputingUnit ("); - - sb.append(uid); - sb.append(", ").append(name); - sb.append(", ").append(cuid); - sb.append(", ").append(creationTime); - sb.append(", ").append(terminateTime); - - sb.append(")"); - return sb.toString(); - } - - // ------------------------------------------------------------------------- - // FROM and INTO - // ------------------------------------------------------------------------- - - @Override - public void from(IWorkflowComputingUnit from) { - setUid(from.getUid()); - setName(from.getName()); - setCuid(from.getCuid()); - setCreationTime(from.getCreationTime()); - setTerminateTime(from.getTerminateTime()); - } - - @Override - public E into(E into) { - into.from(this); - return into; - } -} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetUserLikesRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetUserLikesRecord.java index 1e006ad00c3..e2051e334f1 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetUserLikesRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetUserLikesRecord.java @@ -11,22 +11,21 @@ import org.jooq.Record2; import org.jooq.Row2; import org.jooq.impl.UpdatableRecordImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class DatasetUserLikesRecord extends UpdatableRecordImpl implements Record2, IDatasetUserLikes { +public class DatasetUserLikesRecord extends UpdatableRecordImpl implements Record2, IDatasetUserLikes { - private static final long serialVersionUID = -612498918; + private static final long serialVersionUID = 1L; /** * Setter for texera_db.dataset_user_likes.uid. */ @Override - public void setUid(UInteger value) { + public void setUid(Integer value) { set(0, value); } @@ -34,15 +33,15 @@ public void setUid(UInteger value) { * Getter for texera_db.dataset_user_likes.uid. */ @Override - public UInteger getUid() { - return (UInteger) get(0); + public Integer getUid() { + return (Integer) get(0); } /** * Setter for texera_db.dataset_user_likes.did. */ @Override - public void setDid(UInteger value) { + public void setDid(Integer value) { set(1, value); } @@ -50,8 +49,8 @@ public void setDid(UInteger value) { * Getter for texera_db.dataset_user_likes.did. */ @Override - public UInteger getDid() { - return (UInteger) get(1); + public Integer getDid() { + return (Integer) get(1); } // ------------------------------------------------------------------------- @@ -59,7 +58,7 @@ public UInteger getDid() { // ------------------------------------------------------------------------- @Override - public Record2 key() { + public Record2 key() { return (Record2) super.key(); } @@ -68,59 +67,59 @@ public Record2 key() { // ------------------------------------------------------------------------- @Override - public Row2 fieldsRow() { + public Row2 fieldsRow() { return (Row2) super.fieldsRow(); } @Override - public Row2 valuesRow() { + public Row2 valuesRow() { return (Row2) super.valuesRow(); } @Override - public Field field1() { + public Field field1() { return DatasetUserLikes.DATASET_USER_LIKES.UID; } @Override - public Field field2() { + public Field field2() { return DatasetUserLikes.DATASET_USER_LIKES.DID; } @Override - public UInteger component1() { + public Integer component1() { return getUid(); } @Override - public UInteger component2() { + public Integer component2() { return getDid(); } @Override - public UInteger value1() { + public Integer value1() { return getUid(); } @Override - public UInteger value2() { + public Integer value2() { return getDid(); } @Override - public DatasetUserLikesRecord value1(UInteger value) { + public DatasetUserLikesRecord value1(Integer value) { setUid(value); return this; } @Override - public DatasetUserLikesRecord value2(UInteger value) { + public DatasetUserLikesRecord value2(Integer value) { setDid(value); return this; } @Override - public DatasetUserLikesRecord values(UInteger value1, UInteger value2) { + public DatasetUserLikesRecord values(Integer value1, Integer value2) { value1(value1); value2(value2); return this; @@ -156,10 +155,22 @@ public DatasetUserLikesRecord() { /** * Create a detached, initialised DatasetUserLikesRecord */ - public DatasetUserLikesRecord(UInteger uid, UInteger did) { + public DatasetUserLikesRecord(Integer uid, Integer did) { super(DatasetUserLikes.DATASET_USER_LIKES); - set(0, uid); - set(1, did); + setUid(uid); + setDid(did); + } + + /** + * Create a detached, initialised DatasetUserLikesRecord + */ + public DatasetUserLikesRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.DatasetUserLikes value) { + super(DatasetUserLikes.DATASET_USER_LIKES); + + if (value != null) { + setUid(value.getUid()); + setDid(value.getDid()); + } } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetViewCountRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetViewCountRecord.java index a8234b60894..ef590d5292d 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetViewCountRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/DatasetViewCountRecord.java @@ -12,22 +12,21 @@ import org.jooq.Record2; import org.jooq.Row2; import org.jooq.impl.UpdatableRecordImpl; -import org.jooq.types.UInteger; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class DatasetViewCountRecord extends UpdatableRecordImpl implements Record2, IDatasetViewCount { +public class DatasetViewCountRecord extends UpdatableRecordImpl implements Record2, IDatasetViewCount { - private static final long serialVersionUID = -1848694937; + private static final long serialVersionUID = 1L; /** * Setter for texera_db.dataset_view_count.did. */ @Override - public void setDid(UInteger value) { + public void setDid(Integer value) { set(0, value); } @@ -35,15 +34,15 @@ public void setDid(UInteger value) { * Getter for texera_db.dataset_view_count.did. */ @Override - public UInteger getDid() { - return (UInteger) get(0); + public Integer getDid() { + return (Integer) get(0); } /** * Setter for texera_db.dataset_view_count.view_count. */ @Override - public void setViewCount(UInteger value) { + public void setViewCount(Integer value) { set(1, value); } @@ -51,8 +50,8 @@ public void setViewCount(UInteger value) { * Getter for texera_db.dataset_view_count.view_count. */ @Override - public UInteger getViewCount() { - return (UInteger) get(1); + public Integer getViewCount() { + return (Integer) get(1); } // ------------------------------------------------------------------------- @@ -60,7 +59,7 @@ public UInteger getViewCount() { // ------------------------------------------------------------------------- @Override - public Record1 key() { + public Record1 key() { return (Record1) super.key(); } @@ -69,59 +68,59 @@ public Record1 key() { // ------------------------------------------------------------------------- @Override - public Row2 fieldsRow() { + public Row2 fieldsRow() { return (Row2) super.fieldsRow(); } @Override - public Row2 valuesRow() { + public Row2 valuesRow() { return (Row2) super.valuesRow(); } @Override - public Field field1() { + public Field field1() { return DatasetViewCount.DATASET_VIEW_COUNT.DID; } @Override - public Field field2() { + public Field field2() { return DatasetViewCount.DATASET_VIEW_COUNT.VIEW_COUNT; } @Override - public UInteger component1() { + public Integer component1() { return getDid(); } @Override - public UInteger component2() { + public Integer component2() { return getViewCount(); } @Override - public UInteger value1() { + public Integer value1() { return getDid(); } @Override - public UInteger value2() { + public Integer value2() { return getViewCount(); } @Override - public DatasetViewCountRecord value1(UInteger value) { + public DatasetViewCountRecord value1(Integer value) { setDid(value); return this; } @Override - public DatasetViewCountRecord value2(UInteger value) { + public DatasetViewCountRecord value2(Integer value) { setViewCount(value); return this; } @Override - public DatasetViewCountRecord values(UInteger value1, UInteger value2) { + public DatasetViewCountRecord values(Integer value1, Integer value2) { value1(value1); value2(value2); return this; @@ -157,10 +156,22 @@ public DatasetViewCountRecord() { /** * Create a detached, initialised DatasetViewCountRecord */ - public DatasetViewCountRecord(UInteger did, UInteger viewCount) { + public DatasetViewCountRecord(Integer did, Integer viewCount) { super(DatasetViewCount.DATASET_VIEW_COUNT); - set(0, did); - set(1, viewCount); + setDid(did); + setViewCount(viewCount); + } + + /** + * Create a detached, initialised DatasetViewCountRecord + */ + public DatasetViewCountRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.DatasetViewCount value) { + super(DatasetViewCount.DATASET_VIEW_COUNT); + + if (value != null) { + setDid(value.getDid()); + setViewCount(value.getViewCount()); + } } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowComputingUnitRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowComputingUnitRecord.java deleted file mode 100644 index 1263be6fe48..00000000000 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/WorkflowComputingUnitRecord.java +++ /dev/null @@ -1,302 +0,0 @@ -/* - * This file is generated by jOOQ. - */ -package edu.uci.ics.texera.dao.jooq.generated.tables.records; - - -import edu.uci.ics.texera.dao.jooq.generated.tables.WorkflowComputingUnit; -import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IWorkflowComputingUnit; - -import java.sql.Timestamp; - -import org.jooq.Field; -import org.jooq.Record1; -import org.jooq.Record5; -import org.jooq.Row5; -import org.jooq.impl.UpdatableRecordImpl; - - -/** - * This class is generated by jOOQ. - */ -@SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class WorkflowComputingUnitRecord extends UpdatableRecordImpl implements Record5, IWorkflowComputingUnit { - - private static final long serialVersionUID = 1L; - - /** - * Setter for texera_db.workflow_computing_unit.uid. - */ - @Override - public void setUid(Long value) { - set(0, value); - } - - /** - * Getter for texera_db.workflow_computing_unit.uid. - */ - @Override - public Long getUid() { - return (Long) get(0); - } - - /** - * Setter for texera_db.workflow_computing_unit.name. - */ - @Override - public void setName(String value) { - set(1, value); - } - - /** - * Getter for texera_db.workflow_computing_unit.name. - */ - @Override - public String getName() { - return (String) get(1); - } - - /** - * Setter for texera_db.workflow_computing_unit.cuid. - */ - @Override - public void setCuid(Integer value) { - set(2, value); - } - - /** - * Getter for texera_db.workflow_computing_unit.cuid. - */ - @Override - public Integer getCuid() { - return (Integer) get(2); - } - - /** - * Setter for texera_db.workflow_computing_unit.creation_time. - */ - @Override - public void setCreationTime(Timestamp value) { - set(3, value); - } - - /** - * Getter for texera_db.workflow_computing_unit.creation_time. - */ - @Override - public Timestamp getCreationTime() { - return (Timestamp) get(3); - } - - /** - * Setter for texera_db.workflow_computing_unit.terminate_time. - */ - @Override - public void setTerminateTime(Timestamp value) { - set(4, value); - } - - /** - * Getter for texera_db.workflow_computing_unit.terminate_time. - */ - @Override - public Timestamp getTerminateTime() { - return (Timestamp) get(4); - } - - // ------------------------------------------------------------------------- - // Primary key information - // ------------------------------------------------------------------------- - - @Override - public Record1 key() { - return (Record1) super.key(); - } - - // ------------------------------------------------------------------------- - // Record5 type implementation - // ------------------------------------------------------------------------- - - @Override - public Row5 fieldsRow() { - return (Row5) super.fieldsRow(); - } - - @Override - public Row5 valuesRow() { - return (Row5) super.valuesRow(); - } - - @Override - public Field field1() { - return WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.UID; - } - - @Override - public Field field2() { - return WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.NAME; - } - - @Override - public Field field3() { - return WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.CUID; - } - - @Override - public Field field4() { - return WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.CREATION_TIME; - } - - @Override - public Field field5() { - return WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT.TERMINATE_TIME; - } - - @Override - public Long component1() { - return getUid(); - } - - @Override - public String component2() { - return getName(); - } - - @Override - public Integer component3() { - return getCuid(); - } - - @Override - public Timestamp component4() { - return getCreationTime(); - } - - @Override - public Timestamp component5() { - return getTerminateTime(); - } - - @Override - public Long value1() { - return getUid(); - } - - @Override - public String value2() { - return getName(); - } - - @Override - public Integer value3() { - return getCuid(); - } - - @Override - public Timestamp value4() { - return getCreationTime(); - } - - @Override - public Timestamp value5() { - return getTerminateTime(); - } - - @Override - public WorkflowComputingUnitRecord value1(Long value) { - setUid(value); - return this; - } - - @Override - public WorkflowComputingUnitRecord value2(String value) { - setName(value); - return this; - } - - @Override - public WorkflowComputingUnitRecord value3(Integer value) { - setCuid(value); - return this; - } - - @Override - public WorkflowComputingUnitRecord value4(Timestamp value) { - setCreationTime(value); - return this; - } - - @Override - public WorkflowComputingUnitRecord value5(Timestamp value) { - setTerminateTime(value); - return this; - } - - @Override - public WorkflowComputingUnitRecord values(Long value1, String value2, Integer value3, Timestamp value4, Timestamp value5) { - value1(value1); - value2(value2); - value3(value3); - value4(value4); - value5(value5); - return this; - } - - // ------------------------------------------------------------------------- - // FROM and INTO - // ------------------------------------------------------------------------- - - @Override - public void from(IWorkflowComputingUnit from) { - setUid(from.getUid()); - setName(from.getName()); - setCuid(from.getCuid()); - setCreationTime(from.getCreationTime()); - setTerminateTime(from.getTerminateTime()); - } - - @Override - public E into(E into) { - into.from(this); - return into; - } - - // ------------------------------------------------------------------------- - // Constructors - // ------------------------------------------------------------------------- - - /** - * Create a detached WorkflowComputingUnitRecord - */ - public WorkflowComputingUnitRecord() { - super(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT); - } - - /** - * Create a detached, initialised WorkflowComputingUnitRecord - */ - public WorkflowComputingUnitRecord(Long uid, String name, Integer cuid, Timestamp creationTime, Timestamp terminateTime) { - super(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT); - - setUid(uid); - setName(name); - setCuid(cuid); - setCreationTime(creationTime); - setTerminateTime(terminateTime); - } - - /** - * Create a detached, initialised WorkflowComputingUnitRecord - */ - public WorkflowComputingUnitRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.WorkflowComputingUnit value) { - super(WorkflowComputingUnit.WORKFLOW_COMPUTING_UNIT); - - if (value != null) { - setUid(value.getUid()); - setName(value.getName()); - setCuid(value.getCuid()); - setCreationTime(value.getCreationTime()); - setTerminateTime(value.getTerminateTime()); - } - } -} diff --git a/core/scripts/sql/texera_ddl.sql b/core/scripts/sql/texera_ddl.sql index f9f17d53ad3..a863c0d6f71 100644 --- a/core/scripts/sql/texera_ddl.sql +++ b/core/scripts/sql/texera_ddl.sql @@ -39,12 +39,13 @@ DROP TABLE IF EXISTS workflow_user_clones CASCADE; DROP TABLE IF EXISTS workflow_view_count CASCADE; DROP TABLE IF EXISTS workflow_user_activity CASCADE; DROP TABLE IF EXISTS user_activity CASCADE; +DROP TABLE IF EXISTS dataset_user_likes CASCADE; +DROP TABLE IF EXISTS dataset_view_count CASCADE; -- ============================================ -- 4. Create PostgreSQL enum types -- to mimic MySQL ENUM fields -- ============================================ - DROP TYPE IF EXISTS user_role_enum CASCADE; DROP TYPE IF EXISTS privilege_enum CASCADE; @@ -58,13 +59,13 @@ CREATE TYPE privilege_enum AS ENUM ('NONE', 'READ', 'WRITE'); -- "user" table CREATE TABLE IF NOT EXISTS "user" ( - uid SERIAL PRIMARY KEY, - name VARCHAR(256) NOT NULL, - email VARCHAR(256) UNIQUE, - password VARCHAR(256), - google_id VARCHAR(256) UNIQUE, - role user_role_enum NOT NULL DEFAULT 'INACTIVE', - google_avatar VARCHAR(100), + uid SERIAL PRIMARY KEY, + name VARCHAR(256) NOT NULL, + email VARCHAR(256) UNIQUE, + password VARCHAR(256), + google_id VARCHAR(256) UNIQUE, + role user_role_enum NOT NULL DEFAULT 'INACTIVE', + google_avatar VARCHAR(100), -- check that either password or google_id is not null CONSTRAINT ck_nulltest CHECK ((password IS NOT NULL) OR (google_id IS NOT NULL)) ); @@ -72,9 +73,9 @@ CREATE TABLE IF NOT EXISTS "user" -- user_config CREATE TABLE IF NOT EXISTS user_config ( - uid INT NOT NULL, - key VARCHAR(256) NOT NULL, - value TEXT NOT NULL, + uid INT NOT NULL, + key VARCHAR(256) NOT NULL, + value TEXT NOT NULL, PRIMARY KEY (uid, key), FOREIGN KEY (uid) REFERENCES "user"(uid) ON DELETE CASCADE ); @@ -104,9 +105,9 @@ CREATE TABLE IF NOT EXISTS workflow_of_user -- workflow_user_access CREATE TABLE IF NOT EXISTS workflow_user_access ( - uid INT NOT NULL, - wid INT NOT NULL, - privilege privilege_enum NOT NULL DEFAULT 'NONE', + uid INT NOT NULL, + wid INT NOT NULL, + privilege privilege_enum NOT NULL DEFAULT 'NONE', PRIMARY KEY (uid, wid), FOREIGN KEY (uid) REFERENCES "user"(uid) ON DELETE CASCADE, FOREIGN KEY (wid) REFERENCES workflow(wid) ON DELETE CASCADE @@ -115,22 +116,22 @@ CREATE TABLE IF NOT EXISTS workflow_user_access -- workflow_version CREATE TABLE IF NOT EXISTS workflow_version ( - vid SERIAL PRIMARY KEY, - wid INT NOT NULL, - content TEXT NOT NULL, - creation_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, + vid SERIAL PRIMARY KEY, + wid INT NOT NULL, + content TEXT NOT NULL, + creation_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (wid) REFERENCES workflow(wid) ON DELETE CASCADE ); -- project CREATE TABLE IF NOT EXISTS project ( - pid SERIAL PRIMARY KEY, - name VARCHAR(128) NOT NULL, - description VARCHAR(10000), - owner_id INT NOT NULL, - creation_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, - color VARCHAR(6), + pid SERIAL PRIMARY KEY, + name VARCHAR(128) NOT NULL, + description VARCHAR(10000), + owner_id INT NOT NULL, + creation_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, + color VARCHAR(6), UNIQUE (owner_id, name), FOREIGN KEY (owner_id) REFERENCES "user"(uid) ON DELETE CASCADE ); @@ -148,9 +149,9 @@ CREATE TABLE IF NOT EXISTS workflow_of_project -- project_user_access CREATE TABLE IF NOT EXISTS project_user_access ( - uid INT NOT NULL, - pid INT NOT NULL, - privilege privilege_enum NOT NULL DEFAULT 'NONE', + uid INT NOT NULL, + pid INT NOT NULL, + privilege privilege_enum NOT NULL DEFAULT 'NONE', PRIMARY KEY (uid, pid), FOREIGN KEY (uid) REFERENCES "user"(uid) ON DELETE CASCADE, FOREIGN KEY (pid) REFERENCES project(pid) ON DELETE CASCADE @@ -187,12 +188,12 @@ CREATE TABLE IF NOT EXISTS public_project -- dataset CREATE TABLE IF NOT EXISTS dataset ( - did SERIAL PRIMARY KEY, - owner_uid INT NOT NULL, - name VARCHAR(128) NOT NULL, - is_public BOOLEAN NOT NULL DEFAULT TRUE, - description VARCHAR(512) NOT NULL, - creation_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, + did SERIAL PRIMARY KEY, + owner_uid INT NOT NULL, + name VARCHAR(128) NOT NULL, + is_public BOOLEAN NOT NULL DEFAULT TRUE, + description VARCHAR(512) NOT NULL, + creation_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (owner_uid) REFERENCES "user"(uid) ON DELETE CASCADE ); @@ -269,15 +270,34 @@ CREATE TABLE IF NOT EXISTS workflow_view_count ); -- Drop old workflow_user_activity (if any), replace with user_activity --- user_activity +-- user_activity table CREATE TABLE IF NOT EXISTS user_activity ( - uid INT NOT NULL DEFAULT 0, - id INT NOT NULL, + uid INTEGER NOT NULL DEFAULT 0, + id INTEGER NOT NULL, type VARCHAR(15) NOT NULL, - ip VARCHAR(15), + ip VARCHAR(15) DEFAULT NULL, activate VARCHAR(10) NOT NULL, - activity_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP + activity_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP + ); + +-- dataset_user_likes table +CREATE TABLE IF NOT EXISTS dataset_user_likes +( + uid INTEGER NOT NULL, + did INTEGER NOT NULL, + PRIMARY KEY (uid, did), + FOREIGN KEY (uid) REFERENCES "user"(uid) ON DELETE CASCADE, + FOREIGN KEY (did) REFERENCES dataset(did) ON DELETE CASCADE + ); + +-- dataset_view_count table +CREATE TABLE IF NOT EXISTS dataset_view_count +( + did INTEGER NOT NULL, + view_count INTEGER NOT NULL DEFAULT 0, + PRIMARY KEY (did), + FOREIGN KEY (did) REFERENCES dataset(did) ON DELETE CASCADE ); -- ============================================ @@ -329,6 +349,3 @@ CREATE INDEX idx_dataset_version_name COALESCE(name, '') ) ); - --- Done! --- You now have a "texera_db" database schema matching the MySQL version as closely as possible. diff --git a/core/scripts/sql/update/01.sql b/core/scripts/sql/update/01.sql deleted file mode 100644 index ee5e62e2e7b..00000000000 --- a/core/scripts/sql/update/01.sql +++ /dev/null @@ -1,7 +0,0 @@ -USE `texera_db`; -CREATE TABLE IF NOT EXISTS public_project -( - `pid` INT UNSIGNED NOT NULL, - PRIMARY KEY (`pid`), - FOREIGN KEY (`pid`) REFERENCES `project` (`pid`) ON DELETE CASCADE - ) ENGINE = INNODB; \ No newline at end of file diff --git a/core/scripts/sql/update/02.sql b/core/scripts/sql/update/02.sql deleted file mode 100644 index 220cdcf2c68..00000000000 --- a/core/scripts/sql/update/02.sql +++ /dev/null @@ -1,3 +0,0 @@ -USE `texera_db`; -ALTER table public_project - ADD uid int unsigned null; diff --git a/core/scripts/sql/update/03.sql b/core/scripts/sql/update/03.sql deleted file mode 100644 index 2d87f752bca..00000000000 --- a/core/scripts/sql/update/03.sql +++ /dev/null @@ -1,3 +0,0 @@ -USE `texera_db`; -ALTER table workflow - MODIFY content longtext not null; diff --git a/core/scripts/sql/update/04.sql b/core/scripts/sql/update/04.sql deleted file mode 100644 index 1c8c05a82e8..00000000000 --- a/core/scripts/sql/update/04.sql +++ /dev/null @@ -1,14 +0,0 @@ -USE `texera_db`; -CREATE TABLE IF NOT EXISTS workflow_runtime_statistics -( - `workflow_id` INT UNSIGNED NOT NULL, - `execution_id` INT UNSIGNED NOT NULL, - `operator_id` VARCHAR(100) NOT NULL, - `time` TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), - `input_tuple_cnt` INT UNSIGNED NOT NULL DEFAULT 0, - `output_tuple_cnt` INT UNSIGNED NOT NULL DEFAULT 0, - `status` TINYINT NOT NULL DEFAULT 1, - PRIMARY KEY (`workflow_id`, `execution_id`, `operator_id`, `time`), - FOREIGN KEY (`workflow_id`) REFERENCES `workflow` (`wid`) ON DELETE CASCADE, - FOREIGN KEY (`execution_id`) REFERENCES `workflow_executions` (`eid`) ON DELETE CASCADE -) ENGINE = INNODB; diff --git a/core/scripts/sql/update/05.sql b/core/scripts/sql/update/05.sql deleted file mode 100644 index 7d9bb0b5d20..00000000000 --- a/core/scripts/sql/update/05.sql +++ /dev/null @@ -1,2 +0,0 @@ -ALTER TABLE workflow_executions -ADD log_location TEXT; \ No newline at end of file diff --git a/core/scripts/sql/update/06.sql b/core/scripts/sql/update/06.sql deleted file mode 100644 index 49cbc0759a0..00000000000 --- a/core/scripts/sql/update/06.sql +++ /dev/null @@ -1,8 +0,0 @@ -USE `texera_db`; -ALTER TABLE workflow_runtime_statistics -ADD ( -`data_processing_time` BIGINT UNSIGNED NOT NULL DEFAULT 0, -`control_processing_time` BIGINT UNSIGNED NOT NULL DEFAULT 0, -`idle_time` BIGINT UNSIGNED NOT NULL DEFAULT 0, -`num_workers` INT UNSIGNED NOT NULL DEFAULT 0 -) diff --git a/core/scripts/sql/update/07.sql b/core/scripts/sql/update/07.sql deleted file mode 100644 index 0b8d8463f30..00000000000 --- a/core/scripts/sql/update/07.sql +++ /dev/null @@ -1,41 +0,0 @@ -USE `texera_db`; - --- Create new tables for dataset management -CREATE TABLE IF NOT EXISTS dataset -( - `did` INT UNSIGNED AUTO_INCREMENT NOT NULL, - `owner_uid` INT UNSIGNED NOT NULL, - `name` VARCHAR(128) NOT NULL, - `is_public` TINYINT NOT NULL DEFAULT 1, - `storage_path` VARCHAR(512) NOT NULL, - `description` VARCHAR(512) NOT NULL, - `creation_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY(`did`), - FOREIGN KEY (`owner_uid`) REFERENCES `user` (`uid`) ON DELETE CASCADE -) ENGINE = INNODB; - -CREATE TABLE IF NOT EXISTS dataset_user_access -( - `did` INT UNSIGNED NOT NULL, - `uid` INT UNSIGNED NOT NULL, - `privilege` ENUM('NONE', 'READ', 'WRITE') NOT NULL DEFAULT 'NONE', - PRIMARY KEY(`did`, `uid`), - FOREIGN KEY (`did`) REFERENCES `dataset` (`did`) ON DELETE CASCADE, - FOREIGN KEY (`uid`) REFERENCES `user` (`uid`) ON DELETE CASCADE -) ENGINE = INNODB; - -CREATE TABLE IF NOT EXISTS dataset_version -( - `dvid` INT UNSIGNED AUTO_INCREMENT NOT NULL, - `did` INT UNSIGNED NOT NULL, - `creator_uid` INT UNSIGNED NOT NULL, - `name` VARCHAR(128) NOT NULL, - `version_hash` VARCHAR(64) NOT NULL, - `creation_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY(`dvid`), - FOREIGN KEY (`did`) REFERENCES `dataset` (`did`) ON DELETE CASCADE -) ENGINE = INNODB; - --- Create fulltext indexes for the new tables -CREATE FULLTEXT INDEX `idx_dataset_name_description` ON `texera_db`.`dataset` (name, description); -CREATE FULLTEXT INDEX `idx_dataset_version_name` ON `texera_db`.`dataset_version` (name); \ No newline at end of file diff --git a/core/scripts/sql/update/08.sql b/core/scripts/sql/update/08.sql deleted file mode 100644 index d17014f40a9..00000000000 --- a/core/scripts/sql/update/08.sql +++ /dev/null @@ -1,4 +0,0 @@ -USE `texera_db`; - -ALTER TABLE dataset -MODIFY COLUMN storage_path VARCHAR(512) NOT NULL DEFAULT ''; diff --git a/core/scripts/sql/update/09.sql b/core/scripts/sql/update/09.sql deleted file mode 100644 index 276e684408c..00000000000 --- a/core/scripts/sql/update/09.sql +++ /dev/null @@ -1,40 +0,0 @@ -USE `texera_db`; - -CREATE TABLE IF NOT EXISTS environment -( - `eid` INT UNSIGNED AUTO_INCREMENT NOT NULL, - `owner_uid` INT UNSIGNED NOT NULL, - `name` VARCHAR(128) NOT NULL DEFAULT 'Untitled Environment', - `description` VARCHAR(1000), - `creation_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`eid`), - FOREIGN KEY (`owner_uid`) REFERENCES `user` (`uid`) ON DELETE CASCADE -) ENGINE = INNODB; - -CREATE TABLE IF NOT EXISTS environment_of_workflow -( - `eid` INT UNSIGNED NOT NULL, - `wid` INT UNSIGNED NOT NULL, - PRIMARY KEY (`eid`, `wid`), - FOREIGN KEY (`wid`) REFERENCES `workflow` (`wid`) ON DELETE CASCADE, - FOREIGN KEY (`eid`) REFERENCES `environment` (`eid`) ON DELETE CASCADE -) ENGINE = INNODB; - -CREATE TABLE IF NOT EXISTS dataset_of_environment -( - `did` INT UNSIGNED NOT NULL, - `eid` INT UNSIGNED NOT NULL, - `dvid` INT UNSIGNED NOT NULL, - PRIMARY KEY (`did`, `eid`), - FOREIGN KEY (`eid`) REFERENCES `environment` (`eid`) ON DELETE CASCADE, - FOREIGN KEY (`dvid`) REFERENCES `dataset_version` (`dvid`) ON DELETE CASCADE -) ENGINE = INNODB; - --- Add the `environment_eid` column to the `workflow_executions` table -ALTER TABLE workflow_executions -ADD COLUMN `environment_eid` INT UNSIGNED; - --- Add the foreign key constraint for `environment_eid` -ALTER TABLE workflow_executions -ADD CONSTRAINT fk_environment_eid -FOREIGN KEY (`environment_eid`) REFERENCES environment(`eid`) ON DELETE SET NULL; \ No newline at end of file diff --git a/core/scripts/sql/update/10.sql b/core/scripts/sql/update/10.sql deleted file mode 100644 index 90741e2d842..00000000000 --- a/core/scripts/sql/update/10.sql +++ /dev/null @@ -1,3 +0,0 @@ -USE `texera_db`; -alter table user - add google_avatar VARCHAR(100) null; \ No newline at end of file diff --git a/core/scripts/sql/update/11.sql b/core/scripts/sql/update/11.sql deleted file mode 100644 index bd8ef05e082..00000000000 --- a/core/scripts/sql/update/11.sql +++ /dev/null @@ -1,3 +0,0 @@ -USE `texera_db`; - -ALTER TABLE dataset DROP COLUMN storage_path; diff --git a/core/scripts/sql/update/12.sql b/core/scripts/sql/update/12.sql deleted file mode 100644 index 24bd29ce7ab..00000000000 --- a/core/scripts/sql/update/12.sql +++ /dev/null @@ -1,4 +0,0 @@ -USE `texera_db`; - -ALTER TABLE texera_db.workflow_runtime_statistics - MODIFY COLUMN operator_id VARCHAR(512); \ No newline at end of file diff --git a/core/scripts/sql/update/13.sql b/core/scripts/sql/update/13.sql deleted file mode 100644 index d0daeb06b26..00000000000 --- a/core/scripts/sql/update/13.sql +++ /dev/null @@ -1,22 +0,0 @@ -use `texera_db`; - -ALTER TABLE `environment_of_workflow` - DROP FOREIGN KEY `environment_of_workflow_ibfk_2`; - -ALTER TABLE `dataset_of_environment` - DROP FOREIGN KEY `dataset_of_environment_ibfk_1`; - -ALTER TABLE `dataset_of_environment` - DROP FOREIGN KEY `dataset_of_environment_ibfk_2`; - -ALTER TABLE `workflow_executions` - DROP FOREIGN KEY `workflow_executions_ibfk_3`; --- Dropping the dependent tables -DROP TABLE IF EXISTS `environment_of_workflow`; -DROP TABLE IF EXISTS `dataset_of_environment`; - --- Dropping the environment table -DROP TABLE IF EXISTS `environment`; - -ALTER TABLE `workflow_executions` - DROP COLUMN `environment_eid`; \ No newline at end of file diff --git a/core/scripts/sql/update/14.sql b/core/scripts/sql/update/14.sql deleted file mode 100644 index b15ae631c87..00000000000 --- a/core/scripts/sql/update/14.sql +++ /dev/null @@ -1,6 +0,0 @@ -use `texera_db`; - -DROP TABLE IF EXISTS `user_file_access`; -DROP TABLE IF EXISTS `file_of_project`; -DROP TABLE IF EXISTS `file_of_workflow`; -DROP TABLE IF EXISTS `file`; \ No newline at end of file diff --git a/core/scripts/sql/update/15.sql b/core/scripts/sql/update/15.sql deleted file mode 100644 index 83108ef9ec7..00000000000 --- a/core/scripts/sql/update/15.sql +++ /dev/null @@ -1,4 +0,0 @@ -USE `texera_db`; - -ALTER TABLE workflow -ADD is_published BOOLEAN NOT NULL DEFAULT false; \ No newline at end of file diff --git a/core/scripts/sql/update/16.sql b/core/scripts/sql/update/16.sql deleted file mode 100644 index d98bab753be..00000000000 --- a/core/scripts/sql/update/16.sql +++ /dev/null @@ -1,26 +0,0 @@ -USE texera_db; -CREATE TABLE IF NOT EXISTS workflow_user_likes -( - `uid` INT UNSIGNED NOT NULL, - `wid` INT UNSIGNED NOT NULL, - PRIMARY KEY (`uid`, `wid`), - FOREIGN KEY (`uid`) REFERENCES `user` (`uid`) ON DELETE CASCADE, - FOREIGN KEY (`wid`) REFERENCES `workflow` (`wid`) ON DELETE CASCADE - ) ENGINE = INNODB; - -CREATE TABLE IF NOT EXISTS workflow_user_clones -( - `uid` INT UNSIGNED NOT NULL, - `wid` INT UNSIGNED NOT NULL, - PRIMARY KEY (`uid`, `wid`), - FOREIGN KEY (`uid`) REFERENCES `user` (`uid`) ON DELETE CASCADE, - FOREIGN KEY (`wid`) REFERENCES `workflow` (`wid`) ON DELETE CASCADE - ) ENGINE = INNODB; - -CREATE TABLE IF NOT EXISTS workflow_user_activity ( - `uid` INT UNSIGNED NOT NULL DEFAULT 0, - `wid` INT UNSIGNED NOT NULL, - `ip` VARCHAR(15) DEFAULT NULL, - `activate` VARCHAR(10) NOT NULL, - `activity_time` TIMESTAMP DEFAULT CURRENT_TIMESTAMP -) ENGINE = INNODB; diff --git a/core/scripts/sql/update/17.sql b/core/scripts/sql/update/17.sql deleted file mode 100644 index 3150321435b..00000000000 --- a/core/scripts/sql/update/17.sql +++ /dev/null @@ -1,8 +0,0 @@ -USE texera_db; -CREATE TABLE IF NOT EXISTS workflow_view_count -( - `wid` INT UNSIGNED NOT NULL, - `view_count` INT UNSIGNED NOT NULL DEFAULT 0, - PRIMARY KEY (`wid`), - FOREIGN KEY (`wid`) REFERENCES `workflow` (`wid`) ON DELETE CASCADE - ) ENGINE = INNODB; \ No newline at end of file diff --git a/core/scripts/sql/update/18.sql b/core/scripts/sql/update/18.sql deleted file mode 100644 index 4e3931fe8a7..00000000000 --- a/core/scripts/sql/update/18.sql +++ /dev/null @@ -1,7 +0,0 @@ -USE texera_db; - -ALTER TABLE dataset -MODIFY COLUMN is_public BOOLEAN NOT NULL DEFAULT true; - -ALTER TABLE workflow -CHANGE COLUMN is_published is_public BOOLEAN NOT NULL DEFAULT false; \ No newline at end of file diff --git a/core/scripts/sql/update/19.sql b/core/scripts/sql/update/19.sql deleted file mode 100644 index dafbbbd42d8..00000000000 --- a/core/scripts/sql/update/19.sql +++ /dev/null @@ -1,55 +0,0 @@ -USE texera_db; -DROP TABLE IF EXISTS operator_runtime_statistics; -DROP TABLE IF EXISTS operator_executions; - -CREATE TABLE IF NOT EXISTS operator_executions ( - operator_execution_id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY, - workflow_execution_id INT UNSIGNED NOT NULL, - operator_id VARCHAR(100) NOT NULL, - UNIQUE (workflow_execution_id, operator_id), - FOREIGN KEY (workflow_execution_id) REFERENCES workflow_executions (eid) ON DELETE CASCADE -); - -CREATE TABLE IF NOT EXISTS operator_runtime_statistics ( - operator_execution_id BIGINT UNSIGNED NOT NULL, - time TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), - input_tuple_cnt BIGINT UNSIGNED NOT NULL DEFAULT 0, - output_tuple_cnt BIGINT UNSIGNED NOT NULL DEFAULT 0, - status TINYINT NOT NULL DEFAULT 1, - data_processing_time BIGINT UNSIGNED NOT NULL DEFAULT 0, - control_processing_time BIGINT UNSIGNED NOT NULL DEFAULT 0, - idle_time BIGINT UNSIGNED NOT NULL DEFAULT 0, - num_workers INT UNSIGNED NOT NULL DEFAULT 0, - PRIMARY KEY (operator_execution_id, time), - FOREIGN KEY (operator_execution_id) REFERENCES operator_executions (operator_execution_id) ON DELETE CASCADE -); - -INSERT IGNORE INTO operator_executions (workflow_execution_id, operator_id) -SELECT DISTINCT execution_id, operator_id -FROM workflow_runtime_statistics; - -INSERT INTO operator_runtime_statistics ( - operator_execution_id, - time, - input_tuple_cnt, - output_tuple_cnt, - status, - data_processing_time, - control_processing_time, - idle_time, - num_workers -) -SELECT - oe.operator_execution_id, - wrs.time, - wrs.input_tuple_cnt, - wrs.output_tuple_cnt, - wrs.status, - wrs.data_processing_time, - wrs.control_processing_time, - wrs.idle_time, - wrs.num_workers -FROM workflow_runtime_statistics wrs -JOIN operator_executions oe ON wrs.execution_id = oe.workflow_execution_id AND wrs.operator_id = oe.operator_id; - -drop table if exists workflow_runtime_statistics; diff --git a/core/scripts/sql/update/20.sql b/core/scripts/sql/update/20.sql deleted file mode 100644 index 0dacefeeddc..00000000000 --- a/core/scripts/sql/update/20.sql +++ /dev/null @@ -1,12 +0,0 @@ -USE texera_db; - -DROP TABLE IF EXISTS workflow_user_activity; - -CREATE TABLE IF NOT EXISTS user_activity ( - `uid` INT UNSIGNED NOT NULL DEFAULT 0, - `id` INT UNSIGNED NOT NULL, - `type` VARCHAR(15) NOT NULL, - `ip` VARCHAR(15) DEFAULT NULL, - `activate` VARCHAR(10) NOT NULL, - `activity_time` TIMESTAMP DEFAULT CURRENT_TIMESTAMP - ) ENGINE = INNODB; diff --git a/core/scripts/sql/update/21.sql b/core/scripts/sql/update/21.sql deleted file mode 100644 index d2e408f64ea..00000000000 --- a/core/scripts/sql/update/21.sql +++ /dev/null @@ -1,16 +0,0 @@ -use texera_db; - -drop table if exists operator_runtime_statistics; - -alter table workflow_executions add column runtime_stats_uri text default null; -alter table operator_executions drop column operator_execution_id, add column console_messages_uri text default null; - -CREATE TABLE IF NOT EXISTS operator_port_executions -( - workflow_execution_id INT UNSIGNED NOT NULL, - operator_id VARCHAR(100) NOT NULL, - port_id INT NOT NULL, - result_uri TEXT DEFAULT NULL, - UNIQUE (workflow_execution_id, operator_id, port_id), - FOREIGN KEY (workflow_execution_id) REFERENCES workflow_executions (eid) ON DELETE CASCADE -); diff --git a/core/scripts/sql/update/22.sql b/core/scripts/sql/update/22.sql deleted file mode 100644 index bda70bc7001..00000000000 --- a/core/scripts/sql/update/22.sql +++ /dev/null @@ -1,20 +0,0 @@ -USE texera_db; - -DROP TABLE IF EXISTS dataset_user_likes; -DROP TABLE IF EXISTS dataset_view_count; - -CREATE TABLE IF NOT EXISTS dataset_user_likes -( - `uid` INT UNSIGNED NOT NULL, - `did` INT UNSIGNED NOT NULL, - PRIMARY KEY (`uid`, `did`), - FOREIGN KEY (`uid`) REFERENCES `user` (`uid`) ON DELETE CASCADE, - FOREIGN KEY (`did`) REFERENCES `dataset` (`did`) ON DELETE CASCADE - ) ENGINE = INNODB; - -CREATE TABLE IF NOT EXISTS `dataset_view_count` ( - `did` INT UNSIGNED NOT NULL, - `view_count` INT UNSIGNED NOT NULL DEFAULT 0, - PRIMARY KEY (`did`), - FOREIGN KEY (`did`) REFERENCES `dataset` (`did`) ON DELETE CASCADE - ) ENGINE = INNODB; \ No newline at end of file diff --git a/core/scripts/sql/update/fix_groupby.sql b/core/scripts/sql/update/fix_groupby.sql deleted file mode 100644 index c813f9d0acc..00000000000 --- a/core/scripts/sql/update/fix_groupby.sql +++ /dev/null @@ -1 +0,0 @@ -SET PERSIST sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY','')); \ No newline at end of file diff --git a/core/workflow-core/src/main/resources/storage-config.yaml b/core/workflow-core/src/main/resources/storage-config.yaml index 176600a0e11..08d1ba6edf5 100644 --- a/core/workflow-core/src/main/resources/storage-config.yaml +++ b/core/workflow-core/src/main/resources/storage-config.yaml @@ -28,5 +28,5 @@ storage: max-wait-ms: 10000 # 10s jdbc: url: "jdbc:postgresql://localhost:5432/texera_db" - username: "" + username: "postgres" password: "" From 48209d55efe3e3c24189b38defe33eff65289196 Mon Sep 17 00:00:00 2001 From: Shengquan Ni <13672781+shengquan-ni@users.noreply.github.com> Date: Thu, 20 Feb 2025 20:50:42 -0800 Subject: [PATCH 19/20] update --- .../ics/texera/dao/jooq/generated/Keys.java | 4 +- .../generated/tables/OperatorExecutions.java | 4 +- .../tables/OperatorPortExecutions.java | 4 +- .../tables/daos/OperatorExecutionsDao.java | 86 +++++++++++++++ .../daos/OperatorPortExecutionsDao.java | 101 ++++++++++++++++++ .../records/OperatorExecutionsRecord.java | 14 ++- .../records/OperatorPortExecutionsRecord.java | 14 ++- core/scripts/sql/texera_ddl.sql | 4 +- 8 files changed, 219 insertions(+), 12 deletions(-) create mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorExecutionsDao.java create mode 100644 core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorPortExecutionsDao.java diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java index 3e4a8e29c79..093fb4c2480 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/Keys.java @@ -70,8 +70,8 @@ public class Keys { public static final UniqueKey DATASET_USER_LIKES_PKEY = Internal.createUniqueKey(DatasetUserLikes.DATASET_USER_LIKES, DSL.name("dataset_user_likes_pkey"), new TableField[] { DatasetUserLikes.DATASET_USER_LIKES.UID, DatasetUserLikes.DATASET_USER_LIKES.DID }, true); public static final UniqueKey DATASET_VERSION_PKEY = Internal.createUniqueKey(DatasetVersion.DATASET_VERSION, DSL.name("dataset_version_pkey"), new TableField[] { DatasetVersion.DATASET_VERSION.DVID }, true); public static final UniqueKey DATASET_VIEW_COUNT_PKEY = Internal.createUniqueKey(DatasetViewCount.DATASET_VIEW_COUNT, DSL.name("dataset_view_count_pkey"), new TableField[] { DatasetViewCount.DATASET_VIEW_COUNT.DID }, true); - public static final UniqueKey OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID_KEY = Internal.createUniqueKey(OperatorExecutions.OPERATOR_EXECUTIONS, DSL.name("operator_executions_workflow_execution_id_operator_id_key"), new TableField[] { OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID, OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_ID }, true); - public static final UniqueKey OPERATOR_PORT_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID__KEY = Internal.createUniqueKey(OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS, DSL.name("operator_port_executions_workflow_execution_id_operator_id__key"), new TableField[] { OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.WORKFLOW_EXECUTION_ID, OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.OPERATOR_ID, OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.PORT_ID }, true); + public static final UniqueKey OPERATOR_EXECUTIONS_PKEY = Internal.createUniqueKey(OperatorExecutions.OPERATOR_EXECUTIONS, DSL.name("operator_executions_pkey"), new TableField[] { OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID, OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_ID }, true); + public static final UniqueKey OPERATOR_PORT_EXECUTIONS_PKEY = Internal.createUniqueKey(OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS, DSL.name("operator_port_executions_pkey"), new TableField[] { OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.WORKFLOW_EXECUTION_ID, OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.OPERATOR_ID, OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.PORT_ID }, true); public static final UniqueKey PROJECT_OWNER_ID_NAME_KEY = Internal.createUniqueKey(Project.PROJECT, DSL.name("project_owner_id_name_key"), new TableField[] { Project.PROJECT.OWNER_ID, Project.PROJECT.NAME }, true); public static final UniqueKey PROJECT_PKEY = Internal.createUniqueKey(Project.PROJECT, DSL.name("project_pkey"), new TableField[] { Project.PROJECT.PID }, true); public static final UniqueKey PROJECT_USER_ACCESS_PKEY = Internal.createUniqueKey(ProjectUserAccess.PROJECT_USER_ACCESS, DSL.name("project_user_access_pkey"), new TableField[] { ProjectUserAccess.PROJECT_USER_ACCESS.UID, ProjectUserAccess.PROJECT_USER_ACCESS.PID }, true); diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorExecutions.java index c0355d6dc63..42057dc59a9 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorExecutions.java @@ -105,8 +105,8 @@ public Schema getSchema() { } @Override - public List> getUniqueKeys() { - return Arrays.asList(Keys.OPERATOR_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID_KEY); + public UniqueKey getPrimaryKey() { + return Keys.OPERATOR_EXECUTIONS_PKEY; } @Override diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorPortExecutions.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorPortExecutions.java index e5cb009fa56..a8731e1caf2 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorPortExecutions.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/OperatorPortExecutions.java @@ -109,8 +109,8 @@ public Schema getSchema() { } @Override - public List> getUniqueKeys() { - return Arrays.asList(Keys.OPERATOR_PORT_EXECUTIONS_WORKFLOW_EXECUTION_ID_OPERATOR_ID__KEY); + public UniqueKey getPrimaryKey() { + return Keys.OPERATOR_PORT_EXECUTIONS_PKEY; } @Override diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorExecutionsDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorExecutionsDao.java new file mode 100644 index 00000000000..60acd0b9704 --- /dev/null +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorExecutionsDao.java @@ -0,0 +1,86 @@ +/* + * This file is generated by jOOQ. + */ +package edu.uci.ics.texera.dao.jooq.generated.tables.daos; + + +import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorExecutions; +import edu.uci.ics.texera.dao.jooq.generated.tables.records.OperatorExecutionsRecord; + +import java.util.List; + +import org.jooq.Configuration; +import org.jooq.Record2; +import org.jooq.impl.DAOImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class OperatorExecutionsDao extends DAOImpl> { + + /** + * Create a new OperatorExecutionsDao without any configuration + */ + public OperatorExecutionsDao() { + super(OperatorExecutions.OPERATOR_EXECUTIONS, edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorExecutions.class); + } + + /** + * Create a new OperatorExecutionsDao with an attached configuration + */ + public OperatorExecutionsDao(Configuration configuration) { + super(OperatorExecutions.OPERATOR_EXECUTIONS, edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorExecutions.class, configuration); + } + + @Override + public Record2 getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorExecutions object) { + return compositeKeyRecord(object.getWorkflowExecutionId(), object.getOperatorId()); + } + + /** + * Fetch records that have workflow_execution_id BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfWorkflowExecutionId(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have workflow_execution_id IN (values) + */ + public List fetchByWorkflowExecutionId(Integer... values) { + return fetch(OperatorExecutions.OPERATOR_EXECUTIONS.WORKFLOW_EXECUTION_ID, values); + } + + /** + * Fetch records that have operator_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfOperatorId(String lowerInclusive, String upperInclusive) { + return fetchRange(OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have operator_id IN (values) + */ + public List fetchByOperatorId(String... values) { + return fetch(OperatorExecutions.OPERATOR_EXECUTIONS.OPERATOR_ID, values); + } + + /** + * Fetch records that have console_messages_uri BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfConsoleMessagesUri(String lowerInclusive, String upperInclusive) { + return fetchRange(OperatorExecutions.OPERATOR_EXECUTIONS.CONSOLE_MESSAGES_URI, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have console_messages_uri IN (values) + */ + public List fetchByConsoleMessagesUri(String... values) { + return fetch(OperatorExecutions.OPERATOR_EXECUTIONS.CONSOLE_MESSAGES_URI, values); + } +} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorPortExecutionsDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorPortExecutionsDao.java new file mode 100644 index 00000000000..baec71793bd --- /dev/null +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/OperatorPortExecutionsDao.java @@ -0,0 +1,101 @@ +/* + * This file is generated by jOOQ. + */ +package edu.uci.ics.texera.dao.jooq.generated.tables.daos; + + +import edu.uci.ics.texera.dao.jooq.generated.tables.OperatorPortExecutions; +import edu.uci.ics.texera.dao.jooq.generated.tables.records.OperatorPortExecutionsRecord; + +import java.util.List; + +import org.jooq.Configuration; +import org.jooq.Record3; +import org.jooq.impl.DAOImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class OperatorPortExecutionsDao extends DAOImpl> { + + /** + * Create a new OperatorPortExecutionsDao without any configuration + */ + public OperatorPortExecutionsDao() { + super(OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS, edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorPortExecutions.class); + } + + /** + * Create a new OperatorPortExecutionsDao with an attached configuration + */ + public OperatorPortExecutionsDao(Configuration configuration) { + super(OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS, edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorPortExecutions.class, configuration); + } + + @Override + public Record3 getId(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.OperatorPortExecutions object) { + return compositeKeyRecord(object.getWorkflowExecutionId(), object.getOperatorId(), object.getPortId()); + } + + /** + * Fetch records that have workflow_execution_id BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfWorkflowExecutionId(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.WORKFLOW_EXECUTION_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have workflow_execution_id IN (values) + */ + public List fetchByWorkflowExecutionId(Integer... values) { + return fetch(OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.WORKFLOW_EXECUTION_ID, values); + } + + /** + * Fetch records that have operator_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfOperatorId(String lowerInclusive, String upperInclusive) { + return fetchRange(OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.OPERATOR_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have operator_id IN (values) + */ + public List fetchByOperatorId(String... values) { + return fetch(OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.OPERATOR_ID, values); + } + + /** + * Fetch records that have port_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfPortId(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.PORT_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have port_id IN (values) + */ + public List fetchByPortId(Integer... values) { + return fetch(OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.PORT_ID, values); + } + + /** + * Fetch records that have result_uri BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfResultUri(String lowerInclusive, String upperInclusive) { + return fetchRange(OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.RESULT_URI, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have result_uri IN (values) + */ + public List fetchByResultUri(String... values) { + return fetch(OperatorPortExecutions.OPERATOR_PORT_EXECUTIONS.RESULT_URI, values); + } +} diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorExecutionsRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorExecutionsRecord.java index 2f8bcfec16d..af4c0d6953c 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorExecutionsRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorExecutionsRecord.java @@ -8,16 +8,17 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IOperatorExecutions; import org.jooq.Field; +import org.jooq.Record2; import org.jooq.Record3; import org.jooq.Row3; -import org.jooq.impl.TableRecordImpl; +import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class OperatorExecutionsRecord extends TableRecordImpl implements Record3, IOperatorExecutions { +public class OperatorExecutionsRecord extends UpdatableRecordImpl implements Record3, IOperatorExecutions { private static final long serialVersionUID = 1L; @@ -73,6 +74,15 @@ public String getConsoleMessagesUri() { return (String) get(2); } + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record2 key() { + return (Record2) super.key(); + } + // ------------------------------------------------------------------------- // Record3 type implementation // ------------------------------------------------------------------------- diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorPortExecutionsRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorPortExecutionsRecord.java index f9ac120f486..cba7f79c15a 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorPortExecutionsRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/OperatorPortExecutionsRecord.java @@ -8,16 +8,17 @@ import edu.uci.ics.texera.dao.jooq.generated.tables.interfaces.IOperatorPortExecutions; import org.jooq.Field; +import org.jooq.Record3; import org.jooq.Record4; import org.jooq.Row4; -import org.jooq.impl.TableRecordImpl; +import org.jooq.impl.UpdatableRecordImpl; /** * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class OperatorPortExecutionsRecord extends TableRecordImpl implements Record4, IOperatorPortExecutions { +public class OperatorPortExecutionsRecord extends UpdatableRecordImpl implements Record4, IOperatorPortExecutions { private static final long serialVersionUID = 1L; @@ -87,6 +88,15 @@ public String getResultUri() { return (String) get(3); } + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record3 key() { + return (Record3) super.key(); + } + // ------------------------------------------------------------------------- // Record4 type implementation // ------------------------------------------------------------------------- diff --git a/core/scripts/sql/texera_ddl.sql b/core/scripts/sql/texera_ddl.sql index a863c0d6f71..c41624b263e 100644 --- a/core/scripts/sql/texera_ddl.sql +++ b/core/scripts/sql/texera_ddl.sql @@ -226,7 +226,7 @@ CREATE TABLE IF NOT EXISTS operator_executions workflow_execution_id INT NOT NULL, operator_id VARCHAR(100) NOT NULL, console_messages_uri TEXT, - UNIQUE (workflow_execution_id, operator_id), + PRIMARY KEY (workflow_execution_id, operator_id), FOREIGN KEY (workflow_execution_id) REFERENCES workflow_executions(eid) ON DELETE CASCADE ); @@ -237,7 +237,7 @@ CREATE TABLE IF NOT EXISTS operator_port_executions operator_id VARCHAR(100) NOT NULL, port_id INT NOT NULL, result_uri TEXT, - UNIQUE (workflow_execution_id, operator_id, port_id), + PRIMARY KEY (workflow_execution_id, operator_id, port_id), FOREIGN KEY (workflow_execution_id) REFERENCES workflow_executions(eid) ON DELETE CASCADE ); From 706dfc943f4fd5357eb693c7c5e5d1d26ed6aa30 Mon Sep 17 00:00:00 2001 From: Shengquan Ni <13672781+shengquan-ni@users.noreply.github.com> Date: Thu, 20 Feb 2025 20:53:08 -0800 Subject: [PATCH 20/20] update --- .../ics/texera/web/auth/GuestAuthFilter.scala | 2 +- .../texera/web/auth/UserAuthenticator.scala | 2 +- .../dao/jooq/generated/tables/User.java | 10 +-- .../jooq/generated/tables/daos/UserDao.java | 24 +++---- .../generated/tables/interfaces/IUser.java | 16 ++--- .../dao/jooq/generated/tables/pojos/User.java | 38 +++++------ .../generated/tables/records/UserRecord.java | 68 +++++++++---------- core/scripts/sql/texera_ddl.sql | 2 +- 8 files changed, 81 insertions(+), 81 deletions(-) diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/GuestAuthFilter.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/GuestAuthFilter.scala index 9dbf61e7fc6..398d2affabb 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/GuestAuthFilter.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/GuestAuthFilter.scala @@ -18,7 +18,7 @@ import javax.ws.rs.core.SecurityContext override protected def newInstance = new GuestAuthFilter } - val GUEST: User = new User(null, "guest", null, null, null, UserRoleEnum.REGULAR, null) + val GUEST: User = new User(null, "guest", null, null, null, null, UserRoleEnum.REGULAR) } @PreMatching diff --git a/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/UserAuthenticator.scala b/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/UserAuthenticator.scala index 168df2899cc..05c331ec683 100644 --- a/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/UserAuthenticator.scala +++ b/core/amber/src/main/scala/edu/uci/ics/texera/web/auth/UserAuthenticator.scala @@ -20,7 +20,7 @@ object UserAuthenticator extends Authenticator[JwtContext, SessionUser] with Laz val role = UserRoleEnum.valueOf(context.getJwtClaims.getClaimValue("role").asInstanceOf[String]) val googleId = context.getJwtClaims.getClaimValue("googleId").asInstanceOf[String] - val user = new User(userId, userName, email, null, googleId, role, null) + val user = new User(userId, userName, email, null, googleId, null, role) Optional.of(new SessionUser(user)) } catch { case e: Exception => diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/User.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/User.java index 97a058a05ce..1a534885186 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/User.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/User.java @@ -77,14 +77,14 @@ public Class getRecordType() { public final TableField GOOGLE_ID = createField(DSL.name("google_id"), SQLDataType.VARCHAR(256), this, ""); /** - * The column texera_db.user.role. + * The column texera_db.user.google_avatar. */ - public final TableField ROLE = createField(DSL.name("role"), SQLDataType.VARCHAR.nullable(false).defaultValue(DSL.field("'INACTIVE'::texera_db.user_role_enum", SQLDataType.VARCHAR)).asEnumDataType(edu.uci.ics.texera.dao.jooq.generated.enums.UserRoleEnum.class), this, ""); + public final TableField GOOGLE_AVATAR = createField(DSL.name("google_avatar"), SQLDataType.VARCHAR(100), this, ""); /** - * The column texera_db.user.google_avatar. + * The column texera_db.user.role. */ - public final TableField GOOGLE_AVATAR = createField(DSL.name("google_avatar"), SQLDataType.VARCHAR(100), this, ""); + public final TableField ROLE = createField(DSL.name("role"), SQLDataType.VARCHAR.nullable(false).defaultValue(DSL.field("'INACTIVE'::texera_db.user_role_enum", SQLDataType.VARCHAR)).asEnumDataType(edu.uci.ics.texera.dao.jooq.generated.enums.UserRoleEnum.class), this, ""); private User(Name alias, Table aliased) { this(alias, aliased, null); @@ -177,7 +177,7 @@ public User rename(Name name) { // ------------------------------------------------------------------------- @Override - public Row7 fieldsRow() { + public Row7 fieldsRow() { return (Row7) super.fieldsRow(); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/UserDao.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/UserDao.java index 8868eee60c5..034062bd979 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/UserDao.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/daos/UserDao.java @@ -158,32 +158,32 @@ public Optional fetchOp } /** - * Fetch records that have role BETWEEN lowerInclusive AND + * Fetch records that have google_avatar BETWEEN lowerInclusive AND * upperInclusive */ - public List fetchRangeOfRole(UserRoleEnum lowerInclusive, UserRoleEnum upperInclusive) { - return fetchRange(User.USER.ROLE, lowerInclusive, upperInclusive); + public List fetchRangeOfGoogleAvatar(String lowerInclusive, String upperInclusive) { + return fetchRange(User.USER.GOOGLE_AVATAR, lowerInclusive, upperInclusive); } /** - * Fetch records that have role IN (values) + * Fetch records that have google_avatar IN (values) */ - public List fetchByRole(UserRoleEnum... values) { - return fetch(User.USER.ROLE, values); + public List fetchByGoogleAvatar(String... values) { + return fetch(User.USER.GOOGLE_AVATAR, values); } /** - * Fetch records that have google_avatar BETWEEN lowerInclusive AND + * Fetch records that have role BETWEEN lowerInclusive AND * upperInclusive */ - public List fetchRangeOfGoogleAvatar(String lowerInclusive, String upperInclusive) { - return fetchRange(User.USER.GOOGLE_AVATAR, lowerInclusive, upperInclusive); + public List fetchRangeOfRole(UserRoleEnum lowerInclusive, UserRoleEnum upperInclusive) { + return fetchRange(User.USER.ROLE, lowerInclusive, upperInclusive); } /** - * Fetch records that have google_avatar IN (values) + * Fetch records that have role IN (values) */ - public List fetchByGoogleAvatar(String... values) { - return fetch(User.USER.GOOGLE_AVATAR, values); + public List fetchByRole(UserRoleEnum... values) { + return fetch(User.USER.ROLE, values); } } diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUser.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUser.java index b2f2ba0025d..a744dc215f0 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUser.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/interfaces/IUser.java @@ -66,24 +66,24 @@ public interface IUser extends Serializable { public String getGoogleId(); /** - * Setter for texera_db.user.role. + * Setter for texera_db.user.google_avatar. */ - public void setRole(UserRoleEnum value); + public void setGoogleAvatar(String value); /** - * Getter for texera_db.user.role. + * Getter for texera_db.user.google_avatar. */ - public UserRoleEnum getRole(); + public String getGoogleAvatar(); /** - * Setter for texera_db.user.google_avatar. + * Setter for texera_db.user.role. */ - public void setGoogleAvatar(String value); + public void setRole(UserRoleEnum value); /** - * Getter for texera_db.user.google_avatar. + * Getter for texera_db.user.role. */ - public String getGoogleAvatar(); + public UserRoleEnum getRole(); // ------------------------------------------------------------------------- // FROM and INTO diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/User.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/User.java index dd0fac2eace..c1cd342ddee 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/User.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/pojos/User.java @@ -21,8 +21,8 @@ public class User implements IUser { private String email; private String password; private String googleId; - private UserRoleEnum role; private String googleAvatar; + private UserRoleEnum role; public User() {} @@ -32,8 +32,8 @@ public User(IUser value) { this.email = value.getEmail(); this.password = value.getPassword(); this.googleId = value.getGoogleId(); - this.role = value.getRole(); this.googleAvatar = value.getGoogleAvatar(); + this.role = value.getRole(); } public User( @@ -42,16 +42,16 @@ public User( String email, String password, String googleId, - UserRoleEnum role, - String googleAvatar + String googleAvatar, + UserRoleEnum role ) { this.uid = uid; this.name = name; this.email = email; this.password = password; this.googleId = googleId; - this.role = role; this.googleAvatar = googleAvatar; + this.role = role; } /** @@ -135,35 +135,35 @@ public void setGoogleId(String googleId) { } /** - * Getter for texera_db.user.role. + * Getter for texera_db.user.google_avatar. */ @Override - public UserRoleEnum getRole() { - return this.role; + public String getGoogleAvatar() { + return this.googleAvatar; } /** - * Setter for texera_db.user.role. + * Setter for texera_db.user.google_avatar. */ @Override - public void setRole(UserRoleEnum role) { - this.role = role; + public void setGoogleAvatar(String googleAvatar) { + this.googleAvatar = googleAvatar; } /** - * Getter for texera_db.user.google_avatar. + * Getter for texera_db.user.role. */ @Override - public String getGoogleAvatar() { - return this.googleAvatar; + public UserRoleEnum getRole() { + return this.role; } /** - * Setter for texera_db.user.google_avatar. + * Setter for texera_db.user.role. */ @Override - public void setGoogleAvatar(String googleAvatar) { - this.googleAvatar = googleAvatar; + public void setRole(UserRoleEnum role) { + this.role = role; } @Override @@ -175,8 +175,8 @@ public String toString() { sb.append(", ").append(email); sb.append(", ").append(password); sb.append(", ").append(googleId); - sb.append(", ").append(role); sb.append(", ").append(googleAvatar); + sb.append(", ").append(role); sb.append(")"); return sb.toString(); @@ -193,8 +193,8 @@ public void from(IUser from) { setEmail(from.getEmail()); setPassword(from.getPassword()); setGoogleId(from.getGoogleId()); - setRole(from.getRole()); setGoogleAvatar(from.getGoogleAvatar()); + setRole(from.getRole()); } @Override diff --git a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserRecord.java b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserRecord.java index 8131e8fc34e..e2b65d74289 100644 --- a/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserRecord.java +++ b/core/dao/src/main/scala/edu/uci/ics/texera/dao/jooq/generated/tables/records/UserRecord.java @@ -19,7 +19,7 @@ * This class is generated by jOOQ. */ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class UserRecord extends UpdatableRecordImpl implements Record7, IUser { +public class UserRecord extends UpdatableRecordImpl implements Record7, IUser { private static final long serialVersionUID = 1L; @@ -104,35 +104,35 @@ public String getGoogleId() { } /** - * Setter for texera_db.user.role. + * Setter for texera_db.user.google_avatar. */ @Override - public void setRole(UserRoleEnum value) { + public void setGoogleAvatar(String value) { set(5, value); } /** - * Getter for texera_db.user.role. + * Getter for texera_db.user.google_avatar. */ @Override - public UserRoleEnum getRole() { - return (UserRoleEnum) get(5); + public String getGoogleAvatar() { + return (String) get(5); } /** - * Setter for texera_db.user.google_avatar. + * Setter for texera_db.user.role. */ @Override - public void setGoogleAvatar(String value) { + public void setRole(UserRoleEnum value) { set(6, value); } /** - * Getter for texera_db.user.google_avatar. + * Getter for texera_db.user.role. */ @Override - public String getGoogleAvatar() { - return (String) get(6); + public UserRoleEnum getRole() { + return (UserRoleEnum) get(6); } // ------------------------------------------------------------------------- @@ -149,12 +149,12 @@ public Record1 key() { // ------------------------------------------------------------------------- @Override - public Row7 fieldsRow() { + public Row7 fieldsRow() { return (Row7) super.fieldsRow(); } @Override - public Row7 valuesRow() { + public Row7 valuesRow() { return (Row7) super.valuesRow(); } @@ -184,13 +184,13 @@ public Field field5() { } @Override - public Field field6() { - return User.USER.ROLE; + public Field field6() { + return User.USER.GOOGLE_AVATAR; } @Override - public Field field7() { - return User.USER.GOOGLE_AVATAR; + public Field field7() { + return User.USER.ROLE; } @Override @@ -219,13 +219,13 @@ public String component5() { } @Override - public UserRoleEnum component6() { - return getRole(); + public String component6() { + return getGoogleAvatar(); } @Override - public String component7() { - return getGoogleAvatar(); + public UserRoleEnum component7() { + return getRole(); } @Override @@ -254,13 +254,13 @@ public String value5() { } @Override - public UserRoleEnum value6() { - return getRole(); + public String value6() { + return getGoogleAvatar(); } @Override - public String value7() { - return getGoogleAvatar(); + public UserRoleEnum value7() { + return getRole(); } @Override @@ -294,19 +294,19 @@ public UserRecord value5(String value) { } @Override - public UserRecord value6(UserRoleEnum value) { - setRole(value); + public UserRecord value6(String value) { + setGoogleAvatar(value); return this; } @Override - public UserRecord value7(String value) { - setGoogleAvatar(value); + public UserRecord value7(UserRoleEnum value) { + setRole(value); return this; } @Override - public UserRecord values(Integer value1, String value2, String value3, String value4, String value5, UserRoleEnum value6, String value7) { + public UserRecord values(Integer value1, String value2, String value3, String value4, String value5, String value6, UserRoleEnum value7) { value1(value1); value2(value2); value3(value3); @@ -328,8 +328,8 @@ public void from(IUser from) { setEmail(from.getEmail()); setPassword(from.getPassword()); setGoogleId(from.getGoogleId()); - setRole(from.getRole()); setGoogleAvatar(from.getGoogleAvatar()); + setRole(from.getRole()); } @Override @@ -352,7 +352,7 @@ public UserRecord() { /** * Create a detached, initialised UserRecord */ - public UserRecord(Integer uid, String name, String email, String password, String googleId, UserRoleEnum role, String googleAvatar) { + public UserRecord(Integer uid, String name, String email, String password, String googleId, String googleAvatar, UserRoleEnum role) { super(User.USER); setUid(uid); @@ -360,8 +360,8 @@ public UserRecord(Integer uid, String name, String email, String password, Strin setEmail(email); setPassword(password); setGoogleId(googleId); - setRole(role); setGoogleAvatar(googleAvatar); + setRole(role); } /** @@ -376,8 +376,8 @@ public UserRecord(edu.uci.ics.texera.dao.jooq.generated.tables.pojos.User value) setEmail(value.getEmail()); setPassword(value.getPassword()); setGoogleId(value.getGoogleId()); - setRole(value.getRole()); setGoogleAvatar(value.getGoogleAvatar()); + setRole(value.getRole()); } } } diff --git a/core/scripts/sql/texera_ddl.sql b/core/scripts/sql/texera_ddl.sql index c41624b263e..bece5799334 100644 --- a/core/scripts/sql/texera_ddl.sql +++ b/core/scripts/sql/texera_ddl.sql @@ -64,8 +64,8 @@ CREATE TABLE IF NOT EXISTS "user" email VARCHAR(256) UNIQUE, password VARCHAR(256), google_id VARCHAR(256) UNIQUE, - role user_role_enum NOT NULL DEFAULT 'INACTIVE', google_avatar VARCHAR(100), + role user_role_enum NOT NULL DEFAULT 'INACTIVE', -- check that either password or google_id is not null CONSTRAINT ck_nulltest CHECK ((password IS NOT NULL) OR (google_id IS NOT NULL)) );