Package bbd.jportal2
Class JPortal
- java.lang.Object
-
- bbd.jportal2.JPortal
-
- All Implemented Interfaces:
JPortalConstants
public class JPortal extends Object implements JPortalConstants
JDBC Database Definition Compiler and Generator
-
-
Field Summary
Fields Modifier and Type Field Description protected static Constconstantprotected static Databasedatabaseprotected static Enumentryprotected static Fieldfieldprotected static Grantgrantprotected static StringinDirstatic Tokenjj_ntNext token.protected static Keykeyprotected static Stringlineprotected static Linklinkprotected static Parameterparameterprotected static Stringpermprotected static Procprocprotected static Tabletablestatic TokentokenCurrent token.static JPortalTokenManagertoken_sourceGenerated Token Manager.protected static Stringuserprotected static Valuevalueprotected static Viewview-
Fields inherited from interface bbd.jportal2.JPortalConstants
ALL, ANSICHAR, AS, ATSIGN, AUTOTIMESTAMP, BIGIDENTITY, BIGSEQUENCE, BIGXML, BLOB, BOOLEAN, BULKINSERT, BULKUPDATE, BYTE, CALC, CASCADE, CHAR, CHECK, CODE, CODELINE, CODESTATE, COLON, COMMA, COMMENT, CONST, COUNT, CURSOR, DATA, DATABASE, DATALINE, DATASTATE, DATE, DATETIME, DECLARE, DEFAULT, DEFAULTV, DELETE, DELETEALL, DELETEBY, DELETEONE, DESC, DIGIT, DOUBLE, DQUOTEDS, DYNAMIC, ENDCODE, ENDDATA, ENDIDLCODE, ENDSQLCODE, ENDSQLDATA, EOF, EQUALS, EXECUTE, EXISTS, EXTRA, FLAGS, FLOAT, FOR, FROM, GRANT, IDENTIFIER, IDENTITY, IDLCODE, IDLLINE, IDLSTATE, IMPORT, IN, INOUT, INPUT, INSERT, INT, KEY, LEFTBRACE, LEFTBRACK, LEFTPAREN, LETTER, LIDENTIFIER, LINK, LITERAL, LONG, MAXTMSTAMP, MERGE, MONEY, MULTIPLE, NAMES, NOT, NULL, NUMBER, OPTIONS, ORDER, OUTPUT, PACKAGE, PARM, PARMCACHE, PARMDELETE, PARMINSERT, PARMREADER, PARMSHOWS, PARMSUPPLIED, PARMUPDATE, PARMVIEWONLY, PASSWORD, PRIMARY, PROC, READONLY, RETURNING, RIGHTBRACE, RIGHTBRACK, RIGHTPAREN, SCHEMA, SELECT, SELECTALL, SELECTBY, SELECTONE, SELECTONEBY, SEMICOLON, SEQUENCE, SERVER, SHORT, SINGLE, SPROC, SQL, SQLCODE, SQLDATA, SQUOTEDS, STANDARD, STRING, TABLE, TIME, TIMESTAMP, TLOB, TO, tokenImage, UID, UNIQUE, UPDATE, UPDATEBY, UPDATEFOR, USERID, USERSTAMP, UTF8, VIEW, WANSICHAR, WCHAR, WHERE, XML
-
-
Constructor Summary
Constructors Constructor Description JPortal(JPortalTokenManager tm)Constructor with generated Token Manager.JPortal(InputStream stream)Constructor with InputStream.JPortal(InputStream stream, String encoding)Constructor with InputStream and supplied encodingJPortal(Reader stream)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voiddisable_tracing()Disable tracing.static voidenable_tracing()Enable tracing.static ParseExceptiongenerateParseException()Generate ParseException.static TokengetNextToken()Get the next Token.static TokengetToken(int index)Get the specific Token.static StringjAlias()static intjAsciiChar()static voidjCharList()static voidjCharsize()static voidjColumn()static StringjComment()static voidjConnect()static voidjConst()static voidjDatatype()static voidjEnumChar()static voidjEnumValue()static voidjExtras()static voidjField()static voidjFloatsize()static voidjGrant()static StringjIdent()static StringjIdentOrString()static voidjIdlCode()static voidjInput()static voidjInputType()static voidjKey()static voidjLine()static voidjLink()static voidjLinkColumn()static voidjLookup()static voidjModifier()static voidjNewCode()static voidjNewData()static voidjNewProc()static voidjNewViewCode()static intjNumber()static voidjOldCode()static voidjOldData()static voidjOldViewCode()static IntegerjOptSize()static voidjOrderColumn()static voidjOutputType()static voidjPackageField()static StringjPackageIdent()static voidjParm()static voidjPermission()static voidjProc()static voidjProcColumn()static voidjProcUpdateByColumn()static voidjRowCount()static voidjStdProc()static StringjString()static voidjTable()static voidjTableImport()static voidjTables()static voidjUser()static voidjUserProc()static voidjView()static voidjViewAlias()static DatabaseloadBinFile(String inFile)static voidmain(String[] args)Reads input from standard inputvoidReInit(JPortalTokenManager tm)Reinitialise.static voidReInit(InputStream stream)Reinitialise.static voidReInit(InputStream stream, String encoding)Reinitialise.static voidReInit(Reader stream)Reinitialise.static Databaserun(String inFile)Reads input from supplied filestatic Databaserun(String inFile, Reader reader)static Databaserun(String inFile, String inNub)static Databaserun(String inFile, String inNub, Reader reader)static voidsetFieldsNullState(boolean state)How to create tables null field statestatic booleantrace_enabled()Trace enabled.
-
-
-
Field Detail
-
database
protected static Database database
-
table
protected static Table table
-
entry
protected static Enum entry
-
field
protected static Field field
-
constant
protected static Const constant
-
value
protected static Value value
-
grant
protected static Grant grant
-
key
protected static Key key
-
link
protected static Link link
-
view
protected static View view
-
proc
protected static Proc proc
-
parameter
protected static Parameter parameter
-
perm
protected static String perm
-
user
protected static String user
-
line
protected static String line
-
inDir
protected static String inDir
-
token_source
public static JPortalTokenManager token_source
Generated Token Manager.
-
token
public static Token token
Current token.
-
jj_nt
public static Token jj_nt
Next token.
-
-
Constructor Detail
-
JPortal
public JPortal(InputStream stream)
Constructor with InputStream.
-
JPortal
public JPortal(InputStream stream, String encoding)
Constructor with InputStream and supplied encoding
-
JPortal
public JPortal(Reader stream)
Constructor.
-
JPortal
public JPortal(JPortalTokenManager tm)
Constructor with generated Token Manager.
-
-
Method Detail
-
main
public static void main(String[] args)
Reads input from standard input
-
run
public static Database run(String inFile)
Reads input from supplied file- Parameters:
inFile- is the input file to parse- Returns:
- Table from jbdcdef package
-
setFieldsNullState
public static void setFieldsNullState(boolean state)
How to create tables null field state
-
jInput
public static final void jInput() throws ParseException- Throws:
ParseException
-
jConnect
public static final void jConnect() throws ParseException- Throws:
ParseException
-
jPackageIdent
public static final String jPackageIdent() throws ParseException
- Throws:
ParseException
-
jIdentOrString
public static final String jIdentOrString() throws ParseException
- Throws:
ParseException
-
jIdent
public static final String jIdent() throws ParseException
- Throws:
ParseException
-
jTables
public static final void jTables() throws ParseException- Throws:
ParseException
-
jTableImport
public static final void jTableImport() throws ParseException- Throws:
ParseException
-
jTable
public static final void jTable() throws ParseException- Throws:
ParseException
-
jPackageField
public static final void jPackageField() throws ParseException- Throws:
ParseException
-
jField
public static final void jField() throws ParseException- Throws:
ParseException
-
jAlias
public static final String jAlias() throws ParseException
- Throws:
ParseException
-
jDatatype
public static final void jDatatype() throws ParseException- Throws:
ParseException
-
jLookup
public static final void jLookup() throws ParseException- Throws:
ParseException
-
jEnumValue
public static final void jEnumValue() throws ParseException- Throws:
ParseException
-
jFloatsize
public static final void jFloatsize() throws ParseException- Throws:
ParseException
-
jEnumChar
public static final void jEnumChar() throws ParseException- Throws:
ParseException
-
jCharsize
public static final void jCharsize() throws ParseException- Throws:
ParseException
-
jCharList
public static final void jCharList() throws ParseException- Throws:
ParseException
-
jNumber
public static final int jNumber() throws ParseException- Throws:
ParseException
-
jParm
public static final void jParm() throws ParseException- Throws:
ParseException
-
jExtras
public static final void jExtras() throws ParseException- Throws:
ParseException
-
jConst
public static final void jConst() throws ParseException- Throws:
ParseException
-
jGrant
public static final void jGrant() throws ParseException- Throws:
ParseException
-
jPermission
public static final void jPermission() throws ParseException- Throws:
ParseException
-
jUser
public static final void jUser() throws ParseException- Throws:
ParseException
-
jKey
public static final void jKey() throws ParseException- Throws:
ParseException
-
jModifier
public static final void jModifier() throws ParseException- Throws:
ParseException
-
jColumn
public static final void jColumn() throws ParseException- Throws:
ParseException
-
jLink
public static final void jLink() throws ParseException- Throws:
ParseException
-
jLinkColumn
public static final void jLinkColumn() throws ParseException- Throws:
ParseException
-
jView
public static final void jView() throws ParseException- Throws:
ParseException
-
jNewViewCode
public static final void jNewViewCode() throws ParseException- Throws:
ParseException
-
jOldViewCode
public static final void jOldViewCode() throws ParseException- Throws:
ParseException
-
jViewAlias
public static final void jViewAlias() throws ParseException- Throws:
ParseException
-
jLine
public static final void jLine() throws ParseException- Throws:
ParseException
-
jString
public static final String jString() throws ParseException
- Throws:
ParseException
-
jAsciiChar
public static final int jAsciiChar() throws ParseException- Throws:
ParseException
-
jProc
public static final void jProc() throws ParseException- Throws:
ParseException
-
jStdProc
public static final void jStdProc() throws ParseException- Throws:
ParseException
-
jNewProc
public static final void jNewProc() throws ParseException- Throws:
ParseException
-
jProcColumn
public static final void jProcColumn() throws ParseException- Throws:
ParseException
-
jOrderColumn
public static final void jOrderColumn() throws ParseException- Throws:
ParseException
-
jProcUpdateByColumn
public static final void jProcUpdateByColumn() throws ParseException- Throws:
ParseException
-
jComment
public static final String jComment() throws ParseException
- Throws:
ParseException
-
jRowCount
public static final void jRowCount() throws ParseException- Throws:
ParseException
-
jUserProc
public static final void jUserProc() throws ParseException- Throws:
ParseException
-
jOldCode
public static final void jOldCode() throws ParseException- Throws:
ParseException
-
jNewCode
public static final void jNewCode() throws ParseException- Throws:
ParseException
-
jOptSize
public static final Integer jOptSize() throws ParseException
- Throws:
ParseException
-
jInputType
public static final void jInputType() throws ParseException- Throws:
ParseException
-
jOutputType
public static final void jOutputType() throws ParseException- Throws:
ParseException
-
jOldData
public static final void jOldData() throws ParseException- Throws:
ParseException
-
jNewData
public static final void jNewData() throws ParseException- Throws:
ParseException
-
jIdlCode
public static final void jIdlCode() throws ParseException- Throws:
ParseException
-
ReInit
public static void ReInit(InputStream stream)
Reinitialise.
-
ReInit
public static void ReInit(InputStream stream, String encoding)
Reinitialise.
-
ReInit
public static void ReInit(Reader stream)
Reinitialise.
-
ReInit
public void ReInit(JPortalTokenManager tm)
Reinitialise.
-
getNextToken
public static final Token getNextToken()
Get the next Token.
-
getToken
public static final Token getToken(int index)
Get the specific Token.
-
generateParseException
public static ParseException generateParseException()
Generate ParseException.
-
trace_enabled
public static final boolean trace_enabled()
Trace enabled.
-
enable_tracing
public static final void enable_tracing()
Enable tracing.
-
disable_tracing
public static final void disable_tracing()
Disable tracing.
-
-