|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jdo.api.persistence.enhancer.util.Assertion
com.sun.jdo.api.persistence.enhancer.util.Support
com.sun.jdo.api.persistence.enhancer.meta.JDOMetaDataModelImpl
public class JDOMetaDataModelImpl
Provides the JDO meta information based on a JDO meta model.
| Field Summary | |
|---|---|
protected Model |
model
|
protected java.io.PrintWriter |
out
|
| Fields inherited from class com.sun.jdo.api.persistence.enhancer.util.Support |
|---|
timer |
| Constructor Summary | |
|---|---|
JDOMetaDataModelImpl(Model model)
Creates an instance. |
|
JDOMetaDataModelImpl(Model model,
java.io.PrintWriter out)
|
|
| Method Summary | |
|---|---|
int |
getFieldNo(java.lang.String classPath,
java.lang.String fieldName)
Returns the unique field index of a declared, persistent field of a class. |
java.lang.String[] |
getManagedFields(java.lang.String classPath)
Returns an array of field names of all declared persistent and transactional fields of a class. |
java.lang.String |
getPersistenceCapableRootClass(java.lang.String classPath)
Returns the name of the persistence-capable root class of a class. |
java.lang.String |
getSuperClass(java.lang.String classPath)
Returns the name of the superclass of a class. |
boolean |
isDefaultFetchGroupField(java.lang.String classPath,
java.lang.String fieldName)
Tests whether a field of a class is known to be part of the Default Fetch Group. |
boolean |
isMutableSecondClassObjectType(java.lang.String classPath)
Tests whether a type is known for Mutable Second Class Objects. |
boolean |
isPersistenceCapableClass(java.lang.String classPath)
Tests whether a class is known to be persistence-capable. |
boolean |
isPersistenceCapableRootClass(java.lang.String classPath)
Tests whether a class is known as a persistence-capable root class. |
boolean |
isPersistentField(java.lang.String classPath,
java.lang.String fieldName)
Tests whether a field of a class is known to be persistent. |
boolean |
isPrimaryKeyField(java.lang.String classPath,
java.lang.String fieldName)
Tests whether a field of a class is known to be Primary Key. |
boolean |
isSecondClassObjectType(java.lang.String classPath)
Tests whether a type is known for Second Class Objects. |
boolean |
isTransactionalField(java.lang.String classPath,
java.lang.String fieldName)
Tests whether a field of a class is known to be transactional. |
boolean |
isTransientClass(java.lang.String classPath)
Tests whether a class is known to be transient. |
protected static java.lang.String |
nameToPath(java.lang.String className)
|
protected static java.lang.String |
pathToName(java.lang.String classPath)
|
| Methods inherited from class com.sun.jdo.api.persistence.enhancer.util.Support |
|---|
getI18N, getI18N, getI18N, getI18N, getI18N, getI18N |
| Methods inherited from class com.sun.jdo.api.persistence.enhancer.util.Assertion |
|---|
affirm, affirm, affirm, affirm |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.io.PrintWriter out
protected Model model
| Constructor Detail |
|---|
public JDOMetaDataModelImpl(Model model)
public JDOMetaDataModelImpl(Model model,
java.io.PrintWriter out)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
JDOMetaDataUserException
JDOMetaDataFatalError| Method Detail |
|---|
public boolean isTransientClass(java.lang.String classPath)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
isTransientClass in interface JDOMetaDataclassPath - the JVM-qualified name of the class
JDOMetaDataUserException
JDOMetaDataFatalError
public boolean isPersistenceCapableClass(java.lang.String classPath)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
isPersistenceCapableClass in interface JDOMetaDataclassPath - the JVM-qualified name of the class
JDOMetaDataUserException
JDOMetaDataFatalError
public boolean isPersistenceCapableRootClass(java.lang.String classPath)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
isPersistenceCapableRootClass in interface JDOMetaDataclassPath - the JVM-qualified name of the class
JDOMetaDataUserException
JDOMetaDataFatalError
public java.lang.String getPersistenceCapableRootClass(java.lang.String classPath)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
getPersistenceCapableRootClass in interface JDOMetaDataclassPath - the JVM-qualified name of the class
JDOMetaDataUserException
JDOMetaDataFatalError
public java.lang.String getSuperClass(java.lang.String classPath)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
getSuperClass in interface JDOMetaDataclassPath - the JVM-qualified name of the class
JDOMetaDataUserException
JDOMetaDataFatalError
public boolean isSecondClassObjectType(java.lang.String classPath)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
isSecondClassObjectType in interface JDOMetaDataclassPath - the JVM-qualified name of the type
JDOMetaDataUserException
JDOMetaDataFatalError
public boolean isMutableSecondClassObjectType(java.lang.String classPath)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
isMutableSecondClassObjectType in interface JDOMetaDataclassPath - the JVM-qualified name of the type
JDOMetaDataUserException
JDOMetaDataFatalError
public boolean isPersistentField(java.lang.String classPath,
java.lang.String fieldName)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
isPersistentField in interface JDOMetaDataclassPath - the JVM-qualified name of the classfieldName - the name of the field
JDOMetaDataUserException
JDOMetaDataFatalError
public boolean isTransactionalField(java.lang.String classPath,
java.lang.String fieldName)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
isTransactionalField in interface JDOMetaDataclassPath - the JVM-qualified name of the classfieldName - the name of the field
JDOMetaDataUserException
JDOMetaDataFatalError
public boolean isPrimaryKeyField(java.lang.String classPath,
java.lang.String fieldName)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
isPrimaryKeyField in interface JDOMetaDataclassPath - the JVM-qualified name of the classfieldName - the name of the field
JDOMetaDataUserException
JDOMetaDataFatalError
public boolean isDefaultFetchGroupField(java.lang.String classPath,
java.lang.String fieldName)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
isDefaultFetchGroupField in interface JDOMetaDataclassPath - the JVM-qualified name of the classfieldName - the name of the field
JDOMetaDataUserException
JDOMetaDataFatalError
public int getFieldNo(java.lang.String classPath,
java.lang.String fieldName)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
getFieldNo in interface JDOMetaDataclassPath - the JVM-qualified name of the classfieldName - the name of the field
JDOMetaDataUserException
JDOMetaDataFatalError
public java.lang.String[] getManagedFields(java.lang.String classPath)
throws JDOMetaDataUserException,
JDOMetaDataFatalError
getManagedFields in interface JDOMetaDataclassPath - the JVM-qualified name of the class
JDOMetaDataUserException
JDOMetaDataFatalErrorprotected static java.lang.String pathToName(java.lang.String classPath)
protected static java.lang.String nameToPath(java.lang.String className)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||