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

com.formkiq.server.domain.FolderLog Maven / Gradle / Ivy

/*
 * Copyright (C) 2016 FormKiQ Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.formkiq.server.domain;

import java.util.Date;
import java.util.UUID;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import org.hibernate.annotations.Type;

import com.formkiq.server.domain.type.ClientFormType;
import com.formkiq.server.domain.type.SyncType;

/**
 * Folder Log domain.
 *
 */
@Entity
@Table(name = "folder_logs")
public class FolderLog {

    /** identifier column. */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "folder_log_id", unique = true)
    private Integer folderlogid;

    /** Client ID column. */
    @NotNull
    @Column(name = "folder_id", nullable = false, columnDefinition = "uuid")
    @Type(type = "pg-uuid")
    private UUID folderid;

	/** UUID column. */
    @NotNull
    @Column(name = "uuid", nullable = false)
    @Type(type = "pg-uuid")
    private UUID uuid;

    /** type column. */
    @NotNull
    @Enumerated(EnumType.STRING)
    @Column(name = "type", nullable = false)
    private ClientFormType type;

    /** sync type column. */
    @NotNull
    @Enumerated(EnumType.STRING)
    @Column(name = "synctype", nullable = false)
    private SyncType synctype;

    /** inserted column. */
    @NotNull
    @Column(name = "inserted_date", nullable = false)
    private Date insertedDate;

	/**
	 * default constructor.
	 */
	public FolderLog() {
	}

    /**
     * @return Date
     */
    public Date getInsertedDate() {
        return this.insertedDate != null ? (Date) this.insertedDate.clone()
                : null;
    }

    /**
     * @param date Date
     */
    public void setInsertedDate(final Date date) {
        this.insertedDate = date != null ? (Date) date.clone() : null;
    }

    /**
     * @return {@link UUID}
     */
    public UUID getUUID() {
        return this.uuid;
    }

    /**
     * @param id {@link UUID}
     */
    public void setUUID(final UUID id) {
        this.uuid = id;
    }

    /**
     * @return {@link SyncType}
     */
    public SyncType getSynctype() {
        return this.synctype;
    }

    /**
     * @param sync {@link SyncType}
     */
    public void setSynctype(final SyncType sync) {
        this.synctype = sync;
    }

    /**
     * @return {@link ClientFormType}
     */
    public ClientFormType getType() {
        return this.type;
    }

    /**
     * @param formtype {@link ClientFormType}
     */
    public void setType(final ClientFormType formtype) {
        this.type = formtype;
    }

    /**
     * @return {@link Integer}
     */
    public Integer getFolderlogid() {
        return this.folderlogid;
    }

    /**
     * @param folderlog {@link Integer}
     */
    public void setFolderlogid(final Integer folderlog) {
        this.folderlogid = folderlog;
    }

    /**
     * @return {@link UUID}
     */
    public UUID getFolderid() {
        return this.folderid;
    }

    /**
     * @param folder {@link UUID}
     */
    public void setFolderid(final UUID folder) {
        this.folderid = folder;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy