*/
public void validate(RelationalSchema schema, Table table) throws MetadataException
{
if (m_sSQL != null)
{
SubstReader reader = new SQLSubstReader(new StringReader(m_sSQL), schema, table)
{
protected StringBuffer appendConcatenate(StringBuffer buf, CharSequence[] argArray)
{
return buf;
}
protected StringBuffer appendTSExtract(StringBuffer buf, CharSequence sTS, byte nField)
{
return buf;
}
protected StringBuffer appendTSIncrement(
StringBuffer buf, CharSequence sTS, CharSequence sDelta, byte nField)
{
return buf;
}
protected String getQuotedTableName(Table table)
{
return table.getQuotedName();
}
protected String getQuotedIndexName(Index index)
{
return null;
}
protected String getQuotedOwnerName()
{
return null;
}
protected String getQuotedRoleName()
{
return null;
}
protected boolean isColumnCaseInsensitive(Column column)
{
return false;
}
protected String getBinaryLiteral(String sHex)
{
Binary.parse(sHex);
return null;
}
protected String getGUID()
{
return null;
}
protected String getNow()
{
return null;
}
protected String getSysPublicId()
{
return null;
}
protected String getSysUserId()
{
return null;
}
protected String getSysUserAlias()
{
return null;
}
};
try
{
while (reader.read() >= 0) ;
}
catch (IOException e)
{
ObjUtil.rethrow(e);
}