Java Magazine, Nov/Dec 2017
Java Card API JAR File Java Java Card Compiler Verifier Applet Tool Java Files On Card Applet Class Files Packages Export Files Java Card Converter Tool 1 2 4 Java Card RE On Card Installer O Card Installer Figure 3 The applet development and deployment model ORACLE COM JAVAMAGAZINE NOVEMBER DECEMBER 2017 86 java card Packages Export Files 3 Applet CAP File atomicity for persistent arrays That is if a smartcard loses power during the update of a data element a field in an object class or component of an array that should be preserved across CAD sessions that data element will be restored to its previous value Some methods also guarantee atomicity for block updates of multiple data elements For example the atomicity of the Util arrayCopy method guarantees that all bytes are correctly copied otherwise the destination array is restored to its previous byte values An applet might not require atomicity for array updates The Util arrayCopyNonAtomic method is provided for this An applet might need to atomically update several diferent fields or array components in several diferent objects Either all updates take place correctly and consistently or else all fields and components are restored to their previous values The Java Card platform supports a transactional model in which an applet can designate the beginning of an atomic set of updates with a call to the JCSystem beginTransaction method Each object update after this point in the code is conditionally updated The field or array component appears to be updated
You must have JavaScript enabled to view digital editions.