/**
* @return the jumin
*/
public String getJumin()
{
return jumin;
}
/**
* @param jumin the jumin to set
*/
public void setJumin(String jumin)
{
this.jumin = jumin;
}
/**
* @return the cellphone
*/
public String getCellphone()
{
return cellphone;
}
/**
* @return the name
*/
public String getName()
{
return name;
}
/**
* @return the post
*/
public String getPost()
{
return post;
}
/**
* @return the sabun
*/
public String getSabun()
{
return sabun;
}
/**
* @return the telephone
*/
public String getTelephone()
{
return telephone;
}
/**
* @param cellphone the cellphone to set
*/
public void setCellphone(String cellphone)
{
this.cellphone = cellphone;
}
/**
* @param name the name to set
*/
public void setName(String name)
{
this.name = name;
}
/**
* @param post the post to set
*/
public void setPost(String post)
{
this.post = post;
}
/**
* @param sabun the sabun to set
*/
public void setSabun(String sabun)
{
this.sabun = sabun;
}
/**
* @param telephone the telephone to set
*/
public void setTelephone(String telephone)
{
this.telephone = telephone;
}
/**
* @return the isAdmin
*/
public boolean isAdmin()
{
return isAdmin;
}
/**
* @param isAdmin the isAdmin to set
*/
public void setAdmin(boolean isAdmin)
{
this.isAdmin = isAdmin;
}
}
VO 부분은 회원 1명을 표현할때 필요한 여러 변수를 가지고 있으며 DAO는 그 회원들의 정보를 저장 불러오기 수정 등을 할수 있는 행위가 기술됨.
DAO에서 중요한 부분은 잘 생각해 보면 이 DAO는 몇번을 실행하더라도 내용이 바뀌지가 않음. DAO가 실행될때 마다 바뀌는건 VO고 이를 봤을 때 싱글톤 패턴을 사용하면 메모리를 조금 더 적게 사용할 수 있으며(매 호출시 인스턴스를 만들지 않기 때문) static영역에 미리 만들어진 인스턴스가 들어가 있기 때문에 그 주소를 참조해서 객체를 불러오기 때문에 객체를 생성하는것에 비해 속도가 빠름.