public class DropTableVisitor extends Object implements BeanVisitor
Constructor and Description |
---|
DropTableVisitor(DdlGenContext ctx) |
Modifier and Type | Method and Description |
---|---|
boolean |
visitBean(BeanDescriptor<?> descriptor)
Visit a BeanDescriptor and return true to continue visiting the bean
(return false to skip visiting this bean).
|
void |
visitBeanEnd(BeanDescriptor<?> descriptor)
Finished visiting the BeanDescriptor.
|
void |
visitBegin()
Starting.
|
void |
visitEnd()
Finished all visiting.
|
PropertyVisitor |
visitProperty(BeanProperty p)
Visit a property potentially return a specific PropertyVisitor.
|
protected void |
writeDropTable(BeanDescriptor<?> descriptor) |
protected void |
writeDropTable(String tableName) |
public DropTableVisitor(DdlGenContext ctx)
protected void writeDropTable(BeanDescriptor<?> descriptor)
protected void writeDropTable(String tableName)
public boolean visitBean(BeanDescriptor<?> descriptor)
BeanVisitor
visitBean
in interface BeanVisitor
public void visitBeanEnd(BeanDescriptor<?> descriptor)
BeanVisitor
visitBeanEnd
in interface BeanVisitor
public void visitBegin()
BeanVisitor
visitBegin
in interface BeanVisitor
public void visitEnd()
BeanVisitor
visitEnd
in interface BeanVisitor
public PropertyVisitor visitProperty(BeanProperty p)
BeanVisitor
A PropertyVisitor can be returned to more easily process bean properties by their specific type.
visitProperty
in interface BeanVisitor
Copyright © 2015. All Rights Reserved.