HHH-14921 Remove unused method PersistentIdentifierGenerator#generatorKey

This commit is contained in:
Yoann Rodière 2021-11-04 14:31:04 +01:00
parent 16524e2f67
commit 0c644fa16d
5 changed files with 0 additions and 29 deletions

View File

@ -387,7 +387,4 @@ public class MultipleHiLoPerTableGenerator implements PersistentIdentifierGenera
}
public Object generatorKey() {
return tableName;
}
}

View File

@ -57,12 +57,4 @@ public interface PersistentIdentifierGenerator extends OptimizableGenerator {
* The key under which to find the {@link org.hibernate.boot.model.naming.ObjectNameNormalizer} in the config param map.
*/
String IDENTIFIER_NORMALIZER = "identifier_normalizer";
/**
* Return a key unique to the underlying database objects. Prevents us from
* trying to create/remove them multiple times.
*
* @return Object an identifying key for this generator
*/
Object generatorKey();
}

View File

@ -76,10 +76,6 @@ public class SequenceGenerator
return identifierType;
}
public Object generatorKey() {
return getSequenceName();
}
public String getSequenceName() {
return sequenceName;
}

View File

@ -530,15 +530,6 @@ public class SequenceStyleGenerator
return optimizer.generate( databaseStructure.buildCallback( session ) );
}
// PersistentIdentifierGenerator implementation ~~~~~~~~~~~~~~~~~~~~~~~~~~~
@Override
public Object generatorKey() {
return databaseStructure.getName();
}
// BulkInsertionCapableIdentifierGenerator implementation ~~~~~~~~~~~~~~~~~
@Override

View File

@ -222,11 +222,6 @@ public class TableGenerator implements PersistentIdentifierGenerator {
private String contributor;
@Override
public Object generatorKey() {
return qualifiedTableName.render();
}
/**
* Type mapping for the identifier.
*