Package org.firebirdsql.jaybird.props
Enum DpbType
- java.lang.Object
- 
- java.lang.Enum<DpbType>
- 
- org.firebirdsql.jaybird.props.DpbType
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Comparable<DpbType>
 
 public enum DpbType extends java.lang.Enum<DpbType> Identifies the database (or service attach) parameter buffer type of a connection property.In general, there is a 1-on-1 correspondence with ConnectionPropertyType, but in some cases mapping might be different (current expectation: boolean connection properties that map to either a single item or a 0 / 1 value).- Since:
- 5
- Author:
- Mark Rotteveel
 
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description BYTEParameter value as a byte.INTParameter value is an integer.NONEParameter is not sent at all (primarily to have a null-safe value for connection properties that should not be sent to the server).SINGLEParameter value is not sent (just presence or absence of the parameter item), corresponding value must be aBoolean.STRINGParameter value is a string.
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidaddValue(ParameterBuffer pb, int pbItem, java.lang.Object value, ConnectionPropertyType type)Populate the parameter bufferpbwithpbItemandvalue.static DpbTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DpbType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
STRINGpublic static final DpbType STRING Parameter value is a string.
 - 
INTpublic static final DpbType INT Parameter value is an integer.
 - 
BYTEpublic static final DpbType BYTE Parameter value as a byte.
 - 
SINGLEpublic static final DpbType SINGLE Parameter value is not sent (just presence or absence of the parameter item), corresponding value must be aBoolean.
 - 
NONEpublic static final DpbType NONE Parameter is not sent at all (primarily to have a null-safe value for connection properties that should not be sent to the server).
 
- 
 - 
Method Detail- 
valuespublic static DpbType[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DpbType c : DpbType.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static DpbType valueOf(java.lang.String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
- java.lang.IllegalArgumentException- if this enum type has no constant with the specified name
- java.lang.NullPointerException- if the argument is null
 
 - 
addValuepublic abstract void addValue(ParameterBuffer pb, int pbItem, java.lang.Object value, ConnectionPropertyType type) Populate the parameter bufferpbwithpbItemandvalue.- Parameters:
- pb- Parameter buffer
- pbItem- Parameter buffer item
- value- Value
- type- Connection property type
 
 
- 
 
-