Features:       HOME      
   
  • Byte-Code Enhancement of classes
  • Byte-Code Compatibility
  • Datastore identity
  • Optimistic Transaction
  • Nontransactional Read
  • Retain values
  • Restore values
  • Second Class PersistenceCapable objects
  • J2EE Integration
  • Query (JDOQL)
  • Index
  • Schema Evolution
  • Automatic Crash Recovery

Persistable datatypes

Primitives (boolean, byte, short, int, long, char, float, double)
Wrappers (Boolean, Byte, Short, Integer, Long, Character, Float, Double)
java.lang.String
java.util.Locale
java.math.BigDecimal
java.math.BigInteger
java.util.Date
java.util.HashSet
java.util.Vector
java.awt.Color

Queries

The following methods are supported for their specific types, with semantics as defined by the Java language:

  Query Methods  

Method

Description

contains(Object)

applies to Collection types

isEmpty()

applies to Collection types

matches(String)

applies to String type; only the following regular expression patterns are required to be supported and are portable: global (?i) for case-insensitive matches; and . and .* for wild card matches. The pattern passed to matches must be a literal or parameter.

startsWith(String)

applies to String type

endsWith(String)

applies to String type

 

Query operators

Operator

Description

==

equal

!=

not equal

>

greater than

<

less than

>=

greater than or equal

<=

less than or equal

&

boolean logical AND (not bitwise)

&&

conditional AND

|

boolean logical OR (not bitwise)

||

conditional OR

~

integral unary bitwise complement

!

logical complement

PersistenceManager

boolean isClosed();
void close();
void evict (Object pc);
void evictAll ();
void evictAll (Object[] pcs);
void evictAll (Collection pcs);
void refresh (Object pc);
void refreshAll ();
void refreshAll (Object[] pcs);
void refreshAll (Collection pcs);
void retrieve(Object pc);
void retrieveAll(Collection pcs);
Object getObjectById (Object oid, boolean validate);
Object getObjectId (Object pc);
void makePersistent (Object pc);
void makePersistentAll (Object[] pcs);
void makePersistentAll (Collection pcs);
void deletePersistent (Object pc);
void deletePersistentAll (Object[] pcs);
void deletePersistentAll (Collection pcs);
void makeTransient (Object pc);
void makeTransientAll (Object[] pcs);
void makeTransientAll (Collection pcs);
void makeTransactional (Object pc);
void makeTransactionalAll (Object[] pcs);
void makeTransactionalAll (Collection pcs);
void makeNontransactional (Object pc);
void makeNontransactionalAll (Object[] pcs);
void makeNontransactionalAll (Collection pcs);
Class getObjectIdClass (Class pcClass);

 

Transaction

boolean isActive ();
boolean getNontransactionalRead ();
void setNontransactionalRead (boolean flag);
boolean getRetainValues ();
void setRetainValues (boolean flag);
void setSynchronization (javax.transaction.Synchronization sync);
void begin();
void commit();
void rollback();

 

On-Line User Guide