/** * PUBLIC: * Return the table names. */ public Vector getTableNames() { return super.getTableNames(); }
/** * INTERNAL: */ public void setIgnoreFlags() { m_ignoreInheritance = m_descriptor.hasInheritance(); m_ignoreTables = m_descriptor.getTableNames().size() > 0; m_ignoreIDs = m_descriptor.getPrimaryKeyFieldNames().size() > 0; }
/** * コンストラクタ。 引数で渡されたentityClassの情報をserverSessionから取得してオブジェクトを生成します。 * @param entityClass Entityクラスのクラスオブジェクト * @param serverSession ServerSession */ @SuppressWarnings("unchecked") public TopLinkEntityDesc(Class<?> entityClass, ServerSession serverSession) { this.serverSession = serverSession; this.classDescriptor = serverSession.getClassDescriptor(entityClass); List<DatabaseMapping> mappings = classDescriptor.getMappings(); int size = mappings.size(); attributeDescs = new TopLinkAttributeDesc[size]; attributeNames = new String[size]; attributeDescMap = new HashMap<String, TopLinkAttributeDesc>(size); for (int i = 0; i < size; i++) { DatabaseMapping mapping = mappings.get(i); attributeDescs[i] = new TopLinkAttributeDesc(mapping, serverSession); attributeNames[i] = attributeDescs[i].getName(); attributeDescMap.put(attributeDescs[i].getName(), attributeDescs[i]); if (mapping.isPrimaryKeyMapping()) { idAttributeDesc = attributeDescs[i]; } } tableNames = (List<String>) classDescriptor.getTableNames(); }