Debian Codegraph @

docs/java/com/sleepycat/bind/tuple/TupleBinding.html

raw symbols SCIP
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--NewPage-->
3 <HTML>
4 <HEAD>
5 <!-- Generated by javadoc (build 1.6.0_51) on Mon Sep 09 11:47:05 EDT 2013 -->
6 <TITLE>
7 TupleBinding (Oracle - Berkeley DB Java API)
8 </TITLE>
9
10 <META NAME="date" CONTENT="2013-09-09">
11
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../style.css" TITLE="Style">
13
14 <SCRIPT type="text/javascript">
15 function windowTitle()
16 {
17 if (location.href.indexOf('is-external=true') == -1) {
18 parent.document.title="TupleBinding (Oracle - Berkeley DB Java API)";
19 }
20 }
21 </SCRIPT>
22 <NOSCRIPT>
23 </NOSCRIPT>
24
25 </HEAD>
26
27 <BODY BGCOLOR="white" onload="windowTitle();">
28 <HR>
29
30
31 <!-- ========= START OF TOP NAVBAR ======= -->
32 <A NAME="navbar_top"><!-- --></A>
33 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35 <TR>
36 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37 <A NAME="navbar_top_firstrow"><!-- --></A>
38 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39 <TR ALIGN="center" VALIGN="top">
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TupleBinding.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48 </TR>
49 </TABLE>
50 </TD>
51 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52 <b>Berkeley DB</b><br><font size="-1"> version 5.3.28</font></EM>
53 </TD>
54 </TR>
55
56 <TR>
57 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
58 &nbsp;<A HREF="../../../../com/sleepycat/bind/tuple/TupleBase.html" title="class in com.sleepycat.bind.tuple"><B>PREV CLASS</B></A>&nbsp;
59 &nbsp;<A HREF="../../../../com/sleepycat/bind/tuple/TupleInput.html" title="class in com.sleepycat.bind.tuple"><B>NEXT CLASS</B></A></FONT></TD>
60 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61 <A HREF="../../../../index.html?com/sleepycat/bind/tuple/TupleBinding.html" target="_top"><B>FRAMES</B></A> &nbsp;
62 &nbsp;<A HREF="TupleBinding.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
63 &nbsp;<SCRIPT type="text/javascript">
64 <!--
65 if(window==top) {
66 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
67 }
68 //-->
69 </SCRIPT>
70 <NOSCRIPT>
71 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
72 </NOSCRIPT>
73
74
75 </FONT></TD>
76 </TR>
77 <TR>
78 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
80 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
81 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
82 </TR>
83 </TABLE>
84 <A NAME="skip-navbar_top"></A>
85 <!-- ========= END OF TOP NAVBAR ========= -->
86
87 <HR>
88 <!-- ======== START OF CLASS DATA ======== -->
89 <H2>
90 <FONT SIZE="-1">
91 com.sleepycat.bind.tuple</FONT>
92 <BR>
93 Class TupleBinding&lt;E&gt;</H2>
94 <PRE>
95 <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
96 <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/sleepycat/bind/tuple/TupleBase.html" title="class in com.sleepycat.bind.tuple">com.sleepycat.bind.tuple.TupleBase</A>&lt;E&gt;
97 <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.sleepycat.bind.tuple.TupleBinding&lt;E&gt;</B>
98 </PRE>
99 <DL>
100 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/sleepycat/bind/EntryBinding.html" title="interface in com.sleepycat.bind">EntryBinding</A>&lt;E&gt;</DD>
101 </DL>
102 <DL>
103 <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../com/sleepycat/bind/tuple/BigDecimalBinding.html" title="class in com.sleepycat.bind.tuple">BigDecimalBinding</A>, <A HREF="../../../../com/sleepycat/bind/tuple/BigIntegerBinding.html" title="class in com.sleepycat.bind.tuple">BigIntegerBinding</A>, <A HREF="../../../../com/sleepycat/bind/tuple/BooleanBinding.html" title="class in com.sleepycat.bind.tuple">BooleanBinding</A>, <A HREF="../../../../com/sleepycat/bind/tuple/ByteBinding.html" title="class in com.sleepycat.bind.tuple">ByteBinding</A>, <A HREF="../../../../com/sleepycat/bind/tuple/CharacterBinding.html" title="class in com.sleepycat.bind.tuple">CharacterBinding</A>, <A HREF="../../../../com/sleepycat/bind/tuple/DoubleBinding.html" title="class in com.sleepycat.bind.tuple">DoubleBinding</A>, <A HREF="../../../../com/sleepycat/bind/tuple/FloatBinding.html" title="class in com.sleepycat.bind.tuple">FloatBinding</A>, <A HREF="../../../../com/sleepycat/bind/tuple/IntegerBinding.html" title="class in com.sleepycat.bind.tuple">IntegerBinding</A>, <A HREF="../../../../com/sleepycat/bind/tuple/LongBinding.html" title="class in com.sleepycat.bind.tuple">LongBinding</A>, <A HREF="../../../../com/sleepycat/bind/tuple/PackedIntegerBinding.html" title="class in com.sleepycat.bind.tuple">PackedIntegerBinding</A>, <A HREF="../../../../com/sleepycat/bind/tuple/PackedLongBinding.html" title="class in com.sleepycat.bind.tuple">PackedLongBinding</A>, <A HREF="../../../../com/sleepycat/bind/tuple/ShortBinding.html" title="class in com.sleepycat.bind.tuple">ShortBinding</A>, <A HREF="../../../../com/sleepycat/bind/tuple/SortedBigDecimalBinding.html" title="class in com.sleepycat.bind.tuple">SortedBigDecimalBinding</A>, <A HREF="../../../../com/sleepycat/bind/tuple/SortedDoubleBinding.html" title="class in com.sleepycat.bind.tuple">SortedDoubleBinding</A>, <A HREF="../../../../com/sleepycat/bind/tuple/SortedFloatBinding.html" title="class in com.sleepycat.bind.tuple">SortedFloatBinding</A>, <A HREF="../../../../com/sleepycat/bind/tuple/SortedPackedIntegerBinding.html" title="class in com.sleepycat.bind.tuple">SortedPackedIntegerBinding</A>, <A HREF="../../../../com/sleepycat/bind/tuple/SortedPackedLongBinding.html" title="class in com.sleepycat.bind.tuple">SortedPackedLongBinding</A>, <A HREF="../../../../com/sleepycat/bind/tuple/StringBinding.html" title="class in com.sleepycat.bind.tuple">StringBinding</A>, <A HREF="../../../../com/sleepycat/bind/tuple/TupleMarshalledBinding.html" title="class in com.sleepycat.bind.tuple">TupleMarshalledBinding</A></DD>
104 </DL>
105 <HR>
106 <DL>
107 <DT><PRE>public abstract class <B>TupleBinding&lt;E&gt;</B><DT>extends <A HREF="../../../../com/sleepycat/bind/tuple/TupleBase.html" title="class in com.sleepycat.bind.tuple">TupleBase</A>&lt;E&gt;<DT>implements <A HREF="../../../../com/sleepycat/bind/EntryBinding.html" title="interface in com.sleepycat.bind">EntryBinding</A>&lt;E&gt;</DL>
108 </PRE>
109
110 <P>
111 An abstract <code>EntryBinding</code> that treats a key or data entry as a
112 tuple; it includes predefined bindings for Java primitive types.
113
114 <p>This class takes care of converting the entries to/from <A HREF="../../../../com/sleepycat/bind/tuple/TupleInput.html" title="class in com.sleepycat.bind.tuple"><CODE>TupleInput</CODE></A> and <A HREF="../../../../com/sleepycat/bind/tuple/TupleOutput.html" title="class in com.sleepycat.bind.tuple"><CODE>TupleOutput</CODE></A> objects. Its two abstract methods must
115 be implemented by a concrete subclass to convert between tuples and key or
116 data objects.</p>
117 <ul>
118 <li> <A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html#entryToObject(com.sleepycat.bind.tuple.TupleInput)"><CODE>entryToObject(TupleInput)</CODE></A> </li>
119 <li> <A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html#objectToEntry(E, com.sleepycat.bind.tuple.TupleOutput)"><CODE>objectToEntry(Object,TupleOutput)</CODE></A> </li>
120 </ul>
121 <P>
122
123 <P>
124 <DL>
125 <DT><B>See Also:</B><DD><a href="package-summary.html#formats">Tuple Formats</a></DL>
126 <HR>
127
128 <P>
129
130 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
131
132 <A NAME="constructor_summary"><!-- --></A>
133 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
134 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
135 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
136 <B>Constructor Summary</B></FONT></TH>
137 </TR>
138 <TR BGCOLOR="white" CLASS="TableRowColor">
139 <TD><CODE><B><A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html#TupleBinding()">TupleBinding</A></B>()</CODE>
140
141 <BR>
142 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a tuple binding.</TD>
143 </TR>
144 </TABLE>
145 &nbsp;
146 <!-- ========== METHOD SUMMARY =========== -->
147
148 <A NAME="method_summary"><!-- --></A>
149 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
150 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
151 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
152 <B>Method Summary</B></FONT></TH>
153 </TR>
154 <TR BGCOLOR="white" CLASS="TableRowColor">
155 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
156 <CODE>&nbsp;<A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html" title="type parameter in TupleBinding">E</A></CODE></FONT></TD>
157 <TD><CODE><B><A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html#entryToObject(com.sleepycat.db.DatabaseEntry)">entryToObject</A></B>(<A HREF="../../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;entry)</CODE>
158
159 <BR>
160 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts a entry buffer into an Object.</TD>
161 </TR>
162 <TR BGCOLOR="white" CLASS="TableRowColor">
163 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
164 <CODE>abstract &nbsp;<A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html" title="type parameter in TupleBinding">E</A></CODE></FONT></TD>
165 <TD><CODE><B><A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html#entryToObject(com.sleepycat.bind.tuple.TupleInput)">entryToObject</A></B>(<A HREF="../../../../com/sleepycat/bind/tuple/TupleInput.html" title="class in com.sleepycat.bind.tuple">TupleInput</A>&nbsp;input)</CODE>
166
167 <BR>
168 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a key or data object from a <A HREF="../../../../com/sleepycat/bind/tuple/TupleInput.html" title="class in com.sleepycat.bind.tuple"><CODE>TupleInput</CODE></A> entry.</TD>
169 </TR>
170 <TR BGCOLOR="white" CLASS="TableRowColor">
171 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
172 <CODE>static
173 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
174 <TR ALIGN="right" VALIGN="">
175 <TD NOWRAP><FONT SIZE="-1">
176 <CODE>&lt;T&gt; <A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html" title="class in com.sleepycat.bind.tuple">TupleBinding</A>&lt;T&gt;</CODE></FONT></TD>
177 </TR>
178 </TABLE>
179 </CODE></FONT></TD>
180 <TD><CODE><B><A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html#getPrimitiveBinding(java.lang.Class)">getPrimitiveBinding</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;T&gt;&nbsp;cls)</CODE>
181
182 <BR>
183 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a tuple binding for a primitive Java class.</TD>
184 </TR>
185 <TR BGCOLOR="white" CLASS="TableRowColor">
186 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
187 <CODE>&nbsp;void</CODE></FONT></TD>
188 <TD><CODE><B><A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html#objectToEntry(E, com.sleepycat.db.DatabaseEntry)">objectToEntry</A></B>(<A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html" title="type parameter in TupleBinding">E</A>&nbsp;object,
189 <A HREF="../../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;entry)</CODE>
190
191 <BR>
192 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts an Object into a entry buffer.</TD>
193 </TR>
194 <TR BGCOLOR="white" CLASS="TableRowColor">
195 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
196 <CODE>abstract &nbsp;void</CODE></FONT></TD>
197 <TD><CODE><B><A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html#objectToEntry(E, com.sleepycat.bind.tuple.TupleOutput)">objectToEntry</A></B>(<A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html" title="type parameter in TupleBinding">E</A>&nbsp;object,
198 <A HREF="../../../../com/sleepycat/bind/tuple/TupleOutput.html" title="class in com.sleepycat.bind.tuple">TupleOutput</A>&nbsp;output)</CODE>
199
200 <BR>
201 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts a key or data object to a tuple entry.</TD>
202 </TR>
203 </TABLE>
204 &nbsp;<A NAME="methods_inherited_from_class_com.sleepycat.bind.tuple.TupleBase"><!-- --></A>
205 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
206 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
207 <TH ALIGN="left"><B>Methods inherited from class com.sleepycat.bind.tuple.<A HREF="../../../../com/sleepycat/bind/tuple/TupleBase.html" title="class in com.sleepycat.bind.tuple">TupleBase</A></B></TH>
208 </TR>
209 <TR BGCOLOR="white" CLASS="TableRowColor">
210 <TD><CODE><A HREF="../../../../com/sleepycat/bind/tuple/TupleBase.html#entryToInput(com.sleepycat.db.DatabaseEntry)">entryToInput</A>, <A HREF="../../../../com/sleepycat/bind/tuple/TupleBase.html#getTupleBufferSize()">getTupleBufferSize</A>, <A HREF="../../../../com/sleepycat/bind/tuple/TupleBase.html#getTupleOutput(E)">getTupleOutput</A>, <A HREF="../../../../com/sleepycat/bind/tuple/TupleBase.html#inputToEntry(com.sleepycat.bind.tuple.TupleInput, com.sleepycat.db.DatabaseEntry)">inputToEntry</A>, <A HREF="../../../../com/sleepycat/bind/tuple/TupleBase.html#newOutput()">newOutput</A>, <A HREF="../../../../com/sleepycat/bind/tuple/TupleBase.html#newOutput(byte[])">newOutput</A>, <A HREF="../../../../com/sleepycat/bind/tuple/TupleBase.html#outputToEntry(com.sleepycat.bind.tuple.TupleOutput, com.sleepycat.db.DatabaseEntry)">outputToEntry</A>, <A HREF="../../../../com/sleepycat/bind/tuple/TupleBase.html#setTupleBufferSize(int)">setTupleBufferSize</A></CODE></TD>
211 </TR>
212 </TABLE>
213 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
214 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
215 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
216 <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
217 </TR>
218 <TR BGCOLOR="white" CLASS="TableRowColor">
219 <TD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
220 </TR>
221 </TABLE>
222 &nbsp;
223 <P>
224
225 <!-- ========= CONSTRUCTOR DETAIL ======== -->
226
227 <A NAME="constructor_detail"><!-- --></A>
228 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
229 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
230 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
231 <B>Constructor Detail</B></FONT></TH>
232 </TR>
233 </TABLE>
234
235 <A NAME="TupleBinding()"><!-- --></A><H3>
236 TupleBinding</H3>
237 <PRE>
238 public <B>TupleBinding</B>()</PRE>
239 <DL>
240 <DD>Creates a tuple binding.
241 <P>
242 </DL>
243
244 <!-- ============ METHOD DETAIL ========== -->
245
246 <A NAME="method_detail"><!-- --></A>
247 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
248 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
249 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
250 <B>Method Detail</B></FONT></TH>
251 </TR>
252 </TABLE>
253
254 <A NAME="entryToObject(com.sleepycat.db.DatabaseEntry)"><!-- --></A><H3>
255 entryToObject</H3>
256 <PRE>
257 public <A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html" title="type parameter in TupleBinding">E</A> <B>entryToObject</B>(<A HREF="../../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;entry)</PRE>
258 <DL>
259 <DD><B>Description copied from interface: <CODE><A HREF="../../../../com/sleepycat/bind/EntryBinding.html#entryToObject(com.sleepycat.db.DatabaseEntry)">EntryBinding</A></CODE></B></DD>
260 <DD>Converts a entry buffer into an Object.
261 <P>
262 <DD><DL>
263 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/sleepycat/bind/EntryBinding.html#entryToObject(com.sleepycat.db.DatabaseEntry)">entryToObject</A></CODE> in interface <CODE><A HREF="../../../../com/sleepycat/bind/EntryBinding.html" title="interface in com.sleepycat.bind">EntryBinding</A>&lt;<A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html" title="type parameter in TupleBinding">E</A>&gt;</CODE></DL>
264 </DD>
265 <DD><DL>
266 <DT><B>Parameters:</B><DD><CODE>entry</CODE> - is the source entry buffer.
267 <DT><B>Returns:</B><DD>the resulting Object.</DL>
268 </DD>
269 </DL>
270 <HR>
271
272 <A NAME="objectToEntry(java.lang.Object,com.sleepycat.db.DatabaseEntry)"><!-- --></A><A NAME="objectToEntry(E, com.sleepycat.db.DatabaseEntry)"><!-- --></A><H3>
273 objectToEntry</H3>
274 <PRE>
275 public void <B>objectToEntry</B>(<A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html" title="type parameter in TupleBinding">E</A>&nbsp;object,
276 <A HREF="../../../../com/sleepycat/db/DatabaseEntry.html" title="class in com.sleepycat.db">DatabaseEntry</A>&nbsp;entry)</PRE>
277 <DL>
278 <DD><B>Description copied from interface: <CODE><A HREF="../../../../com/sleepycat/bind/EntryBinding.html#objectToEntry(E, com.sleepycat.db.DatabaseEntry)">EntryBinding</A></CODE></B></DD>
279 <DD>Converts an Object into a entry buffer.
280 <P>
281 <DD><DL>
282 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/sleepycat/bind/EntryBinding.html#objectToEntry(E, com.sleepycat.db.DatabaseEntry)">objectToEntry</A></CODE> in interface <CODE><A HREF="../../../../com/sleepycat/bind/EntryBinding.html" title="interface in com.sleepycat.bind">EntryBinding</A>&lt;<A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html" title="type parameter in TupleBinding">E</A>&gt;</CODE></DL>
283 </DD>
284 <DD><DL>
285 <DT><B>Parameters:</B><DD><CODE>object</CODE> - is the source Object.<DD><CODE>entry</CODE> - is the destination entry buffer.</DL>
286 </DD>
287 </DL>
288 <HR>
289
290 <A NAME="entryToObject(com.sleepycat.bind.tuple.TupleInput)"><!-- --></A><H3>
291 entryToObject</H3>
292 <PRE>
293 public abstract <A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html" title="type parameter in TupleBinding">E</A> <B>entryToObject</B>(<A HREF="../../../../com/sleepycat/bind/tuple/TupleInput.html" title="class in com.sleepycat.bind.tuple">TupleInput</A>&nbsp;input)</PRE>
294 <DL>
295 <DD>Constructs a key or data object from a <A HREF="../../../../com/sleepycat/bind/tuple/TupleInput.html" title="class in com.sleepycat.bind.tuple"><CODE>TupleInput</CODE></A> entry.
296 <P>
297 <DD><DL>
298 </DL>
299 </DD>
300 <DD><DL>
301 <DT><B>Parameters:</B><DD><CODE>input</CODE> - is the tuple key or data entry.
302 <DT><B>Returns:</B><DD>the key or data object constructed from the entry.</DL>
303 </DD>
304 </DL>
305 <HR>
306
307 <A NAME="objectToEntry(java.lang.Object,com.sleepycat.bind.tuple.TupleOutput)"><!-- --></A><A NAME="objectToEntry(E, com.sleepycat.bind.tuple.TupleOutput)"><!-- --></A><H3>
308 objectToEntry</H3>
309 <PRE>
310 public abstract void <B>objectToEntry</B>(<A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html" title="type parameter in TupleBinding">E</A>&nbsp;object,
311 <A HREF="../../../../com/sleepycat/bind/tuple/TupleOutput.html" title="class in com.sleepycat.bind.tuple">TupleOutput</A>&nbsp;output)</PRE>
312 <DL>
313 <DD>Converts a key or data object to a tuple entry.
314 <P>
315 <DD><DL>
316 </DL>
317 </DD>
318 <DD><DL>
319 <DT><B>Parameters:</B><DD><CODE>object</CODE> - is the key or data object.<DD><CODE>output</CODE> - is the tuple entry to which the key or data should be
320 written.</DL>
321 </DD>
322 </DL>
323 <HR>
324
325 <A NAME="getPrimitiveBinding(java.lang.Class)"><!-- --></A><H3>
326 getPrimitiveBinding</H3>
327 <PRE>
328 public static &lt;T&gt; <A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html" title="class in com.sleepycat.bind.tuple">TupleBinding</A>&lt;T&gt; <B>getPrimitiveBinding</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;T&gt;&nbsp;cls)</PRE>
329 <DL>
330 <DD>Creates a tuple binding for a primitive Java class. The following
331 Java classes are supported.
332 <ul>
333 <li><code>String</code></li>
334 <li><code>Character</code></li>
335 <li><code>Boolean</code></li>
336 <li><code>Byte</code></li>
337 <li><code>Short</code></li>
338 <li><code>Integer</code></li>
339 <li><code>Long</code></li>
340 <li><code>Float</code></li>
341 <li><code>Double</code></li>
342 </ul>
343
344 <p><em>Note:</em> <A HREF="../../../../com/sleepycat/bind/tuple/TupleBinding.html#getPrimitiveBinding(java.lang.Class)"><CODE>getPrimitiveBinding(java.lang.Class<T>)</CODE></A> returns bindings that do
345 not sort negative floating point numbers correctly by default. See
346 <A HREF="../../../../com/sleepycat/bind/tuple/SortedFloatBinding.html" title="class in com.sleepycat.bind.tuple"><CODE>SortedFloatBinding</CODE></A> and <A HREF="../../../../com/sleepycat/bind/tuple/SortedDoubleBinding.html" title="class in com.sleepycat.bind.tuple"><CODE>SortedDoubleBinding</CODE></A> for
347 details.</p>
348 <P>
349 <DD><DL>
350 </DL>
351 </DD>
352 <DD><DL>
353 <DT><B>Parameters:</B><DD><CODE>cls</CODE> - is the primitive Java class.
354 <DT><B>Returns:</B><DD>a new binding for the primitive class or null if the cls
355 parameter is not one of the supported classes.</DL>
356 </DD>
357 </DL>
358 <!-- ========= END OF CLASS DATA ========= -->
359 <HR>
360
361
362 <!-- ======= START OF BOTTOM NAVBAR ====== -->
363 <A NAME="navbar_bottom"><!-- --></A>
364 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
365 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
366 <TR>
367 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
368 <A NAME="navbar_bottom_firstrow"><!-- --></A>
369 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
370 <TR ALIGN="center" VALIGN="top">
371 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
372 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
373 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
374 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TupleBinding.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
375 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
376 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
377 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
378 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
379 </TR>
380 </TABLE>
381 </TD>
382 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
383 <b>Berkeley DB</b><br><font size="-1"> version 5.3.28</font></EM>
384 </TD>
385 </TR>
386
387 <TR>
388 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
389 &nbsp;<A HREF="../../../../com/sleepycat/bind/tuple/TupleBase.html" title="class in com.sleepycat.bind.tuple"><B>PREV CLASS</B></A>&nbsp;
390 &nbsp;<A HREF="../../../../com/sleepycat/bind/tuple/TupleInput.html" title="class in com.sleepycat.bind.tuple"><B>NEXT CLASS</B></A></FONT></TD>
391 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
392 <A HREF="../../../../index.html?com/sleepycat/bind/tuple/TupleBinding.html" target="_top"><B>FRAMES</B></A> &nbsp;
393 &nbsp;<A HREF="TupleBinding.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
394 &nbsp;<SCRIPT type="text/javascript">
395 <!--
396 if(window==top) {
397 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
398 }
399 //-->
400 </SCRIPT>
401 <NOSCRIPT>
402 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
403 </NOSCRIPT>
404
405
406 </FONT></TD>
407 </TR>
408 <TR>
409 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
410 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
411 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
412 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
413 </TR>
414 </TABLE>
415 <A NAME="skip-navbar_bottom"></A>
416 <!-- ======== END OF BOTTOM NAVBAR ======= -->
417
418 <HR>
419 <font size=1>Copyright (c) 1996, 2013 Oracle and/or its affiliates. All rights reserved.</font>
420 </BODY>
421 </HTML>