Class InfoFactory
- java.lang.Object
-
- org.castor.cpa.persistence.sql.engine.info.InfoFactory
-
public final class InfoFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description InfoFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TableInfo
createTableInfo(ClassDescriptor classDescriptor)
Method checks if table for given class descriptor exists.void
resolveForeignKeys()
-
-
-
Method Detail
-
createTableInfo
public TableInfo 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.
-
resolveForeignKeys
public void resolveForeignKeys()
-
-