|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkr.co.hit.live.web.mapper.element.Table
public class Table
Web Mapper 파일의 <Table> 엘리먼트 정보를 제공한다.
| Field Summary | |
|---|---|
static String |
COLUMN_TYPE_BYTE
|
static String |
COLUMN_TYPE_CDATA
|
static String |
COLUMN_TYPE_CHAR
|
static String |
COLUMN_TYPE_DATE
|
static String |
COLUMN_TYPE_DEFAULT
|
static String |
COLUMN_TYPE_DOUBLE
|
static String |
COLUMN_TYPE_FLOAT
|
static String |
COLUMN_TYPE_INT
|
static String |
COLUMN_TYPE_LONG
|
static String |
COLUMN_TYPE_NUMBER
|
static String |
COLUMN_TYPE_STRING
|
| Constructor Summary | |
|---|---|
Table(String id,
int countValue,
int minCount,
List<String> type,
String repeatRefs)
|
|
Table(String id,
int cntval,
String cntref,
int mincnt,
List<String> type,
String repeatRefs,
List<Column> cols)
|
|
Table(String id,
String cntref,
int mincnt,
List<String> type,
String repeatRefs)
|
|
| Method Summary | |
|---|---|
void |
addColumn(Column col)
Column 객체를 추가하면서 Column 객체의 type 속성에 해당되는 TypeCaster를 지정한다. |
void |
addType(String type)
테이블의 타입 속성을 하나 추가한다. |
void |
buildFormat(Map<String,Format> formatMap)
<table> 내에 정의된 <column>들의 format 속성에 해당되는 Format 객체들을 생성하여 format 문자열을 키로하여 주어진 formatMap에 담아놓는다. |
static boolean |
checkRepeatRef(String source)
source 문자열 내에 ${repeat_ref} 패턴이 존재하는지 여부를 반환한다. |
int |
columnCount()
Table 내에 정의된 Column 수를 반환한다. |
Collection<Table> |
getAllReplacedTables(Collection<String> refs)
repeat_ref 대상 목록을 파라메터로 전달하면 Table 내의 ${repeat_ref}를 각 대상 이름으로 치환된 Table 객체들의 집합을 리턴한다. |
Column |
getColumn(int idx)
|
List<Column> |
getColumns()
|
String |
getCountRef()
|
int |
getCountValue()
|
String |
getId()
테이블 ID 문자열을 그대로 리턴한다. |
String |
getId(String repeatRef)
테이블 id 문자열에 ${repeat_ref} 패턴을 주어진 실제 repeatRef 문자로 대치하여 리턴한다. |
List<String> |
getIds()
테이블 ID로 주어진 문자열을 "/" split하여 List로 리턴한다. |
String |
getLastId()
테이블 ID로 주어진 문자열을 "/"로 split하였을 때 마지막 ID를 리턴한다. |
ColumnTypeCaster |
getTypeCaster()
테이블의 ColumnTypeCaster 객체를 반환한다. |
boolean |
hasTypeOf(String type)
테이블의 속성들 중에서 주어진 type을 가지고 있는지 여부를 반환한다. |
int |
makeCountValue(RequestDataMap reqMap)
주어진 RequestData의 row 수를 사용하여 count value 값을 계산한다. |
int |
makeCountValue(ValueObjectAssembler voa)
주어진 ValueObjectAssembler의 해당 VO의 row 수를 사용하여 count value 값을 계산한다. |
List<Column> |
replaceColumns(String repeatRef)
Table 내의 Column들을 파싱하여 리스트 객체에 담아리턴한다. |
static String |
replaceRepeatRef(String source,
String repeatRef)
source문자열 내의 ${repeat_ref} 패턴을 주어진 repeatRef 문자로 대치하여 리턴한다. |
Table |
replaceTable(String repeatRef)
${repeat_ref}를 주어진 repeatRef로 치환된 Table 객체를 생성하여 리턴한다. |
Collection<String> |
selectRepeatRefs(Collection<String> allRefs)
참조 가능한 ref 이름들의 집합에서 실제로 repeat_ref 속성값으로 지정된 패턴에 해당되는 ref 이름들을 리턴한다. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String COLUMN_TYPE_NUMBER
public static final String COLUMN_TYPE_INT
public static final String COLUMN_TYPE_LONG
public static final String COLUMN_TYPE_DOUBLE
public static final String COLUMN_TYPE_FLOAT
public static final String COLUMN_TYPE_STRING
public static final String COLUMN_TYPE_BYTE
public static final String COLUMN_TYPE_CHAR
public static final String COLUMN_TYPE_CDATA
public static final String COLUMN_TYPE_DATE
public static final String COLUMN_TYPE_DEFAULT
| Constructor Detail |
|---|
public Table(String id,
String cntref,
int mincnt,
List<String> type,
String repeatRefs)
public Table(String id,
int countValue,
int minCount,
List<String> type,
String repeatRefs)
public Table(String id,
int cntval,
String cntref,
int mincnt,
List<String> type,
String repeatRefs,
List<Column> cols)
| Method Detail |
|---|
public void addType(String type)
type - public String toString()
toString in class Objectpublic int getCountValue()
public String getCountRef()
public Collection<Table> getAllReplacedTables(Collection<String> refs)
voa -
public Table replaceTable(String repeatRef)
repeatRef - voa -
public int makeCountValue(ValueObjectAssembler voa)
voa -
public int makeCountValue(RequestDataMap reqMap)
voa -
public Collection<String> selectRepeatRefs(Collection<String> allRefs)
allRefs - 참조 가능한 모든 ref 들
public String getId()
public List<String> getIds()
public String getLastId()
public String getId(String repeatRef)
repeatRef - ${repreat_ref}를 치환할 문자
public boolean hasTypeOf(String type)
type -
public ColumnTypeCaster getTypeCaster()
public Column getColumn(int idx)
public List<Column> getColumns()
public List<Column> replaceColumns(String repeatRef)
table - repeatRef -
public int columnCount()
public void addColumn(Column col)
col - public void buildFormat(Map<String,Format> formatMap)
formatMap -
public static String replaceRepeatRef(String source,
String repeatRef)
source - 치환대상 문자열repeatRef - ${repreat_ref}를 치환할 문자
public static boolean checkRepeatRef(String source)
source -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||