public BaseTable getTable ( ) { BaseTable table = ( BaseTable ) super . getTable ( ) ; if ( table == null ) // It's possible that m_table was set in an overriding init method. { DatabaseOwner databaseOwner = null ; if ( this . getRecordOwner ( ) != null ) databaseOwner = this . getRecordOwner ( ) . getDatabaseOwner ( ) ; if ( databaseOwner != null ) { BaseDatabase database = ( BaseDatabase ) databaseOwner . getDatabase ( this . getDatabaseName ( ) , this . getDatabaseType ( ) , null ) ; m_table = database . makeTable ( this ) ; } } return ( BaseTable ) super . getTable ( ) ; }
Get the table for this record . This is the same as getFieldTable but casts the class up .