Liferay 6.1.2-ce-ga3

com.liferay.portal.model.impl
Class OrganizationModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<Organization>
      extended by com.liferay.portal.model.impl.OrganizationModelImpl
All Implemented Interfaces:
BaseModel<Organization>, ClassedModel, OrganizationModel, Serializable, Cloneable, Comparable<Organization>
Direct Known Subclasses:
OrganizationBaseImpl

@JSON(strict=true)
public class OrganizationModelImpl
extends BaseModelImpl<Organization>
implements OrganizationModel

The base model implementation for the Organization service. Represents a row in the "Organization_" database table, with each column mapped to a property of this class.

This implementation and its corresponding interface OrganizationModel exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in OrganizationImpl.

See Also:
OrganizationImpl, Organization, OrganizationModel, Serialized Form
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
static boolean COLUMN_BITMASK_ENABLED
           
static long COMPANYID_COLUMN_BITMASK
           
static String DATA_SOURCE
           
static boolean ENTITY_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED_GROUPS_ORGS
           
static boolean FINDER_CACHE_ENABLED_USERS_ORGS
           
static long LOCK_EXPIRATION_TIME
           
static Object[][] MAPPING_TABLE_GROUPS_ORGS_COLUMNS
           
static String MAPPING_TABLE_GROUPS_ORGS_NAME
           
static String MAPPING_TABLE_GROUPS_ORGS_SQL_CREATE
           
static Object[][] MAPPING_TABLE_USERS_ORGS_COLUMNS
           
static String MAPPING_TABLE_USERS_ORGS_NAME
           
static String MAPPING_TABLE_USERS_ORGS_SQL_CREATE
           
static long NAME_COLUMN_BITMASK
           
static String ORDER_BY_JPQL
           
static String ORDER_BY_SQL
           
static long PARENTORGANIZATIONID_COLUMN_BITMASK
           
static String SESSION_FACTORY
           
static Object[][] TABLE_COLUMNS
           
static String TABLE_NAME
           
static String TABLE_SQL_CREATE
           
static String TABLE_SQL_DROP
           
static String TX_MANAGER
           
 
Constructor Summary
OrganizationModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(Organization organization)
           
 boolean equals(Object obj)
           
 long getColumnBitmask()
           
 String getComments()
          Returns the comments of this organization.
 long getCompanyId()
          Returns the company ID of this organization.
 long getCountryId()
          Returns the country ID of this organization.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 String getName()
          Returns the name of this organization.
 long getOrganizationId()
          Returns the organization ID of this organization.
 long getOriginalCompanyId()
           
 String getOriginalName()
           
 long getOriginalParentOrganizationId()
           
 long getParentOrganizationId()
          Returns the parent organization ID of this organization.
 long getPrimaryKey()
          Returns the primary key of this organization.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 boolean getRecursable()
          Returns the recursable of this organization.
 long getRegionId()
          Returns the region ID of this organization.
 int getStatusId()
          Returns the status ID of this organization.
 String getTreePath()
          Returns the tree path of this organization.
 String getType()
          Returns the type of this organization.
 int hashCode()
           
 boolean isRecursable()
          Returns true if this organization is recursable.
 void resetOriginalValues()
          Reset all original fields to current values.
 void setComments(String comments)
          Sets the comments of this organization.
 void setCompanyId(long companyId)
          Sets the company ID of this organization.
 void setCountryId(long countryId)
          Sets the country ID of this organization.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setName(String name)
          Sets the name of this organization.
 void setOrganizationId(long organizationId)
          Sets the organization ID of this organization.
 void setParentOrganizationId(long parentOrganizationId)
          Sets the parent organization ID of this organization.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this organization.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setRecursable(boolean recursable)
          Sets whether this organization is recursable.
 void setRegionId(long regionId)
          Sets the region ID of this organization.
 void setStatusId(int statusId)
          Sets the status ID of this organization.
 void setTreePath(String treePath)
          Sets the tree path of this organization.
 void setType(String type)
          Sets the type of this organization.
 CacheModel<Organization> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 Organization toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
static Organization toModel(OrganizationSoap soapModel)
          Converts the soap model instance into a normal model instance.
static List<Organization> toModels(OrganizationSoap[] soapModels)
          Converts the soap model instances into normal model instances.
 String toString()
           
 Organization toUnescapedModel()
           
 String toXmlString()
          Returns the XML representation of this model instance.
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setNew
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.model.OrganizationModel
isCachedModel, isEscapedModel, isNew, setCachedModel, setNew
 

Field Detail

TABLE_NAME

public static final String TABLE_NAME
See Also:
Constant Field Values

TABLE_COLUMNS

public static final Object[][] TABLE_COLUMNS

TABLE_SQL_CREATE

public static final String TABLE_SQL_CREATE
See Also:
Constant Field Values

TABLE_SQL_DROP

public static final String TABLE_SQL_DROP
See Also:
Constant Field Values

ORDER_BY_JPQL

public static final String ORDER_BY_JPQL
See Also:
Constant Field Values

ORDER_BY_SQL

public static final String ORDER_BY_SQL
See Also:
Constant Field Values

DATA_SOURCE

public static final String DATA_SOURCE
See Also:
Constant Field Values

SESSION_FACTORY

public static final String SESSION_FACTORY
See Also:
Constant Field Values

TX_MANAGER

public static final String TX_MANAGER
See Also:
Constant Field Values

ENTITY_CACHE_ENABLED

public static final boolean ENTITY_CACHE_ENABLED

FINDER_CACHE_ENABLED

public static final boolean FINDER_CACHE_ENABLED

COLUMN_BITMASK_ENABLED

public static final boolean COLUMN_BITMASK_ENABLED

COMPANYID_COLUMN_BITMASK

public static long COMPANYID_COLUMN_BITMASK

NAME_COLUMN_BITMASK

public static long NAME_COLUMN_BITMASK

PARENTORGANIZATIONID_COLUMN_BITMASK

public static long PARENTORGANIZATIONID_COLUMN_BITMASK

MAPPING_TABLE_GROUPS_ORGS_NAME

public static final String MAPPING_TABLE_GROUPS_ORGS_NAME
See Also:
Constant Field Values

MAPPING_TABLE_GROUPS_ORGS_COLUMNS

public static final Object[][] MAPPING_TABLE_GROUPS_ORGS_COLUMNS

MAPPING_TABLE_GROUPS_ORGS_SQL_CREATE

public static final String MAPPING_TABLE_GROUPS_ORGS_SQL_CREATE
See Also:
Constant Field Values

FINDER_CACHE_ENABLED_GROUPS_ORGS

public static final boolean FINDER_CACHE_ENABLED_GROUPS_ORGS

MAPPING_TABLE_USERS_ORGS_NAME

public static final String MAPPING_TABLE_USERS_ORGS_NAME
See Also:
Constant Field Values

MAPPING_TABLE_USERS_ORGS_COLUMNS

public static final Object[][] MAPPING_TABLE_USERS_ORGS_COLUMNS

MAPPING_TABLE_USERS_ORGS_SQL_CREATE

public static final String MAPPING_TABLE_USERS_ORGS_SQL_CREATE
See Also:
Constant Field Values

FINDER_CACHE_ENABLED_USERS_ORGS

public static final boolean FINDER_CACHE_ENABLED_USERS_ORGS

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

OrganizationModelImpl

public OrganizationModelImpl()
Method Detail

toModel

public static Organization toModel(OrganizationSoap soapModel)
Converts the soap model instance into a normal model instance.

Parameters:
soapModel - the soap model instance to convert
Returns:
the normal model instance

toModels

public static List<Organization> toModels(OrganizationSoap[] soapModels)
Converts the soap model instances into normal model instances.

Parameters:
soapModels - the soap model instances to convert
Returns:
the normal model instances

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: OrganizationModel
Returns the primary key of this organization.

Specified by:
getPrimaryKey in interface OrganizationModel
Returns:
the primary key of this organization

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Description copied from interface: OrganizationModel
Sets the primary key of this organization.

Specified by:
setPrimaryKey in interface OrganizationModel
Parameters:
primaryKey - the primary key of this organization

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Returns the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<Organization>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface OrganizationModel
Returns:
the primary key of this model instance

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Description copied from interface: BaseModel
Sets the primary key of this model instance.

Specified by:
setPrimaryKeyObj in interface BaseModel<Organization>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface OrganizationModel
Parameters:
primaryKeyObj - the primary key of this model instance

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface ClassedModel

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface BaseModel<Organization>
Overrides:
getModelAttributes in class BaseModelImpl<Organization>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<Organization>
Overrides:
setModelAttributes in class BaseModelImpl<Organization>

getOrganizationId

@JSON
public long getOrganizationId()
Description copied from interface: OrganizationModel
Returns the organization ID of this organization.

Specified by:
getOrganizationId in interface OrganizationModel
Returns:
the organization ID of this organization

setOrganizationId

public void setOrganizationId(long organizationId)
Description copied from interface: OrganizationModel
Sets the organization ID of this organization.

Specified by:
setOrganizationId in interface OrganizationModel
Parameters:
organizationId - the organization ID of this organization

getCompanyId

@JSON
public long getCompanyId()
Description copied from interface: OrganizationModel
Returns the company ID of this organization.

Specified by:
getCompanyId in interface OrganizationModel
Returns:
the company ID of this organization

setCompanyId

public void setCompanyId(long companyId)
Description copied from interface: OrganizationModel
Sets the company ID of this organization.

Specified by:
setCompanyId in interface OrganizationModel
Parameters:
companyId - the company ID of this organization

getOriginalCompanyId

public long getOriginalCompanyId()

getParentOrganizationId

@JSON
public long getParentOrganizationId()
Description copied from interface: OrganizationModel
Returns the parent organization ID of this organization.

Specified by:
getParentOrganizationId in interface OrganizationModel
Returns:
the parent organization ID of this organization

setParentOrganizationId

public void setParentOrganizationId(long parentOrganizationId)
Description copied from interface: OrganizationModel
Sets the parent organization ID of this organization.

Specified by:
setParentOrganizationId in interface OrganizationModel
Parameters:
parentOrganizationId - the parent organization ID of this organization

getOriginalParentOrganizationId

public long getOriginalParentOrganizationId()

getTreePath

@JSON
public String getTreePath()
Description copied from interface: OrganizationModel
Returns the tree path of this organization.

Specified by:
getTreePath in interface OrganizationModel
Returns:
the tree path of this organization

setTreePath

public void setTreePath(String treePath)
Description copied from interface: OrganizationModel
Sets the tree path of this organization.

Specified by:
setTreePath in interface OrganizationModel
Parameters:
treePath - the tree path of this organization

getName

@JSON
public String getName()
Description copied from interface: OrganizationModel
Returns the name of this organization.

Specified by:
getName in interface OrganizationModel
Returns:
the name of this organization

setName

public void setName(String name)
Description copied from interface: OrganizationModel
Sets the name of this organization.

Specified by:
setName in interface OrganizationModel
Parameters:
name - the name of this organization

getOriginalName

public String getOriginalName()

getType

@JSON
public String getType()
Description copied from interface: OrganizationModel
Returns the type of this organization.

Specified by:
getType in interface OrganizationModel
Returns:
the type of this organization

setType

public void setType(String type)
Description copied from interface: OrganizationModel
Sets the type of this organization.

Specified by:
setType in interface OrganizationModel
Parameters:
type - the type of this organization

getRecursable

@JSON
public boolean getRecursable()
Description copied from interface: OrganizationModel
Returns the recursable of this organization.

Specified by:
getRecursable in interface OrganizationModel
Returns:
the recursable of this organization

isRecursable

public boolean isRecursable()
Description copied from interface: OrganizationModel
Returns true if this organization is recursable.

Specified by:
isRecursable in interface OrganizationModel
Returns:
true if this organization is recursable; false otherwise

setRecursable

public void setRecursable(boolean recursable)
Description copied from interface: OrganizationModel
Sets whether this organization is recursable.

Specified by:
setRecursable in interface OrganizationModel
Parameters:
recursable - the recursable of this organization

getRegionId

@JSON
public long getRegionId()
Description copied from interface: OrganizationModel
Returns the region ID of this organization.

Specified by:
getRegionId in interface OrganizationModel
Returns:
the region ID of this organization

setRegionId

public void setRegionId(long regionId)
Description copied from interface: OrganizationModel
Sets the region ID of this organization.

Specified by:
setRegionId in interface OrganizationModel
Parameters:
regionId - the region ID of this organization

getCountryId

@JSON
public long getCountryId()
Description copied from interface: OrganizationModel
Returns the country ID of this organization.

Specified by:
getCountryId in interface OrganizationModel
Returns:
the country ID of this organization

setCountryId

public void setCountryId(long countryId)
Description copied from interface: OrganizationModel
Sets the country ID of this organization.

Specified by:
setCountryId in interface OrganizationModel
Parameters:
countryId - the country ID of this organization

getStatusId

@JSON
public int getStatusId()
Description copied from interface: OrganizationModel
Returns the status ID of this organization.

Specified by:
getStatusId in interface OrganizationModel
Returns:
the status ID of this organization

setStatusId

public void setStatusId(int statusId)
Description copied from interface: OrganizationModel
Sets the status ID of this organization.

Specified by:
setStatusId in interface OrganizationModel
Parameters:
statusId - the status ID of this organization

getComments

@JSON
public String getComments()
Description copied from interface: OrganizationModel
Returns the comments of this organization.

Specified by:
getComments in interface OrganizationModel
Returns:
the comments of this organization

setComments

public void setComments(String comments)
Description copied from interface: OrganizationModel
Sets the comments of this organization.

Specified by:
setComments in interface OrganizationModel
Parameters:
comments - the comments of this organization

getColumnBitmask

public long getColumnBitmask()

getExpandoBridge

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

Specified by:
getExpandoBridge in interface BaseModel<Organization>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface OrganizationModel
Overrides:
getExpandoBridge in class BaseModelImpl<Organization>
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<Organization>
Specified by:
setExpandoBridgeAttributes in interface OrganizationModel
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<Organization>
Parameters:
serviceContext - the service context
See Also:
ServiceContext.getExpandoBridgeAttributes( )

toEscapedModel

public Organization toEscapedModel()
Description copied from interface: BaseModel
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface BaseModel<Organization>
Specified by:
toEscapedModel in interface OrganizationModel
Overrides:
toEscapedModel in class BaseModelImpl<Organization>
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public Organization toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<Organization>
Specified by:
toUnescapedModel in interface OrganizationModel
Overrides:
toUnescapedModel in class BaseModelImpl<Organization>

clone

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

Specified by:
clone in interface BaseModel<Organization>
Specified by:
clone in interface OrganizationModel
Specified by:
clone in class BaseModelImpl<Organization>
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(Organization organization)
Specified by:
compareTo in interface OrganizationModel
Specified by:
compareTo in interface Comparable<Organization>

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface OrganizationModel
Overrides:
hashCode in class Object

resetOriginalValues

public void resetOriginalValues()
Description copied from interface: BaseModel
Reset all original fields to current values.

Specified by:
resetOriginalValues in interface BaseModel<Organization>
Overrides:
resetOriginalValues in class BaseModelImpl<Organization>

toCacheModel

public CacheModel<Organization> toCacheModel()
Description copied from interface: BaseModel
Returns a cache model object for this entity used by entity cache.

Specified by:
toCacheModel in interface BaseModel<Organization>
Specified by:
toCacheModel in interface OrganizationModel
Overrides:
toCacheModel in class BaseModelImpl<Organization>
Returns:
the cache model object

toString

public String toString()
Specified by:
toString in interface OrganizationModel
Overrides:
toString in class Object

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Returns the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<Organization>
Specified by:
toXmlString in interface OrganizationModel
Returns:
the XML representation of this model instance

Liferay 6.1.2-ce-ga3