org.rococoa.cocoa.security
Class cssm_appledl_open_parameters

java.lang.Object
  extended by com.sun.jna.Structure
      extended by com.ochafik.lang.jnaerator.runtime.Structure
          extended by org.rococoa.cocoa.security.cssm_appledl_open_parameters
Direct Known Subclasses:
cssm_appledl_open_parameters.ByReference, cssm_appledl_open_parameters.ByValue

public class cssm_appledl_open_parameters
extends com.ochafik.lang.jnaerator.runtime.Structure

This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.


Nested Class Summary
static class cssm_appledl_open_parameters.ByReference
           
static class cssm_appledl_open_parameters.ByValue
           
 
Field Summary
 int autoCommit
          If no OpenParameters are specified, autoCommit is on (!
 int length
           
 int mask
           
 short mode
           
 int version
           
 
Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
 
Constructor Summary
cssm_appledl_open_parameters()
           
cssm_appledl_open_parameters(int length, int version, int autoCommit, int mask, short mode)
           
 
Method Summary
 cssm_appledl_open_parameters.ByReference byReference()
           
 cssm_appledl_open_parameters.ByValue byValue()
           
 cssm_appledl_open_parameters clone()
           
 
Methods inherited from class com.ochafik.lang.jnaerator.runtime.Structure
setupClone
 
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, cacheTypeInfo, clear, ensureAllocated, equals, getAutoRead, getAutoWrite, getFieldOrder, getNativeAlignment, getPointer, getStructAlignment, hashCode, newInstance, read, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setTypeMapper, size, sortFields, toArray, toArray, toString, useMemory, useMemory, write, writeField, writeField
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

length

public int length

version

public int version

autoCommit

public int autoCommit
If no OpenParameters are specified, autoCommit is on (!CSSM_FALSE) by default.
When autoCommit is on (!CSSM_FALSE), changes made to the Db are written to disk
before returning from each function.
When autoCommit is off (CSSM_FALSE), changes made to the database are not guaranteed
to be written to disk until the Db is closed. This is useful for bulk writes.
Be aware that if autoCommit is off, changes made in previous calls to the DL might
get rolled back if a new modification operation fails.


mask

public int mask

mode

public short mode
Constructor Detail

cssm_appledl_open_parameters

public cssm_appledl_open_parameters()

cssm_appledl_open_parameters

public cssm_appledl_open_parameters(int length,
                                    int version,
                                    int autoCommit,
                                    int mask,
                                    short mode)
Parameters:
length - Should be sizeof(CSSM_APPLEDL_OPEN_PARAMETERS).
version - Should be CSSM_APPLEDL_OPEN_PARAMETERS_VERSION.
autoCommit - If no OpenParameters are specified, autoCommit is on (!CSSM_FALSE) by default.
When autoCommit is on (!CSSM_FALSE), changes made to the Db are written to disk
before returning from each function.
When autoCommit is off (CSSM_FALSE), changes made to the database are not guaranteed
to be written to disk until the Db is closed. This is useful for bulk writes.
Be aware that if autoCommit is off, changes made in previous calls to the DL might
get rolled back if a new modification operation fails.
mask - Mask marking which of the following fields are to be used.
mode - When calling DbCreate, the initial mode to create the database file with; ignored on DbOpen. You must set the kCSSM_APPLEDL_MASK_MODE bit in mask or mode is ignored.
Method Detail

byReference

public cssm_appledl_open_parameters.ByReference byReference()

byValue

public cssm_appledl_open_parameters.ByValue byValue()

clone

public cssm_appledl_open_parameters clone()
Overrides:
clone in class Object