public Object getFieldValue(_Fields field) { switch (field) { case NAME: return getName(); case ENABLED: return isEnabled(); case REPOSITORY_NAME: return getRepositoryName(); case QUERY: return getQuery(); case COMMENT: return getComment(); } throw new IllegalStateException(); }
public NamedQuery deepCopy() { return new NamedQuery(this); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof NamedQuery) return this.equals((NamedQuery)that); return false; }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case NAME: return isSetName(); case ENABLED: return isSetEnabled(); case REPOSITORY_NAME: return isSetRepositoryName(); case QUERY: return isSetQuery(); case COMMENT: return isSetComment(); } throw new IllegalStateException(); }
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.name = iprot.readString(); struct.setNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.enabled = iprot.readBool(); struct.setEnabledIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.query = new Query(); struct.query.read(iprot); struct.setQueryIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.comment = new Comment(); struct.comment.read(iprot); struct.setCommentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
public void write(org.apache.thrift.protocol.TProtocol oprot, NamedQuery struct) throws org.apache.thrift.TException { struct.validate(); if (struct.isSetComment()) { oprot.writeFieldBegin(COMMENT_FIELD_DESC); struct.comment.write(oprot);
if (isSetComment()) { if (!first) sb.append(", "); sb.append("comment:");
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case NAME: return isSetName(); case ENABLED: return isSetEnabled(); case REPOSITORY_NAME: return isSetRepositoryName(); case QUERY: return isSetQuery(); case COMMENT: return isSetComment(); } throw new IllegalStateException(); }
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.name = iprot.readString(); struct.setNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.enabled = iprot.readBool(); struct.setEnabledIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.repositoryName = iprot.readString(); struct.setRepositoryNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.query = new Query(); struct.query.read(iprot); struct.setQueryIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); struct.comment = new Comment(); struct.comment.read(iprot); struct.setCommentIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
public void write(org.apache.thrift.protocol.TProtocol oprot, NamedQuery struct) throws org.apache.thrift.TException { struct.validate(); if (struct.isSetComment()) { oprot.writeFieldBegin(COMMENT_FIELD_DESC); struct.comment.write(oprot);
if (isSetComment()) { if (!first) sb.append(", "); sb.append("comment:");
public Object getFieldValue(_Fields field) { switch (field) { case NAME: return getName(); case ENABLED: return Boolean.valueOf(isEnabled()); case REPOSITORY_NAME: return getRepositoryName(); case QUERY: return getQuery(); case COMMENT: return getComment(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public NamedQuery(NamedQuery other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetName()) { this.name = other.name; } this.enabled = other.enabled; if (other.isSetRepositoryName()) { this.repositoryName = other.repositoryName; } if (other.isSetQuery()) { this.query = new Query(other.query); } if (other.isSetComment()) { this.comment = new Comment(other.comment); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, NamedQuery struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.name); oprot.writeBool(struct.enabled); oprot.writeString(struct.repositoryName); struct.query.write(oprot); BitSet optionals = new BitSet(); if (struct.isSetComment()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetComment()) { struct.comment.write(oprot); } }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof NamedQuery) return this.equals((NamedQuery)that); return false; }
public NamedQuery deepCopy() { return new NamedQuery(this); }
public NamedQueryDto(NamedQuery namedQuery) { name = namedQuery.getName(); enabled = namedQuery.isEnabled(); repositoryName = namedQuery.getRepositoryName(); query = new QueryDto(namedQuery.getQuery()); if (namedQuery.getComment() != null) { comment = new CommentDto(namedQuery.getComment()); } }
/** * Performs a deep copy on <i>other</i>. */ public NamedQuery(NamedQuery other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetName()) { this.name = other.name; } this.enabled = other.enabled; if (other.isSetRepositoryName()) { this.repositoryName = other.repositoryName; } if (other.isSetQuery()) { this.query = new Query(other.query); } if (other.isSetComment()) { this.comment = new Comment(other.comment); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, NamedQuery struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.name); oprot.writeBool(struct.enabled); oprot.writeString(struct.repositoryName); struct.query.write(oprot); BitSet optionals = new BitSet(); if (struct.isSetComment()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetComment()) { struct.comment.write(oprot); } }
public NamedQueryDto(NamedQuery namedQuery) { name = namedQuery.getName(); enabled = namedQuery.isEnabled(); repositoryName = namedQuery.getRepositoryName(); query = new QueryDto(namedQuery.getQuery()); if (namedQuery.getComment() != null) { comment = new CommentDto(namedQuery.getComment()); } }