org.jpox.annotations
Annotation Type PersistenceCapable


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface PersistenceCapable

Annotation for whether the class is persistence-capable.

Version:
$Revision: 1.7 $

Optional Element Summary
 java.lang.String catalog
          Catalog to use for persisting this class.
 boolean detachable
          Whether this class is detachable.
 boolean embeddedOnly
          Whether objects of this class can only be embedded.
 Extension[] extensions
          Any vendor extensions.
 IdentityTypeValue identityType
          Type of identity for this class.
 Join[] joins
          Joins to secondary tables
 java.lang.String objectIdClass
          Primary key class when using application identity and using own PK.
 boolean requiresExtent
          Whether we require the ability to have extents of this class.
 java.lang.String schema
          Schema to use for persisting this class.
 java.lang.String table
          Table to use for persisting this class.
 

requiresExtent

public abstract boolean requiresExtent
Whether we require the ability to have extents of this class.

Default:
true

embeddedOnly

public abstract boolean embeddedOnly
Whether objects of this class can only be embedded.

Default:
false

detachable

public abstract boolean detachable
Whether this class is detachable.

Default:
false

identityType

public abstract IdentityTypeValue identityType
Type of identity for this class.

Default:
DATASTORE

objectIdClass

public abstract java.lang.String objectIdClass
Primary key class when using application identity and using own PK.

Default:
""

table

public abstract java.lang.String table
Table to use for persisting this class.

Default:
""

catalog

public abstract java.lang.String catalog
Catalog to use for persisting this class.

Default:
""

schema

public abstract java.lang.String schema
Schema to use for persisting this class.

Default:
""

joins

public abstract Join[] joins
Joins to secondary tables

Default:
{}

extensions

public abstract Extension[] extensions
Any vendor extensions.

Default:
{}


Copyright © 2003-2008 Java Persistent Objects (JPOX). All Rights Reserved.