tupleinputbinding.java
来自「berkeleyDB,强大的嵌入式数据,多个数据库的内核」· Java 代码 · 共 47 行
JAVA
47 行
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 2000-2004 * Sleepycat Software. All rights reserved. * * $Id: TupleInputBinding.java,v 1.2 2004/06/04 18:24:50 mark Exp $ */package com.sleepycat.bind.tuple;import com.sleepycat.bind.EntryBinding;import com.sleepycat.db.DatabaseEntry;/** * A concrete <code>EntryBinding</code> that uses the <code>TupleInput</code> * object as the key or data object. * * A concrete tuple binding for key or data entries which are {@link * TupleInput} objects. This binding is used when tuples themselves are the * objects, rather than using application defined objects. A {@link TupleInput} * must always be used. To convert a {@link TupleOutput} to a {@link * TupleInput}, use the {@link TupleInput#TupleInput(TupleOutput)} constructor. * * @author Mark Hayes */public class TupleInputBinding implements EntryBinding { /** * Creates a tuple input binding. */ public TupleInputBinding() { } // javadoc is inherited public Object entryToObject(DatabaseEntry entry) { return TupleBinding.entryToInput(entry); } // javadoc is inherited public void objectToEntry(Object object, DatabaseEntry entry) { TupleBinding.inputToEntry((TupleInput) object, entry); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?