org.castor.cpa.persistence.sql.engine.info
Class InfoFactory

java.lang.Object
  extended by org.castor.cpa.persistence.sql.engine.info.InfoFactory

public final class InfoFactory
extends Object

Factory for SQL info.

Version:
$Revision: 8994 $ $Date: 2011-08-02 01:40:59 +0200 (Di, 02 Aug 2011) $
Author:
Dennis Butterstein, Ralf Joachim, Johannes Venzke

Constructor Summary
InfoFactory()
           
 
Method Summary
 EntityTableInfo createTableInfo(ClassDescriptor classDescriptor)
          Method checks if table for given class descriptor exists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfoFactory

public InfoFactory()
Method Detail

createTableInfo

public EntityTableInfo createTableInfo(ClassDescriptor classDescriptor)
                                throws MappingException
Method checks if table for given class descriptor exists. If there is one it will be returned otherwise a new table will be constructed for this class descriptor.

Parameters:
classDescriptor - ClassDescriptor to search table for.
Returns:
Existing table from the map or a new one.
Throws:
MappingException - Error thrown when construction of new table fails.


Copyright © 2012. All Rights Reserved.