org.seasar.tuigwaa.model.common
クラス EntityUtils
java.lang.Object
org.seasar.tuigwaa.model.common.EntityUtils
- public class EntityUtils
- extends Object
メソッドの概要 |
static void |
addCreationDateAttribute(TgwEntity entity)
|
static void |
addCreationDateAttribute(TgwEntity entity,
String displayName)
|
static void |
addCreationUserAttribute(TgwEntity entity,
boolean userUniqueFlag)
|
static void |
addCreationUserAttribute(TgwEntity entity,
boolean userUniqueFlag,
String attrName)
|
static void |
addModificationDateAttribute(TgwEntity entity)
|
static void |
addModificationDateAttribute(TgwEntity entity,
String displayName)
|
static void |
addModificationUserAttribute(TgwEntity entity)
|
static void |
addModificationUserAttribute(TgwEntity entity,
String attrDisplayName)
|
static boolean |
alreadyUserDataInserted(TgwEntity entity)
|
static void |
bindSelfObject(Object obj,
TgwEntity entity)
|
static boolean |
contains(Set set,
TgwAttribute theOtherAttr,
Object value)
|
static void |
convertAndSetProperty(Object bean,
TgwAttribute attr,
String value)
|
static Object |
copyPropertiesCollectionEscape(Object src,
Object target,
TgwEntity entity)
|
static void |
copyPropertyCollectionEscape(Object src,
Object target,
String propertyName)
|
static TgwAttribute |
createAttribute(String type)
|
static Object |
exchange(Object dest,
org.apache.commons.beanutils.DynaBean src,
TgwEntity entity)
|
static Object |
exchange(TgwEntity entity,
org.apache.commons.beanutils.DynaBean src)
|
static String[] |
getColumns(TgwEntity entity)
引数に指定したエンティティ(テーブル)のカラム名一覧を返す |
static String[] |
getColumnTypes(TgwEntity entity)
|
static List |
getCrossRefList(TgwEntity entity)
|
static TgwAttribute |
getEmailAttribute(TgwEntity entity)
|
static Long |
getEscapedId(Object bean)
|
static Long |
getId(Object bean)
|
static Long |
getId(Object bean,
boolean isDynaProperty)
|
static String |
getKeys(TgwEntity entity)
|
static Object |
getProperty(Object valueObj,
String fieldName)
|
static Object |
getProperty(Object valueObj,
TgwAttribute field)
|
static TgwAttribute |
getTheOtherAttribute(SetAttribute attr)
|
static boolean |
hasAttribute(TgwEntity entity,
String attrType)
|
static boolean |
hasId(Object bean)
|
static boolean |
hasSelfAttribute(TgwEntity entity)
|
static boolean |
isBuiltinAttribute(TgwAttribute attr)
|
static boolean |
isEmail(TgwAttribute field)
|
static boolean |
isExistFileField(TgwEntity entity)
|
static boolean |
isM2MAttribute(TgwAttribute attr)
|
static boolean |
manyToManyFlag(SetAttribute attr)
|
static boolean |
manyToManyFlag(TgwAttribute attr)
|
static boolean |
manyToMnayFlag(TgwEntity entity)
|
static boolean |
needConverter(TgwAttribute attr)
|
static Object |
newInstanceById(Class clazz,
Long id)
|
static Object |
newInstanceById(TgwEntity entity,
Long id)
|
static boolean |
oneToManyFlag(TgwAttribute attr)
|
static void |
removeSelfObjectTree(Object selfObj,
TgwEntity entity,
Collection visitedEntities)
|
static void |
setId(Object bean,
Long id)
|
static void |
setId(Object bean,
Long id,
boolean isDynaProperty)
|
static void |
setProperty(Object bean,
String propertyName,
Object value)
|
static void |
setProperty(Object bean,
TgwAttribute attr,
Object value)
|
static void |
setTimestamp(Object obj)
|
static void |
setUser(Object obj)
|
static String |
toEntityName(Class clazz)
|
static Class |
toJavaClass(TgwAttribute attribute)
|
static String |
toJavaType(TgwAttribute attribute)
|
static TgwAttribute |
toTgwAttribute(Class clazz)
|
static TgwAttribute |
toTgwAttribute(String className)
|
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ESCAPED_ID
public static final String ESCAPED_ID
- 関連項目:
- 定数フィールド値
ENTITY_BUILTIN_RESOURCE_PREFIX
public static final String ENTITY_BUILTIN_RESOURCE_PREFIX
- 関連項目:
- 定数フィールド値
EntityUtils
public EntityUtils()
toJavaClass
public static Class toJavaClass(TgwAttribute attribute)
toTgwAttribute
public static TgwAttribute toTgwAttribute(Class clazz)
toTgwAttribute
public static TgwAttribute toTgwAttribute(String className)
toEntityName
public static String toEntityName(Class clazz)
toJavaType
public static String toJavaType(TgwAttribute attribute)
isBuiltinAttribute
public static boolean isBuiltinAttribute(TgwAttribute attr)
isM2MAttribute
public static boolean isM2MAttribute(TgwAttribute attr)
createAttribute
public static TgwAttribute createAttribute(String type)
setUser
public static void setUser(Object obj)
setTimestamp
public static void setTimestamp(Object obj)
addCreationUserAttribute
public static void addCreationUserAttribute(TgwEntity entity,
boolean userUniqueFlag,
String attrName)
addCreationUserAttribute
public static void addCreationUserAttribute(TgwEntity entity,
boolean userUniqueFlag)
addModificationUserAttribute
public static void addModificationUserAttribute(TgwEntity entity)
addModificationUserAttribute
public static void addModificationUserAttribute(TgwEntity entity,
String attrDisplayName)
addCreationDateAttribute
public static void addCreationDateAttribute(TgwEntity entity)
addCreationDateAttribute
public static void addCreationDateAttribute(TgwEntity entity,
String displayName)
addModificationDateAttribute
public static void addModificationDateAttribute(TgwEntity entity)
addModificationDateAttribute
public static void addModificationDateAttribute(TgwEntity entity,
String displayName)
hasId
public static boolean hasId(Object bean)
getEscapedId
public static Long getEscapedId(Object bean)
getId
public static Long getId(Object bean)
getId
public static Long getId(Object bean,
boolean isDynaProperty)
setId
public static void setId(Object bean,
Long id)
setId
public static void setId(Object bean,
Long id,
boolean isDynaProperty)
newInstanceById
public static Object newInstanceById(TgwEntity entity,
Long id)
newInstanceById
public static Object newInstanceById(Class clazz,
Long id)
getProperty
public static Object getProperty(Object valueObj,
TgwAttribute field)
copyPropertyCollectionEscape
public static void copyPropertyCollectionEscape(Object src,
Object target,
String propertyName)
copyPropertiesCollectionEscape
public static Object copyPropertiesCollectionEscape(Object src,
Object target,
TgwEntity entity)
getKeys
public static String getKeys(TgwEntity entity)
exchange
public static Object exchange(TgwEntity entity,
org.apache.commons.beanutils.DynaBean src)
exchange
public static Object exchange(Object dest,
org.apache.commons.beanutils.DynaBean src,
TgwEntity entity)
getProperty
public static Object getProperty(Object valueObj,
String fieldName)
setProperty
public static void setProperty(Object bean,
TgwAttribute attr,
Object value)
convertAndSetProperty
public static void convertAndSetProperty(Object bean,
TgwAttribute attr,
String value)
setProperty
public static void setProperty(Object bean,
String propertyName,
Object value)
needConverter
public static boolean needConverter(TgwAttribute attr)
isExistFileField
public static boolean isExistFileField(TgwEntity entity)
hasAttribute
public static boolean hasAttribute(TgwEntity entity,
String attrType)
hasSelfAttribute
public static boolean hasSelfAttribute(TgwEntity entity)
getEmailAttribute
public static TgwAttribute getEmailAttribute(TgwEntity entity)
isEmail
public static boolean isEmail(TgwAttribute field)
manyToMnayFlag
public static boolean manyToMnayFlag(TgwEntity entity)
manyToManyFlag
public static boolean manyToManyFlag(TgwAttribute attr)
oneToManyFlag
public static boolean oneToManyFlag(TgwAttribute attr)
manyToManyFlag
public static boolean manyToManyFlag(SetAttribute attr)
getTheOtherAttribute
public static TgwAttribute getTheOtherAttribute(SetAttribute attr)
contains
public static boolean contains(Set set,
TgwAttribute theOtherAttr,
Object value)
bindSelfObject
public static void bindSelfObject(Object obj,
TgwEntity entity)
removeSelfObjectTree
public static void removeSelfObjectTree(Object selfObj,
TgwEntity entity,
Collection visitedEntities)
getCrossRefList
public static List getCrossRefList(TgwEntity entity)
getColumns
public static String[] getColumns(TgwEntity entity)
- 引数に指定したエンティティ(テーブル)のカラム名一覧を返す
getColumnTypes
public static String[] getColumnTypes(TgwEntity entity)
alreadyUserDataInserted
public static boolean alreadyUserDataInserted(TgwEntity entity)
Copyright © 2005-2006 The Seasar Foundation and the others.. All Rights Reserved.