Package nexj.core.meta.persistence.sql

Examples of nexj.core.meta.persistence.sql.IndexColumn


                  {
                     RelationalClassMapping classMapping = (RelationalClassMapping)mapping;

                     if (classMapping.isInner())
                     {
                        IndexColumn indexColumn = classMapping.getSourceKey().findIndexColumn(column);

                        if (indexColumn != null)
                        {
                           Object value = instance.findValue(attribute.getName(), Undefined.VALUE);

                           if (value == null)
                           {
                              return null;
                           }

                           if (value instanceof OIDHolder)
                           {
                              OID oid = ((OIDHolder)value).getOID();

                              if (oid != null && indexColumn.getOrdinal() < oid.getCount())
                              {
                                 return oid.getValue(indexColumn.getOrdinal());
                              }
                           }
                        }
                     }
                  }
View Full Code Here

TOP

Related Classes of nexj.core.meta.persistence.sql.IndexColumn

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.