scone.netobjects
Class Schema

java.lang.Object
  extended by scone.netobjects.Schema

public class Schema
extends java.lang.Object

represents the table definitions of the database restrictions for the sql definition file:

Author:
Volkert Buchmann

Field Summary
static int BLOB
           
static int FIELD
           
static java.lang.String fileName
           
static int GENERATED
           
static int KEY
           
static int NUMBER
           
static int STRING
           
 
Constructor Summary
Schema()
           
 
Method Summary
static int convertType(java.lang.String type)
          converts the sql column type into a netobject field type exists the application if an unknown column type is found.
 int count(java.lang.String line, java.lang.String subject)
          returns the count of subject in line count("abcbcde","c")==2
static void initialize(DBTableAdapter adapter)
          initializes a DBTableAdapter fills the internal definition tables of the adapter with the values read from the sql definition
static void main(java.lang.String[] args)
           
 void parseSqlSource()
          parses the sql file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileName

public static final java.lang.String fileName
See Also:
Constant Field Values

STRING

public static final int STRING
See Also:
Constant Field Values

NUMBER

public static final int NUMBER
See Also:
Constant Field Values

BLOB

public static final int BLOB
See Also:
Constant Field Values

GENERATED

public static final int GENERATED
See Also:
Constant Field Values

KEY

public static final int KEY
See Also:
Constant Field Values

FIELD

public static final int FIELD
See Also:
Constant Field Values
Constructor Detail

Schema

public Schema()
Method Detail

initialize

public static void initialize(DBTableAdapter adapter)
initializes a DBTableAdapter fills the internal definition tables of the adapter with the values read from the sql definition


main

public static void main(java.lang.String[] args)

convertType

public static int convertType(java.lang.String type)
converts the sql column type into a netobject field type exists the application if an unknown column type is found.


count

public int count(java.lang.String line,
                 java.lang.String subject)
returns the count of subject in line count("abcbcde","c")==2


parseSqlSource

public void parseSqlSource()
parses the sql file