org.apache.jdo.tck.pc.shoppingcart
Class Undetachable

java.lang.Object
  extended byorg.apache.jdo.tck.pc.shoppingcart.Undetachable
All Implemented Interfaces:
java.io.Serializable

public class Undetachable
extends java.lang.Object
implements java.io.Serializable

This class is a token undetachable class. It is only present to be persistence-capable but not detachable so as to test that a detachable class must be declared so.

See Also:
Serialized Form

Nested Class Summary
static class Undetachable.Oid
           
 
Field Summary
protected  int bar
           
protected  int foo
           
protected  long id
          Identity field for use with application identity
protected static long nextId
           
 
Constructor Summary
Undetachable()
           
Undetachable(long id)
           
 
Method Summary
 int getBar()
           
 int getFoo()
           
static long nextId()
           
 void setBar(int bar)
           
 void setFoo(int foo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nextId

protected static long nextId

id

protected long id
Identity field for use with application identity


foo

protected int foo

bar

protected int bar
Constructor Detail

Undetachable

public Undetachable()

Undetachable

public Undetachable(long id)
Method Detail

nextId

public static long nextId()

getFoo

public int getFoo()

setFoo

public void setFoo(int foo)

getBar

public int getBar()

setBar

public void setBar(int bar)


Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.