public class JobServicePrototype extends org.clawiz.core.common.system.type.AbstractTypeService<JobObject>
| Constructor and Description |
|---|
JobServicePrototype() |
| Modifier and Type | Method and Description |
|---|---|
void |
check(JobObject job)
Fill object default values and check data consistency
|
JobObject |
create()
Create new JobObject instance and fill default values
|
void |
delete(BigDecimal id)
Delete object from database
|
String |
idToPackageName(BigDecimal id)
Load record by id and prepare concatenated string values of key 'PackageName' fields
|
String |
idToString(BigDecimal id)
Load record by id and prepare toString() value
|
void |
init() |
JobObject |
load(BigDecimal id)
Load object from database by record id
|
JobList |
loadList(String whereClause,
Object... parameters)
Load list of JobObject from database
|
JobList |
loadOrderedList(String whereClause,
String orderByClause,
Object... parameters)
Load list of JobObject from database
|
String |
objectToString(JobObject jobObject)
Return toString() value for object
|
BigDecimal |
packageNameToId(String packageName,
String name)
Find id of record by key 'PackageName' fields
|
BigDecimal |
packageNameToId(String packageName,
String name,
BigDecimal skipId)
Find id of record by key 'PackageName' fields with id not equal skipId
|
BigDecimal |
packageNameToId(String packageName,
String name,
boolean createNewIfNotFound)
Find record id of record by key 'PackageName' fields or create new record with values set to given parameters
|
void |
save(JobObject job)
Save object to database:
- check data consistency with check() call
- INSERT into database for newly created objects or
UPDATE if object is loaded from existing database record
|
protected void |
saveAudit(org.clawiz.core.common.system.session.transaction.TransactionAction transactionAction,
JobObject oldJobObject,
JobObject newJobObject) |
getObjectService, getType, getTypeId, loadList, setType, setTypeIdcommit, destroy, executeQuery, executeQueryBigDecimal, executeQueryDate, executeQueryString, executeUpdate, getLogger, getSavepoint, getService, getService, getService, getServiceScope, getSession, logDebug, logError, logInfo, notNull, processExtensions, processExtensions, rollback, rollbackToSavepoint, setServiceScope, setSession, throwExceptionpublic void init()
init in class org.clawiz.core.common.system.service.Servicepublic void check(JobObject job)
check in class org.clawiz.core.common.system.type.AbstractTypeService<JobObject>job - Checked objectpublic JobObject create()
create in class org.clawiz.core.common.system.type.AbstractTypeService<JobObject>public JobObject load(BigDecimal id)
load in class org.clawiz.core.common.system.type.AbstractTypeService<JobObject>id - Id of loaded recordpublic JobList loadList(String whereClause, Object... parameters)
loadList in class org.clawiz.core.common.system.type.AbstractTypeService<JobObject>whereClause - Where part of SQL statementparameters - Where parameter valuespublic JobList loadOrderedList(String whereClause, String orderByClause, Object... parameters)
loadOrderedList in class org.clawiz.core.common.system.type.AbstractTypeService<JobObject>whereClause - Where part of SQL statementorderByClause - Order by part of SQL statementparameters - Where parameter valuespublic BigDecimal packageNameToId(String packageName, String name)
packageName - PackageNamename - Namepublic BigDecimal packageNameToId(String packageName, String name, BigDecimal skipId)
packageName - PackageNamename - NameskipId - Skip records with this idpublic BigDecimal packageNameToId(String packageName, String name, boolean createNewIfNotFound)
packageName - PackageNamename - NamecreateNewIfNotFound - Create new record with passed field values if not matched records exists in databasepublic String idToPackageName(BigDecimal id)
id - Id of recordpublic String idToString(BigDecimal id)
idToString in class org.clawiz.core.common.system.type.AbstractTypeService<JobObject>id - Id of recordpublic String objectToString(JobObject jobObject)
jobObject - Object for toString transformationprotected void saveAudit(org.clawiz.core.common.system.session.transaction.TransactionAction transactionAction,
JobObject oldJobObject,
JobObject newJobObject)
public void save(JobObject job)
save in class org.clawiz.core.common.system.type.AbstractTypeService<JobObject>job - Saved objectpublic void delete(BigDecimal id)
id - ID of deleted objectCopyright © 2018. All rights reserved.