org.rococoa.cocoa.security
Class CSSM_APPLEDL_OPEN_PARAMETERS
java.lang.Object
com.sun.jna.Structure
com.ochafik.lang.jnaerator.runtime.Structure<CSSM_APPLEDL_OPEN_PARAMETERS,CSSM_APPLEDL_OPEN_PARAMETERS.ByValue,CSSM_APPLEDL_OPEN_PARAMETERS.ByReference>
org.rococoa.cocoa.security.CSSM_APPLEDL_OPEN_PARAMETERS
- All Implemented Interfaces:
- StructureType, StructureTypeDependent, Comparable<Structure<CSSM_APPLEDL_OPEN_PARAMETERS,CSSM_APPLEDL_OPEN_PARAMETERS.ByValue,CSSM_APPLEDL_OPEN_PARAMETERS.ByReference>>
- Direct Known Subclasses:
- CSSM_APPLEDL_OPEN_PARAMETERS.ByReference, CSSM_APPLEDL_OPEN_PARAMETERS.ByValue
public class CSSM_APPLEDL_OPEN_PARAMETERS
- extends Structure<CSSM_APPLEDL_OPEN_PARAMETERS,CSSM_APPLEDL_OPEN_PARAMETERS.ByValue,CSSM_APPLEDL_OPEN_PARAMETERS.ByReference>
native declaration : /System/Library/Frameworks/Security.framework/Headers/cssmapple.h
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.
Field Summary |
int |
autoCommit
If no OpenParameters are specified, autoCommit is on (! |
int |
length
|
int |
mask
|
short |
mode
When calling DbCreate, the initial mode to create the database file with; ignored on DbOpen. |
int |
version
|
Methods inherited from class com.ochafik.lang.jnaerator.runtime.Structure |
byReference, byValue, castToArray, castToArray, castToArray, castToReferenceArray, castToReferenceArray, castToValueArray, castToValueArray, clone, compareTo, newArray, read, setDependency, toArray, toArray, toArray, toReferenceArray, toReferenceArray, toValueArray, toValueArray, use, use, use, use, write |
Methods inherited from class com.sun.jna.Structure |
autoRead, autoRead, autoWrite, autoWrite, clear, equals, getAutoRead, getAutoWrite, getPointer, hashCode, newInstance, readField, setAutoRead, setAutoSynch, setAutoWrite, size, toString, writeField, writeField |
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.
C type : CSSM_BOOL
mask
public int mask
mode
public short 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.
C type : mode_t
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.
C type : CSSM_BOOL
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.
C type : mode_t
newArray
public static CSSM_APPLEDL_OPEN_PARAMETERS[] newArray(int arrayLength)
Copyright © 2009. All Rights Reserved.