Enum Class MaapiFlag
- All Implemented Interfaces:
Serializable
,Comparable<MaapiFlag>
,Constable
Maapi.setFlags(int,EnumSet)
method to control
read/write sessions.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis flag will make theMaapi.getXxx()
method return config nodes only.This flag only takes effect when used inMaapi.startTransFlags(int,int,int,EnumSet)
calls and is only meaningful when applied to an read-write transaction.This flag only takes effect when used inMaapi.startTransFlags(int,int,int,EnumSet)
calls and only when starting a read-only transaction.This flag tells the server that we will be reading substantial amounts of data.This flag specifies that we want to be informed when we read leafs with default values that have not had a value set. -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
HINT_BULK
This flag tells the server that we will be reading substantial amounts of data.The affect of setting this has the effect that the
DpDataCallback.getObject(DpTrans,ConfObject[])
andDpDataCallback.iterator(DpTrans,ConfObject[])
,DpDataCallback.getIteratorKey(DpTrans,ConfObject[],Object)
callbacks (if available) are used towards external data providers when we callMaapi.getElem(int,String,Object...)
etc andMaapi.getNext(MaapiCursor)
.The
Maapi.getObject(int,String,Object...)
method always operates as if this flag was set. -
NO_DEFAULTS
This flag specifies that we want to be informed when we read leafs with default values that have not had a value set.This is indicated by the returned value being of class
ConfDefault
(type J_DEFAULT) instead of the actual value. The default value for such leafs can be obtained from theMaapi.loadSchemas()
tree provided by the library. -
CONFIG_ONLY
This flag will make theMaapi.getXxx()
method return config nodes only.if we attempt to read operational data, it will be treated as if the nodes did not exist. This is mainly useful in conjunction with
Maapi.getObject(int,String,Object...)
and list entries or containers that have both config and operational data (the operational data nodes in the returned array will be of classConfNoExists
(type J_NOEXISTS), but the other functions also obey the flag. -
HIDE_INACTIVE
This flag only takes effect when used inMaapi.startTransFlags(int,int,int,EnumSet)
calls and only when starting a read-only transaction. It will hide configuration data that has theConfAttributeType.INACTIVE
attribute set, i.e. it will appear as if that data does not exist. -
DELAYED_WHEN
This flag only takes effect when used inMaapi.startTransFlags(int,int,int,EnumSet)
calls and is only meaningful when applied to an read-write transaction. It will cause "delayed when" mode to be enabled from the beginning of the transaction. SeeMaapi.setDelayedWhen(int, boolean)
for more information about the "delayed when" mode
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()
-