• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/db-4.8.30/examples_java/src/persist/txn/
1/*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 2008-2009 Oracle.  All rights reserved.
5 *
6 * $Id$
7 */
8
9package persist.txn;
10
11import com.sleepycat.persist.model.Entity;
12import com.sleepycat.persist.model.PrimaryKey;
13import static com.sleepycat.persist.model.Relationship.*;
14
15@Entity
16public class PayloadDataEntity {
17    @PrimaryKey
18    private int oID;
19
20    private String threadName;
21
22    private double doubleData;
23
24    PayloadDataEntity() {}
25
26    public double getDoubleData() { return doubleData; }
27    public int getID() { return oID; }
28    public String getThreadName() { return threadName; }
29
30    public void setDoubleData(double dd) { doubleData = dd; }
31    public void setID(int id) { oID = id; }
32    public void setThreadName(String tn) { threadName = tn; }
33}
34