net.sf.dewdrop.sqlml
Class Native

java.lang.Object
  extended bynet.sf.dewdrop.sqlml.SqlmlComponent
      extended bynet.sf.dewdrop.sqlml.SchemaComponent
          extended bynet.sf.dewdrop.sqlml.Native

public class Native
extends SchemaComponent

Author:
Les Hazlewood

Field Summary
protected  String sql
           
 List targets
           
 
Fields inherited from class net.sf.dewdrop.sqlml.SchemaComponent
description, name
 
Fields inherited from class net.sf.dewdrop.sqlml.SqlmlComponent
indentLevel, logger
 
Constructor Summary
Native()
           
 
Method Summary
 boolean equals(Object o)
           
 String getSql()
           
 List getTargets()
          Returns a list of SupportedRDBMS objects.
 void onWriteSql(Writer out, Configuration cfg)
           
 void setSql(String sql)
           
 void setTargets(String commaDelimitedTargets)
           
 
Methods inherited from class net.sf.dewdrop.sqlml.SchemaComponent
getDescription, getName, setDescription, setName
 
Methods inherited from class net.sf.dewdrop.sqlml.SqlmlComponent
getIndentLevel, i18n, i18n, i18n, setIndentLevel, toSql, toSql, toSql, toString, writeSql, writeSql, writeSql
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sql

protected String sql

targets

public List targets
Constructor Detail

Native

public Native()
Method Detail

getSql

public String getSql()

setSql

public void setSql(String sql)

setTargets

public void setTargets(String commaDelimitedTargets)

getTargets

public List getTargets()
Returns a list of SupportedRDBMS objects. If null, then this native block should be written for all databases.

Returns:
List of SupportedRDBMS objects or null if there are no targets specified.

equals

public boolean equals(Object o)
Overrides:
equals in class SchemaComponent

onWriteSql

public void onWriteSql(Writer out,
                       Configuration cfg)
Specified by:
onWriteSql in class SqlmlComponent
See Also:
SqlmlComponent.writeSql(java.io.Writer)