// Path: src/main/java/org/easycassandra/ClassInformations.java
// public enum ClassInformations {
// 
//     INSTACE;
//     /**
//      * field that contains all class on Cassandra.
//      * Key - qualifield
//      * value - the wrapper of class
//      */
//     private Map<String, ClassInformation> classMap;
// 
//     /**
//      * The integer class is used to enum how default.
//      */
//     public static final Class<?> DEFAULT_ENUM_CLASS = Integer.class;
// 
//     /**
//      * return the wrapper of class.
//      * @param clazz class to find
//      * @return {@link ClassInformation}
//      */
//     public ClassInformation getClass(Class<?> clazz) {
// 
//         if (classMap.get(clazz.getName()) == null) {
//             classMap.put(clazz.getName(), new ClassInformation(clazz));
//         }
//         return classMap.get(clazz.getName());
//     }
// 
//     {
//         classMap = Collections.synchronizedMap(new TreeMap<String, ClassInformation>());
//     }
// }


import org.easycassandra.ClassInformation;
import org.easycassandra.ClassInformations;
import com.datastax.driver.core.Session;
import com.datastax.driver.core.querybuilder.QueryBuilder;
import com.datastax.driver.core.querybuilder.Truncate;
package org.easycassandra.persistence.cassandra;


/**
 * Command to remove all information on Cassandra.
 * @author otaviojava
 */
class TruncateQuery {

    private String keySpace;

    public TruncateQuery(String keySpace) {
        this.keySpace = keySpace;
    }
    /**
     *truncate the column family.
     * @param bean the kind of object
     * @param session the session
     * @param <T> the kind of object
     */
    public <T> void truncate(Class<T> bean, Session session) {
        Truncate query = getQuery(bean);
        session.execute(query.toString());
    }
    protected <T> Truncate getQuery(Class<T> bean) {
// Path: src/main/java/org/easycassandra/ClassInformations.java
// public enum ClassInformations {
// 
//     INSTACE;
//     /**
//      * field that contains all class on Cassandra.
//      * Key - qualifield
//      * value - the wrapper of class
//      */
//     private Map<String, ClassInformation> classMap;
// 
//     /**
//      * The integer class is used to enum how default.
//      */
//     public static final Class<?> DEFAULT_ENUM_CLASS = Integer.class;
// 
//     /**
//      * return the wrapper of class.
//      * @param clazz class to find
//      * @return {@link ClassInformation}
//      */
//     public ClassInformation getClass(Class<?> clazz) {
// 
//         if (classMap.get(clazz.getName()) == null) {
//             classMap.put(clazz.getName(), new ClassInformation(clazz));
//         }
//         return classMap.get(clazz.getName());
//     }
// 
//     {
//         classMap = Collections.synchronizedMap(new TreeMap<String, ClassInformation>());
//     }
// }


// Path: src/main/java/org/easycassandra/persistence/cassandra/TruncateQuery.java
import org.easycassandra.ClassInformation;
import org.easycassandra.ClassInformations;
import com.datastax.driver.core.Session;
import com.datastax.driver.core.querybuilder.QueryBuilder;
import com.datastax.driver.core.querybuilder.Truncate;

package org.easycassandra.persistence.cassandra;


/**
 * Command to remove all information on Cassandra.
 * @author otaviojava
 */
class TruncateQuery {

    private String keySpace;

    public TruncateQuery(String keySpace) {
        this.keySpace = keySpace;
    }
    /**
     *truncate the column family.
     * @param bean the kind of object
     * @param session the session
     * @param <T> the kind of object
     */
    public <T> void truncate(Class<T> bean, Session session) {
        Truncate query = getQuery(bean);
        session.execute(query.toString());
    }
    protected <T> Truncate getQuery(Class<T> bean) {
        ClassInformation classInformation = ClassInformations.INSTACE