content: package org.apache.cayenne.testdo.misc_types.auto;
  
  import java.io.IOException;
  import java.io.ObjectInputStream;
  import java.io.ObjectOutputStream;
  
  import org.apache.cayenne.PersistentObject;
  import org.apache.cayenne.exp.property.BaseProperty;
  import org.apache.cayenne.exp.property.NumericIdProperty;
  import org.apache.cayenne.exp.property.PropertyFactory;
  import org.apache.cayenne.exp.property.SelfProperty;
  import org.apache.cayenne.testdo.misc_types.ArraysEntity;
  
  /**
   * Class _ArraysEntity 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 _ArraysEntity extends PersistentObject {
  
      private static final long serialVersionUID = 1L;
  
      public static final SelfProperty<ArraysEntity> SELF = PropertyFactory.createSelf(ArraysEntity.class);
  
      public static final NumericIdProperty<Integer> ID_PK_PROPERTY = PropertyFactory.createNumericId("ID", "ArraysEntity", Integer.class);
      public static final String ID_PK_COLUMN = "ID";
  
      public static final BaseProperty<byte[]> BYTE_ARRAY = PropertyFactory.createBase("byteArray", byte[].class);
      public static final BaseProperty<Byte[]> BYTE_WRAPPER_ARRAY = PropertyFactory.createBase("byteWrapperArray", Byte[].class);
      public static final BaseProperty<char[]> CHAR_ARRAY = PropertyFactory.createBase("charArray", char[].class);
      public static final BaseProperty<Character[]> CHAR_WRAPPER_ARRAY = PropertyFactory.createBase("charWrapperArray", Character[].class);
  
      protected byte[] byteArray;
      protected Byte[] byteWrapperArray;
      protected char[] charArray;
      protected Character[] charWrapperArray;
  
  
      public void setByteArray(byte[] byteArray) {
          beforePropertyWrite("byteArray", this.byteArray, byteArray);
          this.byteArray = byteArray;
      }
  
      public byte[] getByteArray() {
          beforePropertyRead("byteArray");
          return this.byteArray;
      }
  
      public void setByteWrapperArray(Byte[] byteWrapperArray) {
          beforePropertyWrite("byteWrapperArray", this.byteWrapperArray, byteWrapperArray);
          this.byteWrapperArray = byteWrapperArray;
      }
  
      public Byte[] getByteWrapperArray() {
          beforePropertyRead("byteWrapperArray");
          return this.byteWrapperArray;
      }
  
      public void setCharArray(char[] charArray) {
          beforePropertyWrite("charArray", this.charArray, charArray);
          this.charArray = charArray;
      }
  
      public char[] getCharArray() {
          beforePropertyRead("charArray");
          return this.charArray;
      }
  
      public void setCharWrapperArray(Character[] charWrapperArray) {
          beforePropertyWrite("charWrapperArray", this.charWrapperArray, charWrapperArray);
          this.charWrapperArray = charWrapperArray;
      }
  
      public Character[] getCharWrapperArray() {
          beforePropertyRead("charWrapperArray");
          return this.charWrapperArray;
      }
  
      @Override
      public Object readPropertyDirectly(String propName) {
          if(propName == null) {
              throw new IllegalArgumentException();
          }
  
          switch(propName) {
              case "byteArray":
                  return this.byteArray;
              case "byteWrapperArray":
                  return this.byteWrapperArray;
              case "charArray":
                  return this.charArray;
              case "charWrapperArray":
                  return this.charWrapperArray;
              default:
                  return super.readPropertyDirectly(propName);
          }
      }
  
      @Override
      public void writePropertyDirectly(String propName, Object val) {
          if(propName == null) {
              throw new IllegalArgumentException();
          }
  
          switch (propName) {
              case "byteArray":
                  this.byteArray = (byte[])val;
                  break;
              case "byteWrapperArray":
                  this.byteWrapperArray = (Byte[])val;
                  break;
              case "charArray":
                  this.charArray = (char[])val;
                  break;
              case "charWrapperArray":
                  this.charWrapperArray = (Character[])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.byteArray);
          out.writeObject(this.byteWrapperArray);
          out.writeObject(this.charArray);
          out.writeObject(this.charWrapperArray);
      }
  
      @Override
      protected void readState(ObjectInputStream in) throws IOException, ClassNotFoundException {
          super.readState(in);
          this.byteArray = (byte[])in.readObject();
          this.byteWrapperArray = (Byte[])in.readObject();
          this.charArray = (char[])in.readObject();
          this.charWrapperArray = (Character[])in.readObject();
      }
  
  }
  