SchemaManager
Allows programmatic plain, plain, plain, and plain for entities belonging to a certain persistence unit.
Properties are inherited from the EntityManagerFactory, that is, they may be specified via persistence.xml
or createEntityManagerFactory().
- See Also:
- getSchemaManager()
- Since:
- JPA 3.2
Public Methods
void create(boolean createSchemas)
If a DDL operation fails, the behavior is undefined. A provider may throw an exception, or it may ignore the problem and continue.
- Parameters:
createSchemas
- if {@code true} , attempt to create schemas, otherwise, assume the schemas already exist
- Since:
- JPA 3.2
void drop(boolean dropSchemas)
If a DDL operation fails, the behavior is undefined. A provider may throw an exception, or it may ignore the problem and continue.
- Parameters:
dropSchemas
- if {@code true} , drop schemas, otherwise, leave them be
- Since:
- JPA 3.2
void truncate()
If a SQL operation fails, the behavior is undefined. A provider may throw an exception, or it may ignore the problem and continue.
- Since:
- JPA 3.2
void validate()
The persistence provider is not required to perform any specific validation, so the semantics of this operation are entirely provider-specific.
- Throws:
- SchemaValidationException - if a database object is missing or does not have the expected definition
- Since:
- JPA 3.2