Coverage Report - liquibase.statement.core.SelectFromDatabaseChangeLogStatement
 
Classes in this File Line Coverage Branch Coverage Complexity
SelectFromDatabaseChangeLogStatement
63%
7/11
N/A
1
SelectFromDatabaseChangeLogStatement$ByNotNullCheckSum
0%
0/1
N/A
1
SelectFromDatabaseChangeLogStatement$ByTag
0%
0/4
N/A
1
SelectFromDatabaseChangeLogStatement$WhereClause
N/A
N/A
1
 
 1  
 package liquibase.statement.core;
 2  
 
 3  
 import liquibase.statement.AbstractSqlStatement;
 4  
 
 5  
 public class SelectFromDatabaseChangeLogStatement extends AbstractSqlStatement {
 6  
 
 7  
     private String[] columnsToSelect;
 8  
     private WhereClause whereClause;
 9  
     private String[] orderByColumns;
 10  
 
 11  
     public SelectFromDatabaseChangeLogStatement(String... columnsToSelect) {
 12  31
         this(null, columnsToSelect);
 13  31
     }
 14  
 
 15  31
     public SelectFromDatabaseChangeLogStatement(WhereClause whereClause, String... columnsToSelect) {
 16  31
         this.columnsToSelect = columnsToSelect;
 17  31
         this.whereClause = whereClause;
 18  31
     }
 19  
 
 20  
     public String[] getColumnsToSelect() {
 21  15
         return columnsToSelect;
 22  
     }
 23  
 
 24  
     public WhereClause getWhereClause() {
 25  0
         return whereClause;
 26  
     }
 27  
 
 28  
     public String[] getOrderByColumns() {
 29  0
         return orderByColumns;
 30  
     }
 31  
 
 32  
     public SelectFromDatabaseChangeLogStatement setOrderBy(String... columns) {
 33  0
         this.orderByColumns = columns;
 34  
 
 35  0
         return this;
 36  
     }
 37  
 
 38  
     public static interface WhereClause {
 39  
 
 40  
     }
 41  
 
 42  0
     public static class ByNotNullCheckSum implements WhereClause {
 43  
 
 44  
     }
 45  
 
 46  
     public static class ByTag implements WhereClause {
 47  
 
 48  
         private String tagName;
 49  
 
 50  0
         public ByTag(String tagName) {
 51  0
             this.tagName = tagName;
 52  0
         }
 53  
 
 54  
         public String getTagName() {
 55  0
             return tagName;
 56  
         }
 57  
     }
 58  
 
 59  
 }