|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.melati.poem.prepro.DSD
public class DSD
The 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
.
Constructor Summary | |
---|---|
DSD(String file)
Constructor. |
|
DSD(String file,
TableNamingStore names,
boolean includePoem)
Constructor. |
Method Summary | |
---|---|
String |
getProjectName()
|
String |
getProjectTableClassName()
|
static void |
main(String[] args)
Run me. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 open
ResourceNotFoundException
- if a DSD file cannot be found
ParsingDSDException
- if an unexpected token is encountered
IllegalityException
- if a semantic incoherence is detected
IOException
- 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 tables
ResourceNotFoundException
- if a DSD file cannot be found
ParsingDSDException
- if an unexpected token is encountered
IllegalityException
- if a semantic incoherence is detected
IOException
- if a problem with the file system is encounteredMethod Detail |
---|
public static void main(String[] args) throws Exception
args
- the arument array
Exception
- if an exception occurspublic String getProjectTableClassName()
public String getProjectName()
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |