Top Description Methods
org.hibernate.tool.schema.spi

public Interface SqlScriptCommandExtractor

extends Service
Known Direct Implementers
org.hibernate.tool.schema.internal.script.MultiLineSqlScriptExtractor, org.hibernate.tool.schema.internal.script.SingleLineSqlScriptExtractor
Imports
java.io.Reader, java.util.List, org.hibernate.dialect.Dialect, org.hibernate.service.Service, .ServiceRegistry

Contract for extracting statements from source/import/init scripts.
Author
Lukasz Antoniak
See Also
org.hibernate.cfg.AvailableSettings#HBM2DDL_IMPORT_FILES, org.hibernate.cfg.AvailableSettings#JAKARTA_HBM2DDL_LOAD_SCRIPT_SOURCE, org.hibernate.cfg.AvailableSettings#JAKARTA_HBM2DDL_CREATE_SCRIPT_SOURCE, org.hibernate.cfg.AvailableSettings#JAKARTA_HBM2DDL_DROP_SCRIPT_SOURCE

Method Summary

Modifier and TypeMethod and Description
public List<String>
extractCommands(Reader reader, Dialect dialect)

Read the commands from the SQL script represented by the incoming reader, returning those commands as an array

Method Detail

extractCommandsback to summary
public List<String> extractCommands(Reader reader, Dialect dialect)

Read the commands from the SQL script represented by the incoming reader, returning those commands as an array