public class LinkSchema
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.sql.ResultSet |
linkSchema(java.sql.Connection conn,
java.lang.String targetSchema,
java.lang.String driver,
java.lang.String url,
java.lang.String user,
java.lang.String password,
java.lang.String sourceSchema)
Link all tables of a schema to the database.
|
public static java.sql.ResultSet linkSchema(java.sql.Connection conn,
java.lang.String targetSchema,
java.lang.String driver,
java.lang.String url,
java.lang.String user,
java.lang.String password,
java.lang.String sourceSchema)
conn - the connection to the database where the links are to be
createdtargetSchema - the schema name where the objects should be createddriver - the driver class name of the linked databaseurl - the database URL of the linked databaseuser - the user namepassword - the passwordsourceSchema - the schema where the existing tables are