All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opencms.db.jpa.persistence.CmsDAOProjects Maven / Gradle / Ivy

Go to download

OpenCms is an enterprise-ready, easy to use website content management system based on Java and XML technology. Offering a complete set of features, OpenCms helps content managers worldwide to create and maintain beautiful websites fast and efficiently.

There is a newer version: 18.0
Show newest version
/*
 * This library is part of OpenCms -
 * the Open Source Content Management System
 *
 * Copyright (c) Alkacon Software GmbH & Co. KG (http://www.alkacon.com)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * For further information about Alkacon Software, please see the
 * company website: http://www.alkacon.com
 *
 * For further information about OpenCms, please see the
 * project website: http://www.opencms.org
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

package org.opencms.db.jpa.persistence;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * This data access object represents a project entry inside the table "cms_projects".

* * @since 8.0.0 */ @Entity @Table(name = "CMS_PROJECTS", uniqueConstraints = @UniqueConstraint(columnNames = { "PROJECT_OU", "PROJECT_NAME", "DATE_CREATED"}) ) public class CmsDAOProjects { /** The date created. */ @Basic @Column(name = "DATE_CREATED") private long m_dateCreated; /** The group id. */ @Basic @Column(name = "GROUP_ID", nullable = false, length = 36) private String m_groupId; /** The manager group id. */ @Basic @Column(name = "MANAGERGROUP_ID", nullable = false, length = 36) private String m_managerGroupId; /** the description. */ @Basic @Column(name = "PROJECT_DESCRIPTION", nullable = false) private String m_projectDescription; /** The flags. */ @Basic @Column(name = "PROJECT_FLAGS") private int m_projectFlags; /** The id. */ @Id @Column(name = "PROJECT_ID", length = 36) private String m_projectId; /** The name. */ @Basic @Column(name = "PROJECT_NAME", nullable = false, length = 200) private String m_projectName; /** The ou. */ @Basic @Column(name = "PROJECT_OU", nullable = false, length = 128) private String m_projectOu; /** The type. */ @Basic @Column(name = "PROJECT_TYPE") private int m_projectType; /** The user id. */ @Basic @Column(name = "USER_ID", nullable = false, length = 36) private String m_userId; /** * The default constructor.

*/ public CmsDAOProjects() { // noop } /** * A public constructor for generating a new project object with an unique id.

* * @param projectId the id */ public CmsDAOProjects(String projectId) { m_projectId = projectId; } /** * Returns the dateCreated.

* * @return the dateCreated */ public long getDateCreated() { return m_dateCreated; } /** * Returns the groupId.

* * @return the groupId */ public String getGroupId() { return m_groupId; } /** * Returns the managerGroupId.

* * @return the managerGroupId */ public String getManagerGroupId() { return m_managerGroupId; } /** * Returns the projectDescription.

* * @return the projectDescription */ public String getProjectDescription() { return m_projectDescription; } /** * Returns the projectFlags.

* * @return the projectFlags */ public int getProjectFlags() { return m_projectFlags; } /** * Returns the projectId.

* * @return the projectId */ public String getProjectId() { return m_projectId; } /** * Returns the projectName.

* * @return the projectName */ public String getProjectName() { return m_projectName; } /** * Returns the projectOu.

* * @return the projectOu */ public String getProjectOu() { return m_projectOu; } /** * Returns the projectType.

* * @return the projectType */ public int getProjectType() { return m_projectType; } /** * Returns the userId.

* * @return the userId */ public String getUserId() { return m_userId; } /** * Sets the dateCreated.

* * @param dateCreated the dateCreated to set */ public void setDateCreated(long dateCreated) { m_dateCreated = dateCreated; } /** * Sets the groupId.

* * @param groupId the groupId to set */ public void setGroupId(String groupId) { m_groupId = groupId; } /** * Sets the managerGroupId.

* * @param managerGroupId the managerGroupId to set */ public void setManagerGroupId(String managerGroupId) { m_managerGroupId = managerGroupId; } /** * Sets the projectDescription.

* * @param projectDescription the projectDescription to set */ public void setProjectDescription(String projectDescription) { m_projectDescription = projectDescription; } /** * Sets the projectFlags.

* * @param projectFlags the projectFlags to set */ public void setProjectFlags(int projectFlags) { m_projectFlags = projectFlags; } /** * Sets the projectId.

* * @param projectId the projectId to set */ public void setProjectId(String projectId) { m_projectId = projectId; } /** * Sets the projectName.

* * @param projectName the projectName to set */ public void setProjectName(String projectName) { m_projectName = projectName; } /** * Sets the projectOu.

* * @param projectOu the projectOu to set */ public void setProjectOu(String projectOu) { m_projectOu = projectOu; } /** * Sets the projectType.

* * @param projectType the projectType to set */ public void setProjectType(int projectType) { m_projectType = projectType; } /** * Sets the userId.

* * @param userId the userId to set */ public void setUserId(String userId) { m_userId = userId; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy