XmlContainer.rename |
![]() ![]() |
import com.sleepycat.dbxml.*;public void rename(DbTxn txn, String newName, int flags) throws XmlException;
The XmlContainer.rename method renames the container's underlying file. Note that the name of the container object in memory is not changed - for that, use XmlContainer.setName.
The container must be closed; the system throws an exception if the container is open.
The container must have been opened at least once; the system throws an exception if the underlying file has not yet been created.
The XmlContainer.rename method may fail and throw XmlException, encapsulating one of the following non-zero errors:
![]() ![]() |
Copyright (c) 1996-2003 Sleepycat Software, Inc. - All rights reserved.