/*
 * This file is part of Nuts Framework.
 * Copyright(C) 2009-2012 Nuts Develop Team.
 *
 * Nuts Framework is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License any later version.
 * 
 * Nuts Framework is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Nuts Framework. If not, see <http://www.gnu.org/licenses/>.
 */
package nuts.exts.vfs.ndfs.dao;

import nuts.core.dao.QueryParameter;
import nuts.core.dao.restriction.ComparableRestriction;
import nuts.core.dao.restriction.LikeableRestriction;

import java.util.Date;

/**
 * NdfsFileExample
 */
public interface NdfsFileExample extends QueryParameter {
	/**
	 * append AND
	 * @return this
	 */
	NdfsFileExample and();

	//----------------------------------------------------------------------
	// ALL exclude & include
	//----------------------------------------------------------------------
	/**
	 * excludeALL
	 * @return this
	 */
	NdfsFileExample excludeALL();

	/**
	 * includeALL
	 * @return this
	 */
	NdfsFileExample includeALL();

	//----------------------------------------------------------------------
	// column restrictions
	//----------------------------------------------------------------------
	/**
	 * @return restriction of id
	 */
	ComparableRestriction<NdfsFileExample, Long> id();

	/**
	 * @return restriction of parentId
	 */
	ComparableRestriction<NdfsFileExample, Long> parentId();

	/**
	 * @return restriction of name
	 */
	LikeableRestriction<NdfsFileExample, String> name();

	/**
	 * @return restriction of folder
	 */
	ComparableRestriction<NdfsFileExample, Boolean> folder();

	/**
	 * @return restriction of length
	 */
	ComparableRestriction<NdfsFileExample, Long> length();

	/**
	 * @return restriction of lastModified
	 */
	ComparableRestriction<NdfsFileExample, Date> lastModified();

	/**
	 * @return restriction of hidden
	 */
	ComparableRestriction<NdfsFileExample, Boolean> hidden();

	/**
	 * @return restriction of readable
	 */
	ComparableRestriction<NdfsFileExample, Boolean> readable();

	/**
	 * @return restriction of writeable
	 */
	ComparableRestriction<NdfsFileExample, Boolean> writeable();
}

