content: package org.apache.cayenne.crypto.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.crypto.db.Table1;
  import org.apache.cayenne.crypto.db.Table7;
  import org.apache.cayenne.exp.property.ListProperty;
  import org.apache.cayenne.exp.property.NumericIdProperty;
  import org.apache.cayenne.exp.property.NumericProperty;
  import org.apache.cayenne.exp.property.PropertyFactory;
  import org.apache.cayenne.exp.property.SelfProperty;
  import org.apache.cayenne.exp.property.StringProperty;
  
  /**
   * Class _Table1 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 _Table1 extends PersistentObject {
  
      private static final long serialVersionUID = 1L;
  
      public static final SelfProperty<Table1> SELF = PropertyFactory.createSelf(Table1.class);
  
      public static final NumericIdProperty<Integer> ID_PK_PROPERTY = PropertyFactory.createNumericId("ID", "Table1", Integer.class);
      public static final String ID_PK_COLUMN = "ID";
  
      public static final NumericProperty<Integer> CRYPTO_INT = PropertyFactory.createNumeric("cryptoInt", Integer.class);
      public static final StringProperty<String> CRYPTO_STRING = PropertyFactory.createString("cryptoString", String.class);
      public static final NumericProperty<Integer> PLAIN_INT = PropertyFactory.createNumeric("plainInt", Integer.class);
      public static final StringProperty<String> PLAIN_STRING = PropertyFactory.createString("plainString", String.class);
      public static final ListProperty<Table7> TABLE7S = PropertyFactory.createList("table7s", Table7.class);
  
      protected Integer cryptoInt;
      protected String cryptoString;
      protected Integer plainInt;
      protected String plainString;
  
      protected Object table7s;
  
      public void setCryptoInt(int cryptoInt) {
          beforePropertyWrite("cryptoInt", this.cryptoInt, cryptoInt);
          this.cryptoInt = cryptoInt;
      }
  
      public int getCryptoInt() {
          beforePropertyRead("cryptoInt");
          if(this.cryptoInt == null) {
              return 0;
          }
          return this.cryptoInt;
      }
  
      public void setCryptoString(String cryptoString) {
          beforePropertyWrite("cryptoString", this.cryptoString, cryptoString);
          this.cryptoString = cryptoString;
      }
  
      public String getCryptoString() {
          beforePropertyRead("cryptoString");
          return this.cryptoString;
      }
  
      public void setPlainInt(int plainInt) {
          beforePropertyWrite("plainInt", this.plainInt, plainInt);
          this.plainInt = plainInt;
      }
  
      public int getPlainInt() {
          beforePropertyRead("plainInt");
          if(this.plainInt == null) {
              return 0;
          }
          return this.plainInt;
      }
  
      public void setPlainString(String plainString) {
          beforePropertyWrite("plainString", this.plainString, plainString);
          this.plainString = plainString;
      }
  
      public String getPlainString() {
          beforePropertyRead("plainString");
          return this.plainString;
      }
  
      public void addToTable7s(Table7 obj) {
          addToManyTarget("table7s", obj, true);
      }
  
      public void removeFromTable7s(Table7 obj) {
          removeToManyTarget("table7s", obj, true);
      }
  
      @SuppressWarnings("unchecked")
      public List<Table7> getTable7s() {
          return (List<Table7>)readProperty("table7s");
      }
  
      @Override
      public Object readPropertyDirectly(String propName) {
          if(propName == null) {
              throw new IllegalArgumentException();
          }
  
          switch(propName) {
              case "cryptoInt":
                  return this.cryptoInt;
              case "cryptoString":
                  return this.cryptoString;
              case "plainInt":
                  return this.plainInt;
              case "plainString":
                  return this.plainString;
              case "table7s":
                  return this.table7s;
              default:
                  return super.readPropertyDirectly(propName);
          }
      }
  
      @Override
      public void writePropertyDirectly(String propName, Object val) {
          if(propName == null) {
              throw new IllegalArgumentException();
          }
  
          switch (propName) {
              case "cryptoInt":
                  this.cryptoInt = (Integer)val;
                  break;
              case "cryptoString":
                  this.cryptoString = (String)val;
                  break;
              case "plainInt":
                  this.plainInt = (Integer)val;
                  break;
              case "plainString":
                  this.plainString = (String)val;
                  break;
              case "table7s":
                  this.table7s = 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.cryptoInt);
          out.writeObject(this.cryptoString);
          out.writeObject(this.plainInt);
          out.writeObject(this.plainString);
          out.writeObject(this.table7s);
      }
  
      @Override
      protected void readState(ObjectInputStream in) throws IOException, ClassNotFoundException {
          super.readState(in);
          this.cryptoInt = (Integer)in.readObject();
          this.cryptoString = (String)in.readObject();
          this.plainInt = (Integer)in.readObject();
          this.plainString = (String)in.readObject();
          this.table7s = in.readObject();
      }
  
  }
  