Home » jdo2-tck-2.3-ea-src » org.apache.jdo.tck.pc.company » [javadoc | source]
org.apache.jdo.tck.pc.company
public class: CompanyModelReader [javadoc | source]
java.lang.Object
   org.springframework.beans.factory.xml.XmlBeanFactory
      org.apache.jdo.tck.pc.company.CompanyModelReader
Utility class to create a graph of company model instances from an xml representation.
Field Summary
public static final  String DATE_PATTERN    The format of date values in the xml representation 
public static final  String ROOT_LIST_NAME    The name of the root list bean. 
public static final  String BEAN_FACTORY_NAME    The bean-factory name in the xml input files. 
Constructor:
 public CompanyModelReader(String resourceName) 
    Create a CompanyModelReader for the specified resourceName.
    Parameters:
    resourceName - the name of the resource
 public CompanyModelReader(InputStream stream) 
    Create a CompanyModelReader for the specified InputStream.
    Parameters:
    stream - the input stream
 public CompanyModelReader(String resourceName,
    ClassLoader classLoader) 
    Create a CompanyModelReader for the specified resourceName.
    Parameters:
    resourceName - the name of the resource
Method from org.apache.jdo.tck.pc.company.CompanyModelReader Summary:
getAddress,   getCompany,   getDentalInsurance,   getDepartment,   getEmployee,   getFullTimeEmployee,   getInsurance,   getMedicalInsurance,   getPartTimeEmployee,   getPerson,   getProject,   getRootList,   getTearDownClasses,   getTearDownClassesFromFactory,   stringToUtilDate
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jdo.tck.pc.company.CompanyModelReader Detail:
 public IAddress getAddress(String name) 
    Convenience method returning an Address instance for the specified name. The method returns null if there is no Address bean with the specified name.
 public ICompany getCompany(String name) 
    Convenience method returning a Company instance for the specified name. The method returns null if there is no Company bean with the specified name.
 public IDentalInsurance getDentalInsurance(String name) 
    Convenience method returning a DentalInsurance instance for the specified name. The method returns null if there is no DentalInsurance bean with the specified name.
 public IDepartment getDepartment(String name) 
    Convenience method returning a Department instance for the specified name. The method returns null if there is no Department bean with the specified name.
 public IEmployee getEmployee(String name) 
    Convenience method returning an Employee instance for the specified name. The method returns null if there is no Employee bean with the specified name.
 public IFullTimeEmployee getFullTimeEmployee(String name) 
    Convenience method returning a FullTimeEmployee instance for the specified name. The method returns null if there is no FullTimeEmployee bean with the specified name.
 public IInsurance getInsurance(String name) 
    Convenience method returning an Insurance instance for the specified name. The method returns null if there is no Insurance bean with the specified name.
 public IMedicalInsurance getMedicalInsurance(String name) 
    Convenience method returning a MedicalInsurance instance for the specified name. The method returns null if there is no MedicalInsurance bean with the specified name.
 public IPartTimeEmployee getPartTimeEmployee(String name) 
    Convenience method returning a PartTimeEmployee instance for the specified name. The method returns null if there is no PartTimeEmployee bean with the specified name.
 public IPerson getPerson(String name) 
    Convenience method returning a Person instance for the specified name. The method returns null if there is no Person bean with the specified name.
 public IProject getProject(String name) 
    Convenience method returning a Project instance for the specified name. The method returns null if there is no Project bean with the specified name.
 public List getRootList() 
    Returns a list of root objects. The method expects to find a bean called "root" of type list in the xml and returns it.
 public static Class[] getTearDownClasses() 
 public Class[] getTearDownClassesFromFactory() 
 public static Date stringToUtilDate(String value)