public class JobStepServicePrototype extends org.clawiz.core.common.system.type.AbstractTypeService<JobStepObject>
| Constructor and Description |
|---|
JobStepServicePrototype() |
| Modifier and Type | Method and Description |
|---|---|
void |
check(JobStepObject jobStep)
Fill object default values and check data consistency
|
JobStepObject |
create()
Create new JobStepObject instance and fill default values
|
void |
delete(BigDecimal id)
Delete object from database
|
String |
idToJobName(BigDecimal id)
Load record by id and prepare concatenated string values of key 'JobName' fields
|
String |
idToString(BigDecimal id)
Load record by id and prepare toString() value
|
void |
init() |
BigDecimal |
jobNameToId(BigDecimal jobId,
String name)
Find id of record by key 'JobName' fields
|
BigDecimal |
jobNameToId(BigDecimal jobId,
String name,
BigDecimal skipId)
Find id of record by key 'JobName' fields with id not equal skipId
|
BigDecimal |
jobNameToId(BigDecimal jobId,
String name,
boolean createNewIfNotFound)
Find record id of record by key 'JobName' fields or create new record with values set to given parameters
|
JobStepObject |
load(BigDecimal id)
Load object from database by record id
|
JobStepList |
loadList(String whereClause,
Object... parameters)
Load list of JobStepObject from database
|
JobStepList |
loadOrderedList(String whereClause,
String orderByClause,
Object... parameters)
Load list of JobStepObject from database
|
String |
objectToString(JobStepObject jobStepObject)
Return toString() value for object
|
void |
save(JobStepObject jobStep)
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,
JobStepObject oldJobStepObject,
JobStepObject newJobStepObject) |
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(JobStepObject jobStep)
check in class org.clawiz.core.common.system.type.AbstractTypeService<JobStepObject>jobStep - Checked objectpublic JobStepObject create()
create in class org.clawiz.core.common.system.type.AbstractTypeService<JobStepObject>public JobStepObject load(BigDecimal id)
load in class org.clawiz.core.common.system.type.AbstractTypeService<JobStepObject>id - Id of loaded recordpublic JobStepList loadList(String whereClause, Object... parameters)
loadList in class org.clawiz.core.common.system.type.AbstractTypeService<JobStepObject>whereClause - Where part of SQL statementparameters - Where parameter valuespublic JobStepList loadOrderedList(String whereClause, String orderByClause, Object... parameters)
loadOrderedList in class org.clawiz.core.common.system.type.AbstractTypeService<JobStepObject>whereClause - Where part of SQL statementorderByClause - Order by part of SQL statementparameters - Where parameter valuespublic BigDecimal jobNameToId(BigDecimal jobId, String name)
jobId - Jobname - Namepublic BigDecimal jobNameToId(BigDecimal jobId, String name, BigDecimal skipId)
jobId - Jobname - NameskipId - Skip records with this idpublic BigDecimal jobNameToId(BigDecimal jobId, String name, boolean createNewIfNotFound)
jobId - Jobname - NamecreateNewIfNotFound - Create new record with passed field values if not matched records exists in databasepublic String idToJobName(BigDecimal id)
id - Id of recordpublic String idToString(BigDecimal id)
idToString in class org.clawiz.core.common.system.type.AbstractTypeService<JobStepObject>id - Id of recordpublic String objectToString(JobStepObject jobStepObject)
jobStepObject - Object for toString transformationprotected void saveAudit(org.clawiz.core.common.system.session.transaction.TransactionAction transactionAction,
JobStepObject oldJobStepObject,
JobStepObject newJobStepObject)
public void save(JobStepObject jobStep)
save in class org.clawiz.core.common.system.type.AbstractTypeService<JobStepObject>jobStep - Saved objectpublic void delete(BigDecimal id)
id - ID of deleted objectCopyright © 2018. All rights reserved.