Package nexj.core.meta.persistence.file

Examples of nexj.core.meta.persistence.file.FileMapping


      if (s_logger.isDebugEnabled())
      {
         s_logger.debug("addInsert(uow=\"" + uow + "\", instance=\"" + instance + "\")");
      }
     
      FileMapping fileMapping = (FileMapping)instance.getPersistenceMapping();
      OID oid = instance.getOID();

      getWork(uow, FileWork.INSERT, instance);

      if (oid == null)
      {
         //Generate OID using key generator specified in metadata configuration
         Component component = fileMapping.getKeyGenerator();

         oid = ((OIDGenerator)component.getInstance(uow.getInvocationContext())).generateOID(instance, this);

         //OID must be a single value, converted to a string.
         Object[] oidValues = oid.getValueArray();
View Full Code Here

TOP

Related Classes of nexj.core.meta.persistence.file.FileMapping

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.