public abstract class FoundationObject extends Bean
| Modifier and Type | Field and Description | 
|---|---|
| protected long | internalId | 
| protected String | internalName | 
| static Logger | log | 
| protected static SimpleDateFormat | TIMESTAMP_FORMAT | 
SERIALIZED_CLASS_NAME, TYPEXML_SERIALIZED_CLASS_NAME| Constructor and Description | 
|---|
| FoundationObject() | 
| Modifier and Type | Method and Description | 
|---|---|
| DataException | addExceptionProperties(DataException exception)Adds this object's current state to a  DataException. | 
| FoundationObject | assertValid() | 
| protected FoundationObject | assertValid(Collection<? extends FoundationObject> objects) | 
| protected FoundationObject | clone() | 
| DataException | exception(String message)Creates an exception with the specified message and containing this endpoint's properties (name-value pairs). | 
| DataException | exception(String message,
         Throwable exception)Converts an exception to a  DataException, prefixing the original message with the specified text
 and adding this endpoint's properties (name-value pairs). | 
| DataException | exception(Throwable exception)Converts an exception to a  DataExceptionand adds this endpoint's properties (name-value pairs). | 
| long | getInternalId()The auto numbered ID of this instance. | 
| String | getInternalName()The name of this instance ( | 
| static long | resetInternalId() | 
fromRecord, toRecord, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfromArrayValue, fromArrayValue, fromArrayValue, fromJson, fromJson, newInstanceFromRecord, newInstanceFromRecord, toArrayValue, toJson, toJson, toJson, toRecordnewInstanceFromJsonforEachGrandChildElement, fromXml, fromXml, fromXmlElement, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getChildElement, getChildElements, newInstanceFromXml, newInstanceFromXml, setAttribute, toXml, toXml, toXml, toXml, toXml, toXmlElement, writeXml, writeXmladdExceptionProperties, contributeExceptionProperties, contributeExceptionPropertiespublic static final Logger log
protected static final SimpleDateFormat TIMESTAMP_FORMAT
protected long internalId
protected String internalName
public static long resetInternalId()
protected FoundationObject clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic final long getInternalId()
public final String getInternalName()
public DataException addExceptionProperties(DataException exception)
DataException.  Since this method is called whenever an
 exception is thrown, subclasses should override it to add their specific information.addExceptionProperties in interface DataExceptionContributoraddExceptionProperties in class Beanpublic DataException exception(String message, Throwable exception)
DataException, prefixing the original message with the specified text
 and adding this endpoint's properties (name-value pairs).
 
 The returned exception can then be thrown in the normal way.
If the supplied exception is an instanceof DataException, it will be returned, otherwise it will be
 nested inside a DataException.  In either case the result message will contain the new prefix along
 with this endpoint properties.
public DataException exception(Throwable exception)
DataException and adds this endpoint's properties (name-value pairs).
 
 The returned exception can then be thrown in the normal way.
If the supplied exception is an instanceof DataException, it will be returned, otherwise it will be
 nested inside a DataException.  In either case the result message will contain this endpoint properties.
public DataException exception(String message)
The returned exception can then be thrown in the normal way.
public FoundationObject assertValid()
protected FoundationObject assertValid(Collection<? extends FoundationObject> objects)
Copyright (c) 2006-2025 North Concepts Inc. All Rights Reserved.