Factbites
 Where results make sense
About us   |   Why use us?   |   Reviews   |   PR   |   Contact us  

Topic: Serializable


  
  Java 2 Platform SE v1.3.1: Interface Serializable
Serializability of a class is enabled by the class implementing the java.io.Serializable interface.
All subtypes of a serializable class are themselves serializable.
Serializable classes that need to designate an alternative object to be used when writing an object to the stream should implement this special method with the exact signature:
java.sun.com /j2se/1.3/docs/api/java/io/Serializable.html   (645 words)

  
 Serializable (Java 2 Platform SE 5.0)
It is an error to declare a class Serializable if this is not the case.
The serialization runtime associates with each serializable class a version number, called a serialVersionUID, which is used during deserialization to verify that the sender and receiver of a serialized object have loaded classes for that object that are compatible with respect to serialization.
If a serializable class does not explicitly declare a serialVersionUID, then the serialization runtime will calculate a default serialVersionUID value for that class based on various aspects of the class, as described in the Java(TM) Object Serialization Specification.
java.sun.com /j2se/1.5.0/docs/api/java/io/Serializable.html   (806 words)

  
 AskTom "Serializable Transaction"   (Site not responding. Last check: 2007-10-30)
A serializable transaction operates in an environment that makes it appear as if there are no other users modifying data in the database, the database will be "frozen" at the point in time your query began.
Serializable does not mean that all transactions executed by the users are the same as if they were executed one right after another in a serial fashion.
Serializable transactions are to be use for very short duration OLTP transactions where a snapshot too old should not ever be an issue.
asktom.oracle.com /pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:3233191441609   (3696 words)

  
 OpenCM: Serializable Struct Reference
Serializable objects all start with a record containing the SerialType pointer and the object's true name.
Referenced by deserialize_meta(), GetAffinity(), Serializable(), serialize_meta(), and SetAffinity().
Referenced by sdr::bin_read(), deserialize_meta(), getType(), Serializable(), and serialize_meta().
opencm.org /doxygen/structSerializable.html   (103 words)

  
 Marrying Serializable with 1.4+ long term bean persistence
Tune in as Riyad and John discuss the goals and progress the DTP project is making as both a platform for every Eclipse data-enabled projects as well as end user tool for folks needing to explore and manipulate data sources.
What Serializable does is to tell the serializing framework that the class is ok to serialize, nothing more.
It is called by the Serializable framework in the last step to see if we have an alternate object to offer rather than using the object instance just read the binary way.
www.javalobby.org /articles/serialization   (2805 words)

  
 Java: Serializable
Serializable is a marker interface - it doesn't define any methods and serves only to specify whether an object is allowed to be serialized (look in the API...
Generally speaking, classes that belong to the standard Java distribution are serializable unless serializing an object of that class would be a security risk.
You can redesign almost any class so that it is serializable, but this redesign may have implications for the interface between your class and the rest of the world.
www.ecst.csuchico.edu /~amk/foo/advjava/notes/serial.html   (3660 words)

  
 The Cafes » Resolved: interfaces should not implement Serializable
What is in fact serializable is not a class or an interface but an instance.
Unfortunately, since Serializable is a marker interface, there is no way for the compiler to check whether the instances are truly serializable or not.
Anything that isn’t serializable can’t be used in a serializable mechanism, and you only need one tooth breaking off a cog to make an entire machine grind to a halt.
cafe.elharo.com /java/resolved-interfaces-should-not-implement-serializable...   (1009 words)

  
 Serializable Adapter   (Site not responding. Last check: 2007-10-30)
Because Serializable is not implemented by default in the language, as suggested at one point, this makes participation in Serialization a voluntary decision.
Marking non-Serializable members of a Serializable class as transient certainly solves the problem of serializing the object in question, but it simply delays certain questions that must be answered.
Thread, of course, is not marked Serializable, but to simply mark the Thread as transient within the object, thus starting it over upon deserialization, is not acceptable.
www.javageeks.com /Papers/SerializableAdapter/SerializableAdapter.html   (2297 words)

  
 SerializableAttribute Class   (Site not responding. Last check: 2007-10-30)
If a field of a serializable type contains a pointer, a handle, or some other data structure that is specific to a particular environment, and cannot be meaningfully reconstituted in a different environment, then you might want to apply the NonSerializedAttribute attribute to that field.
Public Class TestSimpleObject Public member1 As Integer Public member2 As String Public member3 As String Public member4 As Double ' A member that is not serialized.
[Serializable()] public class TestSimpleObject { public int member1; public string member2; public string member3; public double member4; // A field that is not serialized.
msdn.microsoft.com /library/en-us/cpref/html/frlrfSystemSerializableAttributeClassTopic.asp?frame=true   (705 words)

  
 RE: [wsbpel] Issue - 67 - Clarify semantics of serializable scopes
I'm not aware of serializable scopes introducing any new deadlock issues that aren't already in BPEL [1].
After all Serializable scopes are really nothing more than instructions to the thread scheduler.
So in theory any behavior you could see as a result of a serializable scope could be reproduced by a sufficiently eccentric thread scheduler.
www.oasis-open.org /archives/wsbpel/200309/msg00303.html   (361 words)

  
 Serializable (Java Platform SE 6 b103)   (Site not responding. Last check: 2007-10-30)
The serialization runtime associates with each serializable class a version number, called a serialVersionUID, which is used during deserialization to verify that the sender and receiver of a serialized object have loaded classes for that object that are compatible with respect to serialization.
If a serializable class does not explicitly declare a serialVersionUID, then the serialization runtime will calculate a default serialVersionUID value for that class based on various aspects of the class, as described in the Java(TM) Object Serialization Specification.
However, it is strongly recommended that all serializable classes explicitly declare serialVersionUID values, since the default serialVersionUID computation is highly sensitive to class details that may vary depending on compiler implementations, and can thus result in unexpected
download.java.net /jdk6/docs/api/java/io/Serializable.html   (965 words)

  
 Java: Serializable
Serializable is a marker interface - it doesn't define any mehtods and serves only to specify whether an object is allowed to be serialized (look in the API...
The Externailizable interface (which extends Serializable) does define methods and is used by objects that want advanced control.
A class is serializable if, and only if, it has only members that are serializable--specifically: no static, transient members.
www.ecst.csuchico.edu /~amk/classes/csciOOP/serial.html   (2271 words)

  
 Designing For Object Serialization @ STORAGE & SECURITY JOURNAL   (Site not responding. Last check: 2007-10-30)
Serializable does not implement or declare a class's serializable behavior; the default implementation for that behavior is already implemented by ObjectOutputStream.defaultWriteObject() and ObjectInputStream.defaultReadObject().
This seems to imply that all objects are naturally serializable and that the default implementations are sufficient.
When a serializable object, such as a proxy, has nonserializable parts, those parts can be excluded from the serialization process by declaring their variables as transient.
issj.sys-con.com /read/36635.htm   (4090 words)

  
 class Serializable
Serializable is the base class of objects that can save their state to a file in the block structure of the TSE3MDL specification.
The entry point to save/load facilities is the TSE3MDL class, you should use that rather than the Song class's Serializable interface directly.
This method causes the Serializable object to save a block representing it's state to the ostream.
tse3.sourceforge.net /doc/api/TSE3__Serializable.html   (425 words)

  
 CodeNotes® - Article Display
In order for a class to be considered serializable, it must contain data types and references that can be converted to a format that can be stored on disk or transported without corruption.
Basically, this means that a serializable class can contain data, but cannot contain references (unless the references are to other serializable classes) or active resources (e.g.
In other words, if you send your class down the pipe, you also have to be able to send any data types or classes that your class depends on down the same pipe.
www.codenotes.com /articles/articleAction.aspx?articleID=965   (762 words)

  
 Java RMI Tutorial.
If a serializable object is passed as a parameter (or return value) of a remote method invocation, then the value of the object will be copied from one address space to the other.
Using a serializable object in a remote method invocation is straightforward.
Unlike the case of a Serializable class, it is not necessary for both the Client and the Server to have access to the definition of the Remote class.
fragments.turtlemeat.com /rmi.php   (3289 words)

  
 Bug ID: 4992196 ReentrantReadWriteLock defines serializable inner classes
The choice of name is an implementation detail of xxxxx 's javac, and hence presents an obstacle to serialization compatibility with classes compiled using a different java compiler, or even a future release of xxxxx 's javac.
(Defining serializable inner classes is generally discouraged for other reasons as well, as noted in section 1.10 of the object serialization specification.) This problem could be resolved by changing ReadLock and WriteLock to be static nested classes instead.
The choice of name is an implementation detail of Sun's javac, and hence presents an obstacle to serialization compatibility with classes compiled using a different java compiler, or even a future release of Sun's javac.
bugs.sun.com /bugdatabase/view_bug.do?bug_id=4992196   (334 words)

  
 Sidharth's blogs   (Site not responding. Last check: 2007-10-30)
When a second object which has reference to this serializable object is serialized, the former object gets serialized along with it.
Now, if the first object doesn't implement the Serializable interface, any attempt to serialize this object, or the second object that has a reference to this nonserializable first object results in a NotSerializableException.
The idea is, when a non-Serializable ob-ject needs to be stored in a Serializable container, store an anonymous derivative of SerializableAdapter instead, with appropriate writeObject and readObject methods to do the actual persistence.
blogs.sun.com /sid/entry/serializing_non_serializable_objects   (410 words)

  
 SerializableAttribute Class (System)
If a field of a serializable type contains a pointer, a handle, or some other data structure that is specific to a particular environment, and cannot be meaningfully reconstituted in a different environment, then you might want to apply the NonSerializedAttribute attribute to that field.
Public Class TestSimpleObject Public member1 As Integer Public member2 As String Public member3 As String Public member4 As Double ' A member that is not serialized.
[Serializable()] public class TestSimpleObject { public int member1; public string member2; public string member3; public double member4; // A field that is not serialized.
msdn2.microsoft.com /en-us/library/system.serializableattribute.aspx   (1011 words)

  
 Schedule (computer science) - Wikipedia, the free encyclopedia
A schedule that is equivalent to a serial schedule (has the serializability property).
Any strict schedule is cascadeless, but not the converse.
The following subclass clauses illustrate the hierarachical relationships between serializability classes:
en.wikipedia.org /wiki/Schedule_(computer_science)   (905 words)

  
 Serializable Isolation Level
because a serializable transaction cannot modify rows changed by other transactions after the serializable transaction began.
Serializable transaction level provides a rigorous guarantee that each transaction sees a wholly consistent view of the database.
However, the application has to be prepared to retry transactions when concurrent updates make it impossible to sustain the illusion of serial execution, and the cost of redoing complex transactions may be significant.
www.redhat.com /docs/manuals/database/RHDB-7.1.3-Manual/admin_user/xact-serializable.html   (384 words)

  
 Serialized Form
A relative positioning constant, that can be used instead of north, south, east, west or center.
The String indicates the type of object and is one of the following : itemListenerK indicating and ItemListener object.
This field can be null indicating that the checkbox is not a group checkbox.
grove.ufl.edu /java/api/serialized-form.html   (3913 words)

  
 JavaRanch Big Moose Saloon: Serializable interface.   (Site not responding. Last check: 2007-10-30)
posted January 05, 2004 10:40 PM I have a class A which is serializable and class B extends class A. Then class B is serializable.
The object class is serializable, and all other classes extend the object class.
It is just for the other objects that we need to make them serializable in the situation that we really need to do...
saloon.javaranch.com /cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=1&t=006494   (228 words)

  
 Captured Arguments for Anonymous Methods are not [Serializable]
When you let the C# 2.0 compiler capture variables for use within the body of an anonymous method you're passing to someone, the class that the compiler synthesizes for holding and passing the captured arguments to the target method is not marked [Serializable].
This line of code results in a SerializationException because (a) it's a cross-AppDomain call, which requires that all parameters be either [Serializable] or extend MarshalByRefObject and (b) the compiler-synthesized class that holds the captured variables is neither.
In retrospect, this is easy enough to see using ILDASM or Reflector.  But even though I've looked at the compiler-synthesized class for captured arguments before, it's not something I ever paid attention to until I bumped into it a few minutes ago tinkering with some multi-AppDomain code.
www.pluralsite.com /blogs/mike/archive/2006/03/24/20704.aspx   (430 words)

  
 java.net Forums
I used the serializable extension, so the JAXB generated class does nicely implement Serializable.
All members are generated OK and there is no mention of the Serializable interface.
The serializable extension is still in the xsd.
forums.java.net /jive/thread.jspa?messageID=121640&tstart=0   (1026 words)

  
 PostgreSQL: Documentation: Manuals: PostgreSQL 7.4: Transaction Isolation
In this case, the serializable transaction will wait for the first updating transaction to commit or roll back (if it is still in progress).
The Serializable mode provides a rigorous guarantee that each transaction sees a wholly consistent view of the database.
Most commonly, Serializable mode is necessary when a transaction executes several successive commands that must see identical views of the database.
www.postgresql.org /docs/7.4/static/transaction-iso.html   (1120 words)

  
 Serializable class does not declare a static final serialVersionUID field
Serializable class X does not declare a static final serialVersionUID field of type long.
They are not in the Eclipse filter to exclude.
Unless otherwise licensed, code in all technical manuals herein (including articles, FAQs, samples) is provided under this License.
forum.java.sun.com /thread.jspa?threadID=581654&messageID=3501336   (612 words)

  
 TNTsdk: SERIALIZABLE class Reference   (Site not responding. Last check: 2007-10-30)
Objects may be serialized without inheriting from this interface provided they are serialized as part of a container object.
Simple objects which may be represented by an ITEMDEF array do not need to be made serializable as there are Read/Write methods which may use this array.
This method must be called only after the tag name has been read and is responsible for determining how to deserialize the component elements.
www.microimages.com /tntsdk69/classSERIALIZABLE.html   (428 words)

  
 COM+, SQL Server, Serializable isolation level and the issues: Narayana Vyas Kondreddi's home page
Serializable isolation level is the strictest of all the other isolation levels (READ COMMITTED, READ UNCOMMITTED, REPEATABLE READ), and can badly degrade the concurrency of a database in a heavy OLTP environment.
Well, now that I know the application running under SERIALIZABLE isolation level, I'm not surprised about all those timeout issues, deadlocks and slow response time.
So, many development teams may not pay enough attention to the serializable isolation level, under which their application will be running, once deployed.
vyaskn.tripod.com /com_isolation_level.htm   (1361 words)

Try your search on: Qwika (all wikis)

Factbites
  About us   |   Why use us?   |   Reviews   |   Press   |   Contact us  
Copyright © 2005-2007 www.factbites.com Usage implies agreement with terms.