Class DataManager

java.lang.Object
de.calamanari.pk.identityfield.DataManager

public class DataManager
extends java.lang.Object
Data Manager - supplementary class in IDENTITY FIELD pattern
Author:
Karl Eilebrecht
  • Constructor Summary

    Constructors
    Constructor Description
    DataManager()  
  • Method Summary

    Modifier and Type Method Description
    void addEntityRow​(java.lang.String pkField1, java.lang.String pkField2, java.lang.String x, java.lang.String y)
    Adds entity row for testing
    Entity findEntityByXY​(java.lang.String x, java.lang.String y)
    Finder method to retrieve entity from DB

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • addEntityRow

      public void addEntityRow​(java.lang.String pkField1, java.lang.String pkField2, java.lang.String x, java.lang.String y)
      Adds entity row for testing
      Parameters:
      pkField1 - first primary key field
      pkField2 - second primary key field
      x - some entity field
      y - some entity field
    • findEntityByXY

      public Entity findEntityByXY​(java.lang.String x, java.lang.String y)
      Finder method to retrieve entity from DB
      Parameters:
      x - some value
      y - some value
      Returns:
      entity or null if not found