Package sc.db

Class TableDescriptor

  • public class TableDescriptor
    extends java.lang.Object
    Used to represent a table storing properties for items in a DBTypeDescriptor. This one class is used for primary, auxiliary, and multi valued tables. This same class is used to define tables during code-processing, as well as to represent the table info during runtime.
    • Field Detail

      • tableName

        public java.lang.String tableName
      • insertWithNullValues

        public boolean insertWithNullValues
        Controls whether a row is inserted when all property values stored in this table are null - true for primary tables always
      • multiRow

        public boolean multiRow
        When false, there's one row per exposed value - it's not a multiTable
      • primary

        public boolean primary
      • reference

        public boolean reference
        Set to true for descriptors that refer to tables defined elsewhere - so no schema is generated
      • hasDynColumns

        public boolean hasDynColumns
      • reverseProperty

        public DBPropertyDescriptor reverseProperty
        Set for the 'many' side of a 1-many case where the id column here is used for the 'value' of the reverse property, so there is no reverse property descriptor in the columns list. We still need to look up this property descriptor from the reverse side.
    • Constructor Detail

      • TableDescriptor

        public TableDescriptor​(java.lang.String tableName)
    • Method Detail

      • getPropertyDescriptor

        public DBPropertyDescriptor getPropertyDescriptor​(java.lang.String propName)
      • getPropertyForColumn

        public DBPropertyDescriptor getPropertyForColumn​(java.lang.String colName)
      • getJavaName

        public java.lang.String getJavaName()
      • getDataSourceName

        public java.lang.String getDataSourceName()
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • initIdColumns

        public void initIdColumns()
      • isReadOnly

        public boolean isReadOnly()