Jakarta Persistence (JPA) Interface
jakarta.persistence.SchemaManager
Allows programmatic schema creation, schema validation, data cleanup, and schema cleanup for entities belonging to a certain persistence unit.
Properties are inherited from the EntityManagerFactory, that is, they may be specified via persistence.xml or Persistence.createEntityManagerFactory.
- See Also:
- Since:
- Jakarta Persistence (JPA) 3.2
Public Instance Methods
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- iftrue, attempt to create schemas, otherwise, assume the schemas already exist
- Since:
- Jakarta Persistence (JPA) 1.0
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- iftrue, drop schemas, otherwise, leave them be
- Since:
- Jakarta Persistence (JPA) 1.0
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:
- Jakarta Persistence (JPA) 1.0
void validate()The persistence provider is not required to perform any specific validation, so the semantics of this operation are entirely provider-specific.
- Throws:
- if a database object is missing or does not have the expected definition.SchemaValidationException
- Since:
- Jakarta Persistence (JPA) 1.0