Skip to main content
summaryrefslogtreecommitdiffstats
blob: ae7e543b925029dd01b58d3d27b6985c2cea422c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
 * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    Martin Taal - initial API and implementation
 *    Eike Stepper - maintenance
 */
package org.eclipse.emf.cdo.server.internal.hibernate;

/**
 * Stores system related information, is used to keep track that CDO is started for the first time. There should only be
 * one SystemInformation object in the database.
 * 
 * @author Martin Taal
 */
public class SystemInformation
{
  private long id = 1;

  private long creationTime;

  private boolean firstTime;

  public boolean isFirstTime()
  {
    return firstTime;
  }

  public void setFirstTime(boolean firstTime)
  {
    this.firstTime = firstTime;
  }

  public long getId()
  {
    return id;
  }

  public void setId(long id)
  {
    // on purposely not changing the id
    // this.id = id;
  }

  public long getCreationTime()
  {
    return creationTime;
  }

  public void setCreationTime(long creationTime)
  {
    this.creationTime = creationTime;
  }
}

Back to the top