public class LocalObject extends java.lang.Object implements LocalId, LocalStringId, java.io.Serializable, DeepCloneable, java.lang.Comparable<LocalObject>, com.appiancorp.core.expr.portable.PortableLocalObject
LocalId
,
LocalStringId
,
LocalObjectTypeMapping
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected static Logger |
LOG |
Constructor and Description |
---|
LocalObject()
Constructor that constructs an empty local object.
|
LocalObject(java.lang.Integer type_,
java.lang.Long id_)
Constructor that constructs from a given type and id.
|
LocalObject(java.lang.Integer type_,
java.lang.String id_)
Constructor that constructs from a type and String id.
|
LocalObject(LocalId o_)
Constructor that constructs from a given
LocalId object. |
LocalObject(LocalStringId o_)
Constructor that constructs from a given
LocalStringId object. |
Modifier and Type | Method and Description |
---|---|
static LocalObject[] |
buildUserContext(java.lang.String userId)
Builds the user context for a report.
|
java.lang.Object |
clone()
Creates and returns a copy of this object.
|
int |
compareTo(LocalObject o)
Compares the specified
LocalObject
with this LocalObject for ordering. |
boolean |
equals(java.lang.Object o_)
Returns whether the
LocalObject been passed is equal to this
LocalObject . |
java.lang.Long |
getId()
Returns the ID of this
LocalObject . |
static LocalObjectTypeMapping |
getObjectTypeMapping()
Get the mapping object used to determine a first-class object's type.
|
java.lang.String |
getStringId()
Returns the String Id of this
LocalObject . |
java.lang.Integer |
getType()
Gets the type of this
LocalObject . |
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
isNull()
A LocalObject may be null by containing a null type, or null object within the type.
|
void |
setId(java.lang.Long p_)
Sets the ID of this
LocalObject . |
static void |
setObjectTypeMapping(LocalObjectTypeMapping p_)
Set the mapper used to determine an first-class object's type.
|
void |
setStringId(java.lang.String stringId_)
Sets the String ID of this
LocalObject . |
void |
setType(java.lang.Integer p_)
Set the type of this
LocalObject . |
java.lang.String |
toString()
Returns a string representation of the
LocalObject .In general,
the toString method returns a string that "textually represents" this
object. |
public LocalObject()
public LocalObject(LocalId o_)
LocalId
object.o_
- LocalId to construct the object frompublic LocalObject(LocalStringId o_)
LocalStringId
object.o_
- LocalStringId to construct the object frompublic LocalObject(java.lang.Integer type_, java.lang.Long id_)
type_
- Use a constant from an ObjectTypeMapping
.id_
- ID of type Long for object to constructorpublic LocalObject(java.lang.Integer type_, java.lang.String id_)
type_
- Use a constant from an ObjectTypeMapping
.id_
- String ID of the object to constructpublic java.lang.Long getId()
LocalObject
.getId
in interface com.appiancorp.core.expr.portable.PortableLocalObject
getId
in interface LocalId
setId(Long)
public void setId(java.lang.Long p_)
LocalObject
.public java.lang.Integer getType()
LocalObject
. Should return a constant
from ObjectTypeMapping
.getType
in interface com.appiancorp.core.expr.portable.PortableLocalObject
setType(Integer)
public void setType(java.lang.Integer p_)
LocalObject
. Use a constant from
ObjectTypeMapping
.p_
- Type of this object to setgetType()
public static LocalObjectTypeMapping getObjectTypeMapping()
setObjectTypeMapping(com.appiancorp.suiteapi.common.LocalObjectTypeMapping)
public static void setObjectTypeMapping(LocalObjectTypeMapping p_)
p_
- Sets the mapping class used to determine object's typegetObjectTypeMapping()
public java.lang.String getStringId()
LocalObject
.getStringId
in interface com.appiancorp.core.expr.portable.PortableLocalObject
getStringId
in interface LocalStringId
setStringId(String)
public void setStringId(java.lang.String stringId_)
LocalObject
.setStringId
in interface LocalStringId
stringId_
- The string Id to set.getStringId()
public boolean equals(java.lang.Object o_)
LocalObject
been passed is equal to this
LocalObject
.equals
in class java.lang.Object
o_
- the reference object with which to compare.true
if both objects are equal, otherwise
false
public int hashCode()
Hashtable
.hashCode
in class java.lang.Object
public java.lang.String toString()
LocalObject
.In general,
the toString method returns a string that "textually represents" this
object.toString
in class java.lang.Object
public boolean isNull()
public java.lang.Object clone()
clone
in interface DeepCloneable
clone
in class java.lang.Object
public int compareTo(LocalObject o)
LocalObject
with this LocalObject
for ordering.
Compares both types
and then both ids
or stringIds
according to the types
.compareTo
in interface java.lang.Comparable<LocalObject>
o
- the LocalObject
to be compared.0
if the argument LocalObject is equal to
this LocalObject; a value less than 0
if this LocalObject
is before the LocalObject argument; and a value greater than
0
if this LocalObject is after the LocalObject argument.public static LocalObject[] buildUserContext(java.lang.String userId)
userId
- the user ID; cannot be nullCopyright © 2003-2024 Appian Corporation. All Rights Reserved.