public class DSD extends Object
DSD class is an application which parses a DSD
(Data Structure Definition) file and outputs Java code, creating
a POEM view of a database.
The generated files are placed in the current directory, which is
assumed to be similar to org/paneris/myapp/model/ and
also in a new directory below it called generated.
If a file with the same name as a file that is about to be generated already exists,
then the file is checked for the presence of a magic string. If the string is present
then the file is replaced.
| Modifier and Type | Field and Description |
|---|---|
boolean |
hasAnExtenedTable |
| Constructor and Description |
|---|
DSD(String file)
Constructor.
|
DSD(String file,
TableNamingStore names,
boolean includePoem)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getProjectName() |
String |
getProjectTableClassName() |
static void |
main(String[] args)
Run me.
|
public DSD(String file) throws IOException, org.melati.poem.prepro.ParsingDSDException, org.melati.poem.prepro.IllegalityException, org.melati.poem.prepro.ResourceNotFoundException
file - the name of the DSD file to openResourceNotFoundException - if a DSD file cannot be foundParsingDSDException - if an unexpected token is encounteredIllegalityException - if a semantic incoherence is detectedIOException - if a problem with the file system is encounteredpublic DSD(String file, TableNamingStore names, boolean includePoem) throws org.melati.poem.prepro.ResourceNotFoundException, org.melati.poem.prepro.ParsingDSDException, org.melati.poem.prepro.IllegalityException, IOException
file - the name of the DSD file to opennames - a TableNamingStore containing names encountered so farincludePoem - whether to include the Poem tablesResourceNotFoundException - if a DSD file cannot be foundParsingDSDException - if an unexpected token is encounteredIllegalityException - if a semantic incoherence is detectedIOException - if a problem with the file system is encounteredpublic static void main(String[] args) throws Exception
args - the arument arrayException - if an exception occurspublic String getProjectTableClassName()
public String getProjectName()
Copyright © 2000–2015 PanEris. All rights reserved.