KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sleepycat > je > dbi > TruncateResult


1 /*-
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 2002,2006 Oracle. All rights reserved.
5  *
6  * $Id: TruncateResult.java,v 1.5 2006/10/30 21:14:15 bostic Exp $
7  */

8
9 package com.sleepycat.je.dbi;
10
11 /**
12  * Holds the result of a database truncate operation.
13  */

14 public class TruncateResult {
15
16     private DatabaseImpl db;
17     private int count;
18
19     TruncateResult(DatabaseImpl db, int count) {
20         this.db = db;
21         this.count = count;
22     }
23
24     public DatabaseImpl getDatabase() {
25         return db;
26     }
27
28     public int getRecordCount() {
29         return count;
30     }
31 }
32
Popular Tags