Liferay 6.0.5

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>, OrganizationModel, Serializable, Cloneable, Comparable<Organization>
Direct Known Subclasses:
OrganizationImpl

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.

Never modify or reference this class directly. All methods that expect a organization model instance should use the Organization interface instead.

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

Field Summary
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 String MAPPING_TABLE_GROUPS_ORGS_NAME
           
static String MAPPING_TABLE_USERS_ORGS_NAME
           
static String ORDER_BY_JPQL
           
static String ORDER_BY_SQL
           
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)
           
 String getComments()
          Gets the comments of this organization.
 long getCompanyId()
          Gets the company id of this organization.
 long getCountryId()
          Gets the country id of this organization.
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 long getLeftOrganizationId()
          Gets the left organization id of this organization.
 String getName()
          Gets the name of this organization.
 long getOrganizationId()
          Gets the organization id of this organization.
 long getOriginalCompanyId()
           
 String getOriginalName()
           
 long getOriginalParentOrganizationId()
           
 long getParentOrganizationId()
          Gets the parent organization id of this organization.
 long getPrimaryKey()
          Gets the primary key of this organization.
 Serializable getPrimaryKeyObj()
          Gets the primary key of this model instance.
 boolean getRecursable()
          Gets the recursable of this organization.
 long getRegionId()
          Gets the region id of this organization.
 long getRightOrganizationId()
          Gets the right organization id of this organization.
 int getStatusId()
          Gets the status id of this organization.
 String getType()
          Gets the type of this organization.
 int hashCode()
           
 boolean isRecursable()
          Determines whether this organization is recursable.
 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 setLeftOrganizationId(long leftOrganizationId)
          Sets the left organization id of this organization.
 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 pk)
          Sets the primary key of this organization
 void setRecursable(boolean recursable)
          Sets whether this {$entity.humanName} is recursable.
 void setRegionId(long regionId)
          Sets the region id of this organization.
 void setRightOrganizationId(long rightOrganizationId)
          Sets the right organization id of this organization.
 void setStatusId(int statusId)
          Sets the status id of this organization.
 void setType(String type)
          Sets the type of this organization.
 Organization toEscapedModel()
          Gets a copy of this organization 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()
           
 String toXmlString()
          Gets the XML representation of this model instance.
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, 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, setEscapedModel, 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

MAPPING_TABLE_GROUPS_ORGS_NAME

public static final String MAPPING_TABLE_GROUPS_ORGS_NAME
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

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
Gets the primary key of this organization.

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

setPrimaryKey

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

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

getPrimaryKeyObj

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

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

getOrganizationId

public long getOrganizationId()
Description copied from interface: OrganizationModel
Gets 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

public long getCompanyId()
Description copied from interface: OrganizationModel
Gets 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

public long getParentOrganizationId()
Description copied from interface: OrganizationModel
Gets 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()

getLeftOrganizationId

public long getLeftOrganizationId()
Description copied from interface: OrganizationModel
Gets the left organization id of this organization.

Specified by:
getLeftOrganizationId in interface OrganizationModel
Returns:
the left organization id of this organization

setLeftOrganizationId

public void setLeftOrganizationId(long leftOrganizationId)
Description copied from interface: OrganizationModel
Sets the left organization id of this organization.

Specified by:
setLeftOrganizationId in interface OrganizationModel
Parameters:
leftOrganizationId - the left organization id of this organization

getRightOrganizationId

public long getRightOrganizationId()
Description copied from interface: OrganizationModel
Gets the right organization id of this organization.

Specified by:
getRightOrganizationId in interface OrganizationModel
Returns:
the right organization id of this organization

setRightOrganizationId

public void setRightOrganizationId(long rightOrganizationId)
Description copied from interface: OrganizationModel
Sets the right organization id of this organization.

Specified by:
setRightOrganizationId in interface OrganizationModel
Parameters:
rightOrganizationId - the right organization id of this organization

getName

public String getName()
Description copied from interface: OrganizationModel
Gets 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

public String getType()
Description copied from interface: OrganizationModel
Gets 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

public boolean getRecursable()
Description copied from interface: OrganizationModel
Gets 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
Determines whether this organization is recursable.

Specified by:
isRecursable in interface OrganizationModel
Returns:
whether this organization is recursable

setRecursable

public void setRecursable(boolean recursable)
Description copied from interface: OrganizationModel
Sets whether this {$entity.humanName} is recursable.

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

getRegionId

public long getRegionId()
Description copied from interface: OrganizationModel
Gets 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

public long getCountryId()
Description copied from interface: OrganizationModel
Gets 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

public int getStatusId()
Description copied from interface: OrganizationModel
Gets 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

public String getComments()
Description copied from interface: OrganizationModel
Gets 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

toEscapedModel

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

Specified by:
toEscapedModel in interface OrganizationModel
Returns:
the escaped model instance
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<Organization>
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 to retrieve the expando bridge attributes from
See Also:
ServiceContext.getExpandoBridgeAttributes( )

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

toString

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

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Gets 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.0.5