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

org.schoellerfamily.gedbrowser.persistence.mongo.domain.GedDocumentMongo Maven / Gradle / Ivy

There is a newer version: 1.3.0-RC2
Show newest version
package org.schoellerfamily.gedbrowser.persistence.mongo.domain;

import org.schoellerfamily.gedbrowser.datamodel.GedObject;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.index.Indexed;

/**
 * @author Dick Schoeller
 *
 * @param  the associated GedObject subclass
 */
public abstract class GedDocumentMongo
        extends HasAttributes implements Accepts {
    /** */
    @Id
    private String idString;

    /** */
    @Indexed
    private String string;

    /** */
    @Indexed
    private String filename;

    /** */
    @Indexed
    private String dbName;

    /** */
    @Transient
    private G gedObject;

    /**
     * {@inheritDoc}
     */
    @Override
    public final String getIdString() {
        return idString;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public final void setIdString(final String idString) {
        this.idString = idString;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public final String getString() {
        return string;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public final void setString(final String string) {
        this.string = string;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public final String getFilename() {
        return filename;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public final void setFilename(final String filename) {
        this.filename = filename;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public final String getDbName() {
        return dbName;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public final void setDbName(final String dbName) {
        this.dbName = dbName;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public final G getGedObject() {
        return gedObject;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public final void setGedObject(final G gedObject) {
        this.gedObject = gedObject;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy