Back to project page SenqmAndroid.
The source code is released under:
GNU General Public License
If you think the Android project SenqmAndroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * Copyright 2014 Alban GRUIN//from w w w . j a va2s. c om * * This file is part of SenqmAndroid. * * SenqmAndroid is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * SenqmAndroid is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with SenqmAndroid. If not, see <http://www.gnu.org/licenses/>. */ package com.agrn.senqm.database.entities; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.table.DatabaseTable; import java.util.Date; @DatabaseTable(tableName = "computer") public class Computer { @DatabaseField(generatedId = true) private int id; @DatabaseField private int deviceId; @DatabaseField(canBeNull = false, uniqueCombo = true) private String computerName; @DatabaseField(canBeNull = false, uniqueCombo = true) private String address; @DatabaseField private Date lastConnection; public Computer() { } public String getAddress() { return address; } public String getComputerName() { return computerName; } public int getDeviceId() { return deviceId; } public int getId() { return id; } public Date getLastConnection() { return lastConnection; } public void setAddress(String address) { this.address = address; } public void setComputerName(String computerName) { this.computerName = computerName; } public void setDeviceId(int deviceId) { this.deviceId = deviceId; } public void setLastConnection(Date lastConnection) { this.lastConnection = lastConnection; } }