content: package org.apache.cayenne.commitlog.db.auto;
  
  import java.io.IOException;
  import java.io.ObjectInputStream;
  import java.io.ObjectOutputStream;
  import java.util.List;
  
  import org.apache.cayenne.PersistentObject;
  import org.apache.cayenne.commitlog.db.E3;
  import org.apache.cayenne.commitlog.db.E4;
  import org.apache.cayenne.exp.property.ListProperty;
  import org.apache.cayenne.exp.property.PropertyFactory;
  import org.apache.cayenne.exp.property.SelfProperty;
  
  /**
   * Class _E4 was generated by Cayenne.
   * It is probably a good idea to avoid changing this class manually,
   * since it may be overwritten next time code is regenerated.
   * If you need to make any customizations, please use subclass.
   */
  public abstract class _E4 extends PersistentObject {
  
      private static final long serialVersionUID = 1L;
  
      public static final SelfProperty<E4> SELF = PropertyFactory.createSelf(E4.class);
  
      public static final String ID_PK_COLUMN = "ID";
  
      public static final ListProperty<E3> E3S = PropertyFactory.createList("e3s", E3.class);
  
  
      protected Object e3s;
  
      public void addToE3s(E3 obj) {
          addToManyTarget("e3s", obj, true);
      }
  
      public void removeFromE3s(E3 obj) {
          removeToManyTarget("e3s", obj, true);
      }
  
      @SuppressWarnings("unchecked")
      public List<E3> getE3s() {
          return (List<E3>)readProperty("e3s");
      }
  
      @Override
      public Object readPropertyDirectly(String propName) {
          if(propName == null) {
              throw new IllegalArgumentException();
          }
  
          switch(propName) {
              case "e3s":
                  return this.e3s;
              default:
                  return super.readPropertyDirectly(propName);
          }
      }
  
      @Override
      public void writePropertyDirectly(String propName, Object val) {
          if(propName == null) {
              throw new IllegalArgumentException();
          }
  
          switch (propName) {
              case "e3s":
                  this.e3s = val;
                  break;
              default:
                  super.writePropertyDirectly(propName, val);
          }
      }
  
      private void writeObject(ObjectOutputStream out) throws IOException {
          writeSerialized(out);
      }
  
      private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
          readSerialized(in);
      }
  
      @Override
      protected void writeState(ObjectOutputStream out) throws IOException {
          super.writeState(out);
          out.writeObject(this.e3s);
      }
  
      @Override
      protected void readState(ObjectInputStream in) throws IOException, ClassNotFoundException {
          super.readState(in);
          this.e3s = in.readObject();
      }
  
  }
  