public abstract class AbstractSchemaFileCommand extends AbstractCommand
logger| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSchemaFileCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
create(com.sqlapp.data.schemas.Catalog catalog) |
protected void |
doRun() |
com.sqlapp.data.schemas.Catalog |
getCatalog() |
java.lang.String |
getCsvEncoding() |
java.io.File |
getDictionaryFileDirectory() |
java.lang.String |
getDictionaryFileType() |
protected java.lang.String |
getFullName(java.lang.Object obj,
boolean withSchemaName) |
com.sqlapp.util.JsonConverter |
getJsonConverter() |
java.lang.String[] |
getKeywords() |
protected java.util.Map<java.lang.String,java.lang.Integer> |
getKeywordsMap() |
protected java.lang.String |
getName(java.lang.Object obj) |
java.io.File |
getTargetFile() |
protected java.io.File |
loadProperties(MenuDefinition menuDefinition,
java.lang.String type,
java.util.Properties properties) |
protected void |
setCatalog(com.sqlapp.data.schemas.Catalog catalog) |
void |
setCsvEncoding(java.lang.String csvEncoding) |
void |
setDictionaryFileDirectory(java.io.File dictionaryFileDirectory) |
void |
setDictionaryFileType(java.lang.String dictionaryFileType) |
void |
setJsonConverter(com.sqlapp.util.JsonConverter jsonConverter) |
void |
setTargetFile(java.io.File targetFile) |
createJsonConverter, getContext, getConvertHandler, getErr, getExceptionHandler, initialize, initializeContext, println, run, setConvertHandler, setExceptionHandlerpublic java.lang.String[] getKeywords()
protected void doRun()
doRun in class AbstractCommandprotected abstract void create(com.sqlapp.data.schemas.Catalog catalog)
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String getFullName(java.lang.Object obj,
boolean withSchemaName)
protected java.lang.String getName(java.lang.Object obj)
protected java.io.File loadProperties(MenuDefinition menuDefinition, java.lang.String type, java.util.Properties properties) throws java.lang.Exception
java.lang.Exceptionprotected void setCatalog(com.sqlapp.data.schemas.Catalog catalog)
public com.sqlapp.data.schemas.Catalog getCatalog()
public java.io.File getTargetFile()
public void setTargetFile(java.io.File targetFile)
targetFile - the targetFile to setpublic java.io.File getDictionaryFileDirectory()
public void setDictionaryFileDirectory(java.io.File dictionaryFileDirectory)
dictionaryFileDirectory - the dictionaryFileDirectory to setpublic java.lang.String getDictionaryFileType()
public void setDictionaryFileType(java.lang.String dictionaryFileType)
dictionaryFileType - the dictionaryFileType to setpublic java.lang.String getCsvEncoding()
public void setCsvEncoding(java.lang.String csvEncoding)
csvEncoding - the csvEncoding to setpublic com.sqlapp.util.JsonConverter getJsonConverter()
public void setJsonConverter(com.sqlapp.util.JsonConverter jsonConverter)
jsonConverter - the jsonConverter to setprotected java.util.Map<java.lang.String,java.lang.Integer> getKeywordsMap()