1 /*******************************************************************************
2 * Copyright (c) 2007, 2010 Association for Decentralized Information Management
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package fi.vtt.simantics.procore.internal;
14 import org.simantics.db.service.ServerInformation;
16 public class ServerInformationImpl implements ServerInformation {
17 final String serverId;
18 final String protocolId;
19 final String databaseId;
20 final long firstChangeSetId;
22 // TODO: get this from the server
24 String characterSet = "UTF-8";
26 public ServerInformationImpl(String serverId, String protocolId, String databaseId, long firstChangeSetId) {
27 this.serverId = serverId;
28 this.protocolId = protocolId;
29 this.databaseId = databaseId;
30 this.firstChangeSetId = firstChangeSetId;
34 public String getServerId() {
39 public String getProtocolId() {
44 public String getDatabaseId() {
49 public long getFirstChangeSetId() {
50 return firstChangeSetId;
54 public String getCharacterSet() {
59 public String toString() {
60 return "ServerInformation [server id=" + serverId + ", protocol id=" + protocolId + ", database id=" + databaseId + ", charset=" + characterSet + "]";