public DatabaseObject getExample ( final Database database , final String tableName ) { final Schema schema = new Schema ( getCatalogName ( ) , getSchemaName ( ) ) ; final DatabaseObject example ; // For GeoDB, the index is another table. if ( database instanceof DerbyDatabase || database instanceof H2Database ) { final String correctedTableName = database . correctObjectName ( getHatboxTableName ( ) , Table . class ) ; example = new Table ( ) . setName ( correctedTableName ) . setSchema ( schema ) ; } else { example = getIndexExample ( database , schema , tableName ) ; } return example ; }
Creates an example of the database object for which to check .