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

com.v5analytics.simpleorm.model.JettySession Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
package com.v5analytics.simpleorm.model;

import com.v5analytics.simpleorm.Entity;
import com.v5analytics.simpleorm.Field;
import com.v5analytics.simpleorm.Id;

import java.util.HashMap;
import java.util.Map;

@Entity(tableName = "jettySession")
public class JettySession {
    @Id
    private String id;

    @Field
    private long created;

    @Field
    private long accessed;

    @Field
    private String clusterId;

    @Field
    private Long version;

    @Field
    private Map data = new HashMap<>();

    // Used by SimpleOrm to create instance
    @SuppressWarnings("UnusedDeclaration")
    protected JettySession() {

    }

    public JettySession(String clusterId, long created) {
        this.clusterId = this.id = clusterId;
        this.created = created;
    }

    public String getId() {
        return id;
    }

    public Map getData() {
        return data;
    }

    public long getCreated() {
        return created;
    }

    public long getAccessed() {
        return accessed;
    }

    public String getClusterId() {
        return clusterId;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    public void setAccessed(long accessed) {
        this.accessed = accessed;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy