Liferay 6.0.5

com.liferay.portal.model.impl
Class BaseModelImpl<T>

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<T>
All Implemented Interfaces:
BaseModel<T>, Serializable, Cloneable, Comparable<T>
Direct Known Subclasses:
AccountModelImpl, AddressModelImpl, AnnouncementsDeliveryModelImpl, AnnouncementsEntryModelImpl, AnnouncementsFlagModelImpl, AssetCategoryModelImpl, AssetCategoryPropertyModelImpl, AssetEntryModelImpl, AssetLinkModelImpl, AssetTagModelImpl, AssetTagPropertyModelImpl, AssetTagStatsModelImpl, AssetVocabularyModelImpl, BlogsEntryModelImpl, BlogsStatsUserModelImpl, BookmarksEntryModelImpl, BookmarksFolderModelImpl, BrowserTrackerModelImpl, CalEventModelImpl, ClassNameModelImpl, ClusterGroupModelImpl, CompanyModelImpl, ContactModelImpl, CounterModelImpl, CountryModelImpl, DLFileEntryModelImpl, DLFileRankModelImpl, DLFileShortcutModelImpl, DLFileVersionModelImpl, DLFolderModelImpl, DummyImpl, EmailAddressModelImpl, ExpandoColumnModelImpl, ExpandoRowModelImpl, ExpandoTableModelImpl, ExpandoValueModelImpl, GroupModelImpl, IGFolderModelImpl, IGImageModelImpl, ImageModelImpl, JournalArticleImageModelImpl, JournalArticleModelImpl, JournalArticleResourceModelImpl, JournalContentSearchModelImpl, JournalFeedModelImpl, JournalStructureModelImpl, JournalTemplateModelImpl, LayoutModelImpl, LayoutPrototypeModelImpl, LayoutSetModelImpl, LayoutSetPrototypeModelImpl, ListTypeModelImpl, LockModelImpl, MBBanModelImpl, MBCategoryModelImpl, MBDiscussionModelImpl, MBMailingListModelImpl, MBMessageFlagModelImpl, MBMessageModelImpl, MBStatsUserModelImpl, MBThreadModelImpl, MembershipRequestModelImpl, OrganizationModelImpl, OrgGroupPermissionModelImpl, OrgGroupRoleModelImpl, OrgLaborModelImpl, PasswordPolicyModelImpl, PasswordPolicyRelModelImpl, PasswordTrackerModelImpl, PermissionModelImpl, PhoneModelImpl, PluginSettingModelImpl, PollsChoiceModelImpl, PollsQuestionModelImpl, PollsVoteModelImpl, PortletItemModelImpl, PortletModelImpl, PortletPreferencesModelImpl, RatingsEntryModelImpl, RatingsStatsModelImpl, RegionModelImpl, ReleaseModelImpl, ResourceActionModelImpl, ResourceCodeModelImpl, ResourceModelImpl, ResourcePermissionModelImpl, RoleModelImpl, SCFrameworkVersionModelImpl, SCLicenseModelImpl, SCProductEntryModelImpl, SCProductScreenshotModelImpl, SCProductVersionModelImpl, ServiceComponentModelImpl, ShardModelImpl, ShoppingCartModelImpl, ShoppingCategoryModelImpl, ShoppingCouponModelImpl, ShoppingItemFieldModelImpl, ShoppingItemModelImpl, ShoppingItemPriceModelImpl, ShoppingOrderItemModelImpl, ShoppingOrderModelImpl, SocialActivityModelImpl, SocialEquityAssetEntryModelImpl, SocialEquityHistoryModelImpl, SocialEquityLogModelImpl, SocialEquitySettingModelImpl, SocialEquityUserModelImpl, SocialRelationModelImpl, SocialRequestModelImpl, SubscriptionModelImpl, TasksProposalModelImpl, TasksReviewModelImpl, TeamModelImpl, TicketModelImpl, UserGroupGroupRoleModelImpl, UserGroupModelImpl, UserGroupRoleModelImpl, UserIdMapperModelImpl, UserModelImpl, UserTrackerModelImpl, UserTrackerPathModelImpl, WebDAVPropsModelImpl, WebsiteModelImpl, WikiNodeModelImpl, WikiPageModelImpl, WikiPageResourceModelImpl, WorkflowDefinitionLinkModelImpl, WorkflowInstanceLinkModelImpl

public abstract class BaseModelImpl<T>
extends Object
implements BaseModel<T>

The base implementation for all model classes. This class should never need to be used directly.

See Also:
Serialized Form

Constructor Summary
BaseModelImpl()
           
 
Method Summary
abstract  Object clone()
          Creates a shallow clone of this model instance.
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 boolean isCachedModel()
          Determines if this model instance was retrieved from the entity cache.
 boolean isEscapedModel()
          Determines if this model instance is escaped.
 boolean isNew()
          Determines if this model instance does not yet exist in the database.
 void setCachedModel(boolean cachedModel)
          Sets whether this model instance was retrieved from the entity cache.
 void setEscapedModel(boolean escapedModel)
          Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.model.BaseModel
getPrimaryKeyObj, toXmlString
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

BaseModelImpl

public BaseModelImpl()
Method Detail

isNew

public boolean isNew()
Description copied from interface: BaseModel
Determines if this model instance does not yet exist in the database.

Specified by:
isNew in interface BaseModel<T>
Returns:
true if this model instance does not yet exist in the database; false otherwise

setNew

public void setNew(boolean n)
Description copied from interface: BaseModel
Sets whether this model instance does not yet exist in the database.

Specified by:
setNew in interface BaseModel<T>
Parameters:
n - whether this model instance does not yet exist in the database

isCachedModel

public boolean isCachedModel()
Description copied from interface: BaseModel
Determines if this model instance was retrieved from the entity cache.

Specified by:
isCachedModel in interface BaseModel<T>
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

setCachedModel

public void setCachedModel(boolean cachedModel)
Description copied from interface: BaseModel
Sets whether this model instance was retrieved from the entity cache.

Specified by:
setCachedModel in interface BaseModel<T>
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Determines if this model instance is escaped.

Specified by:
isEscapedModel in interface BaseModel<T>
Returns:
true if this model instance is escaped; false otherwise
See Also:
BaseModel.setEscapedModel(boolean)

setEscapedModel

public void setEscapedModel(boolean escapedModel)
Description copied from interface: BaseModel
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe.

A model instance can be made escaped by wrapping it with an HTML auto escape handler using its toEscapedModel method. For example, UserModel.toEscapedModel().

Specified by:
setEscapedModel in interface BaseModel<T>
Parameters:
escapedModel - whether this model instance is escaped
See Also:
AutoEscapeBeanHandler

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Gets the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<T>
Returns:
the expando bridge for this model instance

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface BaseModel<T>
Parameters:
serviceContext - the service context to retrieve the expando bridge attributes from
See Also:
ServiceContext.getExpandoBridgeAttributes( )

clone

public abstract Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<T>
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

Liferay 6.0.5