Home » Search

About byte

21-30 of 100Refresh
Forum
6

Database size is much larger than expected (x2)

>) ::=String ::=char ::=int ::=byte[] ::=@ID So simple a class ... /t-e.html.   You should check your code, especially the conversion of images to byte[] - maybe ... ();     }     @Entity     static class Image {         byte[] data = new byte[3000000]; // 3MB per image
JDO Doc
6

getByteField(pc, field, currentValue)

Method javax.jdo.spi.StateManager byte getByteField(   PersistenceCapable pc,   int field,   byte currentValue ) Return the value for the field. Parameters: pc - the calling PersistenceCapable instance field - the field number currentValue - the current value of the field Returns: the new value for the field Since: JDO 1.0
JDO Doc
6

javax.jdo.spi.JDOImplHelper

registerClass(Class pcClass, String[] fieldNames, Class[] fieldTypes, byte[] fieldFlags, Class ... . Since: JDO 1.0 byte[] getFieldFlags(Class pcClass) Get the field flags for a PersistenceCapable class
JDO Doc
6

javax.jdo.spi.RegisterClassEvent

[] fieldTypes, byte[] fieldFlags, Class persistenceCapableSuperclass) Constructs a new RegisterClassEvent ... - the persistence-capable superclass Since: JDO 1.0 byte[] getFieldFlags() Returns the flags of the managed
JPA Doc
6

javax.persistence.Basic

.Date, java.sql.Time, java.sql.Timestamp, byte[], Byte[], char[], Character[], enums, and any
JDO Doc
6

setByteField(pc, field, currentValue, newValue)

Method javax.jdo.spi.StateManager void setByteField(   PersistenceCapable pc,   int field,   byte currentValue,   byte newValue ) Mark the field as modified by the user. Parameters: pc - the calling PersistenceCapable instance field - the field number currentValue - the current value of the field
Forum
4

Storing Images

. to persist the images, i just store an array of bytes (byte[]) representing the encoded images.  i.e. a class which has a field of type byte array.  to turn the bytes into an image, i use a UI toolkit called HCIL Jazz, which knows how to reconstitute images from bytes.  another way is to use
JDO Doc
4

ByteIdentity(pcClass, key)

Constructor javax.jdo.identity.ByteIdentity ByteIdentity(   Class pcClass,   Byte key ) Constructor with class and key. Parameters: pcClass - the target class key - the key Since: JDO 1.0
JDO Doc
4

getFieldFlags()

Method javax.jdo.spi.RegisterClassEvent byte[] getFieldFlags() Returns the flags of the managed field of the persistence-capable class. Returns: the flags of the managed fields Since: JDO 1.0
JDO Doc
4

getFieldFlags(pcClass)

Method javax.jdo.spi.JDOImplHelper byte[] getFieldFlags(   Class pcClass ) Get the field flags for a PersistenceCapable class. The order of fields is the same as for field names. Parameters: pcClass - the PersistenceCapable class. Returns: the field types for the class. Since: JDO 1.0