添加一条空记录

@return
15483
@Override
    public String save(Object pData) {
        String id =GUID.newGUID();
        if(pData instanceof TemplateModel)
        {
            TemplateModel entity =(TemplateModel)pData;
            entity.setId(id);
            entity.setRev(System.currentTimeMillis());
        }
        else if(pData instanceof CommonModel)
        {
            CommonModel entity =(CommonModel)pData;
            entity.setId(id);
        }
        mDao.insert(pData);
        return id;
    }
133670
public Row addLastChild()
	{
		assert (this.treeTable.m_nbColumns > 0) : "Table should have at least one column before adding items";

		Row newItem = new Row( this.treeTable );
		newItem.m_tr = DOM.createTR();
		newItem.m_tr.setPropertyObject( "linkedItem", newItem );

		newItem.m_tr.setInnerHTML( this.treeTable.m_rowTemplate );

		// DOM add
		Row lastParentLeaf = getLastLeaf();
		Element trToInsertAfter = lastParentLeaf.m_tr;
		if( trToInsertAfter != null )
		{
			int after = DOM.getChildIndex( this.treeTable.m_body, trToInsertAfter );
			int before = after + 1;
			DOM.insertChild( this.treeTable.m_body, newItem.m_tr, before );
		}
		else
		{
			DOM.appendChild( this.treeTable.m_body, newItem.m_tr );
		}

		// logical add
		newItem.m_parent = this;
		getChilds().add( newItem );
		signalStateChange();

		// take care of the left padding
		Element firstTd = DOM.getChild( newItem.m_tr, 0 );
		firstTd.getStyle().setPaddingLeft( newItem.getLevel() * this.treeTable.treePadding, Unit.PX );

		return newItem;
	}
1282695
private static synchronized void setImplementation(Class<? extends Log> implClass) {
    try {
      //如果已经实现，则直接跳过
      if(logConstructor != null) {
        return;
      }

      Constructor<? extends Log> candidate = implClass.getConstructor(String.class);
      Log log = candidate.newInstance(LogFactory.class.getName());
      log.debug("Logging initialized using '" + implClass + "' adapter.");
      logConstructor = candidate;
    } catch (Throwable t) {
      // do nothing
    }
  }
173026
private int getNextEmptyPosition(){
        int counter;
        for (counter = 0; counter < entries.length; counter++) {
            Entry e = entries[counter];
            if (e.isEmpty()) {
                break;
            }
        }

        if (counter == entries.length) {
            throw new RuntimeException("Entry added to a node which is already full.");
        }

        return counter;
    }
1297196
public BodyContent push() {
	if (current.after == null) {
	    current.after = new Entry(current, new BodyContentImpl(current.body == null ? (JspWriter) base : current.body));
	}
	else {
	    current.after.doDevNull = false;
	    current.after.body.init(current.body == null ? (JspWriter) base : current.body);
	}
	current = current.after;
	return current.body;
    }
362427
public Integer getLoadOnStartup()
   {
      if (childNode.getTextValueForPatternName("load-on-startup") != null && !childNode.getTextValueForPatternName("load-on-startup").equals("null")) {
         return Integer.valueOf(childNode.getTextValueForPatternName("load-on-startup"));
      }
      return null;
   }
1258080
public static <T> com.sun.tools.javac.util.List<T> emptyList() {
		return com.sun.tools.javac.util.List.from(Collections.emptyList());
	}
535013
private Completable initFromBeginningToNow() {
    return initWithCallback(new Action1<PartitionAndSeqno>() {
      @Override
      public void call(PartitionAndSeqno partitionAndSeqno) {
        short partition = partitionAndSeqno.partition();
        long seqno = partitionAndSeqno.seqno();
        PartitionState partitionState = sessionState().get(partition);
        partitionState.setEndSeqno(seqno);
        sessionState().set(partition, partitionState);
      }
    });
  }
451937
public final T add(T element) {
    size++;
    heap[size] = element;
    upHeap();
    return heap[1];
  }
1325489
public boolean enterFrame() {
        if (level++ > 0) {
            if (stack == null) stack = new LinkedList<T>();
            stack.add(get());
        }
        return set(initialValueFactory.create());
    }
214151
protected static function makeEmpty()
    {
        $self  = self::getInstance();

        $self->optionWhere     = [];
        $self->optionWhereData = [];
        $self->optionJoin      = [];
        $self->optionLimit     = null;
        $self->optionSelect    = null;
        $self->table_name      = null;

        return $self;
    }
683025
function () {
        return {
            /**
             * 是否不存在 placeholder 时候，根据规则自动添加 placeholder
             *
             * @type {boolean}
             */
            autoInsertPlaceholder: true,

            /**
             * 模块加载器文件名
             *
             * @type {Array.<string>}
             */
            loaderScripts: ['require.js', 'esl.js', 'mod.js', 'sea.js', 'system.js'],
	    
            /**
             * 脚本占位符
             *
             * @type {string}
             */
            scriptPlaceholder: '<!--SCRIPT_PLACEHOLDER-->',
	    
            /**
             * 异步脚本占位符
             *
             * @type {string}
             */
            scriptAsyncPlaceholder: '<!--SCRIPT_ASYNC_PLACEHOLDER-->',

            /**
             * 样式占位符
             *
             * @type {string}
             */
            stylePlaceholder: '<!--STYLE_PLACEHOLDER-->',

            /**
             * 资源配置占位符
             *
             * @type {string}
             */
            resourceConfigPlaceholder:
                fis.config.get('placeholder.requireconfig')
                || '<!--RESOURCECONFIG_PLACEHOLDER-->'
        };
    }
335103
public Node nextAvailableNode() {
        if (!isInit) {
            init();
        }
        currentNodeIndex++;
        if (currentNodeIndex >= allNodes.length) {
            currentNodeIndex = 0;
        }
        return currentNode();
    }
1059320
public boolean add(E e)
    {
        if (queue.size() < maxSize)
        { // 未达到最大容量，直接添加
            queue.add(e);
            return true;
        }
        else
        { // 队列已满
            E peek = queue.peek();
            if (queue.comparator().compare(e, peek) > 0)
            { // 将新元素与当前堆顶元素比较，保留较小的元素
                queue.poll();
                queue.add(e);
                return true;
            }
        }
        return false;
    }
1093168
public Entries<K, V> entries () {
		if (entries == null)
			entries = new Entries(this);
		else
			entries.reset();
		return entries;
	}
719600
public static InsnList loadNull() {
        InsnList ret = new InsnList();
        ret.add(new InsnNode(Opcodes.ACONST_NULL));
        return ret;
    }
687064
def expand(self):
        
        return SLH(self.S.expand(), self.L.expand(), self.H.expand())