org.hibernate.metamodel.relational
Class Database
java.lang.Object
org.hibernate.metamodel.relational.Database
public class Database
- extends Object
Represents a database and manages the named schema/catalog pairs defined within.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Database
public Database(Metadata.Options options)
getDefaultSchema
public Schema getDefaultSchema()
locateSchema
public Schema locateSchema(Schema.Name name)
getSchema
public Schema getSchema(Identifier schema,
Identifier catalog)
getSchema
public Schema getSchema(String schema,
String catalog)
addAuxiliaryDatabaseObject
public void addAuxiliaryDatabaseObject(AuxiliaryDatabaseObject auxiliaryDatabaseObject)
getAuxiliaryDatabaseObjects
public Iterable<AuxiliaryDatabaseObject> getAuxiliaryDatabaseObjects()
generateSchemaCreationScript
public String[] generateSchemaCreationScript(Dialect dialect)
generateDropSchemaScript
public String[] generateDropSchemaScript(Dialect dialect)
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.