Skip to content

Commit 9e89bdd

Browse files
committed
Javadoc for GeneratorCreationContext
1 parent 4fbc8f9 commit 9e89bdd

File tree

1 file changed

+34
-5
lines changed

1 file changed

+34
-5
lines changed

hibernate-core/src/main/java/org/hibernate/generator/GeneratorCreationContext.java

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
*/
55
package org.hibernate.generator;
66

7+
import java.util.Properties;
8+
79
import org.hibernate.Incubating;
810
import org.hibernate.boot.model.relational.Database;
911
import org.hibernate.mapping.PersistentClass;
@@ -13,26 +15,53 @@
1315
import org.hibernate.type.Type;
1416

1517
/**
16-
* An object passed as a parameter to the constructor or
17-
* {@link AnnotationBasedGenerator#initialize initialize}
18-
* method of a {@link Generator} which provides access to
19-
* certain objects useful for initialization of the
20-
* generator.
18+
* Access to information useful during {@linkplain Generator} creation and initialization.
19+
*
20+
* @see AnnotationBasedGenerator
21+
* @see org.hibernate.id.Configurable#configure(GeneratorCreationContext, Properties)
2122
*
2223
* @since 6.2
2324
*/
2425
@Incubating
2526
public interface GeneratorCreationContext {
27+
/**
28+
* View of the relational database objects (tables, sequences, ...) and namespaces (catalogs and schemas).
29+
*/
2630
Database getDatabase();
31+
32+
/**
33+
* Access to available services.
34+
*/
2735
ServiceRegistry getServiceRegistry();
2836

37+
/**
38+
* The default catalog name, if one.
39+
*/
2940
String getDefaultCatalog();
41+
42+
/**
43+
* The default schema name, if one.
44+
*/
3045
String getDefaultSchema();
3146

47+
/**
48+
* Mapping details for the entity.
49+
*/
3250
PersistentClass getPersistentClass();
51+
52+
/**
53+
* Mapping details for the root of the {@linkplain #getPersistentClass() entity} hierarchy.
54+
*/
3355
RootClass getRootClass();
3456

57+
/**
58+
* The entity identifier or id-bag property details.
59+
*/
3560
Property getProperty();
61+
62+
/**
63+
* Mapping details for the identifier type.
64+
*/
3665
default Type getType() {
3766
return getProperty().getType();
3867
}

0 commit comments

Comments
 (0)