Internal Website Search
51-100 of 200 resultsAuto Date for Creation and Update" is called. Is java.sql. Timestamp not supported? Any ideas are welcome :) kind Regard, Thomas /** * Date and time when book author has been created. */ @Temporal(TemporalType. TIMESTAMP ) private Timestamp ... void onPrePersist() { this.created = Timestamp .valueOf(LocalDateTime.now(ZoneOffset.UTC)); } tlehmann | |
General Performance Issues Illustrated with a Specific Method createdBy; @Temporal(javax.persistence.TemporalType. TIMESTAMP ) private Date createdAt; @Temporal(javax ... (javax.persistence.TemporalType. TIMESTAMP ) private Date lastEditeAt; /* Retire Reversal Properties ... .TemporalType. TIMESTAMP ) private Date retiredReversedAt; /* Retire Properties */ private boolean | |
Calendar in Criteria Querys with no date. java.sql. Timestamp - representing both data and time. If possible, you should use these types ... java.util.List; import java.sql. Timestamp ; import javax.persistence.*; import javax.persistence ... ; ParameterExpression p = cb.parameter( Timestamp .class);   | |
Setting temp directory location in ObjectDB, I see that the parent folder OS timestamp changes, i just want to read the file . Ideally the OS timestamp should not change for the parent folder when the odb file open for read ... .getPersistanceManager() line gets executed, the see the OS timestamp of the fodler changes | |
Finding an object by its datetime", btime, TemporalType. TIMESTAMP ); } @Entity public class Booking { @Temporal(TemporalType. TIMESTAMP ) Calendar btime; } I'm trying to search for the exact timestamp I persisted. This is a snippet ... . I want to search for objects by exact timestamps . takada Takumi Adachi It should work | |
Entity with java.util.Date column gives ClassCastException in BIRT.engine.odaconsumer.OdaDataException: Cannot get the timestamp value column: 3. org ... : java.util.Date cannot be cast to java.sql. Timestamp at org.eclipse.birt.data.engine.odaconsumer ... .lang.ClassCastException: java.util.Date cannot be cast to java.sql. Timestamp at com.objectdb.oda | |
query on calendar class; @Temporal(TemporalType. TIMESTAMP ) private Calendar start; I tested: Query query=em.createQuery ... Walezy ObjectDB does not currently support extracting a day of week from a date (methods for extracting ... a Calendar to a Date . Using Date or Timestamp as the field type instead of Calendar | |
LifeCycle Event with Embeddable classes = FetchType.EAGER) private List barList; @Temporal(TemporalType. TIMESTAMP ) private Timestamp modifyDate; @PrePersist @PreUpdate void onPreUpdate() { modifyDate = new Timestamp (System.currentTimeMillis()); }} @Embeddable public class Bar { @Temporal(TemporalType. TIMESTAMP ) private Timestamp modifyDate | |
TemporalType injection with Calendar using JPA. TIMESTAMP When I use a java.util.Date as a field on this object there is no problem. However, if I ... ; private String periodType; @Temporal(TemporalType. TIMESTAMP ) public Calendar getBeginTime() { return ... (TemporalType. TIMESTAMP ) public Calendar getEndTime() { return endTime; } public void setEndTime | |
javax.persistence.Version , Integer , short , Short , long , Long , java.sql. Timestamp . Example: @Version @Column(name="OPTLOCK | |
java 8 LocalDateTime is not working in query to translate a value, which is at least a workaround. But ObjectDB currently doesn't support ... . Timestamp ; import java.time.LocalDateTime; import java.util.List; public class MyTestCase {   ... ; @Override public java.sql. Timestamp convertToDatabaseColumn | |
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 | |
com.objectdb.o.InternalException: java.lang.ArrayIndexOutOfBoundsException: null; String url = ""; @Temporal(javax.persistence.TemporalType. TIMESTAMP )   ... . TIMESTAMP ) private Date modifiedTime; private @Index @Temporal(javax.persistence.TemporalType. TIMESTAMP ) Date postTime;   | |
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 | |
EntityManager.getLockMode(entity) - JPA Method JPA Method in javax.persistence.EntityManager LockModeType getLockMode ( Object entity ) Get the current lock mode for the entity instance. Parameters: entity - entity instance ... manager has not been joined to the current transaction IllegalArgumentException - if the instance | |
CriteriaBuilder.currentDate() - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Expression currentDate () Create expression to return current date. Return: expression for current date Since: JPA 2.0 | |
EntityManager.isJoinedToTransaction() - JPA Method JPA Method in javax.persistence.EntityManager boolean isJoinedToTransaction () Determine whether the entity manager is joined to the current transaction. Returns false if the entity manager is not joined to the current transaction or if no transaction is active Return: boolean Since: JPA 2.1 | |
CriteriaBuilder.currentTime() - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Expression currentTime () Create expression to return current time. Return: expression for current time Since: JPA 2.0 | |
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.JDOHelper, then the ObjectId returned is only valid within the current transaction. Parameters: pc ... resource "META-INF/jdoconfig.xml", using the current thread's context class loader to locate ... , using the current thread's context class loader to locate the PersistenceManagerFactory class | |
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.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 | |
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 | |
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 | |
Detachable.jdoReplaceDetachedState() - JDO Method JDO Method in javax.jdo.spi.Detachable void jdoReplaceDetachedState () This method calls the StateManager with the current detached state instance as a parameter and replaces the current detached state instance with the value provided by the StateManager. Since: JDO 2.0 | |
javax.jdo.spi.Detachable () This method calls the StateManager with the current detached state instance as a parameter and replaces the current detached state instance with the value provided by the StateManager. Since: JDO 2.0 | |
PersistenceManagerFactory.getFetchGroups() - JDO Method JDO Method in javax.jdo.PersistenceManagerFactory Set getFetchGroups () Get a modifiable Set containing a mutable copy of all currently active (in scope) fetch groups. The methods addFetchGroups ... : a copy of all currently active fetch groups Throws: SecurityExceptionif the caller is not authorized for {@link JDOPermission} ("getMetadata") Since: JDO 2.2 | |
PersistenceManager.makeTransientAll(useFetchPlan,pcs) - JDO Method parameter is true, then the current FetchPlan is applied to the pcs parameters and the entire graph ... . useFetchPlan - whether to use the current fetch plan to determine which fields to load and which instances to make transient Since: JDO 2.1 | |
PersistenceManager.makeTransientAll(pcs,useFetchPlan) - JDO Method parameter is true, then the current FetchPlan is applied to the pcs parameters and the entire graph ... . useFetchPlan - whether to use the current fetch plan to determine which fields to load | |
PersistenceManager.makeTransientAll(pcs,useFetchPlan) - JDO Method parameter is true, then the current FetchPlan is applied to the pcs parameters and the entire graph ... . useFetchPlan - whether to use the current fetch plan to determine which fields to load and which instances to make transient Since: JDO 2.0 | |
PersistenceManager.makeTransient(pc,useFetchPlan) - JDO Method is true, then the current FetchPlan is applied to the pc parameter, as if detachCopy(Object ... : pc - the root instance to make transient. useFetchPlan - whether to use the current fetch plan | |
PersistenceManager.retrieve(pc,useFetchPlan) - JDO Method plan has not been modified from its default setting, all fields in the current fetch plan are fetched ... - the instance useFetchPlan - whether to use the current fetch plan to determine which fields to load and which instances to retrieve. Since: JDO 2.0 | |
StateInterrogation.isNew(pc) - JDO Method that have been made persistent in the current transaction return Boolean.TRUE . Instances known by the implementation to be non ... the current transaction. See Also: PersistenceManager.makePersistent (Object pc) PersistenceCapable() Since: JDO 2.0 |