com.triactive.jdo
Interface SchemaManagementOptions

All Known Subinterfaces:
PersistenceManagerFactory, SchemaManager
All Known Implementing Classes:
PersistenceManagerFactoryImpl

public interface SchemaManagementOptions

A set of options to control the management of database storage. These are normally provided as additional TJDO-specific properties of PersistenceManagerFactory. They can also be set separately on a SchemaManager in order to provide different behavior when doing "manual" schema management work.

Author:
Mike Martin

Method Summary
 boolean getAutoCreateTables()
          Returns whether or not to automatically create any missing database objects (tables, constraints, indexes, etc.).
 boolean getValidateConstraints()
          Returns whether or not to automatically validate the existence of all appropriate foreign key constraints and indexes.
 boolean getValidateTables()
          Returns whether or not to automatically validate the structure of all database tables to ensure they're compatible with the Java classes.
 void setAutoCreateTables(boolean flag)
          Sets whether or not to automatically create any missing database objects (tables, constraints, indexes, etc.).
 void setValidateConstraints(boolean flag)
          Sets whether or not to automatically validate the existence of all appropriate foreign key constraints and indexes.
 void setValidateTables(boolean flag)
          Sets whether or not to automatically validate the structure of all database tables to ensure they're compatible with the Java classes.
 

Method Detail

getValidateTables

public boolean getValidateTables()
Returns whether or not to automatically validate the structure of all database tables to ensure they're compatible with the Java classes.

Returns:
true if tables should be validated.

setValidateTables

public void setValidateTables(boolean flag)
Sets whether or not to automatically validate the structure of all database tables to ensure they're compatible with the Java classes.

Parameters:
flag - true if tables should be validated.

getValidateConstraints

public boolean getValidateConstraints()
Returns whether or not to automatically validate the existence of all appropriate foreign key constraints and indexes.

Returns:
true if constraints should be validated.

setValidateConstraints

public void setValidateConstraints(boolean flag)
Sets whether or not to automatically validate the existence of all appropriate foreign key constraints and indexes.

Parameters:
flag - true if constraints should be validated.

getAutoCreateTables

public boolean getAutoCreateTables()
Returns whether or not to automatically create any missing database objects (tables, constraints, indexes, etc.). Only applicable if either table and/or constraint validation is enabled.

Returns:
true if missing objects should be auto-created.

setAutoCreateTables

public void setAutoCreateTables(boolean flag)
Sets whether or not to automatically create any missing database objects (tables, constraints, indexes, etc.). Only applicable if either table and/or constraint validation is enabled.

Parameters:
flag - true if missing objects should be auto-created.


Copyright © 2001-2007 The TJDO Project All Rights Reserved.