Tabnine Logo
SubaccountLine.setItsOwner
Code IndexAdd Tabnine to your IDE (free)

How to use
setItsOwner
method
in
org.beigesoft.accounting.persistable.SubaccountLine

Best Java code snippets using org.beigesoft.accounting.persistable.SubaccountLine.setItsOwner (Showing top 6 results out of 315)

origin: org.beigesoft/beige-accounting

/**
 * <p>Create entity with its itsOwner e.g. invoice line
 * for invoice.</p>
 * @param pAddParam additional param
 * @param pEntityItsOwner itsOwner
 * @return entity instance
 * @throws Exception - an exception
 **/
@Override
public final SubaccountLine createEntityWithOwner(
 final Map<String, Object> pAddParam,
  final Account pEntityItsOwner) throws Exception {
 SubaccountLine entity = new SubaccountLine();
 entity.setIsNew(true);
 entity.setItsOwner(pEntityItsOwner);
 addAccSettingsIntoAttrs(pAddParam);
 addTypeCodeIntoAttrs(pAddParam);
 return entity;
}
origin: org.beigesoft/beige-accounting

/**
 * <p>Create entity.</p>
 * @param pAddParam additional param
 * @return entity instance
 * @throws Exception - an exception
 **/
@Override
public final SubaccountLine createEntity(
 final Map<String, Object> pAddParam) throws Exception {
 SubaccountLine entity = new SubaccountLine();
 entity.setIsNew(true);
 Account itsOwner = new Account();
 entity.setItsOwner(itsOwner);
 addTypeCodeIntoAttrs(pAddParam);
 addAccSettingsIntoAttrs(pAddParam);
 return entity;
}
origin: org.beigesoft/beigesoft-accounting-weboio-jar

} else {
 SubaccountLine sal = new SubaccountLine();
 sal.setItsOwner(acc);
 List<SubaccountLine> subaccounts = srvOrm
  .retrieveListForField(addParam, sal, "itsOwner");
origin: org.beigesoft/beige-accounting

/**
 * <p>Create entity with its itsOwner e.g. invoice line
 * for invoice.</p>
 * @param pAddParam additional param
 * @param pIdEntityItsOwner entity itsOwner ID
 * @return entity instance
 * @throws Exception - an exception
 **/
@Override
public final SubaccountLine createEntityWithOwnerById(
 final Map<String, Object> pAddParam,
  final Object pIdOwner) throws Exception {
 SubaccountLine entity = new SubaccountLine();
 entity.setIsNew(true);
 Account itsOwner = getSrvOrm().retrieveEntityById(
  Account.class, pIdOwner);
 entity.setSubaccType(itsOwner.getSubaccType());
 entity.setItsOwner(itsOwner);
 addAccSettingsIntoAttrs(pAddParam);
 addTypeCodeIntoAttrs(pAddParam);
 return entity;
}
origin: org.beigesoft/beigesoft-accounting

/**
 * <p>Process entity request.</p>
 * @param pAddParam additional param, e.g. return this line's
 * document in "nextEntity" for farther process
 * @param pRequestData Request Data
 * @param pEntity Entity to process
 * @return Entity processed for farther process or null
 * @throws Exception - an exception
 **/
@Override
public final SubaccountLine process(
 final Map<String, Object> pAddParam,
  final SubaccountLine pEntity,
   final IRequestData pRequestData) throws Exception {
 SubaccountLine entity = this.prcAccEntityCreate
  .process(pAddParam, pEntity, pRequestData);
 entity.setItsOwner(getSrvOrm()
  .retrieveEntity(pAddParam, entity.getItsOwner()));
 pEntity.setSubaccType(entity.getItsOwner().getSubaccType());
 pRequestData.setAttribute("typeCodeSubaccMap",
  this.srvTypeCode.getTypeCodeMap());
 return entity;
}
origin: org.beigesoft/beige-accounting

/**
 * <p>Insert immutable line into DB.</p>
 * @param pAddParam additional param
 * @param pEntity entity
 * @param isEntityDetached ignored
 * @throws Exception - an exception
 **/
@Override
public final void saveEntity(final Map<String, Object> pAddParam,
 final SubaccountLine pEntity,
  final boolean isEntityDetached) throws Exception {
 Account itsOwner = getSrvOrm().retrieveEntityById(
  Account.class, pEntity.getItsOwner().getItsId());
 pEntity.setItsOwner(itsOwner);
 if (!pEntity.getSubaccType().equals(pEntity
  .getItsOwner().getSubaccType())) {
  throw new ExceptionWithCode(ExceptionWithCode.WRONG_PARAMETER,
   "wrong_paramaters");
 }
 if (pEntity.getIsNew()) {
  getSrvOrm().insertEntity(pEntity);
  registerSubaccountUsedIfExist(pEntity.getSubaccType(),
   pEntity.getSubaccId());
 } else {
  getSrvOrm().updateEntity(pEntity);
 }
}
org.beigesoft.accounting.persistableSubaccountLinesetItsOwner

Javadoc

Setter for itsOwner.

Popular methods of SubaccountLine

  • <init>
  • getItsOwner
    Getter for itsOwner.
  • getSubaccName
    Getter for subaccName.
  • setSubaccType
    Setter for subaccType.
  • getIsNew
  • getItsId
  • getSubaccId
    Getter for subaccId.
  • getSubaccType
    Getter for subaccType.
  • setIsNew

Popular in Java

  • Running tasks concurrently on multiple threads
  • runOnUiThread (Activity)
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now