Internal Website Search

101-150 of 200 results

General Performance Issues Illustrated with a Specific Method

listPatientsByIDsWithBasicData(String ids) { Long st = new Date ().getTime(); System.out.println ... ); System.out.println("cs size = " + cs.size()); Long ed = new Date ().getTime(); System.out.println ... java.io.Serializable; import java.util. Date ; import javax.jdo.annotations.Index; import javax

Wrong data stored in time only fields

This may be related to the fix for the problem described in this thread: Wrong data stored in date only fields . The object and its date and time fields are the same as in the referenced thread ... are using the 2015g time zone data. While we cannot see a problem with date only fields (more testing

javax.persistence.MapKeyTemporal

This annotation must be specified for persistent map keys of type java.util. Date and java.util.Calendar ... , OneToMany , or ManyToMany annotation. Example: @OneToMany @MapKeyTemporal( DATE ) protected java.util ... (Required) The type used in mapping java.util. Date or java.util.Calendar . Since: JPA 2.0

Query.setParameter(param,value,temporalType) - JPA Method

JPA Method in javax.persistence.Query Query setParameter (    Parameter  param,     Date  value,     TemporalType  temporalType ) Bind an instance of java.util. Date to a Parameter object. Parameters: param - parameter object value - parameter

Query.setParameter(position,value,temporalType) - JPA Method

JPA Method in javax.persistence.Query Query setParameter (   int position,     Date  value,     TemporalType  temporalType ) Bind an instance of java.util. Date to a positional parameter. Parameters: position - position value - parameter value

Query.setParameter(name,value,temporalType) - JPA Method

JPA Method in javax.persistence.Query Query setParameter (   String name,     Date  value,     TemporalType  temporalType ) Bind an instance of java.util. Date to a named parameter. Parameters: name - parameter name value - parameter value

TypedQuery.setParameter(param,value,temporalType) - JPA Method

JPA Method in javax.persistence.TypedQuery TypedQuery setParameter (    Parameter  param,     Date  value,     TemporalType  temporalType ) Bind an instance of java.util. Date to a Parameter object. Parameters: param - parameter object value

javax.persistence.Basic

, String , java.math.BigInteger , java.math.BigDecimal , java.util. Date , java.util.Calendar , java.sql. Date , java.sql.Time , java.sql.Timestamp , byte[] , Byte[] , char[] , Character[] , enums, and any

StoredProcedureQuery.setParameter(name,value,temporalType) - JPA Method

JPA Method in javax.persistence.StoredProcedureQuery StoredProcedureQuery setParameter (   String name,     Date  value,     TemporalType  temporalType ) Bind an instance of java.util. Date to a named parameter. Parameters: name - parameter name

StoredProcedureQuery.setParameter(position,value,temporalType) - JPA Method

JPA Method in javax.persistence.StoredProcedureQuery StoredProcedureQuery setParameter (   int position,     Date  value,     TemporalType  temporalType ) Bind an instance of java.util. Date to a positional parameter. Parameters: position

StoredProcedureQuery.setParameter(param,value,temporalType) - JPA Method

JPA Method in javax.persistence.StoredProcedureQuery StoredProcedureQuery setParameter (    Parameter  param,     Date  value,     TemporalType  temporalType ) Bind an instance of java.util. Date to a Parameter object. Parameters: param

TypedQuery.setParameter(position,value,temporalType) - JPA Method

JPA Method in javax.persistence.TypedQuery TypedQuery setParameter (   int position,     Date  value,     TemporalType  temporalType ) Bind an instance of java.util. Date to a positional parameter. Parameters: position - position value

TypedQuery.setParameter(name,value,temporalType) - JPA Method

JPA Method in javax.persistence.TypedQuery TypedQuery setParameter (   String name,     Date  value,     TemporalType  temporalType ) Bind an instance of java.util. Date to a named parameter. Parameters: name - parameter name value - parameter

javax.persistence.Id

should be one of the following types: any Java primitive type; any primitive wrapper type; String ; java.util. Date ; java.sql. Date ; java.math.BigDecimal ; java.math.BigInteger . The mapped column for the primary key

javax.persistence.EntityTransaction

Since: JPA 1.0 void commit () Commit the current resource transaction, writing any unflushed ... - if the commit fails Since: JPA 1.0 boolean getRollbackOnly () Determine whether the current resource ... is encountered Since: JPA 1.0 void rollback () Roll back the current resource transaction. Throws

javax.persistence.SynchronizationType

with the current transaction or whether the persistence context must be explicitly joined to the current ... SYNCHRONIZED Persistence context is automatically synchronized with the current transaction Since: JPA 2.1 UNSYNCHRONIZED Persistence context must be explicitly joined to the current transaction

javax.persistence.Temporal.value

JPA Annotation Attribute in javax.persistence.Temporal TemporalType value default null The type used in mapping java.util. Date or java.util.Calendar . Since: JPA 1.0

CriteriaBuilder.least(x) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder Expression least (    Expression  x ) Create an aggregate expression for finding the least of the values (strings, dates , etc). Parameters: x - expression representing input value to least operation Return: least expression Since: JPA 2.0

CriteriaBuilder.greatest(x) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder Expression greatest (    Expression  x ) Create an aggregate expression for finding the greatest of the values (strings, dates , etc). Parameters: x - expression representing input value to greatest operation Return: greatest expression Since: JPA 2.0

javax.persistence.MapKeyTemporal.value

JPA Annotation Attribute in javax.persistence.MapKeyTemporal TemporalType value default null (Required) The type used in mapping java.util. Date or java.util.Calendar . Since: JPA 2.0

javax.persistence.IdClass

public class Employee { @Id String empName; @Id Date birthDay; ... } Since: JPA 1.0 Public Annotation

Using SELECT BETWEEN with LocalDate

Element e WHERE e. date between CURRENT _ DATE and : date " , Element. class ) .setParameter( " date " , date ) .getResultList() ; I get the following error for e. date in IntelliJ (Type mismatch: number, date ... I am trying to query all entities whose date is between today and today + X days. The date inside

javax.persistence.EntityManagerFactory

- how and when the entity manager should be synchronized with the current JTA transaction Return: entity ... with the current JTA transaction map - properties for entity manager Return: entity manager

javax.persistence.PersistenceContext

whether the persistence context is always automatically synchronized with the current transaction or whether the persistence context must be explicitly joined to the current transaction by means

javax.persistence.PersistenceContext.synchronization

is always automatically synchronized with the current transaction or whether the persistence context must be explicitly joined to the current transaction by means of the EntityManager joinTransaction method. Since: JPA 2.1

javax.jdo.spi.StateInterrogation

is only valid within the current transaction. Parameters: pc - the instance. Return: a copy ... that have been deleted in the current transaction return Boolean.TRUE . Instances known by the implementation ... the current transaction. See Also: PersistenceManager.deletePersistent (Object pc) PersistenceCapable

javax.jdo.FetchGroup

is a copy of the currently defined members and will not change based on subsequent changes ... , including String, Locale, Currency, BigDecimal, and BigInteger; as well as Date and its jdbc subtypes

javax.jdo.datastore.Sequence

to allocate Since: JDO 2.0 Object current () Returns the current sequence value object if it is available. It is intended to return a sequence value object previously used. If the current sequence value is not available, throw JDODataStoreException. Return: the current value Since: JDO 2.0 long

Query.setResultClass(cls) - JDO Method

BigDecimal; or the java.util class Date ; or one of the java.sql classes Date , Time, or Timestamp; or

javax.jdo.Transaction

should be used for the current transaction, whether instances may hold values in the cache outside ... () Commit the current transaction. Throws: JDOUserException - if transactions are managed by ... boolean getRestoreValues () Return the current value of the restoreValues property. Return: the value

javax.jdo.PersistenceManagerFactory

until it is added to the current set via addFetchGroups . Parameters: cls - the class or interface ... () Get a modifiable Set containing a mutable copy of all currently active (in scope) fetch groups. The methods ... serialized. Return: a copy of all currently active fetch groups Throws: SecurityExceptionif the caller

PersistenceManager.retrieveAll(useFetchPlan,pcs) - JDO Method

should be retrieved. The fields in the current fetch group must be retrieved, and the implementation might retrieve more fields than the current fetch group. If the useFetchPlan parameter is false ... , all fields in the current fetch plan are fetched, and other fields might be fetched lazily by

PersistenceManager.retrieveAll(pcs,useFetchPlan) - JDO Method

values should be retrieved. The fields in the current fetch group must be retrieved, and the implementation might retrieve more fields than the current fetch group. If the useFetchPlan parameter is false ... , all fields in the current fetch plan are fetched, and other fields might be fetched lazily by

PersistenceManager.retrieveAll(pcs,useFetchPlan) - JDO Method

should be retrieved. The fields in the current fetch group must be retrieved, and the implementation might retrieve more fields than the current fetch group. If the useFetchPlan parameter is false ... , all fields in the current fetch plan are fetched, and other fields might be fetched lazily by

javax.jdo.FetchPlan

containing the names of all active fetch groups. The Set is a copy of the currently active groups ... of all currently active fetch groups Since: JDO 2.0 int getMaxFetchDepth () Return the maximum fetch ... but are in the current fetch plan should be loaded prior to detachment. Since: JDO 2.0 DETACH_UNLOAD

javax.jdo.annotations.VersionStrategy

JDO Enum VersionStrategy java.lang.Object ∟  java.lang.Enum ∟  javax.jdo.annotations.VersionStrategy Enumeration of the version strategy values. Since: JDO 2.1 Enum Constants DATE _TIME Since: JDO 2.1 NONE Since: JDO 2.1 STATE_IMAGE Since: JDO 2.1 UNSPECIFIED Since: JDO 2.1 VERSION_NUMBER

javax.jdo.FetchGroup.BASIC

well as Date and its jdbc subtypes and Enum types. Since: JDO 2.2

javax.jdo.spi.JDOImplHelper

(DateFormat df) Register a DateFormat instance for use with constructing Date instances

Query.setOrdering(ordering) - JDO Method

types except Boolean ; BigDecimal ; BigInteger ; String ; and Date . Parameters: ordering - the ordering specification. Since: JDO 1.0

JDOImplHelper.registerDateFormat(df) - JDO Method

JDO Method in javax.jdo.spi.JDOImplHelper void registerDateFormat (   DateFormat df ) Register a DateFormat instance for use with constructing Date instances. The default is the default DateFormat instance. If the new instance implements SimpleDateFormat, get its pattern for error

Sequence.currentValue() - JDO Method

JDO Method in javax.jdo.datastore.Sequence long currentValue () Returns the current sequence value as a long. If the current sequence value is not available or is not numeric, throw JDODataStoreException. Return: the current value Since: JDO 2.0

PersistenceCapable.jdoGetTransactionalObjectId() - JDO Method

if the identity of the instance has not changed in the current transaction. If the JDO identity is being changed in the transaction, this method returns the current object id as modified in the current

PersistenceManager.detachCopyAll(pcs) - JDO Method

the current FetchPlan will be traversed. Thus, to detach a graph of objects, relations to other persistent instances must either be in the default-fetch-group , or in the current custom FetchPlan

StateManager.getTransactionalObjectId(pc) - JDO Method

JDO Method in javax.jdo.spi.StateManager Object getTransactionalObjectId (   PersistenceCapable pc ) Return the object representing the JDO identity of the calling instance. If the JDO identity is being changed in the current transaction, this method returns the current identity as

StateManager.isDeleted(pc) - JDO Method

JDO Method in javax.jdo.spi.StateManager boolean isDeleted (   PersistenceCapable pc ) Tests whether this object has been deleted. Instances that have been deleted in the current ... PersistenceCapable instance Return: true if this instance was deleted in the current transaction. See Also: PersistenceManager.deletePersistent (Object pc) Since: JDO 1.0

StateManager.isNew(pc) - JDO Method

in the current transaction return true . Transient instances return false . Parameters: pc - the calling PersistenceCapable instance Return: true if this instance was made persistent in the current

StateManager.isDirty(pc) - JDO Method

made persistent in the current transaction return true . Transient nontransactional instances return false ... has been modified in the current transaction. See Also: PersistenceCapable(String fieldName) Since: JDO 1.0

JDOHelper.isDirty(pc) - JDO Static Method

made persistent in the current transaction return true . Transient instances and instances of classes ... . Return: true if the parameter instance has been modified in the current transaction. See Also: javax

JDOHelper.isDeleted(pc) - JDO Static Method

JDO Static Method in javax.jdo.JDOHelper boolean isDeleted (   Object pc ) Tests whether the parameter instance has been deleted. Instances that have been deleted in the current ... if the parameter instance was deleted in the current transaction. See Also: PersistenceManager.deletePersistent (Object pc) PersistenceCapable() Since: JDO 1.0

JDOHelper.isNew(pc) - JDO Static Method

the current transaction return true . Transient instances and instances of classes that do not ... : true if the parameter instance was made persistent in the current transaction