package com.sforce.soap.tooling.sobject; /** * This is a generated class for the SObject Enterprise API. * Do not edit this file, as your changes will be lost. */ public class ApexLog extends com.sforce.soap.tooling.sobject.SObject { /** * Constructor */ public ApexLog() {} /* Cache the typeInfo instead of declaring static fields throughout*/ private transient java.util.Map typeInfoCache = new java.util.HashMap(); private com.sforce.ws.bind.TypeInfo _lookupTypeInfo(String fieldName, String namespace, String name, String typeNS, String type, int minOcc, int maxOcc, boolean elementForm) { com.sforce.ws.bind.TypeInfo typeInfo = typeInfoCache.get(fieldName); if (typeInfo == null) { typeInfo = new com.sforce.ws.bind.TypeInfo(namespace, name, typeNS, type, minOcc, maxOcc, elementForm); typeInfoCache.put(fieldName, typeInfo); } return typeInfo; } /** * element : Application of type {http://www.w3.org/2001/XMLSchema}string * java type: java.lang.String */ private boolean Application__is_set = false; private java.lang.String Application; public java.lang.String getApplication() { return Application; } public void setApplication(java.lang.String Application) { this.Application = Application; Application__is_set = true; } protected void setApplication(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException { __in.peekTag(); if (__typeMapper.isElement(__in, _lookupTypeInfo("Application", "urn:sobject.tooling.soap.sforce.com","Application","http://www.w3.org/2001/XMLSchema","string",0,1,true))) { setApplication(__typeMapper.readString(__in, _lookupTypeInfo("Application", "urn:sobject.tooling.soap.sforce.com","Application","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class)); } } private void writeFieldApplication(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("Application", "urn:sobject.tooling.soap.sforce.com","Application","http://www.w3.org/2001/XMLSchema","string",0,1,true), Application, Application__is_set); } /** * element : DurationMilliseconds of type {http://www.w3.org/2001/XMLSchema}int * java type: java.lang.Integer */ private boolean DurationMilliseconds__is_set = false; private java.lang.Integer DurationMilliseconds; public java.lang.Integer getDurationMilliseconds() { return DurationMilliseconds; } public void setDurationMilliseconds(java.lang.Integer DurationMilliseconds) { this.DurationMilliseconds = DurationMilliseconds; DurationMilliseconds__is_set = true; } protected void setDurationMilliseconds(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException { __in.peekTag(); if (__typeMapper.isElement(__in, _lookupTypeInfo("DurationMilliseconds", "urn:sobject.tooling.soap.sforce.com","DurationMilliseconds","http://www.w3.org/2001/XMLSchema","int",0,1,true))) { setDurationMilliseconds((java.lang.Integer)__typeMapper.readObject(__in, _lookupTypeInfo("DurationMilliseconds", "urn:sobject.tooling.soap.sforce.com","DurationMilliseconds","http://www.w3.org/2001/XMLSchema","int",0,1,true), java.lang.Integer.class)); } } private void writeFieldDurationMilliseconds(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("DurationMilliseconds", "urn:sobject.tooling.soap.sforce.com","DurationMilliseconds","http://www.w3.org/2001/XMLSchema","int",0,1,true), DurationMilliseconds, DurationMilliseconds__is_set); } /** * element : LastModifiedDate of type {http://www.w3.org/2001/XMLSchema}dateTime * java type: java.util.Calendar */ private boolean LastModifiedDate__is_set = false; private java.util.Calendar LastModifiedDate; public java.util.Calendar getLastModifiedDate() { return LastModifiedDate; } public void setLastModifiedDate(java.util.Calendar LastModifiedDate) { this.LastModifiedDate = LastModifiedDate; LastModifiedDate__is_set = true; } protected void setLastModifiedDate(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException { __in.peekTag(); if (__typeMapper.isElement(__in, _lookupTypeInfo("LastModifiedDate", "urn:sobject.tooling.soap.sforce.com","LastModifiedDate","http://www.w3.org/2001/XMLSchema","dateTime",0,1,true))) { setLastModifiedDate((java.util.Calendar)__typeMapper.readObject(__in, _lookupTypeInfo("LastModifiedDate", "urn:sobject.tooling.soap.sforce.com","LastModifiedDate","http://www.w3.org/2001/XMLSchema","dateTime",0,1,true), java.util.Calendar.class)); } } private void writeFieldLastModifiedDate(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("LastModifiedDate", "urn:sobject.tooling.soap.sforce.com","LastModifiedDate","http://www.w3.org/2001/XMLSchema","dateTime",0,1,true), LastModifiedDate, LastModifiedDate__is_set); } /** * element : Location of type {http://www.w3.org/2001/XMLSchema}string * java type: java.lang.String */ private boolean Location__is_set = false; private java.lang.String Location; public java.lang.String getLocation() { return Location; } public void setLocation(java.lang.String Location) { this.Location = Location; Location__is_set = true; } protected void setLocation(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException { __in.peekTag(); if (__typeMapper.isElement(__in, _lookupTypeInfo("Location", "urn:sobject.tooling.soap.sforce.com","Location","http://www.w3.org/2001/XMLSchema","string",0,1,true))) { setLocation(__typeMapper.readString(__in, _lookupTypeInfo("Location", "urn:sobject.tooling.soap.sforce.com","Location","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class)); } } private void writeFieldLocation(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("Location", "urn:sobject.tooling.soap.sforce.com","Location","http://www.w3.org/2001/XMLSchema","string",0,1,true), Location, Location__is_set); } /** * element : LogLength of type {http://www.w3.org/2001/XMLSchema}int * java type: java.lang.Integer */ private boolean LogLength__is_set = false; private java.lang.Integer LogLength; public java.lang.Integer getLogLength() { return LogLength; } public void setLogLength(java.lang.Integer LogLength) { this.LogLength = LogLength; LogLength__is_set = true; } protected void setLogLength(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException { __in.peekTag(); if (__typeMapper.isElement(__in, _lookupTypeInfo("LogLength", "urn:sobject.tooling.soap.sforce.com","LogLength","http://www.w3.org/2001/XMLSchema","int",0,1,true))) { setLogLength((java.lang.Integer)__typeMapper.readObject(__in, _lookupTypeInfo("LogLength", "urn:sobject.tooling.soap.sforce.com","LogLength","http://www.w3.org/2001/XMLSchema","int",0,1,true), java.lang.Integer.class)); } } private void writeFieldLogLength(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("LogLength", "urn:sobject.tooling.soap.sforce.com","LogLength","http://www.w3.org/2001/XMLSchema","int",0,1,true), LogLength, LogLength__is_set); } /** * element : LogUser of type {urn:sobject.tooling.soap.sforce.com}sObject * java type: com.sforce.soap.tooling.sobject.SObject */ private boolean LogUser__is_set = false; private com.sforce.soap.tooling.sobject.SObject LogUser; public com.sforce.soap.tooling.sobject.SObject getLogUser() { return LogUser; } public void setLogUser(com.sforce.soap.tooling.sobject.SObject LogUser) { this.LogUser = LogUser; LogUser__is_set = true; } protected void setLogUser(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException { __in.peekTag(); if (__typeMapper.isElement(__in, _lookupTypeInfo("LogUser", "urn:sobject.tooling.soap.sforce.com","LogUser","urn:sobject.tooling.soap.sforce.com","sObject",0,1,true))) { setLogUser((com.sforce.soap.tooling.sobject.SObject)__typeMapper.readObject(__in, _lookupTypeInfo("LogUser", "urn:sobject.tooling.soap.sforce.com","LogUser","urn:sobject.tooling.soap.sforce.com","sObject",0,1,true), com.sforce.soap.tooling.sobject.SObject.class)); } } private void writeFieldLogUser(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("LogUser", "urn:sobject.tooling.soap.sforce.com","LogUser","urn:sobject.tooling.soap.sforce.com","sObject",0,1,true), LogUser, LogUser__is_set); } /** * element : LogUserId of type {urn:tooling.soap.sforce.com}ID * java type: java.lang.String */ private boolean LogUserId__is_set = false; private java.lang.String LogUserId; public java.lang.String getLogUserId() { return LogUserId; } public void setLogUserId(java.lang.String LogUserId) { this.LogUserId = LogUserId; LogUserId__is_set = true; } protected void setLogUserId(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException { __in.peekTag(); if (__typeMapper.isElement(__in, _lookupTypeInfo("LogUserId", "urn:sobject.tooling.soap.sforce.com","LogUserId","urn:tooling.soap.sforce.com","ID",0,1,true))) { setLogUserId(__typeMapper.readString(__in, _lookupTypeInfo("LogUserId", "urn:sobject.tooling.soap.sforce.com","LogUserId","urn:tooling.soap.sforce.com","ID",0,1,true), java.lang.String.class)); } } private void writeFieldLogUserId(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("LogUserId", "urn:sobject.tooling.soap.sforce.com","LogUserId","urn:tooling.soap.sforce.com","ID",0,1,true), LogUserId, LogUserId__is_set); } /** * element : Operation of type {http://www.w3.org/2001/XMLSchema}string * java type: java.lang.String */ private boolean Operation__is_set = false; private java.lang.String Operation; public java.lang.String getOperation() { return Operation; } public void setOperation(java.lang.String Operation) { this.Operation = Operation; Operation__is_set = true; } protected void setOperation(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException { __in.peekTag(); if (__typeMapper.isElement(__in, _lookupTypeInfo("Operation", "urn:sobject.tooling.soap.sforce.com","Operation","http://www.w3.org/2001/XMLSchema","string",0,1,true))) { setOperation(__typeMapper.readString(__in, _lookupTypeInfo("Operation", "urn:sobject.tooling.soap.sforce.com","Operation","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class)); } } private void writeFieldOperation(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("Operation", "urn:sobject.tooling.soap.sforce.com","Operation","http://www.w3.org/2001/XMLSchema","string",0,1,true), Operation, Operation__is_set); } /** * element : Request of type {http://www.w3.org/2001/XMLSchema}string * java type: java.lang.String */ private boolean Request__is_set = false; private java.lang.String Request; public java.lang.String getRequest() { return Request; } public void setRequest(java.lang.String Request) { this.Request = Request; Request__is_set = true; } protected void setRequest(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException { __in.peekTag(); if (__typeMapper.isElement(__in, _lookupTypeInfo("Request", "urn:sobject.tooling.soap.sforce.com","Request","http://www.w3.org/2001/XMLSchema","string",0,1,true))) { setRequest(__typeMapper.readString(__in, _lookupTypeInfo("Request", "urn:sobject.tooling.soap.sforce.com","Request","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class)); } } private void writeFieldRequest(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("Request", "urn:sobject.tooling.soap.sforce.com","Request","http://www.w3.org/2001/XMLSchema","string",0,1,true), Request, Request__is_set); } /** * element : RequestIdentifier of type {http://www.w3.org/2001/XMLSchema}string * java type: java.lang.String */ private boolean RequestIdentifier__is_set = false; private java.lang.String RequestIdentifier; public java.lang.String getRequestIdentifier() { return RequestIdentifier; } public void setRequestIdentifier(java.lang.String RequestIdentifier) { this.RequestIdentifier = RequestIdentifier; RequestIdentifier__is_set = true; } protected void setRequestIdentifier(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException { __in.peekTag(); if (__typeMapper.isElement(__in, _lookupTypeInfo("RequestIdentifier", "urn:sobject.tooling.soap.sforce.com","RequestIdentifier","http://www.w3.org/2001/XMLSchema","string",0,1,true))) { setRequestIdentifier(__typeMapper.readString(__in, _lookupTypeInfo("RequestIdentifier", "urn:sobject.tooling.soap.sforce.com","RequestIdentifier","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class)); } } private void writeFieldRequestIdentifier(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("RequestIdentifier", "urn:sobject.tooling.soap.sforce.com","RequestIdentifier","http://www.w3.org/2001/XMLSchema","string",0,1,true), RequestIdentifier, RequestIdentifier__is_set); } /** * element : StartTime of type {http://www.w3.org/2001/XMLSchema}dateTime * java type: java.util.Calendar */ private boolean StartTime__is_set = false; private java.util.Calendar StartTime; public java.util.Calendar getStartTime() { return StartTime; } public void setStartTime(java.util.Calendar StartTime) { this.StartTime = StartTime; StartTime__is_set = true; } protected void setStartTime(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException { __in.peekTag(); if (__typeMapper.isElement(__in, _lookupTypeInfo("StartTime", "urn:sobject.tooling.soap.sforce.com","StartTime","http://www.w3.org/2001/XMLSchema","dateTime",0,1,true))) { setStartTime((java.util.Calendar)__typeMapper.readObject(__in, _lookupTypeInfo("StartTime", "urn:sobject.tooling.soap.sforce.com","StartTime","http://www.w3.org/2001/XMLSchema","dateTime",0,1,true), java.util.Calendar.class)); } } private void writeFieldStartTime(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("StartTime", "urn:sobject.tooling.soap.sforce.com","StartTime","http://www.w3.org/2001/XMLSchema","dateTime",0,1,true), StartTime, StartTime__is_set); } /** * element : Status of type {http://www.w3.org/2001/XMLSchema}string * java type: java.lang.String */ private boolean Status__is_set = false; private java.lang.String Status; public java.lang.String getStatus() { return Status; } public void setStatus(java.lang.String Status) { this.Status = Status; Status__is_set = true; } protected void setStatus(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException { __in.peekTag(); if (__typeMapper.isElement(__in, _lookupTypeInfo("Status", "urn:sobject.tooling.soap.sforce.com","Status","http://www.w3.org/2001/XMLSchema","string",0,1,true))) { setStatus(__typeMapper.readString(__in, _lookupTypeInfo("Status", "urn:sobject.tooling.soap.sforce.com","Status","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class)); } } private void writeFieldStatus(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("Status", "urn:sobject.tooling.soap.sforce.com","Status","http://www.w3.org/2001/XMLSchema","string",0,1,true), Status, Status__is_set); } /** * element : SystemModstamp of type {http://www.w3.org/2001/XMLSchema}dateTime * java type: java.util.Calendar */ private boolean SystemModstamp__is_set = false; private java.util.Calendar SystemModstamp; public java.util.Calendar getSystemModstamp() { return SystemModstamp; } public void setSystemModstamp(java.util.Calendar SystemModstamp) { this.SystemModstamp = SystemModstamp; SystemModstamp__is_set = true; } protected void setSystemModstamp(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException { __in.peekTag(); if (__typeMapper.isElement(__in, _lookupTypeInfo("SystemModstamp", "urn:sobject.tooling.soap.sforce.com","SystemModstamp","http://www.w3.org/2001/XMLSchema","dateTime",0,1,true))) { setSystemModstamp((java.util.Calendar)__typeMapper.readObject(__in, _lookupTypeInfo("SystemModstamp", "urn:sobject.tooling.soap.sforce.com","SystemModstamp","http://www.w3.org/2001/XMLSchema","dateTime",0,1,true), java.util.Calendar.class)); } } private void writeFieldSystemModstamp(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("SystemModstamp", "urn:sobject.tooling.soap.sforce.com","SystemModstamp","http://www.w3.org/2001/XMLSchema","dateTime",0,1,true), SystemModstamp, SystemModstamp__is_set); } /** */ @Override public void write(javax.xml.namespace.QName __element, com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __out.writeStartTag(__element.getNamespaceURI(), __element.getLocalPart()); __typeMapper.writeXsiType(__out, "urn:sobject.tooling.soap.sforce.com", "ApexLog"); writeFields(__out, __typeMapper); __out.writeEndTag(__element.getNamespaceURI(), __element.getLocalPart()); } protected void writeFields(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { super.writeFields(__out, __typeMapper); writeFields1(__out, __typeMapper); } @Override public void load(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException { __typeMapper.consumeStartTag(__in); loadFields(__in, __typeMapper); __typeMapper.consumeEndTag(__in); } protected void loadFields(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException { super.loadFields(__in, __typeMapper); loadFields1(__in, __typeMapper); } @Override public String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("[ApexLog "); sb.append(super.toString()); toString1(sb); sb.append("]\n"); return sb.toString(); } private void toStringHelper(StringBuilder sb, String name, Object value) { sb.append(' ').append(name).append("='").append(com.sforce.ws.util.Verbose.toString(value)).append("'\n"); } private void writeFields1(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { writeFieldApplication(__out, __typeMapper); writeFieldDurationMilliseconds(__out, __typeMapper); writeFieldLastModifiedDate(__out, __typeMapper); writeFieldLocation(__out, __typeMapper); writeFieldLogLength(__out, __typeMapper); writeFieldLogUser(__out, __typeMapper); writeFieldLogUserId(__out, __typeMapper); writeFieldOperation(__out, __typeMapper); writeFieldRequest(__out, __typeMapper); writeFieldRequestIdentifier(__out, __typeMapper); writeFieldStartTime(__out, __typeMapper); writeFieldStatus(__out, __typeMapper); writeFieldSystemModstamp(__out, __typeMapper); } private void loadFields1(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException { setApplication(__in, __typeMapper); setDurationMilliseconds(__in, __typeMapper); setLastModifiedDate(__in, __typeMapper); setLocation(__in, __typeMapper); setLogLength(__in, __typeMapper); setLogUser(__in, __typeMapper); setLogUserId(__in, __typeMapper); setOperation(__in, __typeMapper); setRequest(__in, __typeMapper); setRequestIdentifier(__in, __typeMapper); setStartTime(__in, __typeMapper); setStatus(__in, __typeMapper); setSystemModstamp(__in, __typeMapper); } private void toString1(StringBuilder sb) { toStringHelper(sb, "Application", Application); toStringHelper(sb, "DurationMilliseconds", DurationMilliseconds); toStringHelper(sb, "LastModifiedDate", LastModifiedDate); toStringHelper(sb, "Location", Location); toStringHelper(sb, "LogLength", LogLength); toStringHelper(sb, "LogUser", LogUser); toStringHelper(sb, "LogUserId", LogUserId); toStringHelper(sb, "Operation", Operation); toStringHelper(sb, "Request", Request); toStringHelper(sb, "RequestIdentifier", RequestIdentifier); toStringHelper(sb, "StartTime", StartTime); toStringHelper(sb, "Status", Status); toStringHelper(sb, "SystemModstamp", SystemModstamp); } }