| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| Schema |
|
| 2.8;2.8 |
| 1 | package liquibase.database.structure; | |
| 2 | ||
| 3 | public class Schema implements DatabaseObject { | |
| 4 | private String name; | |
| 5 | ||
| 6 | public DatabaseObject[] getContainingObjects() { | |
| 7 | 0 | return null; |
| 8 | } | |
| 9 | ||
| 10 | 0 | public Schema(String name) { |
| 11 | 0 | this.name = name; |
| 12 | 0 | } |
| 13 | ||
| 14 | public String getName() { | |
| 15 | 0 | return name; |
| 16 | } | |
| 17 | ||
| 18 | @Override | |
| 19 | public boolean equals(Object o) { | |
| 20 | 0 | if (this == o) |
| 21 | 0 | return true; |
| 22 | 0 | if (o == null || getClass() != o.getClass()) |
| 23 | 0 | return false; |
| 24 | ||
| 25 | 0 | Schema schema = (Schema) o; |
| 26 | ||
| 27 | 0 | if (name != null ? !name.equals(schema.name) : schema.name != null) |
| 28 | 0 | return false; |
| 29 | ||
| 30 | 0 | return true; |
| 31 | } | |
| 32 | ||
| 33 | @Override | |
| 34 | public int hashCode() { | |
| 35 | 0 | return name != null ? name.hashCode() : 0; |
| 36 | } | |
| 37 | } |