Package ai.heavy.thrift.server
Class TDBObject
- java.lang.Object
-
- ai.heavy.thrift.server.TDBObject
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TDBObject>,org.apache.thrift.TBase<TDBObject,TDBObject._Fields>,org.apache.thrift.TSerializable
public class TDBObject extends Object implements org.apache.thrift.TBase<TDBObject,TDBObject._Fields>, Serializable, Cloneable, Comparable<TDBObject>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTDBObject._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description Stringgranteestatic Map<TDBObject._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapintobjectIdStringobjectNameTDBObjectTypeobjectTypeTDBObjectTypeprivilegeObjectTypeList<Boolean>privs
-
Constructor Summary
Constructors Constructor Description TDBObject()TDBObject(TDBObject other)Performs a deep copy on other.TDBObject(String objectName, TDBObjectType objectType, List<Boolean> privs, String grantee, TDBObjectType privilegeObjectType, int objectId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToPrivs(boolean elem)voidclear()intcompareTo(TDBObject other)TDBObjectdeepCopy()booleanequals(TDBObject that)booleanequals(Object that)TDBObject._FieldsfieldForId(int fieldId)ObjectgetFieldValue(TDBObject._Fields field)StringgetGrantee()intgetObjectId()StringgetObjectName()TDBObjectTypegetObjectType()TDBObjectTypegetPrivilegeObjectType()List<Boolean>getPrivs()Iterator<Boolean>getPrivsIterator()intgetPrivsSize()inthashCode()booleanisSet(TDBObject._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetGrantee()Returns true if field grantee is set (has been assigned a value) and false otherwisebooleanisSetObjectId()Returns true if field objectId is set (has been assigned a value) and false otherwisebooleanisSetObjectName()Returns true if field objectName is set (has been assigned a value) and false otherwisebooleanisSetObjectType()Returns true if field objectType is set (has been assigned a value) and false otherwisebooleanisSetPrivilegeObjectType()Returns true if field privilegeObjectType is set (has been assigned a value) and false otherwisebooleanisSetPrivs()Returns true if field privs is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)voidsetFieldValue(TDBObject._Fields field, Object value)TDBObjectsetGrantee(String grantee)voidsetGranteeIsSet(boolean value)TDBObjectsetObjectId(int objectId)voidsetObjectIdIsSet(boolean value)TDBObjectsetObjectName(String objectName)voidsetObjectNameIsSet(boolean value)TDBObjectsetObjectType(TDBObjectType objectType)voidsetObjectTypeIsSet(boolean value)TDBObjectsetPrivilegeObjectType(TDBObjectType privilegeObjectType)voidsetPrivilegeObjectTypeIsSet(boolean value)TDBObjectsetPrivs(List<Boolean> privs)voidsetPrivsIsSet(boolean value)StringtoString()voidunsetGrantee()voidunsetObjectId()voidunsetObjectName()voidunsetObjectType()voidunsetPrivilegeObjectType()voidunsetPrivs()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
objectName
public String objectName
-
objectType
public TDBObjectType objectType
- See Also:
TDBObjectType
-
grantee
public String grantee
-
privilegeObjectType
public TDBObjectType privilegeObjectType
- See Also:
TDBObjectType
-
objectId
public int objectId
-
metaDataMap
public static final Map<TDBObject._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
TDBObject
public TDBObject()
-
TDBObject
public TDBObject(String objectName, TDBObjectType objectType, List<Boolean> privs, String grantee, TDBObjectType privilegeObjectType, int objectId)
-
TDBObject
public TDBObject(TDBObject other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public TDBObject deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<TDBObject,TDBObject._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<TDBObject,TDBObject._Fields>
-
getObjectName
public String getObjectName()
-
unsetObjectName
public void unsetObjectName()
-
isSetObjectName
public boolean isSetObjectName()
Returns true if field objectName is set (has been assigned a value) and false otherwise
-
setObjectNameIsSet
public void setObjectNameIsSet(boolean value)
-
getObjectType
public TDBObjectType getObjectType()
- See Also:
TDBObjectType
-
setObjectType
public TDBObject setObjectType(TDBObjectType objectType)
- See Also:
TDBObjectType
-
unsetObjectType
public void unsetObjectType()
-
isSetObjectType
public boolean isSetObjectType()
Returns true if field objectType is set (has been assigned a value) and false otherwise
-
setObjectTypeIsSet
public void setObjectTypeIsSet(boolean value)
-
getPrivsSize
public int getPrivsSize()
-
addToPrivs
public void addToPrivs(boolean elem)
-
unsetPrivs
public void unsetPrivs()
-
isSetPrivs
public boolean isSetPrivs()
Returns true if field privs is set (has been assigned a value) and false otherwise
-
setPrivsIsSet
public void setPrivsIsSet(boolean value)
-
getGrantee
public String getGrantee()
-
unsetGrantee
public void unsetGrantee()
-
isSetGrantee
public boolean isSetGrantee()
Returns true if field grantee is set (has been assigned a value) and false otherwise
-
setGranteeIsSet
public void setGranteeIsSet(boolean value)
-
getPrivilegeObjectType
public TDBObjectType getPrivilegeObjectType()
- See Also:
TDBObjectType
-
setPrivilegeObjectType
public TDBObject setPrivilegeObjectType(TDBObjectType privilegeObjectType)
- See Also:
TDBObjectType
-
unsetPrivilegeObjectType
public void unsetPrivilegeObjectType()
-
isSetPrivilegeObjectType
public boolean isSetPrivilegeObjectType()
Returns true if field privilegeObjectType is set (has been assigned a value) and false otherwise
-
setPrivilegeObjectTypeIsSet
public void setPrivilegeObjectTypeIsSet(boolean value)
-
getObjectId
public int getObjectId()
-
setObjectId
public TDBObject setObjectId(int objectId)
-
unsetObjectId
public void unsetObjectId()
-
isSetObjectId
public boolean isSetObjectId()
Returns true if field objectId is set (has been assigned a value) and false otherwise
-
setObjectIdIsSet
public void setObjectIdIsSet(boolean value)
-
setFieldValue
public void setFieldValue(TDBObject._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<TDBObject,TDBObject._Fields>
-
getFieldValue
public Object getFieldValue(TDBObject._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<TDBObject,TDBObject._Fields>
-
isSet
public boolean isSet(TDBObject._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<TDBObject,TDBObject._Fields>
-
equals
public boolean equals(TDBObject that)
-
compareTo
public int compareTo(TDBObject other)
- Specified by:
compareToin interfaceComparable<TDBObject>
-
fieldForId
public TDBObject._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TDBObject,TDBObject._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException- Specified by:
readin interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException- Specified by:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
-