protected HsqlDaoBase(HsqlUnitOfWork uow) {
		super(uow);
		try {
			Connection connection = uow.getConnection();
			
			ResultSet rs = connection.getMetaData().getTables(null, null, null, null);
			boolean exist = false;
			
			stmt =connection.createStatement();
			
			while(rs.next())
			{
				if(rs.getString("TABLE_NAME").equalsIgnoreCase(getTableName()))
				{
					exist = true;
					break;
				}
			}
			if(!exist)
			{
				stmt.executeUpdate(getCreateQuery());
			}
			
			insert = connection.prepareStatement(getInsertQuery());
			
			update = connection.prepareStatement(getUpdateQuery());
			
			delete = connection.prepareStatement(""
					+ "delete from "+getTableName()+" where id=?");
			
			selectId = connection.prepareStatement(""
					+ "select * from "+getTableName()+" where id=?");
			
			select = connection.prepareStatement(""
					+ "select * from "+getTableName());
			
		} catch (SQLException e) {
			
			e.printStackTrace();
		}
		
	}