net.sf.farrago.ddl
Class DdlImportForeignSchemaStmt
java.lang.Object
net.sf.farrago.ddl.DdlStmt
net.sf.farrago.ddl.DdlImportForeignSchemaStmt
- All Implemented Interfaces:
- FarragoSessionDdlStmt
public class DdlImportForeignSchemaStmt
- extends DdlStmt
DdlImportForeignSchemaStmt represents a DDL IMPORT FOREIGN SCHEMA statement.
- Version:
- $Id: //open/dev/farrago/src/net/sf/farrago/ddl/DdlImportForeignSchemaStmt.java#14 $
- Author:
- John V. Sichi
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
localSchema
private final FemLocalSchema localSchema
femServer
private final FemDataServer femServer
foreignSchemaName
private final SqlIdentifier foreignSchemaName
exclude
private final boolean exclude
roster
private final List<SqlIdentifier> roster
pattern
private final String pattern
DdlImportForeignSchemaStmt
public DdlImportForeignSchemaStmt(FemLocalSchema localSchema,
FemDataServer femServer,
SqlIdentifier foreignSchemaName,
boolean exclude,
List<SqlIdentifier> roster,
String pattern)
- Creates a new import statement. It is illegal for both roster and pattern
to be specified (both may be null).
- Parameters:
localSchema
- target local schemafemServer
- source foreign serverforeignSchemaName
- name of source foreign schemaexclude
- whether to exclude roster/patternroster
- if non-null, a list of table names (as SqlIdentifiers) to
include or excludepattern
- if non-null, a table name pattern to include or exclude
visit
public void visit(DdlVisitor visitor)
- Description copied from class:
DdlStmt
- Invokes a visitor on this statement.
- Specified by:
visit
in class DdlStmt
- Parameters:
visitor
- DdlVisitor to invoke
preValidate
public void preValidate(FarragoSessionDdlValidator ddlValidator)
- Description copied from interface:
FarragoSessionDdlStmt
- Called before generic validation.
- Specified by:
preValidate
in interface FarragoSessionDdlStmt
- Overrides:
preValidate
in class DdlStmt
- Parameters:
ddlValidator
- the object validating this stmt
convertRoster
private Set<String> convertRoster()