Package bbd.jportal2

Class Table

  • All Implemented Interfaces:
    Serializable

    public class Table
    extends Object
    implements Serializable
    Table identified by name holds fields, keys, links, grants, views and procedures associated with the table.
    See Also:
    Serialized Form
    • Field Detail

      • literalName

        public String literalName
      • hasPrimaryKey

        public boolean hasPrimaryKey
      • hasSequence

        public boolean hasSequence
      • hasTimeStamp

        public boolean hasTimeStamp
      • hasAutoTimeStamp

        public boolean hasAutoTimeStamp
      • hasUserStamp

        public boolean hasUserStamp
      • hasExecute

        public boolean hasExecute
      • hasSelect

        public boolean hasSelect
      • hasInsert

        public boolean hasInsert
      • hasDelete

        public boolean hasDelete
      • hasUpdate

        public boolean hasUpdate
      • hasStdProcs

        public boolean hasStdProcs
      • hasIdentity

        public boolean hasIdentity
      • hasSequenceReturning

        public boolean hasSequenceReturning
      • hasBigXML

        public boolean hasBigXML
      • hasBigJSON

        public boolean hasBigJSON
      • isStoredProc

        public boolean isStoredProc
      • isLiteral

        public boolean isLiteral
      • start

        public int start
    • Constructor Detail

      • Table

        public Table()
    • Method Detail

      • getDatabase

        public Database getDatabase()
      • getLiteralName

        public String getLiteralName()
      • getName

        public String getName()
      • getAlias

        public String getAlias()
      • getCheck

        public String getCheck()
      • getLinkForField

        public Link getLinkForField​(Field field)
      • getFieldForLink

        public Field getFieldForLink​(Link link)
      • isHasPrimaryKey

        public boolean isHasPrimaryKey()
      • isHasSequence

        public boolean isHasSequence()
      • isHasTimeStamp

        public boolean isHasTimeStamp()
      • isHasAutoTimeStamp

        public boolean isHasAutoTimeStamp()
      • isHasUserStamp

        public boolean isHasUserStamp()
      • isHasExecute

        public boolean isHasExecute()
      • isHasSelect

        public boolean isHasSelect()
      • isHasInsert

        public boolean isHasInsert()
      • isHasDelete

        public boolean isHasDelete()
      • isHasUpdate

        public boolean isHasUpdate()
      • isHasStdProcs

        public boolean isHasStdProcs()
      • isHasIdentity

        public boolean isHasIdentity()
      • isHasSequenceReturning

        public boolean isHasSequenceReturning()
      • hasBigXML

        public boolean hasBigXML()
      • hasBigJSON

        public boolean hasBigJSON()
      • isStoredProc

        public boolean isStoredProc()
      • isLiteral

        public boolean isLiteral()
      • useLiteral

        public String useLiteral()
        If there is an literal uses that else returns name
      • useName

        public String useName()
        If there is an alias uses that else returns name
      • hasField

        public boolean hasField​(String s)
        Checks for the existence of a field
      • getFieldIndex

        public int getFieldIndex​(String s)
      • hasFieldAsNull

        public boolean hasFieldAsNull​(String s)
        Checks if table field is declared as null
      • hasProc

        public boolean hasProc​(Proc p)
        Checks for the existence of a proc
      • getProc

        public Proc getProc​(String name)
        Returns proc or null
      • hasCursorStdProc

        public boolean hasCursorStdProc()
        Checks for the existence of a proc
      • setPrimary

        public void setPrimary​(String s)
        Sets a field to be primary key
      • tableName

        public String tableName()
      • buildMerge

        public void buildMerge​(Proc proc)
        Builds a merge proc generated as part of standard record class
      • buildInsert

        public void buildInsert​(Proc proc)
        Builds an insert proc generated as part of standard record class
      • buildBulkInsert

        public void buildBulkInsert​(Proc proc)
        Builds an insert proc generated as part of standard record class
      • buildIdentity

        public void buildIdentity​(Proc proc)
        Builds an identity proc generated as part of standard record class
      • buildUpdate

        public void buildUpdate​(Proc proc)
        Builds an update proc generated as part of standard record class
      • buildUpdateFor

        public void buildUpdateFor​(Proc proc)
        Builds an update proc generated as part of standard record class
      • buildUpdateBy

        public void buildUpdateBy​(Proc proc)
        Builds an updateby proc generated as part of standard record class
      • buildBulkUpdate

        public void buildBulkUpdate​(Proc proc)
        Builds an update proc generated as part of standard record class
      • buildDeleteOne

        public void buildDeleteOne​(Proc proc)
        Builds a delete by primary key proc
      • buildDeleteAll

        public void buildDeleteAll​(Proc proc)
        Builds a delete all rows proc
      • buildCount

        public void buildCount​(Proc proc)
        Builds a count rows proc
      • buildExists

        public void buildExists​(Proc proc)
        Builds a check for primary key existance proc
      • buildSelectOne

        public void buildSelectOne​(Proc proc,
                                   boolean update,
                                   boolean readonly)
        Builds a select on primary key proc
      • buildMaxTmStamp

        public void buildMaxTmStamp​(Proc proc)
        Builds a select on primary key proc
      • buildSelectAll

        public void buildSelectAll​(Proc proc,
                                   boolean update,
                                   boolean readonly,
                                   boolean inOrder,
                                   boolean descending)
        Builds a select all rows proc
      • buildDeleteBy

        public void buildDeleteBy​(Proc proc)
      • buildSelectBy

        public void buildSelectBy​(Proc proc,
                                  boolean forUpdate,
                                  boolean forReadOnly,
                                  boolean inOrder,
                                  boolean descending)
      • buildSelectFrom

        public void buildSelectFrom​(Proc proc,
                                    Table table)
      • hasOption

        public boolean hasOption​(String value)