com.sun.jdo.api.persistence.enhancer.meta
Class JDOMetaDataProperties

java.lang.Object
  extended by com.sun.jdo.api.persistence.enhancer.meta.JDOMetaDataProperties

public final class JDOMetaDataProperties
extends Object

This class parses properties containing meta data information about classes. The syntax of the properties is the following:

This class is not thread safe.


Constructor Summary
JDOMetaDataProperties(Properties props)
          Creates a new object with the given properties.
 
Method Summary
 com.sun.jdo.api.persistence.enhancer.meta.JDOMetaDataProperties.JDOClass getJDOClass(String classname)
          Get the information about the class with the given name.
 com.sun.jdo.api.persistence.enhancer.meta.JDOMetaDataProperties.JDOField getJDOField(String fieldname, String classname)
          Gets the information about the specified field.
 String[] getKnownClassNames()
          Gets all classnames in the properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDOMetaDataProperties

public JDOMetaDataProperties(Properties props)
Creates a new object with the given properties.

Parameters:
props - The properties.
See Also:
properties
Method Detail

getJDOClass

public final com.sun.jdo.api.persistence.enhancer.meta.JDOMetaDataProperties.JDOClass getJDOClass(String classname)
                                                                                           throws JDOMetaDataUserException
Get the information about the class with the given name.

Parameters:
classname - The classname.
Returns:
The information about the class or null if no information is given.
Throws:
JDOMetaDataUserException - If something went wrong parsing the properties.

getJDOField

public final com.sun.jdo.api.persistence.enhancer.meta.JDOMetaDataProperties.JDOField getJDOField(String fieldname,
                                                                                                  String classname)
                                                                                           throws JDOMetaDataUserException
Gets the information about the specified field.

Parameters:
classname - The name of the class.
fieldname - The name of the field of the class.
Returns:
The information about the field or null if no information could be found.
Throws:
JDOMetaDataUserException - If something went wrong parsing the properties.

getKnownClassNames

public final String[] getKnownClassNames()
Gets all classnames in the properties.

Returns:
All classnames in the properties.


Copyright © 2012. All Rights Reserved.