id
stringlengths 36
36
| text
stringlengths 1
1.25M
|
---|---|
b9beeb06-3fc6-44a9-83d4-691c4640a872 | public void setParentSampleNamePartNumber(crmondemand.xml.customobject3.query.QueryType parentSampleNamePartNumber) {
this.parentSampleNamePartNumber = parentSampleNamePartNumber;
} |
42c1ebaa-4b24-4f25-9f46-69cbcb998408 | public void setCustomPickList3(java.lang.String customPickList3) {
this.customPickList3 = customPickList3;
} |
9c548d2b-0e8c-4352-a0c3-797c60fc4f6d | public void actionPerformed(ActionEvent e)
{
if(io.getFestival() == null){
statusLabel.setText("No festival set.");
} else if(io.getFestival().getArtists().isEmpty() || io.getFestival().getStages().isEmpty()){
statusLabel.setText("No stages or artists made.");
} else {
addPerformance();
}
} |
84b8df81-af03-4b0d-8d86-2e3c3e9ffbf6 | public void setNextStep(java.lang.String nextStep) {
this.nextStep = nextStep;
} |
f68bbdeb-33c1-462e-8572-21fdca3a56cc | public void setCustomText61(crmondemand.xml.customobject6.query.QueryType customText61) {
this.customText61 = customText61;
} |
3fcb6de5-3558-4825-b494-6df252dcb6c9 | public crmondemand.xml.contact.query.QueryType getCustomPickList90() {
return this.customPickList90;
} |
23637f27-2d06-4b49-8333-2791d33c8100 | public void run() {
new MathsExamPaper().setVisible(true);
} |
4c07d0a8-03db-4dde-bad2-eb8f4849a77d | public static void idlUnbumpIndent() {
Native.setIntSpecial(Stella.$IDL_INDENT_CHARS$, ((Integer)(Stella.$IDL_INDENT_CHARS$.get())).intValue() - 2);
} |
677b5240-4d07-4d6c-90a4-46d26b5bb2db | public crmondemand.xml.opportunity.query.QueryType getCustomDate16() {
return this.customDate16;
} |
e1d866ed-e908-438b-80ad-d383e0e43bc3 | public void setCustomDate19(java.util.Calendar customDate19) {
this.customDate19 = customDate19;
} |
1dc76f6d-ff7c-4c30-b389-d8c6bcff0c38 | public crmondemand.xml.opportunity.query.QueryType getCustomObject15Name() {
return this.customObject15Name;
} |
7cc107d4-5bad-4293-af48-f27d4ccedca1 | public void setCustomCurrency2(crmondemand.xml.opportunity.query.QueryType customCurrency2) {
this.customCurrency2 = customCurrency2;
} |
aabd5c65-2fe9-4728-b206-5c3abfba376d | public void setOwnerUserSignInId(java.lang.String ownerUserSignInId) {
this.ownerUserSignInId = ownerUserSignInId;
} |
f6b5e2d9-ddbf-4900-8153-fefcc889a978 | public void setCustomText42(crmondemand.xml.customobject6.query.QueryType customText42) {
this.customText42 = customText42;
} |
4d98825e-2496-47a7-a272-0baf51a0040d | public void setType(crmondemand.xml.customobject6.query.QueryType type) {
this.type = type;
} |
77adff1f-587d-454b-9338-f4530f6b25da | public void setUpdatedByUserSignInId(crmondemand.xml.contact.query.QueryType updatedByUserSignInId) {
this.updatedByUserSignInId = updatedByUserSignInId;
} |
46b88ac2-1a32-47c4-82d8-77bbc8b1ea3d | public void setCustomPickList75(java.lang.String customPickList75) {
this.customPickList75 = customPickList75;
} |
c86cd6ac-85ff-41dc-81d4-caa4c123d87c | public void setCustomNumber8(java.math.BigDecimal customNumber8) {
this.customNumber8 = customNumber8;
} |
dcd82f8f-9a53-4191-8b40-bcec17177279 | public crmondemand.xml.contact.query.QueryType getCustomDate20() {
return this.customDate20;
} |
cbabcb16-6e99-4ad7-8290-448d0b5a10ca | public void solve(int testNumber, Scanner in, PrintWriter out) {
while(in.hasNextLine())
out.println(parse(in.nextLine()));
} |
47ff254d-0ea0-4123-b972-947e7bd68c57 | @Override
public TallerDTO buscarTaller(String nombre) throws Exception {
AccesoBD accesoBD = new AccesoBD();
TallerDTO tallerDTO = null;
try {
accesoBD.iniciarTransaccion();
String filtro = "nombre.equals(\""+nombre+"\")";
Collection movCol = accesoBD.buscarPorFiltro(Taller.class, filtro);
TallerAssembler tallerAssemb = new TallerAssembler(accesoBD);
if (movCol.size()>=1 ) {
tallerDTO = tallerAssemb.getTallerDTO((Taller)(movCol.toArray()[0]));
}
accesoBD.concretarTransaccion();
} catch (Exception e) {
accesoBD.rollbackTransaccion();
}
return tallerDTO;
} |
52ae866a-9479-4c2a-91ff-42ec421cd206 | public void setCustomPickList8(crmondemand.xml.customobject3.query.QueryType customPickList8) {
this.customPickList8 = customPickList8;
} |
e1cfa271-0be5-4ca4-b6e1-7278e6abb6d7 | public crmondemand.xml.contact.query.QueryType getCustomInteger9() {
return this.customInteger9;
} |
640b2047-e776-49b2-aaaa-b17cafb95a75 | public void setBusinessAccountAccountType(crmondemand.xml.contact.query.QueryType businessAccountAccountType) {
this.businessAccountAccountType = businessAccountAccountType;
} |
3a41232b-662a-4d2f-b491-1f0f4099db7b | public void setTotalClaimAmountApproved(java.math.BigDecimal totalClaimAmountApproved) {
this.totalClaimAmountApproved = totalClaimAmountApproved;
} |
bd6f6beb-7589-45e6-be7a-dc9b151a9e8e | public java.lang.String getIndexedPick4() {
return this.indexedPick4;
} |
0a025ccc-c11c-4ba5-a1fb-52935349e149 | public crmondemand.xml.customobject6.query.QueryType getAccreditationId() {
return this.accreditationId;
} |
2ac9f6e0-e53a-4d2a-a23a-aa1edd685145 | public java.lang.Integer getCustomInteger16() {
return this.customInteger16;
} |
28d82e48-e2a1-46eb-9414-ea0e53ecc75b | public static int getSkillLevel(int gid, int sid) {
MapleGuild g = getGuild(gid);
if (g != null) {
return g.getSkillLevel(sid);
}
return 0;
} |
97d4241d-ab2b-4e67-8d17-e5bbd7cdb077 | public java.util.Calendar getCustomDate15()
{
return this.customDate15;
} |
9a3e9dc8-dbe0-4a5e-9815-31388e3da6d1 | public crmondemand.xml.contact.query.QueryType getOwnerId() {
return this.ownerId;
} |
4c995d73-7c8c-4eae-9985-9707ddd1e9f8 | public java.lang.String getCustomPickList70() {
return this.customPickList70;
} |
94b92c00-566c-484e-b7a4-05347201f91e | public void setCustomDate154(crmondemand.xml.customobject6.query.QueryType customDate154) {
this.customDate154 = customDate154;
} |
6594e02d-7543-4e8c-b91e-a8b78794808d | public java.lang.String getCustomObject3Id() {
return this.customObject3Id;
} |
acb2a8a3-7146-4c8b-8f53-f14bce573d96 | public static byte[] encrypt(String m, ElGamalPublicKeyParameters pK) {
return encrypt(m.getBytes(), pK);
} |
57cbc941-08cf-4af9-9b5b-9ff770277f10 | */
public boolean hasExaltedBonus() {
return exaltedBonus;
} |
0b7e592e-2974-42a0-ab71-ce3e5a903ea4 | public java.util.Calendar getCustomDate1() {
return this.customDate1;
} |
f9ce0aa6-191f-4e3b-9555-17cb15477b7d | public crmondemand.xml.contact.query.QueryType getCustomDate24() {
return this.customDate24;
} |
964ee641-fe7b-47c1-934b-c8d5fd4b1fd0 | public java.math.BigDecimal getCustomCurrency1() {
return this.customCurrency1;
} |
cd607435-bda5-4759-9905-4f12f99bf6f1 | public put_resultTupleScheme getScheme() {
return new put_resultTupleScheme();
}
}
private static class put_resultTupleScheme extends TupleScheme<put_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, put_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
oprot.writeBool(struct.success);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, put_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = iprot.readBool();
struct.setSuccessIsSet(true);
}
}
}
}
public static class remove_args implements org.apache.thrift.TBase<remove_args, remove_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("remove_args");
private static final org.apache.thrift.protocol.TField INTERFACE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("interfaceName", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new remove_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new remove_argsTupleSchemeFactory());
}
public String interfaceName; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
INTERFACE_NAME((short)1, "interfaceName");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // INTERFACE_NAME
return INTERFACE_NAME;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.INTERFACE_NAME, new org.apache.thrift.meta_data.FieldMetaData("interfaceName", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(remove_args.class, metaDataMap);
}
public remove_args() {
}
public remove_args(
String interfaceName)
{
this();
this.interfaceName = interfaceName;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public remove_args(remove_args other) {
if (other.isSetInterfaceName()) {
this.interfaceName = other.interfaceName;
}
}
public remove_args deepCopy() {
return new remove_args(this);
}
@Override
public void clear() {
this.interfaceName = null;
}
public String getInterfaceName() {
return this.interfaceName;
}
public remove_args setInterfaceName(String interfaceName) {
this.interfaceName = interfaceName;
return this;
}
public void unsetInterfaceName() {
this.interfaceName = null;
}
/** Returns true if field interfaceName is set (has been assigned a value) and false otherwise */
public boolean isSetInterfaceName() {
return this.interfaceName != null;
}
public void setInterfaceNameIsSet(boolean value) {
if (!value) {
this.interfaceName = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case INTERFACE_NAME:
if (value == null) {
unsetInterfaceName();
} else {
setInterfaceName((String)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case INTERFACE_NAME:
return getInterfaceName();
}
throw new IllegalStateException();
}
/** 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 INTERFACE_NAME:
return isSetInterfaceName();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof remove_args)
return this.equals((remove_args)that);
return false;
}
public boolean equals(remove_args that) {
if (that == null)
return false;
boolean this_present_interfaceName = true && this.isSetInterfaceName();
boolean that_present_interfaceName = true && that.isSetInterfaceName();
if (this_present_interfaceName || that_present_interfaceName) {
if (!(this_present_interfaceName && that_present_interfaceName))
return false;
if (!this.interfaceName.equals(that.interfaceName))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(remove_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
remove_args typedOther = (remove_args)other;
lastComparison = Boolean.valueOf(isSetInterfaceName()).compareTo(typedOther.isSetInterfaceName());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetInterfaceName()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.interfaceName, typedOther.interfaceName);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("remove_args(");
boolean first = true;
sb.append("interfaceName:");
if (this.interfaceName == null) {
sb.append("null");
} else {
sb.append(this.interfaceName);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class remove_argsStandardSchemeFactory implements SchemeFactory {
public remove_argsStandardScheme getScheme() {
return new remove_argsStandardScheme();
}
}
private static class remove_argsStandardScheme extends StandardScheme<remove_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, remove_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // INTERFACE_NAME
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.interfaceName = iprot.readString();
struct.setInterfaceNameIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, remove_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.interfaceName != null) {
oprot.writeFieldBegin(INTERFACE_NAME_FIELD_DESC);
oprot.writeString(struct.interfaceName);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class remove_argsTupleSchemeFactory implements SchemeFactory {
public remove_argsTupleScheme getScheme() {
return new remove_argsTupleScheme();
}
}
private static class remove_argsTupleScheme extends TupleScheme<remove_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, remove_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetInterfaceName()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetInterfaceName()) {
oprot.writeString(struct.interfaceName);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, remove_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.interfaceName = iprot.readString();
struct.setInterfaceNameIsSet(true);
}
}
}
}
public static class remove_result implements org.apache.thrift.TBase<remove_result, remove_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("remove_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new remove_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new remove_resultTupleSchemeFactory());
}
public boolean success; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __SUCCESS_ISSET_ID = 0;
private byte __isset_bitfield = 0;
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(remove_result.class, metaDataMap);
}
public remove_result() {
}
public remove_result(
boolean success)
{
this();
this.success = success;
setSuccessIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public remove_result(remove_result other) {
__isset_bitfield = other.__isset_bitfield;
this.success = other.success;
}
public remove_result deepCopy() {
return new remove_result(this);
}
@Override
public void clear() {
setSuccessIsSet(false);
this.success = false;
}
public boolean isSuccess() {
return this.success;
}
public remove_result setSuccess(boolean success) {
this.success = success;
setSuccessIsSet(true);
return this;
}
public void unsetSuccess() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
public void setSuccessIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((Boolean)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return Boolean.valueOf(isSuccess());
}
throw new IllegalStateException();
}
/** 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 SUCCESS:
return isSetSuccess();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof remove_result)
return this.equals((remove_result)that);
return false;
}
public boolean equals(remove_result that) {
if (that == null)
return false;
boolean this_present_success = true;
boolean that_present_success = true;
if (this_present_success || that_present_success) {
if (!(this_present_success && that_present_success))
return false;
if (this.success != that.success)
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(remove_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
remove_result typedOther = (remove_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("remove_result(");
boolean first = true;
sb.append("success:");
sb.append(this.success);
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class remove_resultStandardSchemeFactory implements SchemeFactory {
public remove_resultStandardScheme getScheme() {
return new remove_resultStandardScheme();
}
}
private static class remove_resultStandardScheme extends StandardScheme<remove_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, remove_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
struct.success = iprot.readBool();
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, remove_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.isSetSuccess()) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
oprot.writeBool(struct.success);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class remove_resultTupleSchemeFactory implements SchemeFactory {
public remove_resultTupleScheme getScheme() {
return new remove_resultTupleScheme();
}
}
private static class remove_resultTupleScheme extends TupleScheme<remove_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, remove_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetSuccess()) {
oprot.writeBool(struct.success);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, remove_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.success = iprot.readBool();
struct.setSuccessIsSet(true);
}
}
}
}
public static class execute_args implements org.apache.thrift.TBase<execute_args, execute_args._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("execute_args");
private static final org.apache.thrift.protocol.TField INTERFACE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("interfaceName", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField THRIFT_BINARIES_FIELD_DESC = new org.apache.thrift.protocol.TField("thriftBinaries", org.apache.thrift.protocol.TType.STRING, (short)2);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new execute_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new execute_argsTupleSchemeFactory());
}
public String interfaceName; // required
public ByteBuffer thriftBinaries; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
INTERFACE_NAME((short)1, "interfaceName"),
THRIFT_BINARIES((short)2, "thriftBinaries");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // INTERFACE_NAME
return INTERFACE_NAME;
case 2: // THRIFT_BINARIES
return THRIFT_BINARIES;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.INTERFACE_NAME, new org.apache.thrift.meta_data.FieldMetaData("interfaceName", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.THRIFT_BINARIES, new org.apache.thrift.meta_data.FieldMetaData("thriftBinaries", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(execute_args.class, metaDataMap);
}
public execute_args() {
}
public execute_args(
String interfaceName,
ByteBuffer thriftBinaries)
{
this();
this.interfaceName = interfaceName;
this.thriftBinaries = thriftBinaries;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public execute_args(execute_args other) {
if (other.isSetInterfaceName()) {
this.interfaceName = other.interfaceName;
}
if (other.isSetThriftBinaries()) {
this.thriftBinaries = org.apache.thrift.TBaseHelper.copyBinary(other.thriftBinaries);
;
}
}
public execute_args deepCopy() {
return new execute_args(this);
}
@Override
public void clear() {
this.interfaceName = null;
this.thriftBinaries = null;
}
public String getInterfaceName() {
return this.interfaceName;
}
public execute_args setInterfaceName(String interfaceName) {
this.interfaceName = interfaceName;
return this;
}
public void unsetInterfaceName() {
this.interfaceName = null;
}
/** Returns true if field interfaceName is set (has been assigned a value) and false otherwise */
public boolean isSetInterfaceName() {
return this.interfaceName != null;
}
public void setInterfaceNameIsSet(boolean value) {
if (!value) {
this.interfaceName = null;
}
}
public byte[] getThriftBinaries() {
setThriftBinaries(org.apache.thrift.TBaseHelper.rightSize(thriftBinaries));
return thriftBinaries == null ? null : thriftBinaries.array();
}
public ByteBuffer bufferForThriftBinaries() {
return thriftBinaries;
}
public execute_args setThriftBinaries(byte[] thriftBinaries) {
setThriftBinaries(thriftBinaries == null ? (ByteBuffer)null : ByteBuffer.wrap(thriftBinaries));
return this;
}
public execute_args setThriftBinaries(ByteBuffer thriftBinaries) {
this.thriftBinaries = thriftBinaries;
return this;
}
public void unsetThriftBinaries() {
this.thriftBinaries = null;
}
/** Returns true if field thriftBinaries is set (has been assigned a value) and false otherwise */
public boolean isSetThriftBinaries() {
return this.thriftBinaries != null;
}
public void setThriftBinariesIsSet(boolean value) {
if (!value) {
this.thriftBinaries = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case INTERFACE_NAME:
if (value == null) {
unsetInterfaceName();
} else {
setInterfaceName((String)value);
}
break;
case THRIFT_BINARIES:
if (value == null) {
unsetThriftBinaries();
} else {
setThriftBinaries((ByteBuffer)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case INTERFACE_NAME:
return getInterfaceName();
case THRIFT_BINARIES:
return getThriftBinaries();
}
throw new IllegalStateException();
}
/** 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 INTERFACE_NAME:
return isSetInterfaceName();
case THRIFT_BINARIES:
return isSetThriftBinaries();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof execute_args)
return this.equals((execute_args)that);
return false;
}
public boolean equals(execute_args that) {
if (that == null)
return false;
boolean this_present_interfaceName = true && this.isSetInterfaceName();
boolean that_present_interfaceName = true && that.isSetInterfaceName();
if (this_present_interfaceName || that_present_interfaceName) {
if (!(this_present_interfaceName && that_present_interfaceName))
return false;
if (!this.interfaceName.equals(that.interfaceName))
return false;
}
boolean this_present_thriftBinaries = true && this.isSetThriftBinaries();
boolean that_present_thriftBinaries = true && that.isSetThriftBinaries();
if (this_present_thriftBinaries || that_present_thriftBinaries) {
if (!(this_present_thriftBinaries && that_present_thriftBinaries))
return false;
if (!this.thriftBinaries.equals(that.thriftBinaries))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(execute_args other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
execute_args typedOther = (execute_args)other;
lastComparison = Boolean.valueOf(isSetInterfaceName()).compareTo(typedOther.isSetInterfaceName());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetInterfaceName()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.interfaceName, typedOther.interfaceName);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetThriftBinaries()).compareTo(typedOther.isSetThriftBinaries());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetThriftBinaries()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.thriftBinaries, typedOther.thriftBinaries);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("execute_args(");
boolean first = true;
sb.append("interfaceName:");
if (this.interfaceName == null) {
sb.append("null");
} else {
sb.append(this.interfaceName);
}
first = false;
if (!first) sb.append(", ");
sb.append("thriftBinaries:");
if (this.thriftBinaries == null) {
sb.append("null");
} else {
org.apache.thrift.TBaseHelper.toString(this.thriftBinaries, sb);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class execute_argsStandardSchemeFactory implements SchemeFactory {
public execute_argsStandardScheme getScheme() {
return new execute_argsStandardScheme();
}
}
private static class execute_argsStandardScheme extends StandardScheme<execute_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, execute_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // INTERFACE_NAME
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.interfaceName = iprot.readString();
struct.setInterfaceNameIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // THRIFT_BINARIES
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.thriftBinaries = iprot.readBinary();
struct.setThriftBinariesIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, execute_args struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.interfaceName != null) {
oprot.writeFieldBegin(INTERFACE_NAME_FIELD_DESC);
oprot.writeString(struct.interfaceName);
oprot.writeFieldEnd();
}
if (struct.thriftBinaries != null) {
oprot.writeFieldBegin(THRIFT_BINARIES_FIELD_DESC);
oprot.writeBinary(struct.thriftBinaries);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class execute_argsTupleSchemeFactory implements SchemeFactory {
public execute_argsTupleScheme getScheme() {
return new execute_argsTupleScheme();
}
}
private static class execute_argsTupleScheme extends TupleScheme<execute_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, execute_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetInterfaceName()) {
optionals.set(0);
}
if (struct.isSetThriftBinaries()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetInterfaceName()) {
oprot.writeString(struct.interfaceName);
}
if (struct.isSetThriftBinaries()) {
oprot.writeBinary(struct.thriftBinaries);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, execute_args struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.interfaceName = iprot.readString();
struct.setInterfaceNameIsSet(true);
}
if (incoming.get(1)) {
struct.thriftBinaries = iprot.readBinary();
struct.setThriftBinariesIsSet(true);
}
}
}
}
public static class execute_result implements org.apache.thrift.TBase<execute_result, execute_result._Fields>, java.io.Serializable, Cloneable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("execute_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new execute_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new execute_resultTupleSchemeFactory());
}
public ByteBuffer success; // required
public InvalidExcuteException e; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
E((short)1, "e");
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // E
return E;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)));
tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(execute_result.class, metaDataMap);
}
public execute_result() {
}
public execute_result(
ByteBuffer success,
InvalidExcuteException e)
{
this();
this.success = success;
this.e = e;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public execute_result(execute_result other) {
if (other.isSetSuccess()) {
this.success = org.apache.thrift.TBaseHelper.copyBinary(other.success);
;
}
if (other.isSetE()) {
this.e = new InvalidExcuteException(other.e);
}
}
public execute_result deepCopy() {
return new execute_result(this);
}
@Override
public void clear() {
this.success = null;
this.e = null;
}
public byte[] getSuccess() {
setSuccess(org.apache.thrift.TBaseHelper.rightSize(success));
return success == null ? null : success.array();
}
public ByteBuffer bufferForSuccess() {
return success;
}
public execute_result setSuccess(byte[] success) {
setSuccess(success == null ? (ByteBuffer)null : ByteBuffer.wrap(success));
return this;
}
public execute_result setSuccess(ByteBuffer success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public InvalidExcuteException getE() {
return this.e;
}
public execute_result setE(InvalidExcuteException e) {
this.e = e;
return this;
}
public void unsetE() {
this.e = null;
}
/** Returns true if field e is set (has been assigned a value) and false otherwise */
public boolean isSetE() {
return this.e != null;
}
public void setEIsSet(boolean value) {
if (!value) {
this.e = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((ByteBuffer)value);
}
break;
case E:
if (value == null) {
unsetE();
} else {
setE((InvalidExcuteException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
case E:
return getE();
}
throw new IllegalStateException();
}
/** 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 SUCCESS:
return isSetSuccess();
case E:
return isSetE();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof execute_result)
return this.equals((execute_result)that);
return false;
}
public boolean equals(execute_result that) {
if (that == null)
return false;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
if (this_present_success || that_present_success) {
if (!(this_present_success && that_present_success))
return false;
if (!this.success.equals(that.success))
return false;
}
boolean this_present_e = true && this.isSetE();
boolean that_present_e = true && that.isSetE();
if (this_present_e || that_present_e) {
if (!(this_present_e && that_present_e))
return false;
if (!this.e.equals(that.e))
return false;
}
return true;
}
@Override
public int hashCode() {
return 0;
}
public int compareTo(execute_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
execute_result typedOther = (execute_result)other;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetE()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("execute_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
org.apache.thrift.TBaseHelper.toString(this.success, sb);
}
first = false;
if (!first) sb.append(", ");
sb.append("e:");
if (this.e == null) {
sb.append("null");
} else {
sb.append(this.e);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class execute_resultStandardSchemeFactory implements SchemeFactory {
public execute_resultStandardScheme getScheme() {
return new execute_resultStandardScheme();
}
}
private static class execute_resultStandardScheme extends StandardScheme<execute_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, execute_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.success = iprot.readBinary();
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // E
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.e = new InvalidExcuteException();
struct.e.read(iprot);
struct.setEIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, execute_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
oprot.writeBinary(struct.success);
oprot.writeFieldEnd();
}
if (struct.e != null) {
oprot.writeFieldBegin(E_FIELD_DESC);
struct.e.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class execute_resultTupleSchemeFactory implements SchemeFactory {
public execute_resultTupleScheme getScheme() {
return new execute_resultTupleScheme();
}
}
private static class execute_resultTupleScheme extends TupleScheme<execute_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, execute_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetE()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetSuccess()) {
oprot.writeBinary(struct.success);
}
if (struct.isSetE()) {
struct.e.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, execute_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.success = iprot.readBinary();
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.e = new InvalidExcuteException();
struct.e.read(iprot);
struct.setEIsSet(true);
}
} |
4b7facb4-27be-436a-8300-76d4b61f0941 | public void setCustomNumber45(crmondemand.xml.customobject3.query.QueryType customNumber45) {
this.customNumber45 = customNumber45;
} |
4fad424d-c0bf-4179-8dd9-9ff91a492f35 | public void setCustomInteger4(java.lang.Integer customInteger4) {
this.customInteger4 = customInteger4;
} |
462fdadf-2021-4aac-b792-453d8ce2501b | public void setContactExternalSystemId(crmondemand.xml.customobject6.query.QueryType contactExternalSystemId) {
this.contactExternalSystemId = contactExternalSystemId;
} |
9f87a336-1cb0-478d-a4fb-7f917b4e7a53 | public java.util.Calendar getModifiedDate() {
return this.modifiedDate;
} |
fdaf0fe9-d5cb-4d92-989a-062620e55424 | public void setObjectiveStatus(crmondemand.xml.customobject6.query.QueryType objectiveStatus) {
this.objectiveStatus = objectiveStatus;
} |
cd561ff9-a8fb-47a4-a62e-476185b71740 | public void setCustomPickList42(crmondemand.xml.contact.query.QueryType customPickList42) {
this.customPickList42 = customPickList42;
} |
8f333ec4-a6cd-4084-aa22-762717a35d65 | public void setCustomInteger32(java.lang.Integer customInteger32) {
this.customInteger32 = customInteger32;
} |
2d17d528-3500-4c43-b476-bcfcb97d38fc | public void setCustomCurrency14(crmondemand.xml.opportunity.query.QueryType customCurrency14) {
this.customCurrency14 = customCurrency14;
} |
bd05cc0f-c00c-48e6-9600-626c82888231 | @Override
public void draw() {
GL11.glPushMatrix();
GL11.glTranslatef(p.getX() + w / 2, p.getY() + h / 2, p.getZ());
GL11.glRotatef(r, 0, 0, 1);
/*
* Draw shape
*/
GL11.glColor3f(color.getRed() / 255f, color.getGreen() / 255f, color.getBlue() / 255f);
GL11.glBegin(GL11.GL_TRIANGLE_FAN);
GL11.glVertex3f(- w / 2, - h / 2, 0);
GL11.glVertex3f(w / 2, - h / 2, 0);
GL11.glVertex3f(w / 2, h / 2, 0);
GL11.glVertex3f(- w / 2, h / 2, 0);
GL11.glEnd();
/*
* Draw outline
*/
GL11.glColor3f(0, 0, 0);
GL11.glBegin(GL11.GL_LINE_LOOP);
GL11.glVertex3f(- w / 2, - h / 2, 0);
GL11.glVertex3f(w / 2, - h / 2, 0);
GL11.glVertex3f(w / 2, h / 2, 0);
GL11.glVertex3f(- w / 2, h / 2, 0);
GL11.glEnd();
GL11.glPopMatrix();
} |
e756b3ba-19d4-4e3f-81cb-3c18aa6414ed | */
public void accum (int op, float value) {
RequestOutputStream o = display.out;
synchronized (o) {
begin_render_request (o, 137, 12);
o.write_int32 (op);
o.write_float (value);
}
} |
0c461013-1fa6-4fca-80ff-44f54f750408 | public crmondemand.xml.customobject3.query.QueryType getCustomObject3ExternalSystemId() {
return this.customObject3ExternalSystemId;
} |
ffb0faef-4662-4666-afa3-e82c110e53b5 | public void setCustomBoolean16(java.lang.Boolean customBoolean16) {
this.customBoolean16 = customBoolean16;
} |
89833771-c6d9-495b-8e8d-21d4a4275e8d | public void setExamType(crmondemand.xml.customobject3.query.QueryType examType) {
this.examType = examType;
} |
d283e359-8745-45bd-a263-42055550cb70 | public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
} |
87168ac2-f760-4ed3-a308-2ffaf736ea41 | public crmondemand.xml.customobject6.query.QueryType getOpportunityName() {
return this.opportunityName;
} |
f3a79895-80d3-4fa0-a214-4442fa1d55b6 | public void setInvtPeriodStartDate(crmondemand.xml.contact.query.QueryType invtPeriodStartDate) {
this.invtPeriodStartDate = invtPeriodStartDate;
} |
8272910b-3809-473f-817c-a94efbc262bf | public void setOpportunityAccountName(java.lang.String opportunityAccountName) {
this.opportunityAccountName = opportunityAccountName;
} |
6d51a8c0-2db0-402f-ae68-160c8377faf1 | public crmondemand.xml.customobject6.query.QueryType getExpirationDate() {
return this.expirationDate;
} |
c3c23776-3917-476f-870f-b88d6a7c6618 | public void setCustomText30(java.lang.String customText30) {
this.customText30 = customText30;
} |
6a6fa700-3642-4770-b022-7375b0bd60fc | public void setIndexedPick1(crmondemand.xml.customobject6.query.QueryType indexedPick1) {
this.indexedPick1 = indexedPick1;
} |
61bece69-7ab2-4ca8-9822-a3428be1f572 | public java.util.Calendar getCustomDate54() {
return this.customDate54;
} |
df351527-0b50-463c-99d0-d32455ee4227 | public void setCustomText77(crmondemand.xml.contact.query.QueryType customText77) {
this.customText77 = customText77;
} |
092591a2-47bf-4454-8c11-a24122f1e80d | public void setCustomPickList20(crmondemand.xml.customobject3.query.QueryType customPickList20) {
this.customPickList20 = customPickList20;
} |
a4be8523-c137-48b4-93cc-444c2b5eb8ba | public java.lang.String getCustomPickList24() {
return this.customPickList24;
} |
8a18f251-aabf-4e0c-82a2-dd8cd996a8b9 | @Override
public void actionPerformed(ActionEvent arg0) {
try {
switch (Integer.parseInt(arg0.getActionCommand())) {
case 0:
System.exit(0);
case 11:
CPU.toogleInterpreter();
break;
case 13:
new Calculator();
break;
}
}
catch (Exception e) {
System.out.println(e.getMessage());
}
} |
88f361a9-2bb6-468d-9448-6204b6b4f4d8 | public java.lang.String getCustomText15() {
return this.customText15;
} |
5e37ba23-1256-41f0-8130-285aaa7713b0 | public crmondemand.xml.contact.query.QueryType getOriginatingPartnerChannelAccountManagerAlias() {
return this.originatingPartnerChannelAccountManagerAlias;
} |
9d54a9d1-3d96-4746-ab5f-17de0aae24fc | public void setTotalAssetValue(java.math.BigDecimal totalAssetValue) {
this.totalAssetValue = totalAssetValue;
} |
ba295af5-44f2-4753-9c46-ec0d9e052d32 | private Object dispatch(RMIMessage m) {
Object ret = null;
if (m == null) {
System.out.println("Message is empty");
return ret;
}
// get service name from message and get corresponding remote object
String serviceName = m.getService();
MyRemote rm = serverListener.servicetbl.get(serviceName);
// get method name from message
String methodName = (String) m.getMethod();
// get arguments from message
Object[] args = (Object[]) m.getContent();
// get argument type from message
Class<?>[] parameterTypes = (Class<?>[]) m.getParameterTypes();
try {
// invoke the method
Method method = rm.getClass().getMethod(methodName, parameterTypes);
ret = method.invoke(rm, args);
} catch (NoSuchMethodException e) {
System.out.println("No Such Method Exception");
ret = new RemoteException("Remote Exception: No Such Method");
} catch (SecurityException e) {
System.out.println("Security Exception");
e.printStackTrace();
} catch (IllegalAccessException e) {
System.out.println("Illegal Acess Exception");
e.printStackTrace();
} catch (IllegalArgumentException e) {
System.out.println("Illegal Argument Exception");
e.printStackTrace();
} catch (InvocationTargetException e) {
System.out.println("Invocation Target Exception");
e.printStackTrace();
}
return ret;
} |
2d8ce191-9a9c-4852-8975-f0f117c3e92f | private com.google.protobuf.ByteString getUseridBytes() {
java.lang.Object ref = userid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
userid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
} |
390d4bc8-7139-459d-8f78-c2cc46f11d57 | public void getStatus(AsyncMethodCallback<getStatus_call> resultHandler) throws TException {
checkReady();
getStatus_call method_call = new getStatus_call(resultHandler, this, protocolFactory, transport);
manager.call(method_call);
} |
9813f5e0-952c-4729-b88f-c6764035d323 | public static main.Messages.ExecutionStatus parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
} |
8f8feb98-cf31-4791-808b-ddcd8f1fb1d4 | boolean queryNeedsSelect() {
return true;
} |
f5c257e5-6e04-4aea-b04f-2f96bb32fcdb | public static MaplePacket showMagnet(int mobid, byte success) { // Monster Magnet
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
mplew.writeShort(SendPacketOpcode.SHOW_MAGNET);
mplew.writeInt(mobid);
mplew.write(success);
return mplew.getPacket();
} |
c88d4052-349c-4426-9c4c-8324837ccdcb | @Override
public String addItemsFromXML(String xmlBuffer, List<Item> addHere, Session S)
{
final List<XMLLibrary.XMLTag> xml=CMLib.xml().parseAllXML(xmlBuffer);
return addItemsFromXML(xml, addHere, S);
} |
ef86b94a-2eba-4d31-a5c9-bd86ce0b19d5 | public crmondemand.xml.customobject6.query.QueryType getStatus() {
return this.status;
} |
e64b5bd7-8f5b-4e4b-b12e-d9912c7ef105 | public crmondemand.xml.customobject3.query.QueryType getSalesPersonIDEMailAddr() {
return this.salesPersonIDEMailAddr;
} |
054874e4-cc74-41d8-9e59-bb44cad4d83b | public void setCustomInteger29(java.lang.Integer customInteger29) {
this.customInteger29 = customInteger29;
} |
c8ae0d3a-243a-418b-bfd6-f55c1120380f | public void setCustomObject14Type(java.lang.String customObject14Type) {
this.customObject14Type = customObject14Type;
} |
b09b4490-4e10-4a29-8549-df1182a2bd21 | public ByteBuffer getAssembledUnencryptedPacket() {
//in some cases, ssl engine may spit out 3 packets instead of 1 for the total packet
ByteBuffer temp = ByteBuffer.allocate(5000);
for(ByteBuffer b : unencryptedPackets) {
temp.put(b);
}
unencryptedPackets.clear();
temp.flip();
return temp;
} |
eed1030b-68d4-47e0-92e2-98a1fb352041 | public void setCustomText88(java.lang.String customText88) {
this.customText88 = customText88;
} |
680dab15-929c-479c-b9e1-3f5f17735b57 | public void openFile(String path); |
d00e9a21-6b2e-48a1-8d1a-fc87e10a795e | public void setCustomObject3ExternalSystemId(java.lang.String customObject3ExternalSystemId)
{
this.customObject3ExternalSystemId = customObject3ExternalSystemId;
} |
b5577cba-a60a-4c6d-b884-4023047aa317 | public java.lang.String getCustomObject13ExternalSystemId() {
return this.customObject13ExternalSystemId;
} |
64f2ebdf-2384-4e43-9e74-e271e9049f5b | public java.lang.String getCustomPickList49() {
return this.customPickList49;
} |
d6f5b027-ec8b-4aa5-9463-8ed95cc32406 | public java.lang.String getCustomText80() {
return this.customText80;
} |
d79c5a0c-028f-46c9-b6c9-2bcfa4c69428 | public crmondemand.xml.customobject6.query.QueryType getCustomPickList41() {
return this.customPickList41;
} |
e3d53d0d-9492-40ad-81f1-57da4260a31e | public void setPosition(Vector3d position) {
this.position = position;
graphicsTransform.setTranslation(position);
} |
d066ffc6-be6e-4f63-82b6-2955f04c5cb2 | public java.lang.String getCustomText18() {
return this.customText18;
} |
2f84a6e1-c661-47b7-abce-bc7581c8c9f9 | public void setCustomPickList39(java.lang.String customPickList39) {
this.customPickList39 = customPickList39;
} |
2f4f9197-2641-421b-ad1a-2b94c67a3fb6 | void setDate( String title, //書籍名
String person, //著者名
String company, //出版社
int ymd, //年月日
int price, //定価
String code, //ISBNコード
int num //在庫数
){
this.title = title;
this.person=person;
this.company=company;
this.ymd=ymd;
this.price=price;
this.code=code;
this.num=num;
} |
6d5f2aca-cd5c-437e-9b15-f28810fe184d | private Polynomial reduceExponent( final int p ) {
// compute (x^q^p mod f)
BigInteger q_to_p = Q.pow( p );
Polynomial x_to_q_to_p = X.modPow( q_to_p, this );
// subtract (x mod f)
return x_to_q_to_p.xor( X ).mod( this );
} |
19ab7a4c-bb56-464d-9bba-b0a81cd80d11 | public java.math.BigDecimal getCustomNumber26() {
return this.customNumber26;
} |
dacf28ff-e40e-45d8-861d-0e738bcc2f66 | public crmondemand.xml.customobject6.query.QueryType getZCustomNumber27() {
return this.zCustomNumber27;
} |
4dd8c0e4-61a5-45ec-b3a0-c8b5dc4db64f | public crmondemand.xml.customobject6.query.QueryType getCustomText70() {
return this.customText70;
} |
ce1b05bd-988a-4840-80b8-7d3aa1eaa550 | public void setCustomNumber16(java.math.BigDecimal customNumber16) {
this.customNumber16 = customNumber16;
} |
43334bc4-08f8-48de-9099-74ca7be39579 | public java.math.BigDecimal getCustomNumber52() {
return this.customNumber52;
} |
c3b80cc3-200a-4b69-ad25-c4824c78bbb0 | public java.lang.String getCustomPickList80() {
return this.customPickList80;
} |
3c706566-90ff-45a5-a91d-f4f6226926a7 | public crmondemand.xml.customobject6.query.QueryType getCustomPickList72() {
return this.customPickList72;
} |
86f425dc-ed33-44ba-8540-05f4762fd2c8 | public void setCustomObject14Type(java.lang.String customObject14Type) {
this.customObject14Type = customObject14Type;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.