@@ -0,0 +1,1587 @@
+package edu.wright.hendrix11.familyTree.database.table;%0A%0Apublic class Detach%0A%7B%0A  public void detachFather(Person child)%0A  %7B%0A  %0A  %7D%0A  %0A  public void detachMother(Person child)%0A  %7B%0A  %0A  %7D%0A  %0A  public void detachSpouse(Person person, Person spouse)%0A  %7B%0A  %0A  %7D%0A  %0A  public void detachChild(Person person, Person child)%0A  %7B%0A  %0A  %7D%0A  %0A  private class DetachFather extends DetachParent%0A  %7B%0A    public DetachFather%0A    %7B%0A      super(%22FATHER%22);%0A    %7D%0A  %7D%0A  %0A  private class DetachMother extends DetachParent%0A  %7B%0A    public DetachMother%0A    %7B%0A      super(%22MOTHER%22);%0A    %7D%0A  %7D%0A  %0A  private abstract class DetachParent extends DatabaseQuery implements DeleteData%3CPerson%3E%0A  %7B%0A    public DetachFather(String parentType)%0A    %7B%0A        super(parentType + %22_OF%22, DetachEntity.class);%0A%0A        ColumnMethodMap columnMethodMap = this.getColumnMethodMap();%0A        %0A        columnMethodMap.putGetter(parentType + %22_ID%22,%22getParentId%22);%0A%0A        columnMethodMap.setPrimaryKey(%22CHILD_ID%22);%0A    %7D%0A  %0A    public boolean delete(Person p)%0A    %7B%0A      if(p != null && p.getId() != null)%0A      %7B%0A        String query = %22DELETE FROM %22 + tableName + %22 WHERE CHILD_ID=%22 + p.getId();%0A%0A        try%0A        %7B%0A          executeUpdate(query);%0A          return true;%0A        %7D%0A        catch(Exception e)%0A        %7B%0A          e.printStackTrace();%0A        %7D%0A      %7D%0A      %0A      return false;%0A    %7D%0A  %0A  private class DetachEntity%0A  %7B%0A    private int parentId;%0A    private int childId;%0A    %0A    public int getParentId()%0A    %7B%0A      return parentId;%0A    %7D%0A    %0A    public int getChildId()%0A    %7B%0A      return childId;%0A    %7D%0A  %7D%0A%7D%0A

Create Detach.java