MCPcopy Create free account
hub / github.com/boxbeam/RedLib / keyNamesMatch

Method keyNamesMatch

src/redempt/redlib/sql/SQLCache.java:63–77  ·  view source on GitHub ↗
(String[] matches)

Source from the content-addressed store, hash-verified

61 }
62
63 protected boolean keyNamesMatch(String[] matches) {
64 for (String match : matches) {
65 if (match.equals(columnName)) {
66 return true;
67 }
68 }
69 for (String key : primaryKeyNames) {
70 for (String match : matches) {
71 if (key.equals(match)) {
72 return true;
73 }
74 }
75 }
76 return false;
77 }
78
79 private void checkKeys(Object... primaryKeys) {
80 if (primaryKeys.length != primaryKeyNames.length) {

Callers 1

getMatchingCachesMethod · 0.80

Calls 1

equalsMethod · 0.45

Tested by

no test coverage detected