예제 #1
0
            public void FromData(IPdxReader reader)
            {
                m_id = reader.ReadInt("id");

                bool isIdentity = reader.IsIdentityField("id");

                if (isIdentity == false)
                {
                    throw new IllegalStateException("Pdx1 id is identity field");
                }

                bool isId = reader.HasField("id");

                if (isId == false)
                {
                    throw new IllegalStateException("Pdx1 id field not found");
                }

                bool isNotId = reader.HasField("ID");

                if (isNotId == true)
                {
                    throw new IllegalStateException("Pdx1 isNotId field found");
                }

                m_pkid          = reader.ReadString("pkid");
                m_type          = reader.ReadString("type");
                m_status        = reader.ReadString("status");
                m_names         = reader.ReadStringArray("names");
                m_newVal        = reader.ReadByteArray("newVal");
                m_creationDate  = reader.ReadDate("creationDate");
                m_arrayNull     = reader.ReadByteArray("arrayNull");
                m_arrayZeroSize = reader.ReadByteArray("arrayZeroSize");
            }
예제 #2
0
            public void FromData(IPdxReader reader)
            {
                _mId = reader.ReadInt("id");

                var isIdentity = reader.IsIdentityField("id");

                if (isIdentity == false)
                {
                    throw new IllegalStateException("Pdx1 id is identity field");
                }

                var isId = reader.HasField("id");

                if (isId == false)
                {
                    throw new IllegalStateException("Pdx1 id field not found");
                }

                var isNotId = reader.HasField("ID");

                if (isNotId)
                {
                    throw new IllegalStateException("Pdx1 isNotId field found");
                }

                _mPkid          = reader.ReadString("pkid");
                _mType          = reader.ReadString("type");
                _mStatus        = reader.ReadString("status");
                _mNames         = reader.ReadStringArray("names");
                _mNewVal        = reader.ReadByteArray("newVal");
                _mCreationDate  = reader.ReadDate("creationDate");
                _mArrayNull     = reader.ReadByteArray("arrayNull");
                _mArrayZeroSize = reader.ReadByteArray("arrayZeroSize");
            }