|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
coldbox.system.orm.hibernate.BaseORMService
coldbox.system.orm.hibernate.VirtualEntityService
public class VirtualEntityService
******************************************************************************* Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.coldbox.org | www.luismajano.com | www.ortussolutions.com ******************************************************************************* Author : Curt Gratz & Luis Majano Description : This is a Virtual Entity Service that extends the Coldbox BaseORMService to provide easy access to creating virtual services that extend the BaseORMService For example, if you want a UserService, you can either create an object based off this object if no additional functionality is needed like this: UserService=CreateObject("component", "coldbox.system.orm.hibernate.VirtualEntityService").init("User"); You can also use this virtual service as a template object and extend and override as needed. import coldbox.system.orm.hibernate.*; component extends="VirtualEntityService" UserService function init(){ // setup properties setEntityName('User'); setQueryCacheRegion( 'ORMService.defaultCache' ); setUseQueryCaching( false ); return this; } ----------------------------------------------------------------------->
| Constructor Summary | |
|---|---|
init(string entityname, [string queryCacheRegion], [boolean useQueryCaching])
Constructor |
|
| Method Summary | |
|---|---|
string |
GETENTITYNAME()
get: The entityName property for this "version" of the Virtual Service |
void |
SETENTITYNAME(string entityName)
set: The entityName property for this "version" of the Virtual Service |
numeric |
count([string where=''], [any params='[runtime expression]'])
|
numeric |
countWhere()
|
boolean |
deleteByID(any id, [boolean flush='false'])
|
numeric |
deleteWhere()
|
void |
evict([string collectionName], [any id])
|
boolean |
exists(any id)
|
array |
findAllWhere()
|
any |
findWhere()
|
any |
get(any id)
|
array |
getAll([any id])
|
string |
getKey()
|
array |
getPropertyNames()
|
string |
getTableName()
|
any |
list([struct criteria='[runtime expression]'], [string sortOrder=''], [numeric offset='0'], [numeric max='0'], [numeric timeout='0'], [boolean ignoreCase='false'], [boolean asQuery='true'])
|
any |
new()
|
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(string entityname, [string queryCacheRegion], [boolean useQueryCaching])
entitynamequeryCacheRegionuseQueryCaching| Method Detail |
|---|
public string GETENTITYNAME()
public void SETENTITYNAME(string entityName)
entityNamepublic numeric count([string where=''], [any params='[runtime expression]'])
count
in class
BaseORMService
whereparamspublic numeric countWhere()
countWhere
in class
BaseORMService
public boolean deleteByID(any id, [boolean flush='false'])
deleteByID
in class
BaseORMService
idflushpublic numeric deleteWhere()
deleteWhere
in class
BaseORMService
public void evict([string collectionName], [any id])
evict
in class
BaseORMService
collectionNameidpublic boolean exists(any id)
exists
in class
BaseORMService
idpublic array findAllWhere()
findAllWhere
in class
BaseORMService
public any findWhere()
findWhere
in class
BaseORMService
public any get(any id)
get
in class
BaseORMService
idpublic array getAll([any id])
getAll
in class
BaseORMService
idpublic string getKey()
getKey
in class
BaseORMService
public array getPropertyNames()
getPropertyNames
in class
BaseORMService
public string getTableName()
getTableName
in class
BaseORMService
public any list([struct criteria='[runtime expression]'], [string sortOrder=''], [numeric offset='0'], [numeric max='0'], [numeric timeout='0'], [boolean ignoreCase='false'], [boolean asQuery='true'])
list
in class
BaseORMService
criteriasortOrderoffsetmaxtimeoutignoreCaseasQuerypublic any new()
new
in class
BaseORMService
|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||