com.hudson.hibernatesynchronizer.mapping
Class HibernateMappingManager

java.lang.Object
  extended bycom.hudson.hibernatesynchronizer.mapping.HibernateMappingManager

public class HibernateMappingManager
extends java.lang.Object


Nested Class Summary
 class HibernateMappingManager.Runner
          Used for asynchronous processing
 
Method Summary
 java.util.List getClasses()
          Return all knows hibernate classes
 java.util.List getDocuments()
          Return all knows mapping files as documents
 java.util.List getFiles()
          Return all knows mapping files
 HibernateClass getHibernateClass(java.lang.String className)
          Return the HibernateClass associated with the given classname
 HibernateClass getHibernateClassByTableName(java.lang.String table)
          Return the HibernateClass associated with the given table name
 HibernateDocument getHibernateDocument(IFile file)
          Return the loaded document associated with the file given
static HibernateMappingManager getInstance(IProject project)
          Return the project-level singleton ResourceManager
 void notifyMappingEdit(IFile file)
          Notify the manager that this file is currently being viewed or edited
 void notifyMappingFile(IFile file)
          Notify the manager the given file is a Hibernate mapping file
 void notifyMappingSave(IFile file)
          Notify the manager that this file is currently being saved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static HibernateMappingManager getInstance(IProject project)
Return the project-level singleton ResourceManager


notifyMappingEdit

public void notifyMappingEdit(IFile file)
Notify the manager that this file is currently being viewed or edited

Parameters:
file -

notifyMappingSave

public void notifyMappingSave(IFile file)
                       throws org.xml.sax.SAXParseException,
                              com.hudson.hibernatesynchronizer.exceptions.HibernateSynchronizerException
Notify the manager that this file is currently being saved

Parameters:
file -
Throws:
org.xml.sax.SAXParseException
com.hudson.hibernatesynchronizer.exceptions.HibernateSynchronizerException

notifyMappingFile

public void notifyMappingFile(IFile file)
Notify the manager the given file is a Hibernate mapping file

Parameters:
file -

getHibernateClass

public HibernateClass getHibernateClass(java.lang.String className)
Return the HibernateClass associated with the given classname

Parameters:
className -
Returns:

getHibernateDocument

public HibernateDocument getHibernateDocument(IFile file)
Return the loaded document associated with the file given

Parameters:
file -
Returns:

getHibernateClassByTableName

public HibernateClass getHibernateClassByTableName(java.lang.String table)
Return the HibernateClass associated with the given table name


getFiles

public java.util.List getFiles()
Return all knows mapping files

Returns:
a list of IFile objects

getDocuments

public java.util.List getDocuments()
Return all knows mapping files as documents

Returns:
a list of HibernateDocument objects

getClasses

public java.util.List getClasses()
Return all knows hibernate classes

Returns:
a list of HibernateClasses objects