public class DBNodeUtil
extends java.lang.Object
| Constructor and Description |
|---|
DBNodeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static DBNode |
copy(DBNode node,
DBFolder folder) |
static DBNode |
duplicate(DBNode node) |
static DBNode |
findUUID(DataSource ds,
java.lang.String UUID,
java.lang.String basePath) |
static DBObject |
getDBObject(DBNode node) |
static DBNode |
getNode(DataSource ds,
java.lang.String path) |
static PropertyValue |
getPropertyValue(DBNode node,
java.lang.String name)
get property value
|
static java.lang.String |
makeAsPath(java.lang.String aPath) |
static java.lang.String |
makeRawBathPath(DBNode node) |
static java.lang.String |
makeString(Value value) |
static void |
move(DBNode node,
DBFolder folder) |
static void |
rename(DBNode node,
java.lang.String name) |
static void |
setArrayProperty(DBNode item,
java.lang.String name,
java.lang.String[] values,
int type)
set an array property to a DBFile or DBFolder
|
static void |
setProperties(DBNode item,
java.util.List<PropertyValue> properties)
set properties to a DBFile or DBFolder
|
static void |
setProperty(DBNode item,
java.lang.String name,
java.lang.String value,
int valueType)
set a property to a DBFile or DBFolder
|
static void |
validateDelete(DBNode node,
ValidationList list) |
public static void move(DBNode node,
DBFolder folder)
throws java.lang.Exception
java.lang.Exceptionpublic static void rename(DBNode node,
java.lang.String name)
throws java.lang.Exception
java.lang.Exceptionpublic static DBNode copy(DBNode node,
DBFolder folder)
throws java.lang.Exception
java.lang.Exceptionpublic static DBNode getNode(DataSource ds, java.lang.String path) throws java.lang.Exception
java.lang.Exceptionpublic static DBNode duplicate(DBNode node)
throws java.lang.Exception
java.lang.Exceptionpublic static void validateDelete(DBNode node,
ValidationList list)
throws RepositoryException
RepositoryExceptionpublic static java.lang.String makeRawBathPath(DBNode node)
public static DBNode findUUID(DataSource ds, java.lang.String UUID, java.lang.String basePath) throws ItemNotFoundException, RepositoryException
ItemNotFoundExceptionRepositoryExceptionpublic static java.lang.String makeString(Value value)
throws ValueFormatException,
java.lang.IllegalStateException,
RepositoryException
ValueFormatExceptionjava.lang.IllegalStateExceptionRepositoryExceptionpublic static void setProperties(DBNode item,
java.util.List<PropertyValue> properties)
throws java.lang.Exception
item - a DBNodeproperties - PropertyValue list to be setjava.lang.Exception - a serious problem.public static void setProperty(DBNode item,
java.lang.String name,
java.lang.String value,
int valueType)
throws java.lang.Exception
item - DBNodename - property namevalue - property value, if the value is empty or null, this property will be removed from this DBObjectvalueType - property typejava.lang.Exception - a serious problem.public static void setArrayProperty(DBNode item,
java.lang.String name,
java.lang.String[] values,
int type)
throws java.lang.Exception
item - DBNodename - property namevalues - array valuestype - property typejava.lang.Exception - a serious problem.public static DBObject getDBObject(DBNode node)
public static PropertyValue getPropertyValue(DBNode node, java.lang.String name) throws ValueFormatException, RepositoryException
node - the nodename - property nameValueFormatExceptionRepositoryExceptionpublic static java.lang.String makeAsPath(java.lang.String aPath)
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.