org.jpox.api
Interface ApiAdapter

All Known Implementing Classes:
JDOAdapter, JPAAdapter

public interface ApiAdapter

Adapter to allow the JPOX core runtime to expose multiple APIs to clients


Method Summary
 LifeCycleState getLifeCycleState(int stateType)
          Returns the LifeCycleState for the state constant.
 boolean isValidPrimaryKeyClass(java.lang.Class pkClass, AbstractClassMetaData cmd, ClassLoaderResolver clr, int noOfPkFields)
          Utility to check if a primary-key class is valid.
 

Method Detail

isValidPrimaryKeyClass

boolean isValidPrimaryKeyClass(java.lang.Class pkClass,
                               AbstractClassMetaData cmd,
                               ClassLoaderResolver clr,
                               int noOfPkFields)
Utility to check if a primary-key class is valid. Will throw a InvalidPrimaryKeyException if it is invalid, otherwise returning true.

Parameters:
pkClass - The Primary Key class
cmd - AbstractClassMetaData for the PersistenceCapable class
clr - the ClassLoaderResolver
noOfPkFields - Number of primary key fields
Returns:
Whether it is valid

getLifeCycleState

LifeCycleState getLifeCycleState(int stateType)
Returns the LifeCycleState for the state constant.

Parameters:
stateType - the type as integer
Returns:
the type as LifeCycleState object


Copyright © -2008 . All Rights Reserved.