summaryrefslogtreecommitdiff
path: root/apidocs/com/amazon/carbonado/Storable.html
blob: d6bd6ba36f40822016c626620a2ab3a11b2a80c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_25) on Tue Dec 03 13:53:40 PST 2013 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>Storable (Carbonado 1.2.3 API)</title>
<meta name="date" content="2013-12-03">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="Storable (Carbonado 1.2.3 API)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Storable.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../com/amazon/carbonado/Sequence.html" title="annotation in com.amazon.carbonado"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../com/amazon/carbonado/Storage.html" title="interface in com.amazon.carbonado"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/amazon/carbonado/Storable.html" target="_top">Frames</a></li>
<li><a href="Storable.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.amazon.carbonado</div>
<h2 title="Interface Storable" class="title">Interface Storable&lt;S extends Storable&lt;S&gt;&gt;</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Known Subinterfaces:</dt>
<dd><a href="../../../com/amazon/carbonado/repo/indexed/StoredIndexInfo.html" title="interface in com.amazon.carbonado.repo.indexed">StoredIndexInfo</a>, <a href="../../../com/amazon/carbonado/layout/StoredLayout.html" title="interface in com.amazon.carbonado.layout">StoredLayout</a>, <a href="../../../com/amazon/carbonado/layout/StoredLayoutEquivalence.html" title="interface in com.amazon.carbonado.layout">StoredLayoutEquivalence</a>, <a href="../../../com/amazon/carbonado/layout/StoredLayoutProperty.html" title="interface in com.amazon.carbonado.layout">StoredLayoutProperty</a>, <a href="../../../com/amazon/carbonado/spi/StoredSequence.html" title="interface in com.amazon.carbonado.spi">StoredSequence</a>, <a href="../../../com/amazon/carbonado/sequence/StoredSequence.html" title="interface in com.amazon.carbonado.sequence">StoredSequence</a></dd>
</dl>
<dl>
<dt>All Known Implementing Classes:</dt>
<dd><a href="../../../com/amazon/carbonado/repo/sleepycat/StoredDatabaseInfo.html" title="class in com.amazon.carbonado.repo.sleepycat">StoredDatabaseInfo</a>, <a href="../../../com/amazon/carbonado/spi/StoredLob.html" title="class in com.amazon.carbonado.spi">StoredLob</a>, <a href="../../../com/amazon/carbonado/spi/StoredLob.Block.html" title="class in com.amazon.carbonado.spi">StoredLob.Block</a></dd>
</dl>
<hr>
<br>
<pre>public interface <span class="strong">Storable&lt;S extends Storable&lt;S&gt;&gt;</span></pre>
<div class="block">A data access object in a <a href="../../../com/amazon/carbonado/Repository.html" title="interface in com.amazon.carbonado"><code>Repository</code></a>. User defined storables must
 either extend or implement this interface via an interface or abstract
 class. Abstract bean properties defined in the storable are persisted into
 the repository. At least one property must be annotated as the <a href="../../../com/amazon/carbonado/PrimaryKey.html" title="annotation in com.amazon.carbonado"><code>PrimaryKey</code></a>. At most one property may be annotated as being the <a href="../../../com/amazon/carbonado/Version.html" title="annotation in com.amazon.carbonado"><code>Version</code></a> property.

 <p>Storable instances are mutable, but they must be thread-safe. Although
 race conditions are possible if multiple threads are mutating the Storable,
 the Storable instance will not get into a corrupt state.</div>
<dl><dt><span class="strong">Author:</span></dt>
  <dd>Brian S O'Neill, Don Schneider</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/amazon/carbonado/Alias.html" title="annotation in com.amazon.carbonado"><code>Alias</code></a>, 
<a href="../../../com/amazon/carbonado/Indexes.html" title="annotation in com.amazon.carbonado"><code>Indexes</code></a>, 
<a href="../../../com/amazon/carbonado/Join.html" title="annotation in com.amazon.carbonado"><code>Join</code></a>, 
<a href="../../../com/amazon/carbonado/Nullable.html" title="annotation in com.amazon.carbonado"><code>Nullable</code></a>, 
<a href="../../../com/amazon/carbonado/PrimaryKey.html" title="annotation in com.amazon.carbonado"><code>PrimaryKey</code></a>, 
<a href="../../../com/amazon/carbonado/Version.html" title="annotation in com.amazon.carbonado"><code>Version</code></a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../com/amazon/carbonado/Storable.html" title="type parameter in Storable">S</a></code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#copy()">copy</a></strong>()</code>
<div class="block">Returns an exact shallow copy of this object, including the state.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#copyAllProperties(S)">copyAllProperties</a></strong>(<a href="../../../com/amazon/carbonado/Storable.html" title="type parameter in Storable">S</a>&nbsp;target)</code>
<div class="block">Copies all supported properties, skipping any that are uninitialized.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#copyDirtyProperties(S)">copyDirtyProperties</a></strong>(<a href="../../../com/amazon/carbonado/Storable.html" title="type parameter in Storable">S</a>&nbsp;target)</code>
<div class="block">Copies all supported non-primary key properties which are
 dirty.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#copyPrimaryKeyProperties(S)">copyPrimaryKeyProperties</a></strong>(<a href="../../../com/amazon/carbonado/Storable.html" title="type parameter in Storable">S</a>&nbsp;target)</code>
<div class="block">Copies all supported primary key properties, skipping any that are
 uninitialized.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#copyUnequalProperties(S)">copyUnequalProperties</a></strong>(<a href="../../../com/amazon/carbonado/Storable.html" title="type parameter in Storable">S</a>&nbsp;target)</code>
<div class="block">Copies all supported non-primary key properties which are unequal,
 skipping any that are uninitialized.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#copyVersionProperty(S)">copyVersionProperty</a></strong>(<a href="../../../com/amazon/carbonado/Storable.html" title="type parameter in Storable">S</a>&nbsp;target)</code>
<div class="block">Copies the optional version property, unless it is uninitialized.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#delete()">delete</a></strong>()</code>
<div class="block">Deletes this object from the storage layer by its primary key,
 regardless of whether this object has actually been loaded or not.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#equalPrimaryKeys(java.lang.Object)">equalPrimaryKeys</a></strong>(java.lang.Object&nbsp;obj)</code>
<div class="block">True if the supported properties which participate in the primary key
 are equal.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#equalProperties(java.lang.Object)">equalProperties</a></strong>(java.lang.Object&nbsp;obj)</code>
<div class="block">True if all supported properties for this object are equal.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#equals(java.lang.Object)">equals</a></strong>(java.lang.Object&nbsp;obj)</code>
<div class="block">True if all properties and fields are equal, but ignoring the state.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.Object</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#getPropertyValue(java.lang.String)">getPropertyValue</a></strong>(java.lang.String&nbsp;propertyName)</code>
<div class="block">Returns a Storable property value by name.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#hasDirtyProperties()">hasDirtyProperties</a></strong>()</code>
<div class="block">Returns true if any non-primary key properties in this object are
 dirty.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#hashCode()">hashCode</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#insert()">insert</a></strong>()</code>
<div class="block">Inserts a new persistent value for this object.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#isPropertyClean(java.lang.String)">isPropertyClean</a></strong>(java.lang.String&nbsp;propertyName)</code>
<div class="block">Returns true if the given property of this Storable is clean.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#isPropertyDirty(java.lang.String)">isPropertyDirty</a></strong>(java.lang.String&nbsp;propertyName)</code>
<div class="block">Returns true if the given property of this Storable has been set, but no
 load or store operation has been performed yet.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#isPropertySupported(java.lang.String)">isPropertySupported</a></strong>(java.lang.String&nbsp;propertyName)</code>
<div class="block">Returns true if the given property exists and is supported.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#isPropertyUninitialized(java.lang.String)">isPropertyUninitialized</a></strong>(java.lang.String&nbsp;propertyName)</code>
<div class="block">Returns true if the given property of this Storable has never been
 loaded or set.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#load()">load</a></strong>()</code>
<div class="block">Loads or reloads this object from the storage layer by a primary or
 alternate key.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#markAllPropertiesClean()">markAllPropertiesClean</a></strong>()</code>
<div class="block">Marks all properties as clean, including uninitialized properties.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#markAllPropertiesDirty()">markAllPropertiesDirty</a></strong>()</code>
<div class="block">Marks all properties as dirty, including uninitialized properties.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#markPropertiesClean()">markPropertiesClean</a></strong>()</code>
<div class="block">Marks all dirty properties as clean.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#markPropertiesDirty()">markPropertiesDirty</a></strong>()</code>
<div class="block">Marks all clean properties as dirty.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../com/amazon/carbonado/Storable.html" title="type parameter in Storable">S</a></code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#prepare()">prepare</a></strong>()</code>
<div class="block">Prepares a new object for loading, inserting, updating, or deleting.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.util.Map&lt;java.lang.String,java.lang.Object&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#propertyMap()">propertyMap</a></strong>()</code>
<div class="block">Returns a fixed-size map view of this Storable's properties.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#readFrom(java.io.InputStream)">readFrom</a></strong>(java.io.InputStream&nbsp;in)</code>
<div class="block">Restores property values and states as encoded by <a href="../../../com/amazon/carbonado/Storable.html#writeTo(java.io.OutputStream)"><code>writeTo(java.io.OutputStream)</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#setPropertyValue(java.lang.String, java.lang.Object)">setPropertyValue</a></strong>(java.lang.String&nbsp;propertyName,
                java.lang.Object&nbsp;value)</code>
<div class="block">Sets a Storable property value by name.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.Class&lt;<a href="../../../com/amazon/carbonado/Storable.html" title="type parameter in Storable">S</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#storableType()">storableType</a></strong>()</code>
<div class="block">Returns the class or interface from which this storable was
 generated.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#toString()">toString</a></strong>()</code>
<div class="block">Returns a string for debugging purposes that contains all supported
 property names and values for this object.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#toStringKeyOnly()">toStringKeyOnly</a></strong>()</code>
<div class="block">Returns a string for debugging purposes that contains supported key
 property names and values for this object.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#tryDelete()">tryDelete</a></strong>()</code>
<div class="block">Deletes this object from the storage layer by its primary key,
 regardless of whether this object has actually been loaded or not.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#tryInsert()">tryInsert</a></strong>()</code>
<div class="block">Inserts a new persistent value for this object.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#tryLoad()">tryLoad</a></strong>()</code>
<div class="block">Loads or reloads this object from the storage layer by a primary or
 alternate key.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#tryUpdate()">tryUpdate</a></strong>()</code>
<div class="block">Updates the persistent value of this object, regardless of whether this
 object has actually been loaded or not.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#update()">update</a></strong>()</code>
<div class="block">Updates the persistent value of this object, regardless of whether this
 object has actually been loaded or not.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../com/amazon/carbonado/Storable.html#writeTo(java.io.OutputStream)">writeTo</a></strong>(java.io.OutputStream&nbsp;out)</code>
<div class="block">Serializes property values and states for temporary storage or for
 network transfer.</div>
</td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="load()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>load</h4>
<pre>void&nbsp;load()
          throws <a href="../../../com/amazon/carbonado/FetchNoneException.html" title="class in com.amazon.carbonado">FetchNoneException</a>,
                 <a href="../../../com/amazon/carbonado/FetchException.html" title="class in com.amazon.carbonado">FetchException</a></pre>
<div class="block">Loads or reloads this object from the storage layer by a primary or
 alternate key. All properties of a key must be initialized for it to be
 chosen. The primary key is examined first, and if not fully initialized,
 alternate keys are examined in turn.

 <p>If load is successful, altering the primary key is no longer allowed
 unless a call to delete succeeds. Attempting to alter the primary key in
 this state results in an <code>IllegalStateException</code>. Alternate keys
 may always be modified, however.

 <p>Note: This method differs from <a href="../../../com/amazon/carbonado/Storable.html#tryLoad()"><code>tryLoad()</code></a> only in that it
 throws an exception if no matching record was found, instead of returning
 false. This may indicate that the underlying record was deleted between
 a load and reload. When a FetchNoneException is thrown, this object's
 state will be the same as if the delete method was called on it.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../com/amazon/carbonado/FetchNoneException.html" title="class in com.amazon.carbonado">FetchNoneException</a></code> - if no matching record found</dd>
<dd><code><a href="../../../com/amazon/carbonado/FetchException.html" title="class in com.amazon.carbonado">FetchException</a></code> - if storage layer throws an exception</dd>
<dd><code>java.lang.IllegalStateException</code> - if the state of this instance suggests
 that any primary keys are unspecified</dd></dl>
</li>
</ul>
<a name="tryLoad()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>tryLoad</h4>
<pre>boolean&nbsp;tryLoad()
                throws <a href="../../../com/amazon/carbonado/FetchException.html" title="class in com.amazon.carbonado">FetchException</a></pre>
<div class="block">Loads or reloads this object from the storage layer by a primary or
 alternate key. All properties of a key must be initialized for it to be
 chosen. The primary key is examined first, and if not fully initialized,
 alternate keys are examined in turn.

 <p>If load is successful, altering the primary key is no longer allowed
 unless a call to delete succeeds. Attempting to alter the primary key in
 this state results in an <code>IllegalStateException</code>. Alternate keys
 may always be modified, however.

 <p>Note: This method differs from <a href="../../../com/amazon/carbonado/Storable.html#load()"><code>load()</code></a> only in that it returns
 false if no matching record was found, instead of throwing an exception.
 This may indicate that the underlying record was deleted between a load
 and reload. When false is returned, this object's state will be the same
 as if the delete method was called on it.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>true if found and loaded, false otherwise</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../com/amazon/carbonado/FetchException.html" title="class in com.amazon.carbonado">FetchException</a></code> - if storage layer throws an exception</dd>
<dd><code>java.lang.IllegalStateException</code> - if the state of this instance suggests
 that any primary keys are unspecified</dd></dl>
</li>
</ul>
<a name="insert()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>insert</h4>
<pre>void&nbsp;insert()
            throws <a href="../../../com/amazon/carbonado/PersistException.html" title="class in com.amazon.carbonado">PersistException</a></pre>
<div class="block">Inserts a new persistent value for this object. If successful, altering
 the primary key is no longer allowed unless a call to delete succeeds.
 Attempting to alter the primary key in this state results in an <code>IllegalStateException</code>. Alternate keys may always be modified, however.

 <p>Insert requires that all primary key properties be specified. If not,
 an <code>IllegalStateException</code> is thrown. Also, repository
 implementations usually require that properties which are not <a href="../../../com/amazon/carbonado/Nullable.html" title="annotation in com.amazon.carbonado"><code>Nullable</code></a> also be specified. Otherwise, a <a href="../../../com/amazon/carbonado/ConstraintException.html" title="class in com.amazon.carbonado"><code>ConstraintException</code></a>
 may be thrown.

 <p>Note: This method differs from <a href="../../../com/amazon/carbonado/Storable.html#tryInsert()"><code>tryInsert()</code></a> only in that it may
 throw a UniqueConstraintException, instead of returning false.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../com/amazon/carbonado/UniqueConstraintException.html" title="class in com.amazon.carbonado">UniqueConstraintException</a></code> - if it is absolutely known that a key
 of inserted object matches an existing one</dd>
<dd><code><a href="../../../com/amazon/carbonado/ConstraintException.html" title="class in com.amazon.carbonado">ConstraintException</a></code> - if any required properties are unspecified</dd>
<dd><code><a href="../../../com/amazon/carbonado/PersistException.html" title="class in com.amazon.carbonado">PersistException</a></code> - if storage layer throws an exception</dd>
<dd><code>java.lang.IllegalStateException</code> - if the state of this instance suggests
 that any primary keys are unspecified</dd></dl>
</li>
</ul>
<a name="tryInsert()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>tryInsert</h4>
<pre>boolean&nbsp;tryInsert()
                  throws <a href="../../../com/amazon/carbonado/PersistException.html" title="class in com.amazon.carbonado">PersistException</a></pre>
<div class="block">Inserts a new persistent value for this object. If successful, altering
 the primary key is no longer allowed unless a call to delete succeeds.
 Attempting to alter the primary key in this state results in an <code>IllegalStateException</code>. Alternate keys may always be modified, however.

 <p>Insert requires that all primary key properties be specified. If not,
 an <code>IllegalStateException</code> is thrown. Also, repository
 implementations usually require that properties which are not <a href="../../../com/amazon/carbonado/Nullable.html" title="annotation in com.amazon.carbonado"><code>Nullable</code></a> also be specified. Otherwise, a <a href="../../../com/amazon/carbonado/ConstraintException.html" title="class in com.amazon.carbonado"><code>ConstraintException</code></a>
 may be thrown.

 <p>Note: This method differs from <a href="../../../com/amazon/carbonado/Storable.html#insert()"><code>insert()</code></a> only in that it
 returns false, instead of throwing a UniqueConstraintException.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>false if it is absolutely known that a key of inserted object
 matches an existing one</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../com/amazon/carbonado/ConstraintException.html" title="class in com.amazon.carbonado">ConstraintException</a></code> - if any required properties are unspecified</dd>
<dd><code><a href="../../../com/amazon/carbonado/PersistException.html" title="class in com.amazon.carbonado">PersistException</a></code> - if storage layer throws an exception</dd>
<dd><code>java.lang.IllegalStateException</code> - if the state of this instance suggests
 that any primary keys are unspecified</dd></dl>
</li>
</ul>
<a name="update()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>update</h4>
<pre>void&nbsp;update()
            throws <a href="../../../com/amazon/carbonado/PersistException.html" title="class in com.amazon.carbonado">PersistException</a></pre>
<div class="block">Updates the persistent value of this object, regardless of whether this
 object has actually been loaded or not. If successful, altering the
 primary key is no longer allowed unless a call to delete succeeds.
 Attempting to alter the primary key in this state results in an <code>IllegalStateException</code>. Alternate keys may always be modified, however.

 <p>If this object has a <a href="../../../com/amazon/carbonado/Version.html" title="annotation in com.amazon.carbonado"><code>version</code></a> property defined, then
 the update logic is a bit more strict. Updates of any storable require
 that the primary keys be specified; if a version is present, the version
 must be specified as well. If any of the primary key or version
 properties are unspecified, an <code>IllegalStateException</code> will be
 thrown; if they are fully specified and the version doesn't match the
 current record, an <a href="../../../com/amazon/carbonado/OptimisticLockException.html" title="class in com.amazon.carbonado"><code>OptimisticLockException</code></a> is thrown.

 <p>Not all properties need to be set on this object when calling
 update. Setting a subset results in a partial update. After a successful
 update, all properties are set to the actual values in the storage
 layer. Put another way, the object is automatically reloaded after a
 successful update.

 <p>If PersistNoneException is thrown, this indicates that the underlying
 record was deleted. When this happens, this object's state will be the
 same as if the delete method was called on it.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../com/amazon/carbonado/PersistNoneException.html" title="class in com.amazon.carbonado">PersistNoneException</a></code> - if record is missing and no update occurred</dd>
<dd><code><a href="../../../com/amazon/carbonado/PersistException.html" title="class in com.amazon.carbonado">PersistException</a></code> - if storage layer throws an exception</dd>
<dd><code><a href="../../../com/amazon/carbonado/OptimisticLockException.html" title="class in com.amazon.carbonado">OptimisticLockException</a></code> - if a version property exists and the
 optimistic lock failed</dd>
<dd><code>java.lang.IllegalStateException</code> - if the state of this instance suggests
 that any primary keys are unspecified, or if a version property is unspecified</dd></dl>
</li>
</ul>
<a name="tryUpdate()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>tryUpdate</h4>
<pre>boolean&nbsp;tryUpdate()
                  throws <a href="../../../com/amazon/carbonado/PersistException.html" title="class in com.amazon.carbonado">PersistException</a></pre>
<div class="block">Updates the persistent value of this object, regardless of whether this
 object has actually been loaded or not. If successful, altering the
 primary key is no longer allowed unless a call to delete succeeds.
 Attempting to alter the primary key in this state results in an <code>IllegalStateException</code>. Alternate keys may always be modified, however.

 <p>If this object has a <a href="../../../com/amazon/carbonado/Version.html" title="annotation in com.amazon.carbonado"><code>version</code></a> property defined, then
 the update logic is a bit more strict. Updates of any storable require
 that the primary keys be specified; if a version is present, the version
 must be specified as well. If any of the primary key or version
 properties are unspecified, an <code>IllegalStateException</code> will be
 thrown; if they are fully specified and the version doesn't match the
 current record, an <a href="../../../com/amazon/carbonado/OptimisticLockException.html" title="class in com.amazon.carbonado"><code>OptimisticLockException</code></a> is thrown.

 <p>Not all properties need to be set on this object when calling
 update. Setting a subset results in a partial update. After a successful
 update, all properties are set to the actual values in the storage
 layer. Put another way, the object is automatically reloaded after a
 successful update.

 <p>A return value of false indicates that the underlying record was
 deleted. When this happens, this object's state will be the same as if
 the delete method was called on it.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>true if record likely exists and was updated, or false if record
 absolutely no longer exists and no update occurred</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../com/amazon/carbonado/PersistException.html" title="class in com.amazon.carbonado">PersistException</a></code> - if storage layer throws an exception</dd>
<dd><code><a href="../../../com/amazon/carbonado/OptimisticLockException.html" title="class in com.amazon.carbonado">OptimisticLockException</a></code> - if a version property exists and the
 optimistic lock failed</dd>
<dd><code>java.lang.IllegalStateException</code> - if the state of this instance suggests
 that any primary keys are unspecified, or if a version property is unspecified</dd></dl>
</li>
</ul>
<a name="delete()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>delete</h4>
<pre>void&nbsp;delete()
            throws <a href="../../../com/amazon/carbonado/PersistException.html" title="class in com.amazon.carbonado">PersistException</a></pre>
<div class="block">Deletes this object from the storage layer by its primary key,
 regardless of whether this object has actually been loaded or not.
 Calling delete does not prevent this object from being used again. All
 property values are still valid, including the primary key. Once
 deleted, the insert operation is permitted again.

 <p>Note: This method differs from <a href="../../../com/amazon/carbonado/Storable.html#tryDelete()"><code>tryDelete()</code></a> only in that it may
 throw a PersistNoneException, instead of returning false.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../com/amazon/carbonado/PersistNoneException.html" title="class in com.amazon.carbonado">PersistNoneException</a></code> - if record is missing and nothing was
 deleted</dd>
<dd><code><a href="../../../com/amazon/carbonado/PersistException.html" title="class in com.amazon.carbonado">PersistException</a></code> - if storage layer throws an exception</dd>
<dd><code>java.lang.IllegalStateException</code> - if the state of this instance suggests
 that any primary keys are unspecified</dd></dl>
</li>
</ul>
<a name="tryDelete()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>tryDelete</h4>
<pre>boolean&nbsp;tryDelete()
                  throws <a href="../../../com/amazon/carbonado/PersistException.html" title="class in com.amazon.carbonado">PersistException</a></pre>
<div class="block">Deletes this object from the storage layer by its primary key,
 regardless of whether this object has actually been loaded or not.
 Calling delete does not prevent this object from being used again. All
 property values are still valid, including the primary key. Once
 deleted, the insert operation is permitted again.

 <p>Note: This method differs from <a href="../../../com/amazon/carbonado/Storable.html#delete()"><code>delete()</code></a> only in that it
 returns false, instead of throwing a PersistNoneException.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>true if record likely existed and was deleted, or false if record
 absolutely no longer exists and no delete was necessary</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../com/amazon/carbonado/PersistException.html" title="class in com.amazon.carbonado">PersistException</a></code> - if storage layer throws an exception</dd>
<dd><code>java.lang.IllegalStateException</code> - if the state of this instance suggests
 that any primary keys are unspecified</dd></dl>
</li>
</ul>
<a name="storableType()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>storableType</h4>
<pre>java.lang.Class&lt;<a href="../../../com/amazon/carbonado/Storable.html" title="type parameter in Storable">S</a>&gt;&nbsp;storableType()</pre>
<div class="block">Returns the class or interface from which this storable was
 generated. This represents the data class for the storable.

 <p><i>Design note: the name "getStorableType" is avoided, so as not to
 conflict with a user defined property of "storableType"</i></div>
</li>
</ul>
<a name="copyAllProperties(com.amazon.carbonado.Storable)">
<!--   -->
</a><a name="copyAllProperties(S)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copyAllProperties</h4>
<pre>void&nbsp;copyAllProperties(<a href="../../../com/amazon/carbonado/Storable.html" title="type parameter in Storable">S</a>&nbsp;target)</pre>
<div class="block">Copies all supported properties, skipping any that are uninitialized.
 Specifically, calls "target.set&lt;property&gt;" for all supported
 properties in this storable, passing the value of the property from this
 object. Unsupported <a href="../../../com/amazon/carbonado/Independent.html" title="annotation in com.amazon.carbonado"><code>independent</code></a> properties in this
 or the target are not copied.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>target</code> - storable on which to call set&lt;property&gt; methods</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalStateException</code> - if any primary key properties of target
 cannot be altered</dd></dl>
</li>
</ul>
<a name="copyPrimaryKeyProperties(com.amazon.carbonado.Storable)">
<!--   -->
</a><a name="copyPrimaryKeyProperties(S)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copyPrimaryKeyProperties</h4>
<pre>void&nbsp;copyPrimaryKeyProperties(<a href="../../../com/amazon/carbonado/Storable.html" title="type parameter in Storable">S</a>&nbsp;target)</pre>
<div class="block">Copies all supported primary key properties, skipping any that are
 uninitialized. Specifically, calls "target.set&lt;property&gt;" for all
 supported properties which participate in the primary key, passing the
 value of the property from this object. Unsupported <a href="../../../com/amazon/carbonado/Independent.html" title="annotation in com.amazon.carbonado"><code>independent</code></a> properties in this or the target are not copied.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>target</code> - storable on which to call set&lt;property&gt; methods</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalStateException</code> - if any primary key properties of target
 cannot be altered</dd></dl>
</li>
</ul>
<a name="copyVersionProperty(com.amazon.carbonado.Storable)">
<!--   -->
</a><a name="copyVersionProperty(S)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copyVersionProperty</h4>
<pre>void&nbsp;copyVersionProperty(<a href="../../../com/amazon/carbonado/Storable.html" title="type parameter in Storable">S</a>&nbsp;target)</pre>
<div class="block">Copies the optional version property, unless it is uninitialized.
 Specifically, calls "target.set&lt;property&gt;" for the version
 property (if supported), passing the value of the property from this
 object. If no version property is defined, then this method does
 nothing. Unsupported <a href="../../../com/amazon/carbonado/Independent.html" title="annotation in com.amazon.carbonado"><code>independent</code></a> properties in this
 or the target are not copied.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>target</code> - storable on which to call set&lt;property&gt; method</dd></dl>
</li>
</ul>
<a name="copyUnequalProperties(com.amazon.carbonado.Storable)">
<!--   -->
</a><a name="copyUnequalProperties(S)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copyUnequalProperties</h4>
<pre>void&nbsp;copyUnequalProperties(<a href="../../../com/amazon/carbonado/Storable.html" title="type parameter in Storable">S</a>&nbsp;target)</pre>
<div class="block">Copies all supported non-primary key properties which are unequal,
 skipping any that are uninitialized. Specifically, calls
 "target.get&lt;property&gt;", and if the value thus retrieved differs
 from the local value, "target.set&lt;property&gt;" is called for that
 property. Unsupported <a href="../../../com/amazon/carbonado/Independent.html" title="annotation in com.amazon.carbonado"><code>independent</code></a> properties in this
 or the target are not copied.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>target</code> - storable on which to call set&lt;property&gt; methods</dd></dl>
</li>
</ul>
<a name="copyDirtyProperties(com.amazon.carbonado.Storable)">
<!--   -->
</a><a name="copyDirtyProperties(S)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copyDirtyProperties</h4>
<pre>void&nbsp;copyDirtyProperties(<a href="../../../com/amazon/carbonado/Storable.html" title="type parameter in Storable">S</a>&nbsp;target)</pre>
<div class="block">Copies all supported non-primary key properties which are
 dirty. Specifically, calls "target.set&lt;property&gt;" for any
 non-primary key property which is dirty, passing the value of the
 property from this object. A property is considered dirty when set
 before a load or persist operation is called. Unsupported <a href="../../../com/amazon/carbonado/Independent.html" title="annotation in com.amazon.carbonado"><code>independent</code></a> properties in this or the target are not
 copied.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>target</code> - storable on which to call set&lt;property&gt; methods</dd></dl>
</li>
</ul>
<a name="hasDirtyProperties()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasDirtyProperties</h4>
<pre>boolean&nbsp;hasDirtyProperties()</pre>
<div class="block">Returns true if any non-primary key properties in this object are
 dirty. A property is considered dirty when set before a load or persist
 operation is called. A property becomes clean after a successful load,
 insert, or update operation.</div>
</li>
</ul>
<a name="markPropertiesClean()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>markPropertiesClean</h4>
<pre>void&nbsp;markPropertiesClean()</pre>
<div class="block">Marks all dirty properties as clean. Uninitialized properties remain so.
 As a side-effect, initialized primary keys may no longer be altered.</div>
</li>
</ul>
<a name="markAllPropertiesClean()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>markAllPropertiesClean</h4>
<pre>void&nbsp;markAllPropertiesClean()</pre>
<div class="block">Marks all properties as clean, including uninitialized properties.
 As a side-effect, primary keys may no longer be altered.</div>
</li>
</ul>
<a name="markPropertiesDirty()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>markPropertiesDirty</h4>
<pre>void&nbsp;markPropertiesDirty()</pre>
<div class="block">Marks all clean properties as dirty. Uninitialized properties remain so.
 As a side-effect, primary keys can be altered.</div>
</li>
</ul>
<a name="markAllPropertiesDirty()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>markAllPropertiesDirty</h4>
<pre>void&nbsp;markAllPropertiesDirty()</pre>
<div class="block">Marks all properties as dirty, including uninitialized properties.
 As a side-effect, primary keys can be altered.</div>
</li>
</ul>
<a name="isPropertyUninitialized(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isPropertyUninitialized</h4>
<pre>boolean&nbsp;isPropertyUninitialized(java.lang.String&nbsp;propertyName)</pre>
<div class="block">Returns true if the given property of this Storable has never been
 loaded or set.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>propertyName</code> - name of property to interrogate</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if property is unknown, is a join or is derived</dd></dl>
</li>
</ul>
<a name="isPropertyDirty(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isPropertyDirty</h4>
<pre>boolean&nbsp;isPropertyDirty(java.lang.String&nbsp;propertyName)</pre>
<div class="block">Returns true if the given property of this Storable has been set, but no
 load or store operation has been performed yet.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>propertyName</code> - name of property to interrogate</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if property is unknown, is a join or is derived</dd></dl>
</li>
</ul>
<a name="isPropertyClean(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isPropertyClean</h4>
<pre>boolean&nbsp;isPropertyClean(java.lang.String&nbsp;propertyName)</pre>
<div class="block">Returns true if the given property of this Storable is clean. All
 properties are clean after a successful load or store operation.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>propertyName</code> - name of property to interrogate</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if property is unknown, is a join or is derived</dd></dl>
</li>
</ul>
<a name="isPropertySupported(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isPropertySupported</h4>
<pre>boolean&nbsp;isPropertySupported(java.lang.String&nbsp;propertyName)</pre>
<div class="block">Returns true if the given property exists and is supported. If a
 Storable has an <a href="../../../com/amazon/carbonado/Independent.html" title="annotation in com.amazon.carbonado"><code>Independent</code></a> property which is not supported by
 the repository, then this method returns false.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>propertyName</code> - name of property to check</dd></dl>
</li>
</ul>
<a name="getPropertyValue(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPropertyValue</h4>
<pre>java.lang.Object&nbsp;getPropertyValue(java.lang.String&nbsp;propertyName)</pre>
<div class="block">Returns a Storable property value by name.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>propertyName</code> - name of property to get value of</dd>
<dt><span class="strong">Returns:</span></dt><dd>property value, which is boxed if property type is primitive</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if property is unknown or if accessor
 method declares throwing any checked exceptions</dd>
<dd><code>java.lang.UnsupportedOperationException</code> - if property is independent but unsupported</dd>
<dd><code>java.lang.NullPointerException</code> - if property name is null</dd><dt><span class="strong">Since:</span></dt>
  <dd>1.2</dd></dl>
</li>
</ul>
<a name="setPropertyValue(java.lang.String, java.lang.Object)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPropertyValue</h4>
<pre>void&nbsp;setPropertyValue(java.lang.String&nbsp;propertyName,
                    java.lang.Object&nbsp;value)</pre>
<div class="block">Sets a Storable property value by name. Call insert or update to persist
 the change.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>propertyName</code> - name of property to set value to</dd><dd><code>value</code> - new value for property</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if property is unknown, or if value is
 unsupported due to a constraint, or if mutator method declares throwing
 any checked exceptions</dd>
<dd><code>java.lang.UnsupportedOperationException</code> - if property is independent but unsupported</dd>
<dd><code>java.lang.ClassCastException</code> - if value is of wrong type</dd>
<dd><code>java.lang.NullPointerException</code> - if property name is null or if primitive
 value is required but value is null</dd><dt><span class="strong">Since:</span></dt>
  <dd>1.2</dd></dl>
</li>
</ul>
<a name="propertyMap()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>propertyMap</h4>
<pre>java.util.Map&lt;java.lang.String,java.lang.Object&gt;&nbsp;propertyMap()</pre>
<div class="block">Returns a fixed-size map view of this Storable's properties. Properties
 which declare throwing any checked exceptions are excluded from the
 map. Removing and adding of map entries is unsupported.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>map of property name to property value; primitive property
 values are boxed</dd><dt><span class="strong">Since:</span></dt>
  <dd>1.2</dd></dl>
</li>
</ul>
<a name="copy()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copy</h4>
<pre><a href="../../../com/amazon/carbonado/Storable.html" title="type parameter in Storable">S</a>&nbsp;copy()</pre>
<div class="block">Returns an exact shallow copy of this object, including the state.</div>
</li>
</ul>
<a name="prepare()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>prepare</h4>
<pre><a href="../../../com/amazon/carbonado/Storable.html" title="type parameter in Storable">S</a>&nbsp;prepare()</pre>
<div class="block">Prepares a new object for loading, inserting, updating, or deleting.</div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>1.2</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/amazon/carbonado/Storage.html#prepare()"><code>Storage.prepare()</code></a></dd></dl>
</li>
</ul>
<a name="writeTo(java.io.OutputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>writeTo</h4>
<pre>void&nbsp;writeTo(java.io.OutputStream&nbsp;out)
             throws java.io.IOException,
                    <a href="../../../com/amazon/carbonado/SupportException.html" title="class in com.amazon.carbonado">SupportException</a></pre>
<div class="block">Serializes property values and states for temporary storage or for
 network transfer. Call <a href="../../../com/amazon/carbonado/Storable.html#readFrom(java.io.InputStream)"><code>readFrom(java.io.InputStream)</code></a> to restore. Derived and join
 properties are not serialized.

 <p>The encoding used by this method is much simpler than what is
 provided by standard object serialization. It does not encode class info
 or property names, which is why it is not suitable for long term
 storage.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code> - if exception from stream</dd>
<dd><code><a href="../../../com/amazon/carbonado/SupportException.html" title="class in com.amazon.carbonado">SupportException</a></code> - if Storable cannot be serialized</dd><dt><span class="strong">Since:</span></dt>
  <dd>1.2</dd></dl>
</li>
</ul>
<a name="readFrom(java.io.InputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readFrom</h4>
<pre>void&nbsp;readFrom(java.io.InputStream&nbsp;in)
              throws java.io.IOException,
                     <a href="../../../com/amazon/carbonado/SupportException.html" title="class in com.amazon.carbonado">SupportException</a></pre>
<div class="block">Restores property values and states as encoded by <a href="../../../com/amazon/carbonado/Storable.html#writeTo(java.io.OutputStream)"><code>writeTo(java.io.OutputStream)</code></a>.
 Derived properties are not directly modified, but all other properties
 not restored are reset to their initial state.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code> - if exception from stream</dd>
<dd><code><a href="../../../com/amazon/carbonado/SupportException.html" title="class in com.amazon.carbonado">SupportException</a></code> - if Storable cannot be serialized</dd><dt><span class="strong">Since:</span></dt>
  <dd>1.2</dd></dl>
</li>
</ul>
<a name="hashCode()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hashCode</h4>
<pre>int&nbsp;hashCode()</pre>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>hashCode</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a name="equals(java.lang.Object)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre>boolean&nbsp;equals(java.lang.Object&nbsp;obj)</pre>
<div class="block">True if all properties and fields are equal, but ignoring the state.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>equals</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>obj</code> - object to compare to for equality</dd></dl>
</li>
</ul>
<a name="equalPrimaryKeys(java.lang.Object)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equalPrimaryKeys</h4>
<pre>boolean&nbsp;equalPrimaryKeys(java.lang.Object&nbsp;obj)</pre>
<div class="block">True if the supported properties which participate in the primary key
 are equal. This is useful to cheaply investigate if two storables refer
 to the same entity, regardless of the state of object (specifically the
 non-key properties). Unsupported <a href="../../../com/amazon/carbonado/Independent.html" title="annotation in com.amazon.carbonado"><code>independent</code></a>
 properties in this or the target are not compared.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>obj</code> - object to compare to for equality</dd></dl>
</li>
</ul>
<a name="equalProperties(java.lang.Object)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equalProperties</h4>
<pre>boolean&nbsp;equalProperties(java.lang.Object&nbsp;obj)</pre>
<div class="block">True if all supported properties for this object are equal. Unsupported
 <a href="../../../com/amazon/carbonado/Independent.html" title="annotation in com.amazon.carbonado"><code>independent</code></a> properties in this or the target are not
 compared.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>obj</code> - object to compare to for equality</dd></dl>
</li>
</ul>
<a name="toString()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>java.lang.String&nbsp;toString()</pre>
<div class="block">Returns a string for debugging purposes that contains all supported
 property names and values for this object. Uninitialized and unsupported
 <a href="../../../com/amazon/carbonado/Independent.html" title="annotation in com.amazon.carbonado"><code>independent</code></a> properties are not included.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>toString</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a name="toStringKeyOnly()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>toStringKeyOnly</h4>
<pre>java.lang.String&nbsp;toStringKeyOnly()</pre>
<div class="block">Returns a string for debugging purposes that contains supported key
 property names and values for this object. Uninitialized and unsupported
 <a href="../../../com/amazon/carbonado/Independent.html" title="annotation in com.amazon.carbonado"><code>independent</code></a> properties are not included.</div>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Storable.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../com/amazon/carbonado/Sequence.html" title="annotation in com.amazon.carbonado"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../com/amazon/carbonado/Storage.html" title="interface in com.amazon.carbonado"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/amazon/carbonado/Storable.html" target="_top">Frames</a></li>
<li><a href="Storable.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2006-2013 <a href="https://github.com/Carbonado/Carbonado">Amazon Technologies, Inc.</a>. All Rights Reserved.</small></p>
</body>
</html>